/* ── Tokens ── */
:root {
  --orange: #FF6B35;
  --orange-light: #FFF0E8;
  --orange-dark: #C2410C;
  --dark: #1A1A2E;
  --white: #FFFFFF;
  --warm-gray: #F5F0EB;
  --body-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --display-font: 'Fraunces', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body-font); color: var(--dark); background: var(--white); line-height: 1.6; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,26,46,0.06);
  padding: 16px 0;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  height: 36px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}
.nav-brand {
  font-family: var(--display-font); font-weight: 900; font-size: 1.35rem;
  color: var(--orange); text-decoration: none; letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}
.nav-brand span { color: var(--dark); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--dark); font-weight: 500;
  font-size: 0.9rem; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: var(--white); border: none;
  padding: 10px 22px; border-radius: 50px; font-weight: 600;
  font-size: 0.85rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(160deg, var(--white) 0%, var(--orange-light) 100%);
  overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; top: -120px; right: -180px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; position: relative;
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--orange); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--display-font); font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--dark); margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal; color: var(--orange);
  text-decoration: underline; text-decoration-thickness: 4px;
  text-underline-offset: 6px; text-decoration-color: var(--orange);
}
.hero-sub {
  font-size: 1.1rem; color: #4A4A68; max-width: 460px;
  line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white); border: none;
  padding: 16px 32px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--dark); border: 2px solid var(--dark);
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* Hero illustration */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-card {
  background: var(--white); border-radius: 24px;
  box-shadow: 0 25px 60px rgba(255,107,53,0.12), 0 4px 16px rgba(0,0,0,0.04);
  padding: 40px; width: 100%; max-width: 420px; position: relative;
}
.hero-card-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--orange-light); display: flex;
  align-items: center; justify-content: center; margin-bottom: 24px;
}
.hero-card-icon svg { width: 32px; height: 32px; }
.hero-card h3 {
  font-family: var(--display-font); font-size: 1.4rem;
  font-weight: 700; margin-bottom: 8px;
}
.hero-card p { color: #4A4A68; font-size: 0.95rem; line-height: 1.6; }
.hero-card-float {
  position: absolute; background: var(--white); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; font-size: 0.85rem;
  font-weight: 600;
}
.hero-card-float.top { top: -20px; right: -24px; }
.hero-card-float.bottom { bottom: -16px; left: -24px; }
.hero-card-float .dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.hero-card-float .dot.green { background: #22C55E; }
.hero-card-float .dot.orange { background: var(--orange); }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--dark); color: var(--white); padding: 48px 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  text-align: center;
}
.trust-item h3 {
  font-family: var(--display-font); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--orange); line-height: 1;
}
.trust-item p {
  margin-top: 8px; font-size: 0.9rem; opacity: 0.7;
  font-weight: 500; letter-spacing: 0.02em;
}

/* ── Services ── */
.services { padding: 96px 0; }
.section-eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-family: var(--display-font); font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-desc {
  color: #4A4A68; font-size: 1.05rem; max-width: 520px;
  line-height: 1.7; margin-bottom: 48px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--warm-gray); border-radius: 20px;
  padding: 36px 28px; transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255,107,53,0.1);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--orange);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--orange-light); display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 {
  font-family: var(--display-font); font-size: 1.15rem;
  font-weight: 700; margin-bottom: 8px;
}
.service-card p {
  color: #4A4A68; font-size: 0.9rem; line-height: 1.6;
}

/* ── Products ── */
.products {
  padding: 80px 0; background: var(--warm-gray);
}
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.product-card {
  background: var(--white); border-radius: 20px;
  padding: 28px 24px; text-align: center;
  transition: transform 0.25s;
}
.product-card:hover { transform: translateY(-3px); }
.product-emoji {
  font-size: 2.4rem; margin-bottom: 16px;
  display: block;
}
.product-card h3 {
  font-family: var(--display-font); font-size: 1rem;
  font-weight: 700; margin-bottom: 4px;
}
.product-card p {
  color: #4A4A68; font-size: 0.82rem; line-height: 1.5;
}

