@import url('../styles.css');

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }

h1, h2, h3 { color: var(--text-heading); margin: 0; }

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

/* ---------- Top utility bar ---------- */
.utilitybar {
  background: var(--color-burgundy-900);
  color: var(--color-cream-100);
  font: var(--text-body-sm);
}
.utilitybar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap;
}
.utilitybar a { color: var(--color-cream-100); }
.utilitybar a:hover { color: #fff; }
.utilitybar .u-group { display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-xs);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 52px; width: auto; display: block; }
.brand .name { font: 700 1.1875rem/1.15 var(--font-serif-display); color: var(--color-burgundy-700); }
.brand .sub { font: var(--text-caption); color: var(--text-muted); letter-spacing: 0.02em; }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a {
  font: 500 0.9375rem/1.3 var(--font-sans-body); color: var(--text-body);
  padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.site-nav a:hover { color: var(--color-burgundy-600); }
.site-nav a.active { color: var(--color-burgundy-600); border-bottom-color: var(--color-burgundy-600); font-weight: 600; }
.site-nav a.btn { color: var(--text-on-brand); border-bottom: none; }
.site-nav a.btn:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.9375rem/1.3 var(--font-sans-body);
  padding: 11px 20px; border-radius: var(--radius-md);
  border: 1px solid var(--color-brand); background: var(--color-brand); color: var(--text-on-brand);
  cursor: pointer; transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.btn:hover { background: var(--color-brand-hover); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn.lg { padding: 14px 26px; font-size: 1.0625rem; }
.btn.secondary { background: var(--surface-card); color: var(--color-burgundy-600); border-color: var(--border-brand); }
.btn.secondary:hover { background: var(--color-burgundy-50); color: var(--color-burgundy-700); }
.btn.ghostlight { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn.ghostlight:hover { background: rgba(255,255,255,0.12); }

.mobile-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 88% -20%, var(--color-burgundy-200), transparent 65%),
    radial-gradient(700px 420px at -10% 110%, var(--color-sage-100), transparent 60%),
    linear-gradient(180deg, var(--color-burgundy-50), var(--surface-page));
  padding: var(--space-12) 0 var(--space-16);
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  font: 600 0.8125rem/1.3 var(--font-sans-body); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-burgundy-600); margin-bottom: 16px;
}
.hero h1 { font: var(--text-display-xl); font-size: 4rem; letter-spacing: var(--letter-spacing-display); }
.hero h1 em { font-style: italic; color: var(--color-burgundy-600); }
.hero p.lead { font: var(--text-body-lg); color: var(--text-body); margin: 20px 0 0; max-width: 32ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-side { position: relative; }
.hero-art {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-cream-100);
  border: 1px solid var(--color-burgundy-200);
  aspect-ratio: 16/10; box-shadow: var(--shadow-sm);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
}
.hero-card {
  position: relative; z-index: 1;
  margin: -44px auto 0 var(--space-6);
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: var(--space-6); max-width: 320px;
}
.hero-card-eyebrow { font: 600 0.75rem/1.3 var(--font-sans-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-burgundy-600); }
.hero-card-title { font: 600 1.5rem/1.15 var(--font-serif-display); color: var(--text-heading); margin-top: 2px; }
.hero-card p { font: var(--text-body-sm); color: var(--text-muted); margin: 12px 0 18px; }
.hero-card .btn { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: var(--space-12) 0; }
.section.sunken { background: var(--surface-sunken); }
.section.brand-band { background: var(--surface-inverse); color: var(--color-cream-100); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-8); }
.section-head h2 { font: var(--text-display-md); }
.section-head p { font: var(--text-body-lg); color: var(--text-muted); margin: 14px 0 0; }
.section.brand-band .section-head h2 { color: #fff; }
.section.brand-band .section-head p { color: var(--color-cream-200); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6);
}
.card h3 { font: var(--text-heading-md); margin-bottom: 8px; }
.card p { font: var(--text-body-sm); color: var(--text-muted); margin: 0; }

