/* ============================================
   SOST — Components & sections
   ============================================ */

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--logo-ink);
}
.logo svg {
  height: 56px;
  width: auto;
  overflow: visible;
  transition: height 0.4s var(--ease);
}
.logo .logo-ink {
  fill: var(--logo-ink);
  transition: fill 0.4s var(--ease);
}
.logo .logo-wave {
  fill: var(--logo-wave);
  transition: fill 0.4s var(--ease);
}
.logo .logo-word {
  fill: var(--logo-ink);
  opacity: 0.92;
  transition: fill 0.4s var(--ease);
}
.logo .logo-rule {
  stroke: var(--logo-ink);
  stroke-width: 2;
  opacity: 0.55;
  transition: stroke 0.4s var(--ease);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 82px;
  transition: height 0.4s var(--ease);
}

/* Transparent over hero */
.header:not(.is-scrolled) {
  background: transparent;
}
.header:not(.is-scrolled) .logo {
  color: #fff;
}
.header:not(.is-scrolled) .logo svg {
  filter: drop-shadow(0 1px 6px rgba(3, 20, 32, 0.45));
}
.header:not(.is-scrolled) .logo .logo-ink {
  fill: #fff;
}
.header:not(.is-scrolled) .logo .logo-wave {
  fill: #9fdce7;
}
.header:not(.is-scrolled) .logo .logo-word {
  fill: #fff;
  opacity: 0.9;
}
.header:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.92);
}
.header:not(.is-scrolled) .nav-link::after {
  background: #fff;
}
.header:not(.is-scrolled) .icon-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.header:not(.is-scrolled) .icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.header:not(.is-scrolled) .header-cta {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
}

.header.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header.is-scrolled .header-inner {
  height: 68px;
}
.header.is-scrolled .logo svg {
  height: 47px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
}

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-block: var(--space-2);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: var(--color-heading);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.icon-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.icon-btn .icon-moon {
  display: none;
}
[data-theme='dark'] .icon-btn .icon-sun {
  display: none;
}
[data-theme='dark'] .icon-btn .icon-moon {
  display: block;
}

.header-cta {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

.menu-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 100px var(--gutter) var(--space-10);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
    transform: translateY(-101%);
    transition: transform 0.45s var(--ease);
    z-index: -1;
  }
  .nav.is-open {
    transform: none;
  }
  .header:not(.is-scrolled) .nav .nav-link {
    color: var(--color-text-muted);
  }
  .nav-link {
    font-size: var(--text-lg);
    font-family: var(--font-display);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
  }
  .nav-link::after {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: flex-end;
  padding-block: var(--space-32) clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: heroDrift 24s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 26, 41, 0.9) 0%, rgba(4, 26, 41, 0.45) 42%, rgba(4, 26, 41, 0.22) 72%, rgba(4, 26, 41, 0.5) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bfe6ee;
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: var(--text-3xl);
  color: #fff;
  max-width: 19ch;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 30px rgba(3, 20, 32, 0.4);
}
.hero h1 em {
  font-style: italic;
  color: #a8e0ea;
}

.hero p {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 460px) {
  .hero-actions .btn {
    padding-inline: var(--space-5);
  }
}

.hero-credit {
  position: absolute;
  right: var(--gutter);
  bottom: var(--space-5);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
}

@media (max-width: 720px) {
  .hero-credit {
    display: none;
  }
}

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--navy);
  color: #fff;
  padding-block: var(--space-10);
}
[data-theme='dark'] .trustbar {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-inline: var(--space-3);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.trust-item:first-child {
  border-left: none;
}
[data-theme='dark'] .trust-item {
  border-left-color: var(--color-border);
}

.trust-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  white-space: nowrap;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-2);
}
[data-theme='dark'] .trust-num {
  color: var(--color-accent);
}

.trust-label {
  font-size: var(--text-xs);
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.7);
}
[data-theme='dark'] .trust-label {
  color: var(--color-text-muted);
}

