/*
Theme Name: Naramatisho Health Services
Theme URI: https://example.com/horizon-health
Author: Codex
Description: A responsive, appointment-focused WordPress theme for a modern health clinic.
Version: 1.2.0
Text Domain: horizon-health
*/

:root {
  --navy: #0754a3;
  --navy-2: #0b69c7;
  --red: #d9233f;
  --red-dark: #b81731;
  --teal: #1687d3;
  --ink: #12304f;
  --muted: #667085;
  --line: #dfe5ec;
  --mist: #f3f7fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 26, 58, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--navy { color: var(--white); background: var(--navy); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow::before { width: 24px; height: 2px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; }
h1 { margin-bottom: 24px; font-size: clamp(2.8rem, 6vw, 5.3rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { margin-bottom: 10px; font-size: 1.25rem; }
.accent { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; }
.lead { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow::before { display: none; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--white);
  background: var(--red);
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { background: var(--red-dark); box-shadow: 0 9px 24px rgba(217, 35, 63, .24); transform: translateY(-2px); }
.button--light { border-color: var(--white); color: var(--navy); background: var(--white); }
.button--outline { border-color: var(--line); color: var(--navy); background: var(--white); }
.button--outline:hover { color: var(--white); border-color: var(--navy); background: var(--navy); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.topbar { color: #dce7f5; background: var(--navy); font-size: .82rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar__group { display: flex; align-items: center; gap: 20px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #28d17c; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(223, 229, 236, .9); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--red); font-size: 1.65rem; font-weight: 300; }
.brand__name { display: block; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.brand__tag { display: block; color: var(--red); font-size: .72rem; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { position: relative; color: #26354d; font-size: .94rem; font-weight: 650; }
.main-nav a:not(.button)::after { position: absolute; right: 50%; bottom: -9px; left: 50%; height: 2px; background: var(--red); content: ""; transition: left .2s, right .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; left: 0; }
.main-nav .button { color: var(--white); }
.menu-toggle { width: 44px; height: 44px; display: none; border: 0; color: var(--navy); background: transparent; font-size: 1.65rem; cursor: pointer; }

.hero { position: relative; overflow: hidden; min-height: 690px; display: grid; align-items: center; background: #f8fbfd; }
.hero::before { position: absolute; inset: 0; opacity: .23; background-image: radial-gradient(#c6d3e1 1px, transparent 1px); background-size: 26px 26px; content: ""; }
.hero__grid { position: relative; display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: 48px; padding: 72px 0; }
.hero__copy { position: relative; z-index: 2; }
.hero__copy .lead { margin-bottom: 30px; font-size: 1.1rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; min-height: 530px; border-radius: 8px 42px 8px 8px; object-fit: cover; box-shadow: var(--shadow); }
.hero__callout { position: absolute; top: 34px; left: -28px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.hero__callout strong, .hero__callout span { display: block; }
.hero__callout span { color: var(--muted); font-size: .78rem; }
.callout-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; color: var(--white); background: var(--red); font-size: 1.3rem; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.hero__stats strong { display: block; color: var(--navy); font-size: 1.22rem; }
.hero__stats span { color: var(--muted); font-size: .78rem; }

.quick-actions { position: relative; z-index: 3; margin-top: -42px; }
.quick-actions__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quick-action { min-height: 150px; padding: 28px; color: var(--ink); background: var(--white); border-right: 1px solid var(--line); }
.quick-action:last-child { border-right: 0; }
.quick-action--urgent { color: var(--white); background: var(--red); }
.quick-action h3 { color: inherit; }
.quick-action p { margin-bottom: 10px; color: inherit; opacity: .78; font-size: .9rem; }
.text-link { color: var(--red); font-weight: 800; }
.quick-action--urgent .text-link { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.image-stack { position: relative; padding: 0 34px 34px 0; }
.image-stack img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); object-fit: cover; }
.image-stack::after { position: absolute; right: 0; bottom: 0; z-index: -1; width: 72%; height: 72%; background: var(--teal); content: ""; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 25px 0 30px; padding: 0; list-style: none; }
.check-list li::before { margin-right: 8px; color: var(--red); content: "\2713"; font-weight: 900; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { min-height: 240px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-5px); }
.service-card .dashicons { width: 46px; height: 46px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--red); background: #fff0f3; font-size: 24px; }
.service-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.trust-band { overflow: hidden; }
.trust-band h2 { color: var(--white); }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: end; }
.trust-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.2); }
.trust-point { min-height: 140px; padding: 24px; background: var(--navy); }
.trust-point strong { display: block; color: var(--white); font-size: 2rem; }
.trust-point span { color: #c9d6e8; }

.care-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.care-feature { position: relative; min-height: 390px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); }
.care-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.care-feature::after { position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgba(8,26,58,.92)); content: ""; }
.care-feature__content { position: relative; z-index: 2; max-width: 520px; padding: 30px; color: var(--white); }
.care-feature h3 { color: var(--white); font-size: 1.6rem; }
.care-feature p { margin-bottom: 0; opacity: .84; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; counter-reset: step; }
.step { position: relative; padding-top: 68px; counter-increment: step; }
.step::before { position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--red); content: counter(step); font-weight: 900; }
.step:not(:last-child)::after { position: absolute; top: 23px; left: 66px; width: calc(100% - 50px); border-top: 1px dashed #b8c5d5; content: ""; }

.insurance-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.insurance-list span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); background: var(--white); font-weight: 750; }
.testimonial { max-width: 820px; margin: auto; text-align: center; }
.testimonial blockquote { margin: 0 0 24px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.45; }
.testimonial strong { display: block; }
.testimonial span { color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; color: var(--navy); background: none; text-align: left; font-weight: 800; cursor: pointer; }
.faq-answer { display: none; padding: 0 32px 18px 0; color: var(--muted); }
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open button span { transform: rotate(45deg); }

.cta { padding: 58px 0; color: var(--white); background: var(--red); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin-bottom: 6px; color: var(--white); }
.cta p { margin: 0; opacity: .85; }

.page-hero { padding: 84px 0; color: var(--white); background: var(--navy); }
.page-hero h1 { max-width: 850px; margin-bottom: 16px; color: var(--white); font-size: clamp(2.6rem, 5vw, 4.5rem); }
.page-hero p { max-width: 720px; margin: 0; color: #c8d5e7; font-size: 1.08rem; }
.shop-hero { position: relative; overflow: hidden; min-height: 430px; display: flex; align-items: end; color: var(--white); background: var(--navy); }
.shop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,84,163,.96) 0%, rgba(7,84,163,.78) 48%, rgba(7,84,163,.18) 100%); content: ""; }
.shop-hero__content { position: relative; z-index: 2; max-width: 740px; padding: 80px 0 62px; }
.shop-hero h1 { color: var(--white); font-size: clamp(2.7rem, 5vw, 4.6rem); }
.shop-hero p { max-width: 650px; color: #e6f1fc; font-size: 1.08rem; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.blog-card__image { display: block; aspect-ratio: 16/8; overflow: hidden; background: var(--mist); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .blog-card__image img { transform: scale(1.025); }
.blog-card__content { padding: 26px; }
.blog-card__meta { margin-bottom: 8px; color: var(--red); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.blog-card h2 { font-size: 1.65rem; }
.blog-card p { color: var(--muted); }
.article { max-width: 820px; margin-inline: auto; }
.article__meta { margin-bottom: 26px; color: var(--muted); }
.article__image { width: 100%; margin-bottom: 34px; border-radius: var(--radius); }
.article-content h2 { margin-top: 34px; font-size: 2rem; }
.article-content li { margin-bottom: 8px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.content-panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.content-panel p:last-child { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.team-card__header { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.team-avatar { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy); font-weight: 850; }
.team-card:nth-child(3n + 2) .team-avatar { background: var(--red); }
.team-card:nth-child(3n + 3) .team-avatar { background: var(--teal); }
.team-card h3 { margin-bottom: 3px; font-size: 1.12rem; }
.team-role { display: block; color: var(--red); font-size: .82rem; font-weight: 800; }
.team-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.location-card { min-height: 170px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.location-card--main { color: var(--white); background: var(--navy); border-color: var(--navy); }
.location-card .dashicons { width: 38px; height: 38px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: #fff0f3; }
.location-card--main .dashicons { color: var(--navy); background: var(--white); }
.location-card h3 { margin-bottom: 5px; }
.location-card--main h3 { color: var(--white); }
.location-card p { margin: 0; color: var(--muted); }
.location-card--main p { color: #d8e7f8; }
.service-row { display: grid; grid-template-columns: .55fr 1fr; gap: 50px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.service-row:nth-child(even) .service-row__image { order: 2; }
.service-row img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); object-fit: cover; }

.form-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 54px; align-items: start; }
.contact-list { margin: 28px 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list small, .contact-list strong { display: block; }
.contact-list small { color: var(--red); font-weight: 800; text-transform: uppercase; }
.form-card { padding: 34px; border-radius: var(--radius); background: var(--mist); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--navy); font-size: .88rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #cdd6e1; border-radius: 5px; color: var(--ink); background: var(--white); }
input, select { height: 50px; padding: 0 13px; }
textarea { min-height: 130px; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(8,127,140,.12); }
.notice { margin-bottom: 22px; padding: 14px 16px; border-left: 4px solid var(--teal); background: #e7f6f7; }
.notice--error { border-color: var(--red); background: #fff0f3; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }

.site-footer { color: #d4e5f7; background: #06366c; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .65fr .7fr 1fr; gap: 48px; padding: 66px 0 48px; }
.footer__brand .brand__name { color: var(--white); }
.footer__brand p { max-width: 340px; margin-top: 18px; }
.site-footer h3 { color: var(--white); font-size: .85rem; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.mobile-call { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: none; }

@media (max-width: 980px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav { position: fixed; inset: 121px 0 auto; display: none; padding: 28px 30px 34px; flex-direction: column; align-items: stretch; gap: 20px; background: var(--white); box-shadow: var(--shadow); }
  .menu-open .main-nav { display: flex; }
  .hero { min-height: auto; }
  .hero__grid, .split, .trust-grid, .faq-grid, .form-wrap { grid-template-columns: 1fr; }
  .hero__copy { max-width: 760px; }
  .hero__media img { min-height: 440px; }
  .quick-actions { margin-top: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 62px 0; }
  .topbar__inner { min-height: 42px; }
  .topbar__group:last-child, .topbar__group span:not(:first-child) { display: none; }
  .header__inner { min-height: 72px; }
  .main-nav { top: 114px; }
  .brand__tag { display: none; }
  .hero__grid { gap: 34px; padding: 50px 0; }
  h1 { font-size: 2.75rem; }
  .hero__media img { min-height: 340px; }
  .hero__callout { top: 18px; left: 12px; }
  .hero__stats, .quick-actions__grid, .service-grid, .care-grid, .steps, .content-grid, .form-grid, .team-grid, .locations-grid { grid-template-columns: 1fr; }
  .quick-action { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-action:last-child { border-bottom: 0; }
  .check-list, .trust-points { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 22px; }
  .service-row:nth-child(even) .service-row__image { order: 0; }
  .step:not(:last-child)::after { display: none; }
  .cta__inner { align-items: flex-start; flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 22px; }
  .mobile-call { display: inline-flex; }
}

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