/* ── Store Info ── */
.store-info { padding: 96px 0; }
.store-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.store-map {
  border-radius: 20px; overflow: hidden; height: 380px;
  background: var(--warm-gray);
  border: 1px solid rgba(26,26,46,0.06);
}
.store-map iframe { width: 100%; height: 100%; border: none; }
.store-map { position: relative; }
.store-map-cta {
  position: absolute; top: 14px; right: 14px;
  background: var(--orange); color: var(--white);
  border-radius: 50px; padding: 9px 16px;
  font-size: 0.78rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(255,107,53,0.35);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-map-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255,107,53,0.45);
}
.store-details { padding-top: 8px; }
.store-details h2 {
  font-family: var(--display-font); font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.store-detail-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid rgba(26,26,46,0.06);
}
.store-detail-item:last-child { border-bottom: none; }
.store-detail-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--orange-light); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.store-detail-icon svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-detail-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--orange); margin-bottom: 2px;
}
.store-detail-value {
  font-size: 1rem; font-weight: 600; color: var(--dark);
}
.store-detail-sub { font-size: 0.85rem; color: #4A4A68; margin-top: 2px; }
.hours-table { margin-top: 8px; width: 100%; }
.hours-table tr td {
  padding: 4px 0; font-size: 0.88rem; color: #4A4A68;
}
.hours-table tr td:first-child { font-weight: 600; color: var(--dark); width: 55%; }
.hours-table tr td:last-child { text-align: right; }

/* ── CTA ── */
.cta-section {
  background: var(--orange); padding: 80px 0; text-align: center;
}
.cta-section h2 {
  font-family: var(--display-font); font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.85); font-size: 1.1rem;
  margin-bottom: 36px;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--orange); border: none;
  padding: 16px 36px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ── Footer ── */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  padding: 40px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-brand {
  font-family: var(--display-font); font-weight: 900; font-size: 1.1rem;
  color: var(--white);
}
.footer-brand span { color: var(--orange); }
.footer-copy { font-size: 0.8rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .services { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { gap: 16px; }
  .trust-item h3 { font-size: 1.6rem; }
  .hero-card-float { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .modal-header, .form-success { padding: 24px 24px 20px; }
  .modal-body { padding: 20px 24px 28px; }
}

/* ── Prescription Form Modal ── */
#rx-modal::backdrop {
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
}
#rx-modal {
  border: none; border-radius: 24px;
  padding: 0; max-width: 540px; width: calc(100% - 32px);
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 40px 100px rgba(26,26,46,0.25);
}
.modal-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid rgba(26,26,46,0.06);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-header h2 {
  font-family: var(--display-font); font-weight: 900;
  font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 6px;
}
.modal-header p { color: #4A4A68; font-size: 0.9rem; }
.modal-close {
  background: var(--warm-gray); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; margin-left: 16px; margin-top: 4px;
}
.modal-close:hover { background: #e8e0d5; }
.modal-close svg { width: 18px; height: 18px; stroke: var(--dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-body { padding: 28px 36px 36px; }
.form-grid { display: grid; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-weight: 600; font-size: 0.85rem; color: var(--dark);
}
.form-group label .req { color: var(--orange); margin-left: 2px; }
.form-group input,
.form-group textarea {
  border: 1.5px solid #e0d9d0; border-radius: 12px;
  padding: 12px 16px; font-size: 0.95rem; font-family: var(--body-font);
  color: var(--dark); background: var(--warm-gray);
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.8rem; display: none; }
.form-error.visible { display: block; }
.file-zone {
  border: 2px dashed #d4c5b5; border-radius: 16px;
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  position: relative; background: var(--warm-gray);
}
.file-zone:hover, .file-zone.dragover {
  border-color: var(--orange); background: var(--orange-light);
}
.file-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.file-zone-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.file-zone p { font-size: 0.88rem; color: #4A4A68; margin-bottom: 4px; }
.file-zone span { font-size: 0.78rem; color: #999; }
#image-preview {
  display: none; width: 80px; height: 80px; object-fit: cover;
  border-radius: 12px; margin-top: 12px; border: 1px solid #e0d9d0;
}
#image-preview.visible { display: block; }
.or-divider {
  text-align: center; position: relative; margin: 4px 0;
}
.or-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(26,26,46,0.08);
}
.or-divider span {
  background: var(--white); padding: 0 12px; font-size: 0.78rem;
  color: #999; position: relative; line-height: 1; text-transform: uppercase;
  letter-spacing: 0.1em;
}
.modal-actions {
  display: flex; gap: 12px; margin-top: 8px;
}
.modal-actions .btn-primary { flex: 1; justify-content: center; }
.modal-actions .btn-ghost {
  background: none; border: none; color: #4A4A68; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; padding: 16px 8px;
  transition: color 0.2s;
}
.modal-actions .btn-ghost:hover { color: var(--dark); }
.modal-actions .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-success {
  text-align: center; padding: 40px 36px;
}
.form-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #dcfce7; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success-icon svg { width: 36px; height: 36px; stroke: #16a34a; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-success h2 {
  font-family: var(--display-font); font-weight: 900;
  font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 10px;
}
.form-success p { color: #4A4A68; font-size: 0.95rem; line-height: 1.6; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
