/* ================================================================
   CircadiaLab Collections — Stylesheet
   ================================================================
   Sections:
     1.  CSS Custom Properties (design tokens)
     2.  Reset & base
     3.  Typography
     4.  Layout utilities
     5.  Skip link (accessibility)
     6.  Navigation
     7.  Hero
     8.  Products
     9.  About
    10.  Footer
    11.  Responsive breakpoints
   ================================================================ */


/* ================================================================
   1. CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* Brand colours */
  --cl-navy:        #051E39;
  --cl-teal-400:    #11A0A9;   /* Light teal — large headings, decorative */
  --cl-teal-500:    #0D7088;   /* Primary teal — buttons, links, CTAs */
  --cl-teal-600:    #075C70;   /* Hover/pressed state */
  --cl-gold:        #E5B90E;   /* Accent only — NEVER use for text */

  /* Backgrounds */
  --cl-bg:          #f5f7fa;
  --cl-bg-alt:      #ffffff;
  --cl-card:        #ffffff;

  /* Text */
  --cl-text:        #2d3436;
  --cl-text-secondary: #718096;
  --cl-text-light:  #a0aec0;

  /* Borders & dividers */
  --cl-border:      #e2e8f0;

  /* Hero-specific */
  --cl-hero-bg:     #051E39;

  /* Typography — single sans-serif stack for the entire site */
  --font-heading:   -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:      -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-weight-normal:  400;
  --font-weight-medium:  500;
  --font-weight-semi:    600;
  --font-weight-bold:    700;

  /* Spacing scale */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max:  1160px;
  --container-pad:  var(--space-6);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(5,30,57,0.06), 0 1px 2px rgba(5,30,57,0.04);
  --shadow-md:  0 4px 12px rgba(5,30,57,0.08), 0 2px 4px rgba(5,30,57,0.04);
  --shadow-lg:  0 10px 30px rgba(5,30,57,0.10), 0 4px 8px rgba(5,30,57,0.06);

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--cl-text);
  background-color: var(--cl-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cl-teal-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cl-teal-600);
}

ul {
  list-style: none;
}

/* Focus styles — visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--cl-teal-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */

/* Heading defaults — Fraunces optical-size serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semi);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cl-navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: var(--font-weight-bold); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: var(--font-weight-medium); }

p {
  max-width: 68ch;
}

/* Section label — small all-caps overline */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cl-teal-500);
}

/* Section title */
.section-title {
  margin-top: var(--space-3);
  color: var(--cl-navy);
}

/* Section description */
.section-desc {
  margin-top: var(--space-4);
  font-size: 1.0625rem;
  color: var(--cl-text-secondary);
  max-width: none;
}


/* ================================================================
   4. LAYOUT UTILITIES
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 72ch;
}


/* ================================================================
   5. SKIP LINK (ACCESSIBILITY)
   ================================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--cl-teal-500);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}


/* ================================================================
   6. NAVIGATION
   ================================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    padding var(--transition-base);
}

/* Scrolled state — added via JS */
.site-header.is-scrolled {
  background-color: rgba(5, 30, 57, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.25);
  padding-block: var(--space-3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo {
  height: 36px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  padding-block: var(--space-1);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--cl-gold);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: #ffffff;
}

.nav__link:hover::after {
  width: 100%;
}

/* Hamburger toggle — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.nav__toggle:hover {
  border-color: rgba(255,255,255,0.5);
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Open state — transforms bars into × */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ── Nav dropdown ── */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  padding-block: var(--space-1);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast);
  /* Remove underline pseudo-element inherited from .nav__link */
}

.nav__dropdown-trigger:hover {
  color: #ffffff;
}

/* Suppress the gold underline that .nav__link::after creates */
.nav__dropdown-trigger::after {
  display: none;
}

.nav__dropdown-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

/* Floating dropdown panel */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 236px;
  background: rgba(3, 14, 33, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 200;
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base);
  pointer-events: none;
}

