/* ==========================================================================
   Edmonton Hearing Aid Centre — shared stylesheet
   ========================================================================== */

:root {
  /* Brand palette — clean, bright, healthcare-trustworthy */
  --navy-900: #12283f;
  --navy-800: #16324f;
  --navy-700: #1d4266;
  --teal-600: #1f8a7e;
  --teal-500: #2ca596;
  --teal-100: #e3f4f1;
  --gold-500: #c9973f;
  --gold-100: #faf1de;
  --ink: #1c2a33;
  --ink-soft: #4b5b64;
  --paper: #faf8f4;
  --paper-alt: #f2efe8;
  --card: #ffffff;
  --line: #e4ddd0;
  --white: #ffffff;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(18, 40, 63, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 40, 63, 0.12);
  --shadow-lg: 0 24px 60px rgba(18, 40, 63, 0.18);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", "Segoe UI", serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy-900); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

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

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-500); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-ghost:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy-900);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-800);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--teal-100); color: var(--teal-600); }
.main-nav a.active { background: var(--navy-800); color: var(--white); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--teal-600); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .header-phone span.phone-label { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .brand { font-size: 1.02rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-text small { display: none; }
  .header-cta .btn-navy { display: none; }
  .header-cta { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--navy-900);
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 640px;
}
.hero-copy { padding: 80px 48px 80px 24px; max-width: 620px; margin: 0 auto; }
.hero .eyebrow { color: var(--gold-500); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin-bottom: 20px;
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.hero-trust svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; }

.hero-media { position: relative; height: 100%; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,40,63,0.55), rgba(18,40,63,0) 30%);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 320px; order: -1; }
  .hero-copy { padding: 48px 24px; max-width: 100%; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-800); font-size: 0.94rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; }

/* ---------- About / intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--teal-600); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; }
.service-card .card-link { margin-top: 16px; font-weight: 700; color: var(--teal-600); display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Product showcase ---------- */
.product-strip {
  background: var(--paper-alt);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-card figcaption { padding: 16px 18px; font-weight: 600; font-size: 0.92rem; color: var(--navy-800); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-head);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Testimonials (placeholder content) ---------- */
.testimonial-note {
  background: var(--gold-100);
  border: 1px dashed var(--gold-500);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--navy-800);
  margin-bottom: 32px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p.quote { font-style: italic; color: var(--ink-soft); }
.testimonial-card .who { font-weight: 700; color: var(--navy-800); margin-top: 12px; font-style: normal; }

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

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal-600);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.72); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 0.94rem; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--white); }
.footer-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--white); font-size: 1.05rem; margin-bottom: 6px; }
.footer-phone svg { width: 18px; height: 18px; color: var(--teal-500); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,40,63,0.55), var(--navy-900));
}
.page-hero .container { position: relative; padding: 96px 24px 72px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; color: var(--teal-600); }
.contact-info-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy-900); font-family: var(--font-body); }
.contact-info-item p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.contact-info-item a.big-link { font-weight: 700; color: var(--navy-900); font-size: 1.1rem; }
.contact-info-item a.big-link:hover { color: var(--teal-600); }

.service-area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.service-area-tags span { background: var(--paper-alt); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; color: var(--navy-800); font-weight: 600; }

.contact-form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy-900); margin-bottom: 8px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.visible { display: block; }
.form-status.error { background: #fbe4e1; color: #8a2e21; }

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

/* ---------- Placeholder / coming-soon page ---------- */
.placeholder-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-sm);
}
.placeholder-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.placeholder-icon svg { width: 32px; height: 32px; color: var(--teal-600); }
.placeholder-panel .btn { margin-top: 10px; }
.placeholder-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
}
.service-preview-grid .chip {
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
@media (max-width: 700px) {
  .service-preview-grid { grid-template-columns: 1fr 1fr; }
}
