/* ============================================
   ADS MedPrep: Site styles
   Single shared stylesheet for all pages.
   Edit color values in :root to rebrand.
   ============================================ */

:root {
  --navy: #1F3864;
  --navy-light: #B5D4F4;
  --cream: #F1EFE8;
  --light-blue: #E6F1FB;
  --off-white: #FAFAF7;
  --white: #FFFFFF;
  --text-primary: #222222;
  --text-secondary: #666666;
  --text-tertiary: #888888;
  --border-light: #E5E5E5;
  --border-medium: #D5D5D5;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Cambria', serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a.text-link { color: var(--navy); }
a.text-link:hover { text-decoration: underline; }

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

/* ============================================
   Layout containers
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.section-cream { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }

/* ============================================
   Header / Navigation
   ============================================ */

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

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-wordmark { font-size: 18px; font-weight: 500; letter-spacing: 0.04em; }
.brand-caption {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); font-weight: 500; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 { font-weight: 500; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}

p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
p.lead { font-size: 18px; color: var(--text-secondary); }
p.dark { color: var(--text-primary); }

.eyebrow {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.05s;
  font-family: inherit;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-white { background: var(--white); color: var(--navy); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================
   Hero (Home page)
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 48px;
}

.hero h1 { margin-bottom: 16px; }
.hero p { margin-bottom: 24px; }

.headshot-placeholder {
  background: var(--cream);
  border-radius: var(--radius-md);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

.headshot {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }
}

/* ============================================
   Trust pillars (Home)
   ============================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  margin-bottom: 12px;
}

.pillar h3 { font-size: 16px; margin-bottom: 6px; }
.pillar p { font-size: 14px; line-height: 1.5; }

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   Note + quote (Home)
   ============================================ */

.note-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.quote-block {
  border-left: 3px solid var(--navy);
  padding-left: 20px;
}

.quote-block p.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.quote-attribution { font-size: 13px; color: var(--text-secondary); }

@media (max-width: 768px) {
  .note-block { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Service preview cards (Home + Services)
   ============================================ */

.service-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
  .service-grid-2, .service-grid-4 { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.service-card .eyebrow { color: var(--navy); margin-bottom: 8px; font-size: 11px; }
.service-card h3 { font-size: 17px; margin-bottom: 6px; }
.service-card p { font-size: 14px; line-height: 1.55; }

.service-price {
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin: 8px 0 10px;
}
.service-price-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   Track banners (Services)
   ============================================ */

.track-banner {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.track-banner-a { background: var(--cream); }
.track-banner-b { background: var(--light-blue); }

.track-banner .track-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-banner-a .track-label { color: #2C2C2A; }
.track-banner-b .track-label { color: #042C53; }

.track-banner p { font-size: 14px; line-height: 1.55; margin: 0; }
.track-banner-a p { color: #444441; }
.track-banner-b p { color: #0C447C; }

.track-icon { width: 18px; height: 18px; }

/* ============================================
   Background block (About)
   ============================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}

.background-block {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.background-item-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.background-item-value {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.background-item-meta { font-size: 13px; color: var(--text-secondary); }

@media (max-width: 768px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0; }
  .background-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .background-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Story prose (About)
   ============================================ */

.story-section { padding: 16px 0 32px; }
.story-section .eyebrow { margin-bottom: 16px; }
.story-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.story-section p:last-child { margin-bottom: 0; }

/* ============================================
   Payment terms (Services)
   ============================================ */

.payment-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.payment-term h4 { font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.payment-term p { font-size: 14px; line-height: 1.55; margin: 0; }

@media (max-width: 768px) {
  .payment-terms { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   FAQ list
   ============================================ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
}

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

.faq-question {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-answer { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }

/* ============================================
   Contact page
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.calendly-embed {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.calendly-embed-placeholder-icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; display: block; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

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

.contact-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-info-row { display: flex; align-items: center; gap: 8px; }
.contact-info-row svg { width: 16px; height: 16px; color: var(--text-secondary); flex-shrink: 0; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================
   CTA section (reused)
   ============================================ */

.cta-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
}

.cta-section h2 { color: var(--white); margin-bottom: 10px; font-size: 24px; }
.cta-section p { color: var(--navy-light); margin-bottom: 20px; font-size: 16px; }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--off-white);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 480px) {
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Utility
   ============================================ */

.text-center { text-align: center; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.section-divider { border-top: 1px solid var(--border-light); }

.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;
}
