/* ============================================================
   ZAK Medical Group — site styles
   Palette: classic medical navy + warm neutrals
   Type: Lora (headings) / Source Sans 3 (body), 18px base
   ============================================================ */

:root {
  --navy-900: #0e2038;
  --navy-800: #16304f;
  --navy-700: #1d3f66;
  --navy-600: #26507f;
  --navy-100: #e8eef6;
  --gold-700: #8f6120;
  --gold-600: #a8742c;
  --gold-100: #f6eedd;
  --cream: #faf8f4;
  --paper: #ffffff;
  --line: #e3dccd;
  --ink: #22303e;
  --ink-soft: #47586a;
  --success: #1e6b3a;
  --focus: #26507f;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.125rem; /* 18px — larger base for older readers */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: var(--navy-900);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }

p { max-width: 68ch; }

a { color: var(--navy-600); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn svg { flex-shrink: 0; }

.btn-call {
  background: var(--gold-700);
  color: #fff;
}
.btn-call:hover { background: var(--gold-600); }

.btn-primary {
  background: var(--navy-800);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-600); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-100); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #f0e9dc;
  font-size: 1rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.brand-name {
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.15;
}
.brand-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy-800);
  border-radius: 6px;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
  color: var(--navy-800);
  align-items: center;
  justify-content: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 200ms ease;
}
.site-nav a:hover { background: var(--navy-100); }
.site-nav a[aria-current="page"] {
  color: var(--gold-700);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.site-nav .btn { margin-left: 0.6rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(14, 32, 56, 0.12);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .site-nav a { display: block; padding: 0.85rem 0.9rem; font-size: 1.15rem; }
  .site-nav .btn { margin: 0.5rem 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 30%;
  opacity: 0.2;
}
.hero .container {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  max-width: 780px;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p {
  font-size: 1.3rem;
  color: #e9eef5;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-note { margin-top: 1.25rem; font-size: 1.05rem; color: #cfd9e6; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trustbar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-block: 1.75rem;
}
.trust-item { display: flex; align-items: flex-start; gap: 0.85rem; }
.trust-item svg { flex-shrink: 0; color: var(--gold-700); margin-top: 3px; }
.trust-item strong { display: block; color: var(--navy-900); font-size: 1.1rem; }
.trust-item span { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.5rem;
}
.section-head p { color: var(--ink-soft); margin-top: 0.75rem; font-size: 1.15rem; }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
}
.section-alt .card { background: var(--cream); }
.card h3 { margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.7rem; }
.card h3 svg { color: var(--gold-700); flex-shrink: 0; }
.card p { color: var(--ink-soft); }
.card ul { margin: 0.5rem 0 0 1.2rem; color: var(--ink-soft); }
.card li { margin-bottom: 0.35rem; }

/* ---------- Doctor cards ---------- */
.doctor-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.doctor-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #f0e9dc;
  font-family: "Lora", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--gold-100);
}
.doctor-card .credentials {
  color: var(--gold-700);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.doctor-card h3 { margin-bottom: 0.15rem; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split img {
  border-radius: 10px;
  border: 1px solid var(--line);
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.checklist { list-style: none; margin-top: 1.25rem; }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.checklist svg { color: var(--success); flex-shrink: 0; margin-top: 4px; }

/* ---------- Location blocks ---------- */
.location-card address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.location-card .loc-label {
  display: inline-block;
  background: var(--gold-100);
  color: var(--gold-700);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  margin-bottom: 0.75rem;
}
.location-card .loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.map-frame {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 1.25rem;
}

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.hours-table th { color: var(--navy-900); font-weight: 600; }
.hours-table td { color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: #dbe4ee; margin-inline: auto; margin-bottom: 1.75rem; font-size: 1.2rem; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  font-size: 1.1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid #b9c3cf;
  border-radius: 6px;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 1rem; color: var(--ink-soft); margin-top: 0.9rem; }
.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--gold-100);
  border: 1px solid var(--gold-600);
  color: var(--gold-700);
  font-weight: 600;
}
.form-status.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #cdd7e2;
  padding-top: 3.25rem;
  font-size: 1.05rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1.4rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy-800);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { color: #fff; margin-bottom: 0.6rem; }
.page-hero p { color: #dbe4ee; font-size: 1.25rem; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
  .topbar { text-align: center; }
  .topbar .container { justify-content: center; }
  .topbar-extra { display: none; }

  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: 0.76rem; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero p { font-size: 1.18rem; }

  .section { padding-block: 2.5rem; }
  .card { padding: 1.35rem; }
  .section-head { margin-bottom: 1.5rem; }

  .loc-actions { flex-direction: column; align-items: stretch; }
  .loc-actions .btn { width: 100%; }
  .map-frame { height: 260px; }

  .doctor-avatar { width: 88px; height: 88px; font-size: 1.7rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
p.text-center { max-width: none; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.phone-inline {
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy-800);
}
