/* ===================================================================
   AuthorOrbit — site stylesheet
   Brand tokens from public/assets/authororbit/authororbit-tokens.json
   =================================================================== */

:root {
  /* Palette */
  --navy: #002D62;
  --teal: #00A3A8;
  --teal-dark: #00868A;
  --seafoam: #78DDC8;
  --mist: #E9F6F1;
  --surface: #FFFFFF;
  --slate: #5B6B7C;
  --border: #E1E9EF;

  /* Type */
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --editorial: "Lora", Georgia, serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 12px;
  --shadow: 0 14px 38px -16px rgba(0, 45, 98, .28);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Focus visibility — keyboard users must be able to see where they are */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 42px; width: auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px;
  font: 600 .9rem var(--ui); color: var(--navy); cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-weight: 500; font-size: .95rem;
  color: var(--navy); text-decoration: none;
}
.site-nav a:hover { color: var(--teal-dark); }
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  box-shadow: inset 0 -2px 0 var(--seafoam);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-block;
  font: 600 .98rem var(--ui);
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--seafoam); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ------------------------------------------------------------------ sections */

.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #cfe0ee; text-align: center; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  display: block;
  font: 600 .8rem var(--ui);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: .9em;
}
.lead { font-size: 1.12rem; max-width: 62ch; }
.centered { text-align: center; }
.centered .lead { margin-left: auto; margin-right: auto; }
.fineprint { font-size: .88rem; color: var(--slate); }
.lora { font-family: var(--editorial); font-style: italic; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 68px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 52px; align-items: center;
}
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.6em 0 1.2em; }

.shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  overflow: hidden;
}
.shot img { border-radius: 7px; }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--mist);
  display: grid; place-items: center;
  margin-bottom: 14px; font-size: 1.25rem;
}
.section-mist .card { border-color: #d6e8e0; }

/* Tour columns — fix the shots to one ratio so the three columns line up */
.tour-item .shot { margin-bottom: 18px; }
.tour-item .shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  width: 100%;
}
.tour-item h3 { margin-bottom: .35em; }
.tour-item p { font-size: .95rem; }
.tour-link { font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ------------------------------------------------------------------ features list */

.feat-group { margin-bottom: 54px; }
.feat-group:last-child { margin-bottom: 0; }
.feat-group > h2 {
  font-family: var(--ui);
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--teal-dark);
  border-bottom: 2px solid var(--mist);
  padding-bottom: .6em; margin-bottom: 1.3em;
}
.feat-list { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.feat-item h3 { margin-bottom: .3em; }
.feat-item p { font-size: .95rem; margin-bottom: 0; }

.note {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .95rem;
  margin-top: 28px;
}
.note p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ pricing */

.price-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1080px; margin: 2em auto 0;
}
.price-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: 16px; padding: 34px; text-align: center;
}
.price-card.featured { border-color: var(--teal); box-shadow: 0 14px 36px -16px rgba(0,163,168,.4); }
.amount {
  font-family: var(--display); font-weight: 700;
  font-size: 2.5rem; color: var(--navy); margin: .25em 0;
}
.amount span { font-size: 1rem; font-weight: 500; color: var(--slate); }
.price-list { list-style: none; padding: 0; margin: 1.5em 0; text-align: left; font-size: .93rem; }
.price-list li { padding: 8px 0; border-bottom: 1px solid #f0f3f6; }
.price-list li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 10px; }

/* ------------------------------------------------------------------ faq / prose */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose > p:first-child { font-size: 1.08rem; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  font-family: var(--display); font-weight: 600;
  color: var(--navy); cursor: pointer; font-size: 1.02rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--teal); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

.about-grid { display: grid; grid-template-columns: 210px 1fr; gap: 38px; align-items: start; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy); color: #b9cde0; padding: 56px 0 30px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: var(--seafoam); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 42px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6em; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: .6em;
  letter-spacing: -.01em;
}
.footer-wordmark span { color: #fff; font-weight: 700; }
.footer-wordmark em { color: var(--seafoam); font-weight: 600; font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 38px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: space-between;
  font-size: .87rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ------------------------------------------------------------------ 404 */

.err-code {
  font-family: var(--ui); font-weight: 700; letter-spacing: .14em;
  color: var(--teal); font-size: .82rem; text-transform: uppercase;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 54px 0; }
  /* The collapsible menu is progressive enhancement: the toggle only appears,
     and the nav is only hidden, when JavaScript is running to control it.
     Without JS the nav simply renders as a stacked list and stays usable. */
  .js .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 18px;
  }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 12px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
