/* Larkspur Painting Co. shared foundation: tokens, base, header, buttons, shared sections, footer.
   Page-specific styles stay inline in each page. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --chalk: #FBF8F4;
  --paper: #FFFDFA;
  --aubergine: #3D2352;
  --aubergine-deep: #2A1738;
  --rose: #D4768C;
  --rose-soft: #F4E1E6;
  --muted: #645370;
  --line: #E6DAD9;
  --shadow: rgba(42, 23, 56, 0.16);
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--aubergine-deep);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--aubergine); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { max-width: 62ch; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: 64px 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--aubergine); color: var(--chalk); padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 10px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s ease-in; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible, .text-link:focus-visible, .nav a:focus-visible, .logo:focus-visible, .nav-toggle:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--aubergine); outline-offset: 3px; }
.btn--solid { background: var(--aubergine); color: var(--chalk); }
.btn--solid:hover { background: var(--aubergine-deep); }
.btn--rose { background: var(--rose); color: var(--aubergine-deep); }
.btn--rose:hover { background: #DC879B; }
.btn--ghost { border-color: var(--aubergine); color: var(--aubergine); background: transparent; }
.btn--ghost:hover { background: var(--rose-soft); }
.text-link { font-weight: 600; color: var(--aubergine); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--rose); transition: text-decoration-color 0.2s ease-in; }
.text-link:hover { text-decoration-color: var(--aubergine); }

/* Header and navigation */
.site-header { position: relative; z-index: 20; padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--aubergine); border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--aubergine); border-radius: 2px; content: ""; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 6px; left: 0; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; color: var(--aubergine); }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-header.nav-open .nav { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 24px; right: 24px; top: calc(100% - 4px); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 14px 30px var(--shadow); }
.site-header.nav-open .nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; }
.nav__extra { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.nav__extra .btn { color: var(--chalk); }
.nav__extra .nav__phone { font-weight: 600; }
.header-cta { display: none; align-items: center; gap: 20px; }
.header-phone { font-weight: 600; text-decoration: none; color: var(--aubergine); }
.header-cta .btn { min-height: 44px; padding: 10px 20px; }
noscript .nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* Inner page header block */
.page-hero { padding: 16px 0 48px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--aubergine); }
.page-hero__lede { margin-top: 20px; font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.page-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Section heads */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; color: var(--muted); }

/* Process steps */
.steps { display: grid; gap: 40px; margin-top: 8px; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
.step::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: -32px; width: 2px; background: var(--rose); }
.step:last-child::after { display: none; }
.step__num { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--aubergine); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; color: var(--aubergine); background: var(--chalk); position: relative; z-index: 1; }
.step h3 { font-size: 1.35rem; }
.step p { margin-top: 8px; color: var(--muted); }
.process__cta { margin-top: 48px; }

/* FAQ accordion */
.faq-list { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 1.15rem; line-height: 1.35; color: var(--aubergine); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.8rem; line-height: 1; flex: none; transition: transform 0.25s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--muted); }

/* Quote form (demo form, used on the home and contact pages) */
.quote-form { background: var(--paper); color: var(--aubergine-deep); border-radius: 20px; padding: 28px; }
.quote-form__fields { display: grid; gap: 18px; }
.quote-form__row { display: grid; gap: 18px; }
.quote-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--aubergine); }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; font: inherit; color: inherit; background: #fff; }
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible { border-color: var(--aubergine); }
.quote-form .btn { width: 100%; }
.quote-form__note { font-size: 0.875rem; color: var(--muted); }
.quote-form__done { display: none; padding: 24px 0; }
.quote-form__done h3 { font-size: 1.6rem; }
.quote-form__done p { margin-top: 8px; color: var(--muted); }
.quote-form.is-sent .quote-form__fields { display: none; }
.quote-form.is-sent .quote-form__done { display: block; }

/* Closing call-to-action band for inner pages */
.cta-band { background: var(--aubergine-deep); color: var(--chalk); }
.cta-band h2 { color: var(--chalk); max-width: 20ch; }
.cta-band p { margin-top: 16px; color: rgba(251, 248, 244, 0.82); }
.cta-band .btn { margin-top: 28px; }

/* Footer */
.site-footer { background: var(--aubergine-deep); color: rgba(251, 248, 244, 0.82); padding: 56px 0 40px; border-top: 1px solid rgba(251, 248, 244, 0.18); font-size: 0.98rem; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--chalk); letter-spacing: 0; margin-bottom: 8px; line-height: 1.4; }
.site-footer a { color: inherit; }
.site-footer .logo img { height: 56px; }
.site-footer__links { list-style: none; display: grid; gap: 4px; }
.site-footer__links a { display: inline-block; padding: 6px 0; }
.site-footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(251, 248, 244, 0.18); font-size: 0.875rem; }

@media (min-width: 700px) {
  .quote-form__row { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .nav-toggle, .nav__extra { display: none; }
  .nav { display: flex; gap: 32px; }
  .header-cta { display: flex; }
  .page-hero { padding: 24px 0 72px; }
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .step { display: block; }
  .step__num { margin-bottom: 24px; }
  .step::after { left: 68px; right: -36px; top: 27px; bottom: auto; width: auto; height: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .text-link, .faq-list summary::after { transition: none; }
}
