/* ==========================================================================
   Stella Maris — Template v2
   Nautical editorial: deep navy, brass, ivory. Fraunces + Manrope.
   ========================================================================== */

:root {
  --navy-950: #06121e;
  --navy-900: #0a1a2b;
  --navy-800: #10263c;
  --navy-700: #183552;
  --sea: #2f6f8f;
  --brass: #c9a45c;
  --brass-soft: #e6cf9f;
  --ivory: #f6f2ea;
  --sand: #ece5d8;
  --white: #ffffff;
  --ink: #0d1b28;
  --muted: #5d6b78;
  --line: rgba(13, 27, 40, .12);
  --line-light: rgba(255, 255, 255, .14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brass); color: var(--navy-950); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sea);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--brass); }

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); max-width: 16ch; margin-top: 18px; }
.section-head h2 em { font-style: italic; color: var(--sea); }
.section-head p { max-width: 44ch; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-brass { background: var(--brass); color: var(--navy-950); }
.btn-brass:hover { background: var(--brass-soft); }
.btn-ghost { border-color: var(--line-light); color: var(--white); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background .35s, box-shadow .35s, color .35s;
}
.header.scrolled, .header.solid {
  background: rgba(10, 26, 43, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
}
.topbar { border-bottom: 1px solid var(--line-light); font-size: 13px; color: rgba(255,255,255,.7); transition: margin .35s var(--ease); }
.header.scrolled .topbar { margin-top: -41px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 40px; }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right { display: flex; gap: 24px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5ed49a; box-shadow: 0 0 0 0 rgba(94,212,154,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(94,212,154,0); } 100% { box-shadow: 0 0 0 0 rgba(94,212,154,0); } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: #f8f8f8; padding: 7px; flex: none; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: .02em; line-height: 1; }
.brand-name small { display: block; margin-top: 5px; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; color: var(--brass); }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.82); transition: color .2s, background .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta { min-height: 46px; padding: 0 22px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-light); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px); display: flex; align-items: flex-end;
  padding: 180px 0 64px; color: var(--white); background: var(--navy-950);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.0) translate3d(-1.5%, -1%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(47,111,143,.35), transparent 60%),
    linear-gradient(180deg, rgba(6,18,30,.55) 0%, rgba(6,18,30,.35) 35%, rgba(6,18,30,.92) 82%, var(--navy-950) 100%);
}
.hero-star { position: absolute; right: -120px; top: 120px; width: 560px; opacity: .14; filter: invert(1) grayscale(1); mix-blend-mode: screen; z-index: -1; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 300; margin: 22px 0 28px; }
.hero h1 em { font-style: italic; color: var(--brass); font-weight: 400; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.8); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-light);
  background: rgba(10,26,43,.55); backdrop-filter: blur(16px);
}
.hero-card-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin-bottom: 6px !important; color: var(--white) !important; }
.hero-card h3 { font-size: 22px; margin-bottom: 6px; }
.hero-card p { color: rgba(255,255,255,.7); font-size: 14px; }
.hero-card .rows { margin-top: 20px; display: grid; gap: 2px; }
.hero-card .rows a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-light); font-weight: 600; }
.hero-card .rows a span { color: rgba(255,255,255,.6); font-weight: 500; font-size: 13px; }
.hero-card .rows a:hover { color: var(--brass); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line-light); }
.hero-stats div { padding: 26px 24px 0 0; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 300; line-height: 1; color: var(--white); }
.hero-stats span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.62); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--brass); color: var(--navy-950); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--serif); font-size: 22px; font-style: italic; white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-visual { position: relative; }
.about-visual .main { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-visual .inset {
  position: absolute; right: -28px; bottom: -40px; width: 46%; aspect-ratio: 1;
  object-fit: cover; border-radius: var(--radius); border: 8px solid var(--ivory);
}
.about-badge {
  position: absolute; left: -24px; top: 32px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--navy-900); color: var(--white); display: grid; place-items: center; text-align: center;
}
.about-badge strong { display: block; font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1; color: var(--brass); }
.about-badge span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.about-copy h2 { font-size: clamp(34px, 4.6vw, 56px); margin: 18px 0 24px; }
.about-copy h2 em { color: var(--sea); }
.about-copy > p { color: var(--muted); font-size: 17px; }
.about-copy > p + p { margin-top: 14px; }
.about-copy blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--brass);
  font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.4;
}
.checks { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks li { display: flex; gap: 10px; font-weight: 600; font-size: 15px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a45c' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Catalog ---------- */
.catalog { background: var(--white); border-radius: 40px 40px 0 0; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--sand); }
.tab { border: 0; background: transparent; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); transition: background .25s, color .25s; }
.tab .count { margin-left: 6px; font-size: 12px; opacity: .6; }
.tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--navy-900); color: var(--white); }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search input { width: 100%; height: 50px; padding: 0 18px 0 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); transition: border-color .2s, background .2s; }
.search input:focus { outline: none; border-color: var(--sea); background: var(--white); }
.search svg { position: absolute; left: 17px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(10,26,43,.35); }
.card-img { aspect-ratio: 4/3; overflow: hidden; min-height: 0; background: linear-gradient(160deg, #fff, var(--sand)); display: grid; place-items: center; padding: 22px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 20px; margin-top: auto; }
.card-num { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--sea); margin-bottom: 4px; }
.card h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.card-arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); transition: background .25s, color .25s, transform .35s var(--ease); }
.card-arrow svg { width: 16px; height: 16px; }
.card:hover .card-arrow { background: var(--brass); border-color: var(--brass); transform: rotate(-45deg); }
.card.is-service .card-img { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.card.is-service .card-img { padding: 0; }
.card.is-service .card-img img { mix-blend-mode: normal; object-fit: cover; border-radius: 0; }
.empty { display: none; padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--navy-950); color: var(--white); }
.spotlight .section-head h2 em { color: var(--brass); }
.spotlight .section-head p { color: rgba(255,255,255,.65); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-light); }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-item { border-bottom: 1px solid var(--line-light); }
.feature-item h3 { margin: 0; font: inherit; }
.feature-item button {
  width: 100%; display: grid; grid-template-columns: 56px 1fr 30px; gap: 12px; align-items: center;
  padding: 28px 24px 28px 0; background: none; border: 0; text-align: left; cursor: pointer; color: rgba(255,255,255,.55);
  transition: color .25s;
}
.feature-item button:hover, .feature-item.active button { color: var(--white); }
.feature-item .n { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brass); }
.feature-item .t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.feature-item .plus { width: 30px; height: 30px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: transform .35s var(--ease), background .25s; }
.feature-item.active .plus { transform: rotate(45deg); background: var(--brass); color: var(--navy-950); border-color: var(--brass); }
.feature-item .desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.feature-item.active .desc { grid-template-rows: 1fr; }
.feature-item .desc > div { overflow: hidden; }
.feature-item .desc p { padding: 0 24px 28px 68px; color: rgba(255,255,255,.7); max-width: 52ch; }
.feature-item .desc a { display: inline-flex; gap: 8px; margin: -12px 0 28px 68px; color: var(--brass); font-weight: 700; font-size: 14px; }
.feature-stage { position: relative; margin-left: clamp(24px, 5vw, 72px); border-radius: var(--radius); overflow: hidden; min-height: 520px; }
.feature-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform 1.2s var(--ease); }
.feature-stage img.on { opacity: 1; transform: scale(1); }
.feature-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(6,18,30,.6)); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 32px 28px 36px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--serif); font-size: 56px; font-weight: 300; line-height: 1; color: var(--brass); margin-bottom: 40px; }
.step h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: 0; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Coverage band ---------- */
.coverage { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); border-radius: 32px; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.coverage h2 { font-size: clamp(32px, 4.4vw, 54px); margin-top: 16px; }
.coverage h2 em { color: var(--brass); }
.coverage p { color: rgba(255,255,255,.7); margin-top: 18px; max-width: 46ch; }
.ports { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ports li { padding: 10px 18px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.03); }
.ports li.hq { background: var(--brass); color: var(--navy-950); border-color: var(--brass); }
.coverage svg.grid-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .08; pointer-events: none; }

