/* ====================================================================
   Jessica Ng Acupuncture — Global Stylesheet
   Design: Warm earth-tone, elegant, ADA-compliant (WCAG 2.1 AA)
   Approach: Mobile-first responsive
   ==================================================================== */

/* ── Google Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary: #37837e;
  /* Teal */
  --color-primary-dark: #304e4d;
  /* Dark Evergreen Teal */
  --color-accent: #9d7960;
  /* Light Brown */
  --color-accent-dark: #6e3d24;
  /* Dark Brown */
  --color-sage: #99b3b8;
  /* Light blue-green */
  --color-sage-dark: #304e4d;
  --color-bg: #eee9e8;
  /* Off-white */
  --color-bg-warm: #ecbda4;
  /* Peach */
  --color-bg-earth: #9d7960;
  /* Light brown */
  --color-surface: #FFFFFF;
  --color-text: #1b2824;
  /* Very dark grey-green */
  --color-text-muted: #304e4d;
  --color-text-light: #99b3b8;
  --color-hero-overlay: rgba(48, 78, 77, 0.80);
  --color-border: #99b3b8;
  --color-error: #B7402A;
  --color-success: #3D7A4A;

  /* Typography */
  --font-heading: 'DIN 1451 LT Pro', 'Arial', sans-serif;
  --font-body: 'Arboria', 'Helvetica', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizing */
  --max-width: 1280px;
  --header-height: 70px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(58, 48, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(58, 48, 40, 0.1);
  --shadow-lg: 0 8px 30px rgba(58, 48, 40, 0.12);
  --shadow-xl: 0 12px 40px rgba(58, 48, 40, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ── 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);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Focus Accessibility ──────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Skip Link ────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ── Typography ───────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: #304e4d;
  padding-bottom: 30px;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 700;
}

/* ── Layout ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section--warm {
  background-color: var(--color-bg-warm);
}

.section--earth {
  background-color: var(--color-bg-earth);
}

.section--header-match {
  background-color: var(--color-bg);
}

.section--primary {
  background-color: var(--color-primary);
  color: #fff;
}

.section--primary h2,
.section--primary h3,
.section--primary p {
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

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

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(238, 233, 232, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text);
  z-index: 1001;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-logo-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  display: block;
}

/* Main Navigation */
.main-nav {
  display: none;
}

.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
  overflow-y: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: #ecbda4;
  color: var(--color-accent-dark);
}

.nav-link.active {
  color: var(--color-accent-dark);
  font-weight: 700;
  background-color: #ecbda4;
}

/* CTA button in nav */
.nav-cta {
  display: inline-block;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  text-align: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.hamburger-line+.hamburger-line {
  margin-top: 6px;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(110, 61, 36, 0.78) 0%,
      rgba(110, 61, 36, 0.65) 50%,
      rgba(110, 61, 36, 0.40) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 700px;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
}

/* Decorative sunburst */
.hero-motif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.hero-motif svg {
  width: 100%;
  height: 100%;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-accent-dark);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-white:hover,
.btn-white:focus-visible {
  background-color: var(--color-bg);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background-color: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-body h3 {
  margin-bottom: var(--space-sm);
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Icon cards (services) */
.icon-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.icon-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--color-primary);
}

.icon-card-icon svg {
  width: 100%;
  height: 100%;
}

.icon-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.icon-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Grid Layouts ─────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

/* ── Two-Column Feature Sections ──────────────────────────────────── */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.feature-text {
  order: 2;
}

.feature-image {
  order: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.feature--reverse .feature-text {
  order: 2;
}

.feature--reverse .feature-image {
  order: 1;
}

/* Rounded circle image style (like reference) */
.feature-image--circle {
  border-radius: 50%;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}

.feature-image--circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* ── Testimonial ──────────────────────────────────────────────────── */
.testimonial {
  background: #99b3b8;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: #fff;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-lg);
}

.testimonial cite {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 111, 78, 0.15);
  outline: none;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Error states — uses border + icon + text (not color alone) */
.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.form-error {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  color: var(--color-error);
}

.form-error::before {
  content: "⚠";
  font-size: 1rem;
}

.form-error.visible {
  display: flex;
}

.form-success {
  display: none;
  padding: var(--space-md);
  background-color: rgba(61, 122, 74, 0.1);
  border: 2px solid var(--color-success);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-weight: 700;
  text-align: center;
}

.form-success::before {
  content: "✓ ";
}

.form-success.visible {
  display: block;
}

/* Subscribe form (inline) */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-form .form-input {
  text-align: center;
}

/* ── FAQ Accordion ────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: var(--space-md);
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
}

.faq-answer.is-open {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── Provider / Team Grid ─────────────────────────────────────────── */
.provider-card {
  text-align: center;
}

.provider-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--color-bg-warm);
}

