/* ============================================================
   HOLINA REHAB x HOLINA CLINIC — Landing Page
   main.css: Variables · Reset · Typography · Layout
   Build: June 2026 | Static Prototype v1.0
   ============================================================ */

/* ── Google Fonts loaded in HTML head ── */

/* ── CSS Custom Properties ── */
:root {
  /* Holina Rehab — Primary Brand Identity */
  --rehab-green:       #A1BD3B;
  --rehab-green-dark:  #7A9129;
  --rehab-green-light: #F0F5DC;
  --rehab-teal:        #083A48;
  --rehab-teal-mid:    #0E5266;
  --rehab-teal-light:  #E3EEF1;

  /* Holina Clinic — Medical Accent (secondary) */
  --clinic-blue:       #1B8FD6;
  --blue-light:        #E8F4FC;
  --cream:             #F5F0E8;
  --cream-dark:        #EDE7DB;

  /* Semantic aliases — used throughout components */
  --navy:     var(--rehab-teal);       /* maps old --navy to rehab teal */
  --blue:     var(--clinic-blue);      /* maps old --blue to clinic blue */
  --navy-mid: var(--rehab-teal-mid);

  /* Neutral */
  --white:        #FFFFFF;
  --off-white:    #FAFAF8;
  --gray-100:     #F4F4F2;
  --gray-200:     #E8E8E4;
  --gray-400:     #9CA3AF;
  --gray-600:     #5A6472;
  --body-text:    #2D3748;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(13, 34, 64, 0.07);
  --shadow-md:   0 4px 16px rgba(13, 34, 64, 0.10);
  --shadow-lg:   0 8px 32px rgba(13, 34, 64, 0.14);
  --shadow-xl:   0 16px 56px rgba(13, 34, 64, 0.18);

  /* Spacing scale */
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    24px;
  --space-lg:    40px;
  --space-xl:    64px;
  --space-2xl:   96px;
  --space-3xl:   128px;

  /* Layout */
  --container:   1200px;
  --container-sm: 720px;
  --container-xs: 580px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  /* Typography */
  --font:        'Poppins', sans-serif;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    200ms;
  --dur-base:    350ms;
  --dur-slow:    500ms;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── Typography Scale ── */

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
}

.eyebrow--light {
  color: rgba(245, 240, 232, 0.65);
}

.eyebrow--blue {
  color: var(--blue);
}

h1, .h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h2, .h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h3, .h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.body-lg {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.8;
  color: var(--body-text);
}

.body-sm {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ── Layout Utilities ── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.container--sm {
  max-width: var(--container-sm);
}

.container--xs {
  max-width: var(--container-xs);
}

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

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.section-header p {
  margin-top: var(--space-md);
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--gray-600);
  line-height: 1.75;
}

/* ── Section Spacing ── */

section {
  padding-block: var(--space-3xl);
}

@media (max-width: 768px) {
  section {
    padding-block: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  section {
    padding-block: var(--space-xl);
  }
}

/* ── Focus Styles (accessibility) ── */

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── 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;
  }
}

/* ── Placeholder Image Blocks ── */

.img-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder::after {
  content: attr(data-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  text-align: center;
  padding: 8px;
}

/* ── Divider ── */

.divider {
  height: 1px;
  background: var(--gray-200);
  border: none;
}

.divider--cream {
  background: var(--cream-dark);
}
