/* Believer Marine — "Corporate Trust" system, palette from the logo (navy #0A215E + red #D51119) */

:root {
  /* Brand primitives */
  --navy-950: #061540;
  --navy-900: #0A215E; /* logo navy */
  --navy-800: #102D78;
  --navy-700: #183C96;
  --navy-100: #E1E8F7;
  --navy-50:  #F0F4FB;
  --red-700:  #A50D14;
  --red-600:  #D51119; /* logo red */
  --red-500:  #ED1C24;
  --red-100:  #FBE3E4;
  --red-50:   #FEF2F2;

  /* Semantic */
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --primary: var(--navy-900);
  --accent: var(--red-600);
  --success: #047857;
  --danger: #B91C1C;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  --grad-accent: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%);
  --grad-text: linear-gradient(100deg, var(--red-600) 0%, var(--red-700) 100%); /* single hue: navy→red mixes to purple */
  --grad-dark: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);

  /* Colored shadows (navy tint) */
  --shadow-card: 0 4px 20px -2px rgba(10, 33, 94, 0.10);
  --shadow-card-hover: 0 12px 28px -6px rgba(10, 33, 94, 0.18), 0 8px 10px -6px rgba(10, 33, 94, 0.10);
  --shadow-btn: 0 4px 14px 0 rgba(213, 17, 25, 0.30);
  --shadow-btn-hover: 0 8px 20px -2px rgba(213, 17, 25, 0.38);

  /* Type: Major Third */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1280px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --section-y: clamp(4rem, 3rem + 4vw, 6rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms;
  --t-slow: 500ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: var(--fs-2xl); font-weight: 700; margin-top: 0.75rem; }
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: var(--fs-md); }
.text-gradient {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--fs-base)/1 var(--font); cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn .icon { transition: transform var(--t-fast) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn--secondary { background: var(--surface); color: var(--navy-900); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--navy-100); background: var(--navy-50); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Topbar (scrolls away; only the header is sticky) ---------- */
.topbar { background: var(--navy-950); color: #E2E8F0; font-size: 0.8125rem; line-height: 1.3; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; min-height: 40px; }
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.topbar li { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px; }
.topbar a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px; color: #E2E8F0; transition: color var(--t-fast); }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar .icon { width: 1.1em; height: 1.1em; color: #FF8A8F; }
.topbar :focus-visible { outline-color: #fff; }
@media (max-width: 767px) {
  .topbar li.topbar__address { display: none; }
  .topbar__inner { justify-content: space-between; gap: 0 1rem; }
  .topbar li, .topbar a { min-height: 44px; }
}
@media (max-width: 479px) {
  .topbar .icon { display: none; } /* frees ~40px so email + call fit on one row at 375px */
  .topbar__inner { flex-wrap: nowrap; }
}

/* ---------- Floating call + WhatsApp buttons ---------- */
.fab {
  position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 12px;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
}
.fab__btn {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff;
  box-shadow: 0 8px 20px -4px rgba(6, 21, 64, 0.45);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.fab__btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 26px -4px rgba(6, 21, 64, 0.55); }
.fab__btn:active { transform: scale(0.96); }
.fab__btn:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 6px var(--navy-900); }
.fab__btn--call { background: var(--grad-accent); }
.fab__btn--wa { background: #25D366; }
.fab__btn .icon { width: 26px; height: 26px; }
.fab__glyph { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.fab__btn--wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: fab-ring 2.8s ease-out infinite; pointer-events: none;
}
@keyframes fab-ring { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fab__btn--wa::after { display: none; }
  .fab__btn:hover { transform: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px -12px rgba(10, 33, 94, 0.18); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; }
.brand__mark { width: 60px; height: 48px; object-fit: contain; }
.brand__name { display: flex; gap: 0.4em; line-height: 1; white-space: nowrap; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.08em; color: var(--red-600); }
.brand__name > :first-child { color: var(--navy-900); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 0.25rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  font-weight: 500; color: var(--text-muted); transition: color var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--navy-900); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding-inline: 1.25rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--navy-900); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.header[data-open="true"] .nav-toggle .icon--menu { display: none; }
.header[data-open="true"] .nav-toggle .icon--close { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(10, 33, 94, 0.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t-fast), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
  }
  .header[data-open="true"] .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; }
  .nav__link { display: flex; min-height: 48px; padding-inline: 0.5rem; font-size: var(--fs-md); border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta { min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4.5rem, 3rem + 5vw, 7rem); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.blob--navy { width: 520px; height: 520px; background: var(--navy-100); top: -180px; right: -120px; opacity: 0.9; }
.blob--red { width: 360px; height: 360px; background: var(--red-100); bottom: -160px; left: -140px; opacity: 0.8; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(3rem, 2rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.06; margin-top: 1.25rem; }
.hero__lead { margin-top: 1.5rem; max-width: 34rem; font-size: var(--fs-md); color: var(--text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.trust-row li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); }
.trust-row .icon { color: var(--red-600); width: 1.1em; height: 1.1em; }

.hero__visual { position: relative; perspective: 2000px; }
.hero__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900);
  box-shadow: 0 30px 60px -20px rgba(10, 33, 94, 0.45);
  transform: rotateX(5deg) rotateY(-12deg); transform-style: preserve-3d;
  transition: transform var(--t-slow) var(--ease);
}
.hero__visual:hover .hero__frame { transform: rotateX(2deg) rotateY(-6deg); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 21, 64, 0.55)); }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.1rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.8); box-shadow: var(--shadow-card-hover);
}
.float-card strong { display: block; font-size: var(--fs-sm); line-height: 1.25; color: var(--navy-900); }
.float-card span { display: block; font-size: 0.8125rem; line-height: 1.3; color: var(--text-muted); }
.float-card__logo { width: auto; height: 44px; flex: none; }
.float-card--a { left: -1rem; bottom: 12%; animation: float 6s ease-in-out infinite; }
.float-card--b { right: -0.75rem; top: 8%; animation: float 6s ease-in-out -3s infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Brand stripe — the angled red-over-navy bar from the business card */
.stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; z-index: 2; pointer-events: none; }
.stripe::before { content: ""; position: absolute; inset: auto 0 0 0; height: 14px; background: var(--navy-900); }
.stripe::after { content: ""; position: absolute; right: 0; bottom: 14px; width: 50%; height: 14px; background: var(--red-600); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Certifications band ---------- */
.certs { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: 2rem; }
.certs__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; }
.certs__label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.certs__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem); }
.cert-logo { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.cert-logo img { width: auto; height: 56px; }
.cert-logo span { font-size: 0.8125rem; font-weight: 700; line-height: 1; color: var(--navy-900); }
.cert-logo--bca img { height: 64px; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: clamp(2.5rem, 2rem + 4vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card-hover); }
.about__media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border-radius: var(--radius-lg);
  border: 2px solid var(--red-600);
}
.about__body p + p { margin-top: 1rem; }
.about__body > p { color: var(--text-muted); font-size: var(--fs-md); }

