/* ============================================================
   Refined Orthodontics - rebuild design tokens
   Captured 1:1 from refinedortho.com live computed styles +
   Elementor kit 10 + post-38.css:
   Open Sans 600 headings / 400 body / 500 buttons
   brand blue #006092 (kit f833b8a) · nav ink #1C244B
   gold buttons #DAC25F bg / #E3CA63 border, radius 3px
   hero overlay #006092 @ 0.6 · welcome heading #6EC1E4 (live look)
   ============================================================ */
:root {
  --brand: #006092;          /* deep brand blue - headings, overlays, bands */
  --brand-dark: #004d75;
  --ink: #1c244b;            /* nav/dark text */
  --sky: #6ec1e4;            /* light blue accent (live welcome heading) */
  --gold: #dac25f;           /* button fill (live) */
  --gold-border: #e3ca63;    /* button border (live) */
  --gold-dark: #c9ae45;
  --paper: #ffffff;
  --paper-tint: #eaf4fa;     /* light blue band */
  --text: #333333;
  --line: #dbe6ee;
  --font-head: "Open Sans", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --container: 1200px;
  --radius: 3px;
  --shadow: 0 10px 30px rgba(0, 96, 146, 0.13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.65; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; color: var(--brand); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 0.8em; }
.on-dark .eyebrow { color: var(--gold-border); }

/* ---------- buttons (gold fill, brand-blue text, 3px radius - matches live) ---------- */
.btn { display: inline-block; padding: 14px 30px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center; border-radius: var(--radius); cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s; min-height: 48px; }
.btn-primary { background: var(--gold); color: var(--brand); border-color: var(--gold-border); }
.btn-primary:hover { background: var(--gold-dark); color: var(--brand-dark); }
.btn-secondary { background: var(--brand); color: #fff; }
.btn-secondary:hover { background: var(--brand-dark); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--gold); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.on-dark .btn-outline { color: #fff; border-color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--brand); }

/* ---------- header (white, tall logo like live) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); box-shadow: 0 2px 10px rgba(0,96,146,0.08); }
.header-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 10px 24px; max-width: 1360px; margin: 0 auto; }
.logo img { height: 74px; width: auto; }
.main-nav { justify-self: center; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; white-space: nowrap; }
.main-nav a:hover { color: var(--brand); }
.nav-item { position: relative; }
.nav-item > a::after { content: "\00a0\25be"; font-size: 0.65em; vertical-align: 0.15em; opacity: 0.6; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; box-shadow: var(--shadow); padding: 8px 0; display: none; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { padding: 10px 18px; font-weight: 400; font-size: 0.98rem; text-transform: none; }
.dropdown a::after { content: none; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.header-phone svg { width: 18px; height: 18px; }
.hamburger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; }

/* ---------- hero (home - split: solid blue text column left, contained photo right) ---------- */
.hero { color: #fff; background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); }
.hero .hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: stretch; }
.hero .hero-copy { padding: clamp(56px, 8vw, 120px) clamp(28px, 4vw, 64px) clamp(56px, 8vw, 120px) max(24px, calc((100vw - 1280px) / 2)); align-self: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.hero .hero-sub { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.05rem, 1.9vw, 1.3rem); margin: 0.5em 0 1.5em; color: #fff; max-width: 540px; }
.hero .btn { margin-right: 12px; margin-top: 8px; }
.hero .hero-media { position: relative; min-height: clamp(360px, 42vw, 620px); }
.hero .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 860px) {
  .hero .hero-grid { grid-template-columns: 1fr; }
  .hero .hero-copy { padding: 48px 24px 40px; }
  .hero .hero-media { min-height: 300px; }
}

/* ---------- trust bar ---------- */
.trust-bar { background: var(--brand); color: #fff; padding: 16px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-cell .t-value { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; color: var(--gold-border); }
.trust-cell .t-label { font-size: 0.98rem; opacity: 0.92; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.band-tint { background: var(--paper-tint); }
.band-ink { background: var(--brand); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.center { text-align: center; }

/* welcome heading keeps the live light-blue look */
.welcome-title { color: var(--sky); text-transform: uppercase; }

/* image-background sections (parallax band on live home) */
.bg-section { position: relative; background-size: cover; background-position: center; }
.bg-section > .overlay { position: absolute; inset: 0; }
.bg-section .container { position: relative; }
.bg-band { min-height: 46vh; }
@media (min-width: 1025px) { .bg-fixed { background-attachment: fixed; } }
.bg-half { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bg-half .spacer { min-height: 320px; }

/* zigzag rows - alternation happens in MARKUP (media div first = image left) */
.zigzag { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.z-media img { width: 100%; box-shadow: var(--shadow); border-radius: var(--radius); }
.z-copy .btn { margin-top: 8px; margin-right: 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding: 7px 0 7px 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; background: var(--gold); clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 39% 73%); }
.text-link { font-weight: 700; color: var(--brand); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--brand-dark); }
.text-link::after { content: " →"; }
.on-dark .text-link { color: #fff; }

/* 3 image-box USPs (1:1 with live home) */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 44px; }
.usp { text-align: center; background: #fff; padding: 34px 26px; box-shadow: var(--shadow); border-radius: var(--radius); }
.usp img { width: 92px; height: 92px; object-fit: contain; margin: 0 auto 16px; }
.usp h3 { color: var(--brand); }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; margin-top: 44px; text-align: left; }
.feature h3 { font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: 6px; }

/* services hover cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.svc-grid.svc-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card { position: relative; min-height: 420px; display: flex; align-items: flex-end; text-decoration: none; background-size: cover; background-position: center; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.svc-grid-4 .svc-card { min-height: 380px; }
.svc-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,50,76,0) 30%, rgba(0,50,76,0.88) 78%); transition: background 0.25s; }
.svc-card:hover::before { background: rgba(0, 50, 76, 0.82); }
.svc-body { position: relative; padding: 26px; color: #fff; }
.svc-body .kicker { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-border); }
.svc-body h3 { color: #fff; margin: 6px 0 8px; }
.svc-body p { font-size: 0.98rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s, opacity 0.3s; margin: 0 0 4px; }
.svc-card:hover .svc-body p, .svc-card:focus .svc-body p { max-height: 200px; opacity: 1; }
.svc-body .text-link { color: #fff; }

/* locations cards */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; text-align: left; }
.loc-card { background: #fff; box-shadow: var(--shadow); padding: 28px; border-top: 4px solid var(--gold); }
.loc-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.loc-card h3 { margin-bottom: 4px; }
.loc-card address { font-style: normal; margin: 10px 0 4px; }
.loc-card .loc-note { font-size: 0.92rem; color: #5c7482; margin-bottom: 0; }
.loc-card .btn { margin-top: 14px; margin-right: 10px; }

/* authority logos band */
.auth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; margin-top: 28px; }
.auth-cell { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.auth-logo-card { background: #fff; height: 110px; display: grid; place-items: center; padding: 16px 20px; flex: none; border-radius: var(--radius); }
.auth-logo-card img { width: 100%; height: 100%; object-fit: contain; }
.auth-cap { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: #fff; margin: 0; }
.band-tint .auth-cap { color: var(--ink); }
@media (max-width: 1024px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .auth-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .auth-logo-card { height: 90px; padding: 10px; } .auth-cap { font-size: 0.88rem; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 850px; margin: 0 auto 0.5em; }
.cta-band p { max-width: 700px; margin: 0 auto 1.5em; font-size: 1.12rem; }
section.cta-band { padding: clamp(44px, 6vw, 68px) 0; }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.review { background: #fff; padding: 28px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); text-align: left; margin: 0; }
.review .stars { color: #f6b100; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review .who { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-top: 12px; }
.review .src { font-size: 0.85rem; color: #6a7f8a; }

/* ---------- request form ---------- */
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.form-card { background: #fff; padding: 36px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); color: var(--text); border-radius: var(--radius); }
.form-card h3 { margin-bottom: 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--ink); }
.form-row input, .form-row select { width: 100%; min-height: 48px; padding: 10px 14px; font-family: var(--font-body); font-size: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); }
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form-card .btn { width: 100%; margin-top: 6px; }
.micro { font-size: 0.9rem; color: #6a7f8a; margin-top: 12px; margin-bottom: 0; }
.phone-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); padding: 22px 26px; margin-top: 26px; border-radius: var(--radius); }
.phone-card a { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; text-decoration: none; }
.quote { border-left: 4px solid var(--gold); padding: 4px 0 4px 20px; margin: 26px 0 0; font-style: italic; }
.quote footer { font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; margin-top: 8px; }

/* steps strip */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; counter-reset: step; }
.step { position: relative; padding-top: 66px; text-align: center; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; display: grid; place-items: center; background: var(--gold); color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; border-radius: 50%; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; text-align: left; }
.faq details { background: #fff; box-shadow: var(--shadow); margin-bottom: 12px; border-left: 5px solid var(--gold); }
.faq summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 24px 20px; }

/* meet the doctor (service pages) */
.doc-sec { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px,5vw,70px); align-items: center; }
.doc-sec .btn { margin-top: 10px; margin-right: 12px; }
.doc-sec img { width: 100%; box-shadow: var(--shadow); border-radius: var(--radius); }
.doc-rows { margin: 0 0 26px; }
.doc-row { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.doc-row::before { content: "✓"; font-weight: 900; color: var(--brand); }

/* ---------- footer (brand blue like live footer band) ---------- */
.site-footer { color: #fff; font-size: 0.97rem; }
.footer-main { background: var(--brand); padding: 64px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer a:hover { color: var(--gold-border); }
.site-footer address { font-style: normal; margin-bottom: 18px; color: rgba(255,255,255,0.9); }
.footer-logo img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-social a { display: inline-block; margin-right: 14px; }
.footer-bottom { background: var(--brand-dark); padding: 20px 0; font-size: 0.85rem; color: rgba(255,255,255,0.78); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.78); }

/* ---------- sticky mobile bar ---------- */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 110; display: none; grid-template-columns: 1fr 1.6fr 1fr; background: var(--brand); box-shadow: 0 -4px 14px rgba(0,0,0,0.2); }
.mobile-bar a { display: grid; place-items: center; min-height: 56px; text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; }
.mobile-bar .mb-book { background: var(--gold); color: var(--brand); }
.mobile-bar.hidden { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid.svc-grid-4 { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .dropdown { position: static; display: block; box-shadow: none; padding-left: 18px; }
  .nav-item > a::after { content: none; }
  .hamburger { display: block; }
  .header-phone span { display: none; }
  .logo img { height: 56px; }
  .feature-grid, .svc-grid, .review-grid, .usp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: 56px; }
  .mobile-bar { display: grid; }
  .header-cta .btn { display: none; }
  .zigzag, .request-grid, .bg-half, .doc-sec { grid-template-columns: 1fr; }
  .zigzag .z-media { order: 2; }
  .bg-half .spacer { min-height: 200px; }
  .feature-grid, .svc-grid, .review-grid, .usp-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .svc-grid.svc-grid-4 { grid-template-columns: 1fr; }
  .bg-band { min-height: 34vh; }
}

/* Google Maps embeds (Siouxland pattern) */
.locmap { width: 100%; height: 360px; display: block; border: 0; box-shadow: var(--shadow); }
.loc-card .locmap { height: 240px; margin-bottom: 18px; box-shadow: none; }

/* GHL form compliance */
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.consent-label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; font-weight: 400; line-height: 1.45; color: #6a7f8a; cursor: pointer; margin-top: 12px; text-align: left; }
.consent-label input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }

/* ============ scroll-reveal animations (progressive enhancement) ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1); transition-delay: var(--rd, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.hero .hero-copy > *, .service-hero .sh-grid > *, .consult-hero .ch-grid > * { animation: heroIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero .hero-copy > *:nth-child(2), .service-hero .sh-grid > *:nth-child(2), .consult-hero .ch-grid > *:nth-child(2) { animation-delay: 0.15s; }
.hero .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero .hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.svc-card, .feature, .review, .loc-card, .usp, .auth-cell, .card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.svc-card:hover, .feature:hover, .review:hover, .loc-card:hover, .usp:hover, .card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(0, 96, 146, 0.18); }
.btn { transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 96, 146, 0.22); }
.z-media img, .doc-sec img { transition: transform 0.5s ease; }
.zigzag:hover .z-media img, .doc-sec:hover img { transform: scale(1.015); }
.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(0, 96, 146, 0.16); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero .hero-copy > *, .service-hero .sh-grid > *, .consult-hero .ch-grid > * { animation: none !important; }
  .svc-card, .feature, .review, .loc-card, .usp, .auth-cell, .card, .btn, .z-media img, .doc-sec img { transition: none !important; }
  html { scroll-behavior: auto; }
}
