/* ==========================================================================
   Indy CoCreator — Standardized Service Website
   Single stylesheet. Brand colors come from --brand-primary / --brand-accent,
   which are injected per-site from content-config.json (see <head>).
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --brand-primary: #1f6feb;   /* overridden per site */
  --brand-accent:  #f59e0b;   /* overridden per site */

  --ink:      #0f172a;
  --ink-soft: #334155;
  --muted:    #64748b;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f8fafc;
  --bg-dark:  #0f172a;
  --white:    #ffffff;

  --radius:   14px;
  --radius-sm: 8px;
  --shadow:   0 10px 30px rgba(15, 23, 42, .08);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); filter: brightness(1.05); }
.btn-accent { background: var(--brand-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { box-shadow: var(--shadow); filter: brightness(1.04); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

.link-arrow { font-weight: 650; color: var(--brand-primary); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-primary); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.brand-name { font-size: 1.15rem; letter-spacing: -.01em; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink-soft); font-weight: 600; }
.primary-nav a:hover { color: var(--brand-primary); text-decoration: none; }
.btn-header-cta {
  background: var(--brand-primary); color: #fff; padding: .6rem 1.1rem; border-radius: 999px;
  font-weight: 650; font-size: .95rem;
}
.btn-header-cta:hover { text-decoration: none; filter: brightness(1.05); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle-bar { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .2s; }
.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); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: .9rem .25rem; }
  .btn-header-cta { margin-top: .9rem; justify-content: center; }
}

/* ---- Hero ---- */
.hero {
  background-size: cover; background-position: center; color: #fff;
  padding: clamp(4rem, 12vw, 8rem) 0;
}
.hero-inner { max-width: 780px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--brand-accent); margin-bottom: .75rem; }
.hero-title { color: #fff; margin-bottom: 1rem; }
.hero-subhead { font-size: 1.2rem; color: rgba(255,255,255,.9); margin-bottom: 1.75rem; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; margin: 2rem 0 0; }
.hero-badges li { font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.92); display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: "\2713"; color: var(--brand-accent); font-weight: 800; }

/* ---- Value props ---- */
.value-props { padding-top: clamp(2.5rem, 6vw, 4rem); }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); text-align: center;
}
.value-icon { font-size: 2.2rem; display: block; margin-bottom: .75rem; }
.value-title { margin-bottom: .5rem; }

/* ---- Service cards ---- */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--muted); }

/* ---- Service detail (services page) ---- */
.service-list { display: flex; flex-direction: column; gap: 1.5rem; }
.service-detail {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand-primary);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); scroll-margin-top: 90px;
}
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
@media (max-width: 620px) { .check-list { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .service-detail { padding: 1.5rem; }
  .service-detail .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
}
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-primary); font-weight: 800; }

/* ---- Page header ---- */
.page-header { background: var(--bg-dark); color: #fff; padding: clamp(3rem, 8vw, 5rem) 0; }
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 680px; }

/* ---- Services scheduling strip ---- */
.schedule-strip { background: var(--brand-primary); color: #fff; padding: 1.5rem 0; }
.schedule-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.schedule-strip h2 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: .2rem; }
.schedule-strip p { color: rgba(255,255,255,.85); margin: 0; }
.schedule-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.schedule-phone { color: #fff; font-weight: 700; }
.schedule-phone:hover { color: #fff; }
@media (max-width: 620px) {
  .schedule-strip-inner, .schedule-actions { align-items: stretch; flex-direction: column; }
  .schedule-actions .btn { width: 100%; }
  .schedule-phone { text-align: center; }
}

/* ---- Testimonials ---- */
.testimonial {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.05rem; color: var(--ink-soft); font-style: italic; }
.testimonial figcaption { font-weight: 700; color: var(--ink); }

/* ---- About page ---- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.fact-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1.25rem; }
.fact { text-align: center; }
.fact-num { display: block; font-size: 2rem; font-weight: 800; color: var(--brand-primary); }
.fact-label { color: var(--muted); font-size: .95rem; }
.cred-item { display: flex; gap: 1rem; align-items: flex-start; }
.cred-check { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-weight: 800; }
.cred-item h3 { margin-bottom: .25rem; }
.cred-item p { color: var(--muted); }

/* ---- Service area ---- */
.area-lead { max-width: 640px; margin: 0 auto 1.5rem; color: var(--muted); }
.area-chips { list-style: none; padding: 0; margin: 0 auto 1rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; max-width: 780px; }
.area-chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; color: var(--ink-soft); }
.area-note { color: var(--muted); }

/* ---- CTA banner ---- */
.cta-banner { background: var(--brand-primary); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin-bottom: .35rem; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.1rem; }
.contact-label { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--muted); }
.contact-list a { font-size: 1.1rem; font-weight: 650; }
.hours-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.hours-list li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); max-width: 320px; }
.hours-day { font-weight: 650; color: var(--ink); }

/* ---- Form ---- */
.contact-form-wrap { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; scroll-margin-top: 90px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 650; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-primary); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ---- Map ---- */
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.75); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-size: 1.2rem; display: block; margin-bottom: .5rem; }
.footer-tagline { color: rgba(255,255,255,.6); }
.footer-license { color: rgba(255,255,255,.5); font-size: .9rem; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-list a { color: rgba(255,255,255,.8); }
.footer-list a:hover { color: #fff; }
.footer-area { color: rgba(255,255,255,.7); }
.footer-social { display: flex; gap: 1rem; margin-top: .75rem; }
.footer-social a { color: var(--brand-accent); font-weight: 600; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; }
.footer-bottom p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.6); }

/* ---- Phone-first mobile action ---- */
.mobile-call-cta { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 64px; }
  .mobile-call-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 64px; padding: .8rem 1rem;
    background: var(--brand-accent); color: #fff; font-weight: 800;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, .2);
  }
  .mobile-call-cta:hover { color: #fff; text-decoration: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