/* ---------- Services ---------- */
.services { background: var(--surface); overflow: hidden; }
.services .blob--navy { top: auto; bottom: -260px; right: -200px; opacity: 0.6; }
.services__grid { position: relative; z-index: 1; display: grid; gap: 1.25rem; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast);
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--navy-100); }
.service:hover::before { transform: scaleX(1); }
.service__num { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--navy-50); }
.service__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--navy-50); color: var(--navy-900); transition: background var(--t-fast), color var(--t-fast);
}
.service__icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: var(--fs-lg); font-weight: 700; }
.service p { color: var(--text-muted); }
/* Echo the PDF's alternating solid/outlined service tiles as a checkerboard at every column count.
   The media queries only pick which cards are solid; the look lives in the variables below. */
.service { background: var(--svc-bg, var(--surface)); border-color: var(--svc-border, var(--border)); }
.service h3 { color: var(--svc-title, var(--text)); }
.service p { color: var(--svc-text, var(--text-muted)); }
.service .service__num { color: var(--svc-num, var(--navy-50)); }
.service .service__icon { background: var(--svc-icon-bg, var(--navy-50)); color: var(--svc-icon, var(--navy-900)); }
.service:hover .service__icon { background: var(--red-600); color: #fff; }
@media (max-width: 639px), (min-width: 1024px) {
  .services__grid > .service:nth-child(odd) {
    --svc-bg: var(--grad-primary); --svc-border: transparent; --svc-title: #fff; --svc-text: #CBD5E1;
    --svc-num: rgba(255, 255, 255, 0.08); --svc-icon-bg: rgba(255, 255, 255, 0.1); --svc-icon: #fff;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .services__grid > .service:nth-child(4n + 1), .services__grid > .service:nth-child(4n) {
    --svc-bg: var(--grad-primary); --svc-border: transparent; --svc-title: #fff; --svc-text: #CBD5E1;
    --svc-num: rgba(255, 255, 255, 0.08); --svc-icon-bg: rgba(255, 255, 255, 0.1); --svc-icon: #fff;
  }
}

.services__photos { position: relative; z-index: 1; display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.photo-tile { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 240px; margin: 0; background: var(--navy-900); }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 21, 64, 0.85)); }
.photo-tile figcaption { position: absolute; z-index: 1; left: 1.5rem; right: 1.5rem; bottom: 1.25rem; color: #fff; font-weight: 600; font-size: var(--fs-md); }

/* ---------- Why us (dark) ---------- */
.section--dark { background: var(--grad-dark); color: #E2E8F0; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head p { color: #CBD5E1; }
.section--dark .eyebrow { color: #FF8A8F; }
.why .blob--red { opacity: 0.18; background: var(--red-600); left: auto; right: -160px; bottom: auto; top: -120px; }
.why .blob--navy { opacity: 0.35; background: var(--navy-700); top: auto; right: auto; left: -200px; bottom: -220px; }
.why__grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 2rem + 4vw, 4.5rem); align-items: center; }
.why__list { display: grid; gap: 1rem; }
.why__item {
  display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.why__item:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); transform: translateX(4px); }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--radius); background: var(--red-600); color: #fff; box-shadow: 0 0 24px rgba(213, 17, 25, 0.45); }
