/* ==========================================================================
   Columbine Audiology & Hearing Aid Center
   Brand: #5673B8 on pure white
   ========================================================================== */

:root {
  --blue: #5673B8;
  --blue-dark: #44619f;
  --blue-deep: #3a548c;
  --blue-tint: #eef1f9;
  --ink: #3b3b3b;
  --ink-soft: #5a5a5a;
  --white: #ffffff;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 35px rgba(86, 115, 184, 0.16);
  --shadow-card: 0 6px 24px rgba(34, 48, 84, 0.10);
  --container: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--blue);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

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

a { color: var(--blue); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 10px 10px;
  font-family: var(--sans);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Icons ---------- */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}
.icon-inline { width: 1.1em; height: 1.1em; margin-right: 0.4em; margin-top: -2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.btn-solid {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-solid:hover { background: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-tint); }

/* white-outline button for use on blue backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-ghost:focus-visible { outline-color: var(--white); }

.btn-sm { padding: 0.5rem 1.4rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(34, 48, 84, 0.10);
  border-bottom-color: var(--blue-tint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.65rem;
}

.brand img {
  width: clamp(150px, 18vw, 200px);
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue-deep);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:not(.btn):hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem);
  background:
    radial-gradient(1100px 500px at 110% -10%, var(--blue-tint) 0%, rgba(238, 241, 249, 0) 60%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 600;
  margin-bottom: 0.5em;
}

.hero-copy p {
  font-size: 1.15rem;
  max-width: 34em;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  background: var(--blue-tint);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  width: 100%;
}

/* ---------- Info bar ---------- */
.info-bar {
  background: var(--blue);
  color: var(--white);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.info-item h2 {
  color: var(--white);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.info-item p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.info-item .btn { margin-top: 0.9rem; }

/* ---------- About ---------- */
.about { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.about-subhead {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1.6em;
}

.about-copy p { color: var(--ink-soft); }
.about-copy .about-subhead { color: var(--ink); }

.providers {
  display: grid;
  gap: 2.5rem;
  position: sticky;
  top: 110px;
}

.provider-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--blue-tint);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.provider-card img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--blue-tint);
}

.provider-card h3 {
  color: var(--ink);
  font-size: 1.35rem;
  margin-bottom: 0.25em;
}

.provider-card p {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin: 0;
}

/* ---------- Services ---------- */
.services {
  background: var(--blue);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.services h2 {
  color: var(--white);
  text-align: center;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.13);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1.4rem;
}
.service-icon .icon {
  width: 44px;
  height: 44px;
  color: var(--white);
}

.service-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.7em;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card p {
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Appointment ---------- */
.appointment { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.appointment-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.appointment-copy { text-align: center; }

.appointment-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

.appointment-copy > p {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.appointment-phone {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--blue);
  text-decoration: none;
  margin-block: 0.5rem 0.75rem;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.appointment-phone:hover {
  background: var(--blue-tint);
  transform: translateY(-2px);
}

.appointment-hours {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Map ---------- */
.map-section {
  background: var(--blue);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.map-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(20, 30, 60, 0.30);
  background: var(--white);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 440px);
}

.map-copy h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
}

.map-address {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.6em;
}
.map-address .icon-inline { margin-top: -4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.footer-brand img { width: clamp(180px, 20vw, 240px); }

.footer-col h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6em;
}

.footer-col p {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-col a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.4rem;
  border-top: 1px solid var(--blue-tint);
  text-align: center;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .provider-card, .service-card, .appointment-phone { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card h3 { min-height: 0; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .appointment-grid,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .hero-media { max-width: 440px; margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  .providers {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .appointment-media { order: 2; max-width: 540px; margin-inline: auto; }
  .appointment-copy { order: 1; }

  .map-copy { text-align: center; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 16px 30px rgba(34, 48, 84, 0.14);
    border-top: 1px solid var(--blue-tint);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 1.1rem;
  }
  .nav-cta { margin-top: 0.5rem; }
}

@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .providers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
}