@media (max-width: 760px) {
  .trustbar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-4);
  }
  .trust-item:nth-child(odd) {
    border-left: none;
  }
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .eyebrow {
  justify-content: center;
}

/* ---------- About ---------- */
.about {
  background: var(--color-surface-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}

.about-media {
  position: relative;
}

.about-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.about-inset {
  position: absolute;
  right: calc(var(--space-8) * -1);
  bottom: calc(var(--space-10) * -1);
  width: 44%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid var(--color-surface-2);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
}
.about-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.about h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}
.about p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.about p strong {
  color: var(--color-text);
  font-weight: 600;
}

.pronounce {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
  background: var(--color-accent-soft);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.pronounce b {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: 0.04em;
}

.signature {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-heading);
  margin-top: var(--space-8);
}
.signature span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  .about-media {
    max-width: 420px;
  }
  .about-inset {
    right: var(--space-4);
    bottom: calc(var(--space-8) * -1);
    width: 40%;
  }
}

@media (max-width: 520px) {
  .about-grid {
    gap: var(--space-12);
  }
  .about-inset {
    right: var(--space-3);
    bottom: calc(var(--space-6) * -1);
    width: 42%;
    border-width: 5px;
  }
}

/* ---------- Why / value cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Specialties ---------- */
.specialties {
  background: var(--color-surface-2);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
}

.spec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 348px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
}

.spec-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.spec-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 24, 38, 0.95) 6%, rgba(4, 24, 38, 0.78) 34%, rgba(4, 24, 38, 0.3) 68%, rgba(4, 24, 38, 0.1) 100%);
  transition: background 0.5s var(--ease);
}
.spec-card:hover img {
  transform: scale(1.06);
}

.spec-card--wide {
  grid-column: span 4;
  min-height: 420px;
}
.spec-card--tall {
  grid-column: span 2;
  min-height: 420px;
}
.spec-card--third {
  grid-column: span 2;
}

.spec-tag {
  display: inline-block;
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b3b5c;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-full);
}

.spec-card h3 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-2);
}
.spec-card--third h3,
.spec-card--tall h3 {
  font-size: var(--text-lg);
}
.spec-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  max-width: 44ch;
}
.spec-meta {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 980px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-card--wide,
  .spec-card--tall,
  .spec-card--third {
    grid-column: span 1;
    min-height: 320px;
  }
  .spec-card--wide {
    grid-column: span 2;
  }
}
@media (max-width: 620px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .spec-card--wide {
    grid-column: span 1;
  }
}

/* ---------- Feature (Quebec / seasonal) ---------- */
.feature {
  position: relative;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}

.feature-copy h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.feature-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: grid;
  gap: var(--space-3);
}
.feature-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.feature-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-accent);
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-media {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- All-inclusive band ---------- */
.band {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}
.band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 24, 38, 0.92) 0%, rgba(4, 24, 38, 0.78) 42%, rgba(4, 24, 38, 0.34) 72%, rgba(4, 24, 38, 0.12) 100%);
}
.band-copy {
  max-width: 54ch;
}
.band .eyebrow {
  color: #bfe6ee;
}
.band h2 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-5);
}
.band p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-8);
}

/* ---------- Escorted tours ---------- */
.tours {
  background: var(--color-surface-2);
}

.tours-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.tours-copy h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}

.tours-copy p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.tours-copy p strong {
  color: var(--color-text);
  font-weight: 600;
}
.tours-copy .btn {
  margin-top: var(--space-3);
}

.tours-media {
  position: relative;
}
.tours-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .tours-grid {
    grid-template-columns: 1fr;
  }
  .tours-media {
    order: -1;
  }
  .tours-media img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Travel insurance ---------- */
.insurance {
  background: var(--color-surface-2);
}

.ins-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
@media (max-width: 720px) {
  .ins-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ins-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-top: 2px solid var(--color-accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.ins-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ins-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin-bottom: var(--space-3);
}
.ins-card p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.ins-note {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface-3);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
[data-theme='dark'] .ins-note {
  background: var(--color-surface);
  border-left-color: var(--color-accent);
}
.ins-note svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--navy);
}
[data-theme='dark'] .ins-note svg {
  color: var(--color-accent);
}
.ins-note p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 80ch;
}
.ins-note strong {
  color: var(--color-text);
  font-weight: 600;
}

