/* ==========================================================================
   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 { grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.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__badges { display: flex; gap: 1rem; align-items: center; margin-top: 1.4rem; flex-wrap: wrap; }
.footer__badges .badge { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  padding: .5rem .8rem; font-family: var(--font-display); font-size: .8rem; font-weight: 500; color: #cfe6e8; }
.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; }

/* ---- 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: #04282d center/cover no-repeat; box-shadow: var(--shadow);
}
.yt-facade::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(6,52,58,.08),rgba(6,52,58,.45)); transition:.2s; }
.yt-facade:hover::before { background:linear-gradient(180deg,rgba(6,52,58,.04),rgba(6,52,58,.3)); }
.yt-facade__btn {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2;
  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 iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.prose .yt-facade { margin:1.5rem 0; }
