/* ==========================================================================
   Floora PT — Shared Stylesheet
   Design system: /skills/ui-design-skill.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   Never use hardcoded color/spacing values — always use these variables
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary:    #488f94;   /* Teal — headings, buttons, nav, links */
  --color-accent:     #B8DFE2;   /* Light teal — dividers, highlights, icon backgrounds */
  --color-bg:         #F8F7F4;   /* Off-white — page background, section backgrounds */
  --color-text:       #003a44;   /* Deep teal — all body copy */
  --color-muted:      #6B7280;   /* Gray — captions, meta text, secondary labels */
  --color-white:      #FFFFFF;   /* Cards, hero text overlay */
  --color-border:     rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-heading:     'Plus Jakarta Sans', sans-serif;
  --font-body:        'Inter', sans-serif;

  --text-xs:   0.75rem;   /*  12px */
  --text-sm:   0.875rem;  /*  14px */
  --text-base: 1rem;      /*  16px */
  --text-lg:   1.125rem;  /*  18px */
  --text-xl:   1.25rem;   /*  20px */
  --text-2xl:  1.5rem;    /*  24px */
  --text-3xl:  1.875rem;  /*  30px */
  --text-4xl:  2.25rem;   /*  36px */
  --text-5xl:  3rem;      /*  48px */
  --text-6xl:  3.75rem;   /*  60px */

  /* Spacing (8px base unit — multiples only) */
  --space-1:    8px;
  --space-2:   16px;
  --space-3:   24px;
  --space-4:   32px;
  --space-6:   48px;
  --space-8:   64px;
  --space-12:  96px;

  /* Layout */
  --container-max:          1200px;
  --body-max:               65ch;
  --container-padding-mobile: 20px;

  /* Shadows */
  --shadow-card:    0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover:   0 4px 24px rgba(0, 0, 0, 0.10);

  /* Radius */
  --radius-sm:   8px;
  --radius-md:  16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms ease-out;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  max-width: var(--body-max);
  margin-bottom: var(--space-2);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  display: block;
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  opacity: 1;
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

/* Hover: light teal background */
.nav-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
  opacity: 1;
}

/* Active (click): slightly darker than hover */
.nav-links a:active {
  background-color: #9ACECF;
  color: var(--color-text);
  opacity: 1;
}

/* Current page: primary teal background, white text */
.nav-links a[aria-current="page"],
.nav-links a.nav-active {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.nav-links a[aria-current="page"]:hover,
.nav-links a.nav-active:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.nav-cta {
  margin-left: var(--space-2);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.hero .subhead {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 55ch;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

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

/* --------------------------------------------------------------------------
   Sections — Common
   -------------------------------------------------------------------------- */
.section-header {
  max-width: 700px;
  margin-bottom: var(--space-8);
}

.section-header h2 {
  margin-top: var(--space-1);
  margin-bottom: var(--space-2);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

/* Alternating background sections */
.section-alt {
  background-color: var(--color-white);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--color-white);
}

.section-dark .eyebrow {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Grid Utilities
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

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

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

/* --------------------------------------------------------------------------
   Symptoms List
   -------------------------------------------------------------------------- */
.symptoms-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.symptoms-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: var(--text-base);
  line-height: 1.5;
}

.symptoms-list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   3-Step Process (Restore / Retrain / Reclaim)
   -------------------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.process-step {
  text-align: center;
  padding: var(--space-4);
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin: 0 auto var(--space-2);
}

/* --------------------------------------------------------------------------
   Reviews / Testimonials
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.review-stars {
  color: #F59E0B;
  margin-bottom: var(--space-2);
  display: flex;
  gap: 2px;
  align-items: center;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: #F59E0B;
  stroke: #F59E0B;
  flex-shrink: 0;
}

.review-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-2);
}

.review-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin-top: var(--space-4);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.faq-answer {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  text-align: center;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  max-width: 55ch;
  margin: 0 auto var(--space-4);
}

.btn-cta-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  font-weight: 600;
}

.btn-cta-white:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   CTA Quote Snippet
   Lightweight inline social proof placed near CTA buttons.
   Use .cta-quote--light on dark (cta-section) backgrounds.
   -------------------------------------------------------------------------- */
.cta-quote {
  display: block;
  margin: var(--space-3) auto 0;
  max-width: 480px;
  text-align: center;
  background: rgba(72, 143, 148, 0.08);
  border: 1px solid rgba(72, 143, 148, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
}

.cta-quote .cq-stars {
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.cta-quote .cq-text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 4px;
  max-width: 48ch;
}

.cta-quote .cq-author {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.cta-quote--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.20);
}
.cta-quote--light .cq-text   { color: rgba(255, 255, 255, 0.92); }
.cta-quote--light .cq-author { color: rgba(255, 255, 255, 0.65); }

/* --------------------------------------------------------------------------
   In-Home Differentiator Section
   -------------------------------------------------------------------------- */
.in-home-section {
  background-color: var(--color-accent);
}

.in-home-section .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.in-home-section h2,
.in-home-section h4 {
  color: white;
}

.in-home-section p {
  color: rgba(255, 255, 255, 0.85);
}

.in-home-section .benefit-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-brand {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-2);
  display: block;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-3);
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Blog Post Styles
   -------------------------------------------------------------------------- */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-3);
}

.blog-post h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-3);
}

.blog-post h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.blog-post p {
  margin-bottom: var(--space-3);
  max-width: 100%;
}

.blog-post .hook {
  font-size: var(--text-lg);
  color: var(--color-muted);
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-3);
  margin-bottom: var(--space-4);
}

.blog-post .cta-inline {
  background-color: var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }

  section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .hero {
    min-height: 60vh;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Small phones (≤ 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  section {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: var(--text-base);
  }

  .hero-actions .btn {
    max-width: 100%;
  }

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

.in-home-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 768px) {
  .in-home-img {
    height: 280px;
  }
}