.ins-closing {
  max-width: 60ch;
  margin-top: var(--space-10);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.45;
  color: var(--color-heading);
}

.insurance .ins-closing {
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 620px) {
  .ins-note {
    padding: var(--space-5) var(--space-6);
    gap: var(--space-4);
  }
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--color-bg);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.quote-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-5);
  color: var(--coral);
}
.stars svg {
  width: 15px;
  height: 15px;
}

.quote-card blockquote {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text);
  flex: 1;
}

.quote-attr {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.quote-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-heading);
  line-height: 1.2;
}
.quote-where {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.quote-ship {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-full);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--color-divider);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  padding: var(--space-6) 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
  transition: color 0.25s var(--ease);
}
.faq-q:hover {
  color: var(--color-accent);
}
.faq-q svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  transition: transform 0.35s var(--ease);
}
.faq-item.is-open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.faq-a-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: #fff;
}
[data-theme='dark'] .contact {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
}

.contact-copy .eyebrow {
  color: #8fd4e0;
}
.contact-copy h2 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-5);
}
.contact-copy p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: var(--space-8);
}
[data-theme='dark'] .contact-copy h2 {
  color: var(--color-heading);
}
[data-theme='dark'] .contact-copy p {
  color: var(--color-text-muted);
}

.contact-direct {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-10);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
[data-theme='dark'] .contact-direct {
  border-bottom-color: var(--color-border);
}

.next-steps h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fd4e0;
  margin-bottom: var(--space-6);
}
[data-theme='dark'] .next-steps h3 {
  color: var(--color-accent);
}

.next-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
.next-steps li {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.82);
  counter-increment: step;
}
[data-theme='dark'] .next-steps li {
  color: var(--color-text-muted);
}
.next-steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: #cfeaf0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
}
[data-theme='dark'] .next-steps li::before {
  color: var(--color-accent);
  border-color: var(--color-border);
}
.next-steps strong {
  color: #fff;
  font-weight: 600;
}
[data-theme='dark'] .next-steps strong {
  color: var(--color-text);
}
.direct-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.direct-row svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: #8fd4e0;
}
.direct-row a,
.direct-row span {
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm);
}
.direct-row a:hover {
  text-decoration: underline;
}
[data-theme='dark'] .direct-row a,
[data-theme='dark'] .direct-row span {
  color: var(--color-text);
}
[data-theme='dark'] .direct-row svg {
  color: var(--color-accent);
}

.form-card {
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
[data-theme='dark'] .form-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.form-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.form-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.field {
  display: block;
  margin-bottom: var(--space-5);
}
.field > span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.field textarea {
  min-height: 108px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-card .btn {
  width: 100%;
}
.form-fine {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

.form-success {
  display: none;
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  background: var(--color-accent-soft);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.form-success.is-visible {
  display: block;
}
.form-error {
  display: none;
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  background: #fbeee9;
  border-left: 2px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}
[data-theme='dark'] .form-error {
  background: rgba(232, 146, 114, 0.12);
}
.form-error a {
  color: var(--color-accent);
}
.form-error.is-visible {
  display: block;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-card .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}
.footer-brand .logo svg {
  height: 46px;
  max-width: 100%;
}
.footer-tag {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-heading);
  max-width: 30ch;
  line-height: 1.35;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover {
  color: var(--color-accent);
}

/* Required legal sign-off block */
.signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-8);
}
.signoff-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
}
.signoff-email svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}
.signoff-email:hover {
  color: var(--color-accent);
}
.signoff-legal {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.signoff-legal strong {
  color: var(--color-text);
  font-weight: 600;
}
.signoff-lic {
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.signoff-disclosure {
  flex: 1 1 100%;
  max-width: 78ch;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-faint);
}

.footer-bottom {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}