/* Show on hover (devices with hover support) */
@media (hover: hover) {
  .nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__item--dropdown:hover .nav__dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Show when explicitly opened via click/keyboard */
.nav__item--dropdown[data-open="true"] .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__item--dropdown[data-open="true"] .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

a.nav__dropdown-item:hover {
  background-color: rgba(255,255,255,0.07);
}

.nav__dropdown-item--disabled {
  pointer-events: none;
  opacity: 0.40;
}

.nav__dropdown-item-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
}

/* Active page indicator in dropdown */
.nav__dropdown-item[aria-current="page"] .nav__dropdown-item-name {
  color: var(--cl-teal-400);
}

.nav__dropdown-item-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__dropdown-divider {
  height: 1px;
  background-color: rgba(255,255,255,0.06);
  margin: var(--space-1) var(--space-3);
}

.nav__dropdown-soon {
  display: inline-flex;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.38);
}

/* ── Button variant: outline (white border, for dark backgrounds) ── */
.btn--outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.35);
}

.btn--outline:hover {
  background-color: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.65);
  color: #ffffff;
  transform: translateY(-1px);
}


/* ================================================================
   7. HERO
   ================================================================ */

.hero {
  position: relative;
  min-height: clamp(640px, 85vh, 960px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;

  /* Night-to-dawn gradient, navy anchors the top, teal warms the base. */
  background:
    linear-gradient(
      168deg,
      #051E39  0%,
      #062947  35%,
      #083d5c  60%,
      #0a5068  80%,
      #0D7088  100%
    );
}

/* ── Background layers ── */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* White layered wave divider along the bottom edge, creating a soft curved
   transition between the coloured hero and the white body content below. */
.hero__wave-svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 38%;
  color: #ffffff;
}

.hero__wave-svg path {
  fill: currentColor;
}

.hero__wave-svg path:nth-child(1) { opacity: 0.18; }
.hero__wave-svg path:nth-child(2) { opacity: 0.40; }
.hero__wave-svg path:nth-child(3) { opacity: 1; }

/* Dot field, mimics a dark-adapted night sky at the top of the hero. */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.20) 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px;
  background-position: 0 0, 20px 20px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 65%);
  opacity: 0.18;
}

/* ── Content ── */
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-20) calc(var(--space-32) + var(--space-10));
}

/* Gold accent line — decorative flourish above the headline */
.hero__accent-line {
  width: 48px;
  height: 2px;
  background-color: var(--cl-gold);
  margin-bottom: var(--space-6);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 16ch;
  padding-bottom: 0.1em;
  /* Teal-400 used for large display text, meets WCAG AA at this size. */
  background: linear-gradient(135deg, #ffffff 60%, var(--cl-teal-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fallback if background-clip not supported */
@supports not (-webkit-background-clip: text) {
  .hero__title {
    color: #ffffff;
    background: none;
  }
}

.hero__subtitle {
  margin-top: var(--space-6);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 54ch;
  font-weight: 400;
}

/* Scroll indicator — subtle animated line */
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%  { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
  100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
}


/* ── Page hero — compact header for non-homepage pages ── */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(
      168deg,
      #051E39 0%,
      #062947 40%,
      #083d5c 70%,
      #0D7088 100%
    );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;   /* clear sticky nav */
  padding-bottom: var(--space-16);
}

.page-hero__label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--cl-teal-400);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}


/* ================================================================
   8. PRODUCTS
   ================================================================ */

.products {
  padding-block: calc(var(--space-24) * 0.8);
  background-color: var(--cl-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* ── Product card base ── */
.product-card {
  background: var(--cl-card);
  border: 1px solid var(--cl-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Teal accent bar at top of each card */
.product-card__top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--cl-teal-500), var(--cl-teal-400));
}

/* Muted bar for upcoming card */
.product-card--upcoming .product-card__top-bar {
  background: var(--cl-border);
}

.product-card__inner {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-5);
}