.feature .ico {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-burgundy-50); color: var(--color-burgundy-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { color: var(--color-burgundy-700); }

/* ---------- Provider cards ---------- */
.provider {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
}
.provider { text-decoration: none; color: inherit; transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
a.provider:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: inherit; }
.provider .photo { aspect-ratio: 1/1; overflow: hidden; background: var(--color-cream-200); }
.provider .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.provider .body { padding: var(--space-5); }
.provider .name { font: 600 1.125rem/1.3 var(--font-serif-display); color: var(--color-burgundy-700); }
.provider .credentials { font: var(--text-label); letter-spacing: 0.02em; color: var(--text-muted); margin-top: 2px; }
.provider .role { font: var(--text-body-sm); color: var(--text-body); margin-top: 10px; }

/* ---------- Provider profiles (full bio) ---------- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-10); align-items: start; }
.profile + .profile { margin-top: var(--space-16); padding-top: var(--space-16); border-top: 1px solid var(--border-default); }
.profile.flip { grid-template-columns: 1fr 300px; }
.profile.flip .profile-photo { order: 2; }
.profile-photo {
  position: sticky; top: 96px;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-default); background: var(--color-cream-200);
}
.profile-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.profile-body .name { font: 600 1.75rem/1.15 var(--font-serif-display); color: var(--color-burgundy-700); }
.profile-body .credentials { font: var(--text-label); letter-spacing: 0.03em; text-transform: uppercase; color: var(--color-burgundy-500); margin-top: 6px; }
.profile-body .role { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--color-sage-100); color: var(--color-sage-700); font: var(--text-label); }
.profile-body .bio { margin-top: var(--space-5); }
.profile-body .bio p { font: var(--text-body-md); color: var(--text-body); margin: 0 0 var(--space-4); text-wrap: pretty; }
.profile-body .bio p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .profile, .profile.flip { grid-template-columns: 1fr; gap: var(--space-6); }
  .profile.flip .profile-photo { order: 0; }
  .profile-photo { position: static; max-width: 320px; }
}

/* ---------- Info strip ---------- */
.infostrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.infoblock { display: flex; gap: 14px; align-items: flex-start; }
.infoblock .ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--color-burgundy-50); color: var(--color-burgundy-600);
  display: flex; align-items: center; justify-content: center;
}
.infoblock .ico svg { width: 22px; height: 22px; }
.infoblock .label { font: var(--text-label); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.infoblock .val { font: var(--text-body-md); color: var(--text-heading); line-height: 1.5; }
.infoblock .val a { color: var(--text-heading); }
.infoblock .val a:hover { color: var(--color-burgundy-600); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--color-burgundy-50), var(--surface-page)); padding: var(--space-16) 0 var(--space-12); }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { font: var(--text-display-lg); }
.page-hero p { font: var(--text-body-lg); color: var(--text-body); margin: 16px 0 0; max-width: 60ch; }

/* ---------- Services list ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.svc-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-5);
}
.svc-item .dot { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--color-sage-100); color: var(--color-sage-700); display: flex; align-items: center; justify-content: center; }
.svc-item .dot svg { width: 18px; height: 18px; }
.svc-item h3 { font: var(--text-heading-sm); }
.svc-item p { font: var(--text-body-sm); color: var(--text-muted); margin: 4px 0 0; }

/* ---------- Policy download ---------- */
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6);
}
.doc-row .left { display: flex; gap: 16px; align-items: center; }
.doc-row .fileico { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--color-error-bg); color: var(--color-error); display: flex; align-items: center; justify-content: center; }
.doc-row h3 { font: var(--text-heading-md); }
.doc-row p { font: var(--text-body-sm); color: var(--text-muted); margin: 2px 0 0; }
.notice {
  background: var(--color-warning-bg); border: 1px solid #E9CF9E; color: #7A5518;
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font: var(--text-body-sm);
}
.pdf-viewer {
  margin-top: var(--space-6);
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--color-ink-100);
  padding: var(--space-5); display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
}
.pdf-viewer .pdf-page { width: 100%; max-width: 720px; height: auto; background: #fff; box-shadow: var(--shadow-sm); border-radius: 2px; display: block; }
.pdf-loading { font: var(--text-body-md); color: var(--text-muted); padding: var(--space-10) 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--border-default); font: var(--text-body-md); }
.hours-table td:last-child { text-align: right; color: var(--text-heading); font-weight: 600; }
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface-inverse); color: #fff; border-radius: var(--radius-xl); padding: var(--space-16); text-align: center; }
.cta-band h2 { font: var(--text-display-sm); color: #fff; }
.cta-band p { font: var(--text-body-lg); color: var(--color-cream-200); margin: 12px 0 26px; }
.cta-phone { font: 700 2rem/1 var(--font-serif-display); color: #fff; letter-spacing: 0.01em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-inverse); color: var(--color-cream-100); padding: var(--space-16) 0 var(--space-8); margin-top: var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.site-footer .fname { font: 700 1.125rem/1.3 var(--font-serif-display); color: #fff; margin-bottom: 10px; }
.site-footer p, .site-footer a, .site-footer li { font: var(--text-body-sm); color: var(--color-cream-200); }
.site-footer a { display: inline-block; }
.site-footer a:hover { color: #fff; }
.footer-bottom a { font: inherit; color: rgba(255,255,255,0.6); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
.site-footer .fhead { font: var(--text-label); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--space-10); padding-top: var(--space-6); font: var(--text-caption); color: rgba(255,255,255,0.6); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease-standard), transform 0.65s var(--ease-standard); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .site-nav { gap: var(--space-4); }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-side { order: -1; }
  .hero-art { aspect-ratio: 16/9; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .infostrip { grid-template-columns: 1fr; gap: var(--space-5); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .svc-list { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-card); flex-direction: column; align-items: flex-start; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border-default); box-shadow: var(--shadow-md); gap: var(--space-3); }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border-default); background: var(--surface-card); color: var(--color-burgundy-600); border-radius: var(--radius-md); cursor: pointer; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.5rem; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .utilitybar { display: none; }
}