.provider-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.provider-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Info List (office hours, policies, etc.) ──────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  font-weight: 700;
  color: var(--color-text);
  width: 40%;
}

.info-table td {
  color: var(--color-text-muted);
}

/* ── Map Embed ────────────────────────────────────────────────────── */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Portal Page ──────────────────────────────────────────────────── */
.portal-gateway {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.portal-gateway h1 {
  margin-bottom: var(--space-md);
}

.portal-gateway p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.portal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
  color: var(--color-accent);
}

/* ── Page Header (inner pages) ────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-4xl) 0 var(--space-2xl);
  margin-top: var(--header-height);
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background-color: #6e3d24;
  color: var(--color-bg);
  padding: var(--space-3xl) 0 var(--space-lg);
}

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

.footer-col h4 {
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  display: inline-block;
  padding: var(--space-xs) 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--color-accent);
}

/* ── Animations (IntersectionObserver-driven) ─────────────────────── */
.anim-from-left,
.anim-from-right,
.anim-from-below {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-from-left {
  transform: translateX(-40px);
}

.anim-from-right {
  transform: translateX(40px);
}

.anim-from-below {
  transform: translateY(40px);
}

.anim-from-left.in-view,
.anim-from-right.in-view,
.anim-from-below.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delay utilities */
.anim-delay-1 {
  transition-delay: 0.1s;
}

.anim-delay-2 {
  transition-delay: 0.2s;
}

.anim-delay-3 {
  transition-delay: 0.3s;
}

.anim-delay-4 {
  transition-delay: 0.4s;
}

/* ── Reduced Motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .anim-from-left,
  .anim-from-right,
  .anim-from-below {
    opacity: 1;
    transform: none;
  }
}

/* ── Utility Classes ──────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

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

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */

/* Tablet (768px+) */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

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

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

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

  .feature {
    flex-direction: row;
    gap: var(--space-2xl);
  }

  .feature-text {
    order: 1;
    flex: 1;
  }

  .feature-image {
    order: 2;
    flex: 0 0 45%;
  }

  .feature--reverse .feature-text {
    order: 2;
  }

  .feature--reverse .feature-image {
    order: 1;
  }

  .feature-image img {
    height: 400px;
  }

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

  .subscribe-form {
    flex-direction: row;
  }

  .subscribe-form .form-input {
    text-align: left;
  }

  .map-container {
    height: 400px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
  }

  .main-nav.is-open {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    gap: 0;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-md);
  }

  .nav-cta {
    margin-top: 0;
    margin-left: var(--space-md);
  }

  .hamburger {
    display: none;
  }

  h1 {
    font-size: 3.5rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

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

  .feature-image--circle {
    width: 350px;
    height: 350px;
  }

  .testimonial blockquote {
    font-size: 1.6rem;
  }
}

/* Wide (1280px+) */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .hero h1 {
    font-size: 4rem;
  }
}

/* ── Print ────────────────────────────────────────────────────────── */
@media print {

  .site-header,
  .site-footer,
  .hamburger,
  .hero-overlay,
  .hero-bg {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

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