.product-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--cl-navy);
  line-height: 1.1;
}

.product-card__tagline {
  font-size: 0.9375rem;
  color: var(--cl-teal-500);
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* Upcoming card — slightly muted names */
.product-card--upcoming .product-card__name {
  color: #4a5568;
}

.product-card--upcoming .product-card__tagline {
  color: var(--cl-text-secondary);
}

/* Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: var(--space-2);
}

.product-badge--live {
  background-color: rgba(13, 112, 136, 0.10);
  color: var(--cl-teal-600);
  border: 1px solid rgba(13, 112, 136, 0.20);
}

.product-badge--dev {
  background-color: rgba(113, 128, 150, 0.08);
  color: var(--cl-text-secondary);
  border: 1px solid var(--cl-border);
}

/* Description */
.product-card__desc {
  font-size: 0.9375rem;
  color: var(--cl-text-secondary);
  line-height: 1.7;
  max-width: none;
}

/* Feature list */
.product-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.product-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--cl-text);
  line-height: 1.5;
}

.feature-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cl-teal-500);
  margin-top: 0.45em;
}

.product-card--upcoming .feature-dot {
  background-color: var(--cl-border);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-4);
}

.btn--primary {
  background-color: var(--cl-teal-500);
  color: #ffffff;
  border: 2px solid transparent;
}

.btn--primary:hover {
  background-color: var(--cl-teal-600);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 112, 136, 0.30);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--ghost {
  background-color: transparent;
  color: var(--cl-text-light);
  border: 2px solid var(--cl-border);
  cursor: default;
  pointer-events: none;
  user-select: none;
}


/* ================================================================
   LEGAL DOCUMENT LAYOUT (privacy policy, terms, etc.)
   ================================================================ */

.legal-doc {
  padding-block: calc(var(--space-24) + var(--space-4)) calc(var(--space-24) * 0.8);
  background: var(--cl-bg);
}

.legal-doc__header {
  max-width: 760px;
  margin: 0 auto var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--cl-border);
}

.legal-doc__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  color: var(--cl-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: var(--space-3) 0 var(--space-4);
}

.legal-doc__meta {
  font-size: 0.9375rem;
  color: var(--cl-text-secondary);
  margin: 0;
  max-width: none;
}

.legal-doc__body {
  max-width: 760px;
  margin: 0 auto;
  color: var(--cl-text);
  line-height: 1.75;
}

.legal-doc__body p {
  font-size: 1rem;
  color: var(--cl-text);
  margin: 0 0 var(--space-4);
  max-width: none;
}

.legal-doc__body h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--cl-navy);
  letter-spacing: -0.01em;
  margin: var(--space-10) 0 var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--cl-border);
}

.legal-doc__body h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-doc__body h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--cl-navy);
  margin: var(--space-6) 0 var(--space-2);
}

.legal-doc__body ul {
  margin: 0 0 var(--space-5) var(--space-5);
  padding: 0;
  list-style: disc;
}

.legal-doc__body ul li {
  margin-bottom: var(--space-2);
  color: var(--cl-text);
}

.legal-doc__body strong {
  color: var(--cl-navy);
}

.legal-doc__body a {
  color: var(--cl-teal-600);
  border-bottom: 1px solid rgba(13,112,136,0.25);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}

.legal-doc__body a:hover {
  border-bottom-color: var(--cl-teal-600);
}


/* ================================================================
   9. ABOUT
   ================================================================ */

.about {
  padding-block: calc(var(--space-24) * 0.8);
  background-color: var(--cl-bg-alt);
  border-top: 1px solid var(--cl-border);
  border-bottom: 1px solid var(--cl-border);
}

.about__layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-12);
  align-items: start;
}

.about__label-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding-top: 0.4rem; /* optical alignment with heading */
}

