/* CWBuild Medical — Practice Website Template
   All colors flow through CSS variables. --c-accent and --c-ink are
   injected inline from admin settings and override the defaults here. */

:root {
  --c-accent:      #0FA3A0;              /* clinical teal (admin-editable) */
  --c-ink:         #12333E;              /* deep petrol (admin-editable) */
  --c-paper:       #FFFFFF;
  --c-concrete:    #F0F6F6;              /* mist section background */
  --c-line:        #DCE6E6;
  --c-text:        #29414B;
  --c-muted:       #5E7680;
  --c-inverse:     #FFFFFF;
  --c-grid-line:   rgba(255,255,255,.09);
  --c-tint-accent: rgba(15,163,160,.10);
  --shadow-card:   0 1px 2px rgba(18,51,62,.05), 0 10px 30px rgba(18,51,62,.08);
  --font-display:  "Lora", Georgia, serif;
  --font-body:     "Manrope", "Helvetica Neue", Arial, sans-serif;
  --radius:        12px;
  --wrap:          1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-paper);
  line-height: 1.65;
  font-size: 16.5px;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: var(--c-inverse);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------- type: serif headings, sentence case, no shouting ---------- */
h1, h2, h3 { font-family: var(--font-display); }
h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 600; line-height: 1.08;
  color: var(--c-inverse);
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 600; color: var(--c-ink);
  margin-bottom: 26px;
}
h3 { font-size: 1.28rem; font-weight: 600; color: var(--c-ink); }

.eyebrow {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 10px;
}
/* pulse tick before eyebrows — the practice's heartbeat mark */
.eyebrow::before {
  content: ""; display: inline-block;
  width: 26px; height: 10px; margin-right: 10px;
  background: var(--c-accent); vertical-align: middle;
  clip-path: polygon(0 55%, 22% 55%, 34% 10%, 50% 90%, 62% 40%, 70% 55%, 100% 55%, 100% 68%, 66% 68%, 60% 60%, 50% 100%, 32% 32%, 26% 68%, 0 68%);
}

/* ---------- top strip ---------- */
.topstrip { background: var(--c-ink); color: var(--c-inverse); font-size: .82rem; }
.topstrip-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topstrip a { color: var(--c-inverse); text-decoration: none; opacity: .9; }
.topstrip a:hover { color: var(--c-accent); }
.topstrip-links { display: flex; gap: 18px; }

/* ---------- nav ---------- */
.nav {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 50;
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--c-accent); position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px;
  background: var(--c-inverse);
  clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%, 0 38%, 38% 38%);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 600; color: var(--c-ink);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; color: var(--c-ink);
  font-weight: 600; font-size: .96rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--c-accent); color: var(--c-accent); }
.nav-cta {
  background: var(--c-accent); color: var(--c-inverse) !important;
  padding: 10px 20px !important; border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--c-ink); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--c-ink); margin: 5px 0; }

