/* ==========================================================================
   Planet Duct — Design System
   Brand: teal monochrome (#10646c), planet/space motif, rounded geometric sans.
   Philosophy: clean, fast, premium. One bold idea (the orbit/planet motif),
   everything else quiet and disciplined.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  /* Brand palette */
  --teal-900: #06343a;
  --teal-700: #0a4a52;
  --teal-600: #10646c;   /* primary brand */
  --teal-500: #1a818b;
  --teal-300: #6fb7bf;
  --teal-100: #d6ecee;
  --teal-50:  #eef7f8;

  --ink:      #0f1c1e;   /* near-black text, teal-tinted */
  --slate:    #4a5b5e;   /* secondary text */
  --line:     #dce6e7;   /* hairlines */
  --paper:    #ffffff;
  --mist:     #f5fafa;   /* section alt background */

  --accent:   #f4a623;   /* warm sodium-flare accent — used sparingly */

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.5rem);

  /* Space */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius: 14px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --shadow: 0 1px 3px rgba(6,52,58,.08), 0 8px 30px rgba(6,52,58,.06);
  --shadow-lg: 0 10px 40px rgba(6,52,58,.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-500); }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout ---- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--teal-900); color: #cfe3e5; }
.section--ink h2, .section--ink h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-500);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal-300); display: inline-block; }
.lede { font-size: var(--step-1); color: var(--slate); max-width: 60ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--teal-600); color: #fff; }
.btn--primary:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--accent { background: var(--accent); color: var(--teal-900); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--teal-900); }
.btn--ghost { border-color: currentColor; color: var(--teal-600); }
.btn--ghost:hover { background: var(--teal-600); color: #fff; }
.btn--lg { padding: 1em 1.9em; font-size: var(--step-1); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--teal-900); color: #bfe0e3;
  font-size: var(--step--1); font-family: var(--font-display);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; }
.topbar a { color: #eafafb; }
.topbar__tag { letter-spacing: .12em; text-transform: uppercase; opacity: .8; display: none; }
.topbar__contact { display: flex; gap: 1.4rem; align-items: center; }
.topbar__contact .phone { font-weight: 600; }

.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .7rem; }
.brand img { height: 48px; width: auto; }

/* Desktop nav */
.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: .2rem; }
  .topbar__tag { display: block; }
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--ink); padding: .6rem .7rem; border-radius: 8px;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--teal-600); background: var(--teal-50); }
.nav__item--has > .nav__link::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .5;
}
.nav__panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .18s ease; list-style: none;
}
.nav__item:hover > .nav__panel, .nav__item:focus-within > .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel .nav__link { display: flex; justify-content: space-between; width: 100%; padding: .55rem .7rem; }
.nav__panel li { position: relative; }
/* nested flyout */
.nav__panel .nav__panel { top: -.5rem; left: 100%; }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 1079px) { .nav-cta .btn--book { display: none; } }