.why__item h3 { font-size: var(--fs-md); font-weight: 700; }
.why__item p { margin-top: 0.25rem; color: #CBD5E1; font-size: 0.9375rem; }
.why__visual { perspective: 2000px; }
.why__visual img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg);
  transform: rotateY(-8deg) rotateX(4deg); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7);
  transition: transform var(--t-slow) var(--ease);
}
.why__visual:hover img { transform: rotateY(-3deg) rotateX(2deg); }
.why__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.why__cta a.phone-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; color: #fff; }
.why__cta a.phone-link:hover { color: #FFB3B6; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 2rem; align-items: start; }
.info-list { display: grid; gap: 1rem; }
.info {
  display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.info__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--red-50); color: var(--red-600); }
.info h3 { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.info p, .info address { margin-top: 0.25rem; color: var(--navy-900); font-weight: 600; }
.info a { display: inline-flex; min-height: 32px; align-items: center; transition: color var(--t-fast); }
.info a:hover { color: var(--red-600); }
.info small { font-weight: 500; color: var(--text-muted); }
.map { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--navy-50); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card-hover); }
.form-card h3 { font-size: var(--fs-xl); font-weight: 700; }
.form-card > p { margin-top: 0.5rem; color: var(--text-muted); }
.form { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.form__row { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: #334155; }
.field label .req { color: var(--red-600); }
.field label .opt { font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1; background: var(--surface); color: var(--text);
  font: 400 var(--fs-base)/1.4 var(--font); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #94A3B8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(24, 60, 150, 0.2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18); }
.field__error { display: flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); font-weight: 500; color: var(--danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: flex; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-alert[hidden] { display: none; }
.form-alert .icon { margin-top: 0.15rem; }
.form-alert--error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.form-alert--success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.form-alert h4 { margin: 0 0 0.25rem; font-size: var(--fs-base); }
.form-alert ul { margin-top: 0.25rem; padding-left: 1.1rem; list-style: disc; }
.form-alert a { text-decoration: underline; }
.form__submit { justify-self: start; }
.form__submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.form__submit.is-loading .spinner { display: inline-block; }
.form__submit.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy-950); color: #CBD5E1; padding-top: 4rem; }
.footer .stripe { top: 0; bottom: auto; transform: scaleY(-1); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand-tile { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem 0.6rem 0.6rem; border-radius: var(--radius); background: #fff; }
.footer__brand-tile .brand__name { font-size: 1.05rem; }
.footer__about { margin-top: 1.25rem; max-width: 22rem; font-size: 0.9375rem; }
.footer h3 { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer li + li { margin-top: 0.35rem; }
.footer a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 36px; color: #CBD5E1; transition: color var(--t-fast); }
.footer a:hover { color: #fff; }
.footer address { line-height: 1.6; }
/* extra bottom room keeps the floating buttons (2 x 56px + gap) off the footer text */
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.5rem; padding-bottom: calc(9rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--fs-sm); color: #94A3B8; }
.footer__credit { flex-basis: 100%; }
.footer__credit a { color: #E2E8F0; text-decoration: underline; text-underline-offset: 3px; }
.footer__credit a:hover { color: #fff; }

/* ---------- Work scope + gallery ---------- */
.scope { background: var(--bg); }
.scope__head { display: grid; gap: 1rem; align-items: end; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.scope__head h2 { font-size: var(--fs-2xl); font-weight: 800; max-width: 16ch; }
.scope__accent { color: var(--red-600); }
.scope__head p { color: var(--text-muted); font-size: var(--fs-md); max-width: 38ch; }

.scope__core { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.scope-panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 420px; display: flex; align-items: flex-end; background: var(--navy-900);
  box-shadow: var(--shadow-card);
}
.scope-panel img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease);
}
.scope-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 21, 64, 0) 30%, rgba(6, 21, 64, 0.92) 100%);
}
.scope-panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red-600);
  transform: scaleX(0.18); transform-origin: left; transition: transform var(--t-slow) var(--ease);
}
.scope-panel:hover img { transform: scale(1.05); }
.scope-panel:hover::after { transform: scaleX(1); }
.scope-panel__body { padding: 1.75rem 1.5rem 2rem; color: #fff; }
.scope-panel h3 { color: #fff; font-size: var(--fs-xl); font-weight: 700; }
.scope-panel__tags { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scope-panel__tags li {
  font-size: var(--fs-sm); font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff;
}

.scope__caps {
  margin-top: 1.25rem; display: grid; gap: 1.25rem; align-items: center;
  padding: 1.5rem; border-radius: var(--radius-lg); background: var(--grad-primary); color: #fff;
}
.scope__caps-title { color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.scope__caps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.scope__caps-list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.scope__caps-list .icon {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1); color: #fff;
}

.gallery { margin-top: clamp(3.5rem, 3rem + 3vw, 5rem); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.gallery__head h3 { font-size: var(--fs-xl); font-weight: 700; }
.gallery__head p { color: var(--text-muted); }
.gallery__grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item button {
  all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; cursor: zoom-in;
  overflow: hidden; border-radius: var(--radius); background: var(--navy-100);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease); }
.gallery__item button:hover img { transform: scale(1.04); filter: saturate(1.1); }
.gallery__item button:focus-visible { outline: 3px solid var(--red-600); outline-offset: 3px; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 21, 64, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 0.9rem; padding: 4.5rem 1rem 1.5rem; max-width: 100%; }
.lightbox__img { max-width: min(92vw, 1200px); max-height: calc(100dvh - 9rem); width: auto; height: auto; border-radius: var(--radius); object-fit: contain; }
.lightbox__caption { max-width: 60ch; text-align: center; color: #E2E8F0; font-size: var(--fs-sm); }
.lightbox__count { color: #94A3B8; font-variant-numeric: tabular-nums; margin-left: 0.5rem; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev, .lightbox__btn--next { top: 50%; translate: 0 -50%; }
.lightbox__btn--prev { left: 1rem; }
.lightbox__btn--prev .icon { transform: rotate(180deg); }
.lightbox__btn--next { right: 1rem; }
.lightbox-lock { overflow: hidden; }
@media (max-width: 639px) {
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 1rem; translate: none; }
  .lightbox__figure { padding-bottom: 5rem; }
  .lightbox__img { max-height: calc(100dvh - 12rem); }
}
@media (min-width: 640px) {
  .scope__caps { grid-template-columns: auto 1fr; padding: 1.5rem 2rem; gap: 2rem; }
  .scope__caps-list { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
}
@media (min-width: 900px) {
  .scope__head { grid-template-columns: 1fr auto; }
  .scope__core { grid-template-columns: repeat(3, 1fr); }
  .scope-panel { min-height: 520px; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
}

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid > .service:last-child { grid-column: 1 / -1; } /* 5 cards: last one spans the row */
  .form__row { grid-template-columns: 1fr 1fr; }
  .services__photos { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .about__grid { grid-template-columns: 1fr 1.1fr; }
  .why__grid { grid-template-columns: 1.15fr 0.85fr; }
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr 1fr; }
}
@media (min-width: 1024px) {
  /* 6-col grid so the 3 + 2 cards stay balanced: row 2 is centered */
  .services__grid { grid-template-columns: repeat(6, 1fr); }
  .services__grid > .service { grid-column: span 2; }
  .services__grid > .service:nth-child(4) { grid-column: 2 / span 2; }
  .services__grid > .service:nth-child(5) { grid-column: 4 / span 2; }
  .services__photos { grid-template-columns: 1.4fr 1fr; }
  .photo-tile { min-height: 300px; }
}
@media (max-width: 899px) {
  .hero__frame { transform: none; }
  .float-card--a { left: 0.75rem; bottom: -1.25rem; }
  .float-card--b { right: 0.75rem; top: -1.25rem; }
  .why__visual { display: none; }
}
@media (max-width: 479px) {
  .brand__name { font-size: 1.05rem; }
  .brand__mark { width: 50px; height: 40px; }
  .float-card { padding: 0.65rem 0.8rem; }
  .float-card__logo { height: 36px; }
  .float-card--b { display: none; }
  .about__media::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__frame, .why__visual img { transform: none !important; }
}