/* ---------- hero: deep petrol with soft plus-sign field ---------- */
.hero {
  position: relative; background: var(--c-ink);
  color: var(--c-inverse); overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-grid-line), var(--c-grid-line)),
    linear-gradient(var(--c-grid-line), var(--c-grid-line));
  background-size: 2px 14px, 14px 2px;
  background-position: 0 0, 0 6px;
  background-repeat: repeat;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, rgba(0,0,0,.9), transparent 60%);
  mask-image: radial-gradient(ellipse at 80% 20%, rgba(0,0,0,.9), transparent 60%);
}
.hero-ruler { display: none; }
.hero-in {
  position: relative; display: grid;
  grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.hero .eyebrow { color: var(--c-accent); }
.hero-sub {
  margin-top: 18px; font-size: 1.12rem; max-width: 34em;
  color: var(--c-inverse); opacity: .85;
}
.hero-ctas { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---------- buttons: rounded, calm ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: .98rem; font-weight: 700;
  padding: 13px 26px; border: 2px solid transparent;
  border-radius: 999px;
}
.btn-accent { background: var(--c-accent); color: var(--c-inverse); border-color: var(--c-accent); }
.btn-accent:hover { background: transparent; color: var(--c-accent); }
.btn-ghost { background: transparent; color: var(--c-inverse); border-color: var(--c-inverse); }
.btn-ghost:hover { background: var(--c-inverse); color: var(--c-ink); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

.section .btn-accent:hover, .contact-form .btn-accent:hover { background: var(--c-tint-accent); color: var(--c-accent); }

/* ---------- stats: quiet band, not a shout ---------- */
.stats { background: var(--c-concrete); border-bottom: 1px solid var(--c-line); }
.stats-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding-top: 30px; padding-bottom: 30px;
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; color: var(--c-accent); line-height: 1.1; }
.stat-label { font-size: .84rem; font-weight: 600; color: var(--c-muted); }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-tint { background: var(--c-concrete); }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card-media img { height: 170px; width: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.spec-tag { display: none; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3::after {
  content: ""; display: block; width: 34px; height: 3px;
  border-radius: 2px; background: var(--c-accent); margin-top: 9px;
}
.card-body p { color: var(--c-muted); font-size: .97rem; }

/* ---------- team (doctors) ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
}
.project-media { position: relative; }
.project-media img, .project-ph { height: 230px; width: 100%; object-fit: cover; }
.project-ph {
  background: var(--c-ink);
  background-image:
    linear-gradient(var(--c-grid-line), var(--c-grid-line)),
    linear-gradient(var(--c-grid-line), var(--c-grid-line));
  background-size: 2px 14px, 14px 2px;
  background-position: 0 0, 0 6px;
}
.project-cat {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--c-accent); color: var(--c-inverse);
  font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px;
}
.project-body { padding: 20px 24px 24px; }
.project-loc { font-size: .84rem; font-weight: 600; color: var(--c-accent); margin: 3px 0 10px; }
.project-body p:last-child { color: var(--c-muted); font-size: .96rem; }

/* ---------- process (your visit) ---------- */
.steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.step {
  background: var(--c-concrete); border-radius: var(--radius);
  padding: 22px 20px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-inverse);
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--c-muted); font-size: .94rem; }

/* ---------- about ---------- */
.about-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-p { margin-bottom: 14px; }
.checks { list-style: none; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks li { padding-left: 28px; position: relative; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 15px; height: 15px; background: var(--c-accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote {
  background: var(--c-concrete);
  border-radius: var(--radius); padding: 28px 30px;
}
.quote blockquote { font-family: var(--font-display); font-size: 1.12rem; color: var(--c-ink); }
.quote figcaption { margin-top: 14px; font-size: .92rem; color: var(--c-muted); }
.quote figcaption strong { color: var(--c-ink); margin-right: 8px; }

/* ---------- CTA strip with pulse dividers ---------- */
.cta-strip { background: var(--c-ink); color: var(--c-inverse); }
.hazard {
  height: 16px; background: var(--c-accent);
  clip-path: polygon(0 45%, 8% 45%, 11% 10%, 15% 88%, 18% 30%, 21% 45%, 34% 45%, 37% 12%, 41% 90%, 44% 32%, 47% 45%, 62% 45%, 65% 8%, 69% 86%, 72% 28%, 75% 45%, 88% 45%, 91% 14%, 94% 78%, 96% 38%, 100% 45%, 100% 55%, 96% 55%, 93% 62%, 91% 40%, 88% 55%, 75% 55%, 71% 60%, 68% 30%, 65% 55%, 47% 55%, 43% 62%, 40% 34%, 37% 55%, 21% 55%, 17% 58%, 14% 32%, 11% 55%, 0 55%);
}
.cta-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap;
}
.cta-in h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--c-inverse);
}
.cta-in p { opacity: .82; margin-top: 6px; }

/* ---------- contact ---------- */
.contact-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
.contact-list { list-style: none; margin-top: 22px; }
.contact-list li {
  display: flex; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--c-line); font-size: .98rem;
}
.contact-list li span {
  min-width: 92px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-muted); padding-top: 3px;
}
.contact-list a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--c-accent); }

.contact-form form label { display: block; font-size: .84rem; font-weight: 700; color: var(--c-muted); margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 5px;
  font-family: var(--font-body); font-size: 1rem; color: var(--c-text);
  background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: 10px; padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-tint-accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.notice { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.notice-ok  { background: var(--c-tint-accent); border: 1px solid var(--c-accent); color: var(--c-ink); }
.notice-err { background: var(--c-concrete); border: 1px solid var(--c-line); color: var(--c-ink); }

/* ---------- footer ---------- */
.footer { background: var(--c-ink); color: var(--c-inverse); }
.footer-in {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 44px; padding-bottom: 28px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.footer-note { opacity: .72; font-size: .9rem; margin-top: 6px; max-width: 44em; }
.footer-links { display: flex; gap: 18px; align-items: flex-start; }
.footer-links a { color: var(--c-inverse); opacity: .85; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--c-accent); opacity: 1; }
.footer-base {
  border-top: 1px solid var(--c-grid-line);
  padding-top: 16px; padding-bottom: 20px;
  font-size: .82rem; opacity: .6;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-admin { color: inherit; text-decoration: none; }
.footer-admin:hover { color: var(--c-accent); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .cards, .projects { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-in { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 68px; }
  .hero-media { max-width: 520px; }
  .about-in, .contact-in { grid-template-columns: 1fr; gap: 34px; }
  .stats-in { grid-template-columns: 1fr 1fr; gap: 22px 8px; }
}

@media (max-width: 680px) {
  .cards, .projects, .quotes, .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .topstrip-in { flex-direction: column; gap: 2px; align-items: flex-start; }
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 70px;
    background: var(--c-paper); border-bottom: 1px solid var(--c-line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .nav-cta { margin-top: 12px; text-align: center; border-radius: 10px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}