/* ---------- Contact / RFQ ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { font-size: clamp(36px, 5vw, 64px); margin: 18px 0 20px; }
.contact-info h2 em { color: var(--sea); }
.contact-info > p { color: var(--muted); max-width: 40ch; }
.channels { margin-top: 36px; display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.channel:hover { border-color: var(--sea); transform: translateX(4px); }
.channel .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--brass); }
.channel .ic svg { width: 20px; height: 20px; }
.channel small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.channel strong { font-weight: 700; }

.form { padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(10,26,43,.35); }
.form h3 { font-size: 28px; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); transition: border-color .2s, background .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); background: var(--white); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-ok { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: #e6f4ec; color: #1d6a43; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 88px 0 28px; margin-top: clamp(72px, 10vw, 140px); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 64px; border-bottom: 1px solid var(--line-light); }
.footer-cta-title { margin: 0; font-family: var(--serif); line-height: 1.05; letter-spacing: -.02em; color: var(--white); font-size: clamp(36px, 6vw, 84px); font-weight: 300; max-width: 14ch; }
.footer-cta-title em { color: var(--brass); }
.footer-cta h2 { color: var(--white); font-size: clamp(36px, 6vw, 84px); font-weight: 300; max-width: 14ch; }
.footer-cta h2 em { color: var(--brass); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; }
.footer-h, .footer-cols h4 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-cols a:hover { color: var(--brass); }
.footer .brand { color: var(--white); margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .25s, color .25s; }
.socials a:hover { background: var(--brass); color: var(--navy-950); border-color: var(--brass); }
.socials svg { width: 17px; height: 17px; }
.credit a { color: var(--brass); font-weight: 600; }
.credit a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; }

/* ---------- WhatsApp FAB ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); transition: transform .25s var(--ease); }
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 24px; height: 24px; }

/* ---------- Inner page hero (category template) ---------- */
.page-hero { position: relative; padding: 190px 0 80px; background: var(--navy-950); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 90% 0%, rgba(47,111,143,.45), transparent 60%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.crumbs a:hover { color: var(--brass); }
.crumbs span[aria-hidden] { opacity: .4; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 88px); font-weight: 300; margin: 18px 0 22px; }
.page-hero h1 em { color: var(--brass); }
.page-hero p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 50ch; }
.page-hero-img { border-radius: var(--radius); background: linear-gradient(160deg, #fff, var(--sand)); aspect-ratio: 1; display: grid; place-items: center; padding: 32px; }
.page-hero-img img { mix-blend-mode: multiply; max-height: 100%; object-fit: contain; }

.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.spec th, .spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec th { width: 40%; font-weight: 700; background: var(--sand); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 16px; }
.side-card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.side-card.dark { background: var(--navy-900); color: var(--white); border-color: transparent; }
.side-title, .side-card h3 { font-family: var(--serif); line-height: 1.15; font-size: 24px; margin-bottom: 10px !important; }
.side-card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.side-card.dark p { color: rgba(255,255,255,.7); }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { color: var(--sea); }

/* ==========================================================================
   Production additions
   ========================================================================== */
[hidden] { display: none !important; }
address { font-style: normal; }
.muted { color: var(--muted); margin-top: 16px; }
.text-link { color: var(--sea); font-weight: 700; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--navy-900); }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--brass); }
.section-tight { padding-top: clamp(48px, 6vw, 80px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn[disabled] { opacity: .6; cursor: progress; }
.empty a { color: var(--sea); font-weight: 700; }
.menu-cta { display: none; }

/* Card without image */
.card-ph { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--navy-900); color: var(--brass); }
.card-ph svg { width: 44px; height: 44px; }
.card.is-service .card-ph { background: rgba(255,255,255,.06); }

/* Catalogue page tabs are links */
a.tab { display: inline-flex; align-items: center; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-title { font-size: clamp(34px, 5vw, 60px); margin-top: 18px; }
.faq-title em { color: var(--sea); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-weight: 400; font-size: 20px; transition: transform .3s var(--ease), background .25s; }
.faq details[open] summary span { transform: rotate(45deg); background: var(--brass); border-color: var(--brass); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* Form extras */
.form-title { font-size: 28px; margin-bottom: 6px; }
.form-intro { color: var(--muted); font-size: 15px; margin-bottom: 28px !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label span { color: var(--sea); }
.field.invalid input, .field.invalid textarea { border-color: #c2412d; background: #fdf3f1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy-900); }
.consent a { color: var(--sea); text-decoration: underline; }
.consent.invalid { color: #c2412d; }
.form-msg { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; }
.form-msg.ok { background: #e6f4ec; color: #1d6a43; }
.form-msg.err { background: #fdf0ee; color: #a3321f; }
.inline-form { margin-top: 56px; scroll-margin-top: 110px; }
.form { scroll-margin-top: 110px; }

/* Detail page extras */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perks li { padding: 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.perks strong { display: block; margin-bottom: 4px; }
.perks span { font-size: 14px; color: var(--muted); }
.prose .checks { margin-bottom: 0; }
.prose-narrow { max-width: 760px; }
.prose a { color: var(--sea); text-decoration: underline; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--sand); }
.side-card .btn svg { width: 16px; height: 16px; }
.side-card.dark .btn-ghost { margin-top: 10px; }
.page-hero-img.is-empty { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.page-hero-sm { padding-bottom: 64px; }
.page-hero-sm h1, .page-hero-404 h1 { max-width: 16ch; }
.page-hero-404 { min-height: 70vh; display: flex; align-items: center; }
.map-card { margin-top: 24px; padding: 24px; border-radius: var(--radius-sm); background: var(--sand); }
.map-card address { margin-bottom: 12px; }
.cta-band { grid-template-columns: 1.3fr auto; }
.catalog-page { border-radius: 0; background: transparent; }

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(400px, calc(100vw - 32px));
  padding: 24px; border-radius: 20px; background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(6,18,30,.45), 0 0 0 1px var(--line);
  animation: cookieIn .5s var(--ease) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } }
.cookie-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cookie-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--brass); }
.cookie-ic svg { width: 20px; height: 20px; }
.cookie-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.cookie > p { font-size: 14px; color: var(--muted); }
.cookie > p a { color: var(--sea); text-decoration: underline; }
.cookie-prefs { margin-top: 16px; display: grid; gap: 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ivory); cursor: pointer; }
.toggle strong { display: block; font-size: 14px; }
.toggle small { display: block; font-size: 12px; color: var(--muted); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: #cfd5db; transition: background .25s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.toggle input:checked + i { background: var(--navy-900); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:disabled + i { opacity: .55; }
.toggle input:focus-visible + i { outline: 2px solid var(--brass); outline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-open .fab { transform: translateY(-260px); opacity: 0; pointer-events: none; }


/* ---------- Gallery + lightbox ---------- */
.gallery-section { background: var(--white); border-radius: 40px 40px 0 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery a:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; box-sizing: border-box; padding: 0; border: 0; background: rgba(6,18,30,.94); color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; padding: 24px; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { font-size: 14px; color: rgba(255,255,255,.7); }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(255,255,255,.06); color: var(--white); display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb-btn:hover { background: var(--brass); color: var(--navy-950); border-color: var(--brass); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-close { position: absolute; top: 24px; right: 24px; }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-section { border-radius: 28px 28px 0 0; }
  .lightbox[open] { grid-template-columns: 1fr; padding: 16px 16px 88px; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .about-grid, .feature, .coverage, .contact-grid, .page-hero-grid, .detail-grid, .faq-grid, .cta-band { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-stage { margin: 32px 0 0; min-height: 360px; order: -1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .about-visual { max-width: 560px; }
  .page-hero-img { max-width: 360px; }
}
@media (max-width: 860px) {
  .menu, .nav-cta, .topbar-right { display: none; }
  .burger { display: block; }
  .nav-open .header { background: var(--navy-950); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; inset: 120px 0 0; padding: 24px var(--gutter) 40px; background: var(--navy-950); overflow-y: auto; overscroll-behavior: contain;
  }
  .header.scrolled ~ * .menu, .nav-open .header.scrolled .menu { inset: 80px 0 0; }
  .nav-open .menu a { font-family: var(--serif); font-size: 30px; font-weight: 400; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-light); background: none; }
  .nav-open { overflow: hidden; }
  .nav-open .menu a.menu-cta { display: block; margin-top: 20px; padding: 16px 0; border: 0; border-radius: 999px; background: var(--brass); color: var(--navy-950); text-align: center; font-family: var(--sans); font-size: 17px; font-weight: 700; }
  .perks { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(n+3) { padding-top: 24px; }
}
@media (max-width: 600px) {
  .topbar-left a:not(.live) { display: none; }
  .steps, .fields, .checks, .footer-cols { grid-template-columns: 1fr; }
  .tabs { width: 100%; } .tab { flex: 1; padding: 11px 10px; justify-content: center; }
  .cookie { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 20px; }
  .faq summary { font-size: 16px; }
  .faq details p { padding-right: 0; }
  .hero { padding-top: 150px; }
  .hero-card { padding: 22px; }
  .search { max-width: none; }
  .about-visual .inset { right: -8px; }
  .about-badge { left: -8px; width: 104px; height: 104px; }
  .about-badge strong { font-size: 34px; }
  .fab span { display: none; } .fab { padding: 0 16px; }
  .catalog { border-radius: 28px 28px 0 0; }
  .feature-item .desc p, .feature-item .desc a { margin-left: 0; padding-left: 0; }
  .feature-item .desc a { margin-left: 0; }
}