/* Mobile toggle */
.burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
@media (min-width: 1080px) { .burger { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(88%, 380px); background: #fff; z-index: 100;
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--shadow-lg); padding: 1.2rem; }
.drawer.open { transform: translateX(0); }
.drawer__backdrop { position: fixed; inset: 0; background: rgba(6,52,58,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 90; }
.drawer__backdrop.open { opacity: 1; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer__close { background: none; border: 0; font-size: 1.8rem; cursor: pointer; line-height: 1; color: var(--slate); }
.m-nav { list-style: none; }
.m-nav li { border-bottom: 1px solid var(--line); }
.m-nav > li > a, .m-nav summary { padding: .85rem .2rem; font-family: var(--font-display); font-weight: 500; display: block; color: var(--ink); }
.m-nav details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.m-nav details summary::-webkit-details-marker { display: none; }
.m-nav details summary::after { content: "+"; color: var(--teal-500); font-size: 1.3rem; }
.m-nav details[open] summary::after { content: "−"; }
.m-nav details .sub { padding-left: .9rem; }
.m-nav details .sub a { padding: .6rem .2rem; display: block; color: var(--slate); font-size: .95rem; }
.drawer__cta { margin-top: 1.2rem; display: grid; gap: .6rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--teal-900); color: #aecdd0; padding-block: clamp(3rem,2rem+3vw,5rem) 2rem; font-size: var(--step--1); }
.footer a { color: #d4eaec; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__brand img { height: 84px; margin-bottom: 1rem; }
.footer__brand p { max-width: 34ch; color: #9fc1c4; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .04em; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer__areas ul { display: block; columns: 2; column-gap: 1.2rem; }
.footer__areas li { line-height: 1.35; margin-bottom: .55rem; break-inside: avoid; }
.footer__social { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  display: grid; place-items: center; transition: .18s; }
.footer__social a:hover { background: var(--teal-600); border-color: var(--teal-600); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__cert-label { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 1.4rem 0 .7rem; }
.footer__badges { display: inline-flex; gap: 1.1rem; align-items: center; background: #fff; border-radius: 12px; padding: .8rem 1.1rem; }
.footer__badge { display: grid; place-items: center; height: 46px; transition: transform .15s ease; }
.footer__badge:hover { transform: translateY(-2px); }
.footer__badge img { max-height: 46px; max-width: 56px; width: auto; height: auto; object-fit: contain; display: block; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; color: #88aaad; }
.footer__bar a { color: #88aaad; }
.footer__bar a:hover { color: #fff; }
.footer__credit { text-align: center; padding-top: 1.1rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.07);
  font-size: .82rem; color: rgba(255,255,255,.4); }
.footer__credit a { color: rgba(255,255,255,.65); font-weight: 500; text-decoration: none; transition: color .15s; }
.footer__credit a:hover { color: var(--accent); }

/* ---- Floating mobile call bar ---- */
.callbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--teal-900); box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.callbar a { padding: .9rem; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.callbar a + a { border-left: 1px solid rgba(255,255,255,.15); }
.callbar a.book { background: var(--accent); color: var(--teal-900); }
@media (min-width: 1080px) { .callbar { display: none; } }
@media (max-width: 1079px) { body { padding-bottom: 52px; } }

/* ---- Utilities ---- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.grid { display: grid; gap: var(--gap); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   AEO components: answer blocks, FAQ, breadcrumbs
   ========================================================================== */
.answer-block { background: var(--teal-50); border-left: 4px solid var(--teal-500); border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.answer-block__q { font-family: var(--font-display); font-weight: 600; color: var(--teal-700); margin-bottom: .4rem; }
.answer-block__a { color: var(--ink); margin: 0; }

.faq-sec .wrap { max-width: 820px; }
.faq-list { margin-top: 1.5rem; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal-500); font-size: 1.6rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__a { padding: 0 1.3rem 1.2rem; color: var(--slate); }
.faq-item[open] summary { color: var(--teal-700); }

.breadcrumbs { font-size: var(--step--1); color: var(--slate); padding: 1rem 0 0; font-family: var(--font-display); }
.breadcrumbs a { color: var(--teal-600); }
.breadcrumbs span { margin: 0 .4rem; opacity: .5; }

/* ==========================================================================
   Unified YouTube facade (click-to-play, used site-wide)
   ========================================================================== */
.yt-facade {
  position: relative; width: 100%; max-width: 760px; margin: 1.5rem auto;
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 42%, var(--teal-600), var(--teal-900));
  box-shadow: var(--shadow);
}
.yt-facade__thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
/* maxres often returns a tiny 120px gray frame for some videos; if it loaded the hq fallback, that's fine.
   If image fully fails, it's hidden by alt collapse and the branded gradient shows. */
.yt-facade__thumb[alt]:not([src]) { display:none; }
.yt-facade::before { content:""; position:absolute; inset:0; z-index:2; background:linear-gradient(180deg,rgba(6,52,58,.12),rgba(6,52,58,.5)); transition:.2s; }
.yt-facade:hover::before { background:linear-gradient(180deg,rgba(6,52,58,.06),rgba(6,52,58,.32)); }
.yt-facade__btn {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:3;
  width:72px; height:72px; border-radius:50%; background:var(--accent);
  display:grid; place-items:center; box-shadow:0 8px 26px rgba(0,0,0,.35); transition:.2s;
}
.yt-facade:hover .yt-facade__btn { transform:translate(-50%,-50%) scale(1.08); }
.yt-facade__btn svg { width:30px; height:30px; fill:var(--teal-900); margin-left:4px; }
.yt-facade__label { position:absolute; left:1rem; bottom:.9rem; z-index:3; color:#fff; font-family:var(--font-display); font-weight:600; font-size:.95rem; text-shadow:0 2px 10px rgba(0,0,0,.5); }
.yt-facade iframe { position:absolute; inset:0; width:100%; height:100%; border:0; z-index:4; }
.prose .yt-facade { margin:1.5rem 0; }

/* ==========================================================================
   AEO: key facts table, location signals, related links
   ========================================================================== */
.key-facts { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:1.4rem 1.6rem; margin:1.5rem 0; }
.key-facts dl { display:grid; gap:.7rem; margin:0; }
.key-facts dl > div { display:grid; grid-template-columns:auto 1fr; gap:1rem; align-items:baseline; border-bottom:1px solid var(--line); padding-bottom:.7rem; }
.key-facts dl > div:last-child { border-bottom:0; padding-bottom:0; }
.key-facts dt { font-family:var(--font-display); font-weight:600; color:var(--teal-700); font-size:.92rem; white-space:nowrap; }
.key-facts dd { margin:0; color:var(--ink); font-size:.95rem; }

.geo-strip { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.2rem 0; }
.geo-chip { display:inline-flex; align-items:center; gap:.4em; font-size:.85rem; font-family:var(--font-display); font-weight:500;
  background:var(--teal-50); color:var(--teal-700); padding:.35rem .8rem; border-radius:999px; }
.geo-chip svg { width:13px; height:13px; fill:var(--teal-500); }

.related-links { margin-top:2.5rem; padding-top:2rem; border-top:1px solid var(--line); }
.related-links h3 { font-size:var(--step-1); margin-bottom:1rem; }
.related-grid { display:grid; gap:.8rem; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.related-card { display:block; padding:1rem 1.2rem; border:1px solid var(--line); border-radius:var(--radius); background:#fff;
  font-family:var(--font-display); font-weight:500; color:var(--ink); transition:.15s; }
.related-card:hover { border-color:var(--teal-300); background:var(--teal-50); color:var(--teal-700); transform:translateY(-2px); }
.related-card span { display:block; font-size:.82rem; color:var(--slate); font-weight:400; margin-top:.2rem; }

/* ==========================================================================
   Award / trust badge carousel (auto-scrolling marquee)
   ========================================================================== */
.badge-strip { background: var(--mist); border-block: 1px solid var(--line); padding-block: 1.8rem; overflow: hidden; }
.badge-strip__label { text-align: center; font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 1.3rem; }
.badge-marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.badge-track { display: flex; align-items: center; gap: 3.5rem; width: max-content; animation: badge-scroll 42s linear infinite; }
.badge-marquee:hover .badge-track { animation-play-state: paused; }
.badge-item { flex: none; display: grid; place-items: center; height: 80px; }
.badge-item img { max-height: 80px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(35%); opacity: .85; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.badge-item:hover img { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
@keyframes badge-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .badge-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 2rem 3rem; }
  .badge-marquee { mask-image: none; -webkit-mask-image: none; }
}