/* Gold accent rule — the one decorative flourish in this section */
.about__rule {
  width: 32px;
  height: 2px;
  background-color: var(--cl-gold);
  border-radius: 2px;
}

.about__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-semi);
  color: var(--cl-navy);
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about__body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--cl-text-secondary);
  max-width: 62ch;
}


/* ================================================================
   10. FOOTER
   ================================================================ */

.footer {
  background-color: var(--cl-navy);
  padding-block: var(--space-8) var(--space-6);
  color: rgba(255,255,255,0.65);
}

/* ── Main grid: brand | quick links | connect ── */
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__col--brand {
  max-width: 420px;
}

.footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

.footer__tagline {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.005em;
  max-width: none;
}

.footer__link--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.footer__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: none;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.60);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Copyright (now under brand description) ── */
.footer__copyright {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.40);
}


/* ================================================================
   11. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ── Tablet: 768px and below ── */
@media (max-width: 768px) {

  :root {
    --container-pad: var(--space-5);
  }

  /* Nav: show hamburger, hide menu by default */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(5, 30, 57, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    z-index: 99;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__link {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
  }

  .nav__link::after {
    display: none;
  }

  /* ── Dropdown mobile overrides — inline expand within fullscreen menu ── */
  .nav__item--dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
  }

  .nav__dropdown-trigger {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
  }

  /* Reset absolute positioning; use display for show/hide instead */
  .nav__menu .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
    display: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-left: 2px solid rgba(255,255,255,0.15);
    border-radius: 0;
    box-shadow: none;
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    min-width: unset;
    width: 100%;
    max-width: 280px;
  }

  .nav__item--dropdown[data-open="true"] .nav__menu .nav__dropdown,
  .nav__item--dropdown[data-open="true"] .nav__dropdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .nav__dropdown-item {
    padding: var(--space-1) 0;
  }

  .nav__dropdown-item-name {
    font-size: 1.125rem;
  }

  .nav__dropdown-item-desc {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.40);
  }

  .nav__dropdown-divider {
    display: none;
  }

  /* Hero */
  .hero__content {
    padding-block: var(--space-24) var(--space-16);
  }

  .hero__scroll {
    display: none; /* less useful on mobile */
  }

  /* Products */
  .products {
    padding-block: var(--space-16);
  }

  .products__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* About */
  .about {
    padding-block: var(--space-16);
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .about__label-col {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    padding-top: 0;
  }

  .about__rule {
    height: 1px;
    width: 24px;
  }

  /* Footer */
  .footer {
    padding-block: var(--space-10) var(--space-5);
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__col--brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* ── Mobile: 480px and below ── */
@media (max-width: 480px) {

  :root {
    --container-pad: var(--space-4);
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .product-card__inner {
    padding: var(--space-6);
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Wide: 1200px and above ── */
@media (min-width: 1200px) {
  .products__grid {
    gap: var(--space-8);
  }

  .about__layout {
    grid-template-columns: 200px 1fr;
  }
}


/* ================================================================
   404 PAGE
   ================================================================ */

.notfound {
  max-width: 560px;
  margin: 0 auto;
  padding-block: var(--space-16);
  text-align: center;
}

.notfound__code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cl-teal-500);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}

.notfound__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cl-navy);
  margin: 0 0 var(--space-3);
}

.notfound__desc {
  color: var(--cl-text-secondary, rgba(5,30,57,0.7));
  margin: 0 0 var(--space-8);
}

.notfound__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
  .site-header,
  .footer,
  .hero__scroll,
  .section-jump,
  .faq-jump,
  .diary-carousel__btn,
  [data-carousel-prev],
  [data-carousel-next],
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  .cl-section,
  main {
    padding-block: 0.75cm;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  details {
    break-inside: avoid;
  }

  details > .faq-item__answer,
  details > .feature-accordion__body {
    display: block !important;
    grid-template-rows: 1fr !important;
  }
}
