/* =========================================================================
   Fresh Coat Painting Co. — Gallery-Minimal Design System
   Whitespace-forward, thin/elegant type, vivid paint-swatch accent motifs.
   Self-contained: system fonts + inline SVG only. No external requests.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* ---------- Design tokens ---------- */
:root {
  /* neutrals */
  --ink: #201d19;
  --ink-soft: #5a544c;
  --ink-faint: #918a80;
  --paper: #ffffff;
  --paper-alt: #faf7f2;
  --paper-deep: #f3ede4;
  --line: #e6ded2;
  --line-soft: #efe9df;

  /* paint-swatch accent palette */
  --swatch-terracotta: #cd6b4c;
  --swatch-gold: #d9a441;
  --swatch-sage: #7c9473;
  --swatch-teal: #3c7c8a;
  --swatch-denim: #4f6f9c;
  --swatch-plum: #8a5a78;

  --ink-on-dark: #f3ede4;

  /* type scale (fluid) */
  --fs-xs: 0.8rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-xl: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --fs-xxl: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 50px -30px rgba(32, 29, 25, 0.35);
  --shadow-card: 0 1px 2px rgba(32, 29, 25, 0.06), 0 12px 30px -20px rgba(32, 29, 25, 0.25);

  --max-w: 1220px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --transition: 220ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 350;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--sp-7); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 260;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: var(--fs-xxl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: 0.005em; }
h4 { font-size: var(--fs-base); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--swatch-terracotta), var(--swatch-gold));
  display: inline-block;
}

p { color: var(--ink-soft); }
p.lede { font-size: var(--fs-md); color: var(--ink-soft); font-weight: 350; }

a.text-link {
  color: var(--swatch-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}
a.text-link:hover { color: var(--swatch-terracotta); }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible {
  outline: 2.5px solid var(--swatch-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-5);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Swatch dots / dividers ---------- */
.swatch-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-block: var(--sp-7);
}
.swatch-divider .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.swatch-divider .dot:nth-child(1) { background: var(--swatch-terracotta); }
.swatch-divider .dot:nth-child(2) { background: var(--swatch-gold); }
.swatch-divider .dot:nth-child(3) { background: var(--swatch-sage); }
.swatch-divider .dot:nth-child(4) { background: var(--swatch-teal); }
.swatch-divider .dot:nth-child(5) { background: var(--swatch-denim); }
.swatch-divider .dot:nth-child(6) { background: var(--swatch-plum); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--swatch-terracotta); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--swatch-teal); color: var(--swatch-teal); transform: translateY(-2px); }
.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
}
.btn-on-dark:hover { background: var(--swatch-gold); transform: translateY(-2px); }
.btn-outline-on-dark {
  background: transparent;
  border-color: rgba(243, 237, 228, 0.5);
  color: var(--ink-on-dark);
}
.btn-outline-on-dark:hover { border-color: var(--swatch-gold); color: var(--swatch-gold); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

.primary-nav { display: none; }
.header-cta { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-link {
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-block: var(--sp-2);
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--swatch-terracotta);
  border-radius: 2px;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: var(--sp-5);
}
.mobile-nav.is-open { display: block; }
.mobile-nav .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-1);
}
.mobile-nav .nav-link {
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--radius-sm);
  display: block;
}
.mobile-nav .nav-link:hover { background: var(--paper-alt); }
.mobile-nav .header-cta-mobile { margin-top: var(--sp-4); }

@media (min-width: 900px) {
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: var(--sp-8);
  padding-block: var(--sp-8) var(--sp-8);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--sp-4); }
.hero-copy h1 { margin-bottom: var(--sp-5); }
.hero-copy p.lede { max-width: 46ch; margin-bottom: var(--sp-6); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.hero-meta li { display: flex; align-items: center; gap: var(--sp-2); }
.hero-meta svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--swatch-teal); }
.hero-art-wrap { width: 100%; }
.hero-art { width: 100%; height: auto; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; padding-block: var(--sp-9); }
}

/* generic page header (non-home) */
.page-hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-8);
}
.page-hero .eyebrow { margin-bottom: var(--sp-4); }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero p.lede { max-width: 62ch; }
.page-hero-art { margin-top: var(--sp-6); width: 100%; height: auto; max-height: 130px; }

/* ---------- Sections ---------- */
section { padding-block: var(--sp-8); }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 68ch; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--sp-3); }

/* ---------- Trust / stats bar ---------- */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-6);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.stat svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--swatch-terracotta); }
.stat-num { display: block; font-size: 1.5rem; font-weight: 300; letter-spacing: -0.01em; }
.stat-label { font-size: var(--fs-xs); color: var(--ink-soft); letter-spacing: 0.02em; }
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: var(--sp-6); }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--card-accent, var(--swatch-terracotta));
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); }
.card .icon-badge { margin-bottom: var(--sp-5); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: var(--fs-sm); }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.card .card-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.card .card-link:hover { color: var(--swatch-terracotta); }
.card .card-link:hover svg { transform: translateX(3px); }

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg, var(--paper-alt));
}
.icon-badge svg { width: 28px; height: 28px; color: var(--badge-fg, var(--swatch-terracotta)); }

/* teaser services (home) reuse .card */

/* ---------- Why choose us ---------- */
.reasons { display: grid; gap: var(--sp-6); }
.reason { display: flex; gap: var(--sp-4); align-items: flex-start; }
.reason svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--swatch-teal); }
.reason h3 { margin-bottom: var(--sp-2); }
.reason p { font-size: var(--fs-sm); }
@media (min-width: 700px) {
  .reasons { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
}
.stars { display: flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; color: var(--swatch-gold); }
.testimonial blockquote { font-size: var(--fs-sm); color: var(--ink); font-style: italic; }
.testimonial footer { font-size: var(--fs-xs); color: var(--ink-soft); font-style: normal; }
.testimonial footer strong { color: var(--ink); font-weight: 600; display: block; }

/* ---------- Service area teaser / list ---------- */
.area-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block: var(--sp-6);
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--paper);
}
.area-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, var(--swatch-teal));
}

.area-detail-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 700px) {
  .area-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
.area-detail {
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--area-accent, var(--swatch-terracotta));
}
.area-detail h3 { margin-bottom: var(--sp-2); }
.area-detail p { font-size: var(--fs-sm); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--ink-on-dark);
  padding-block: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.cta-banner .swatch-divider .dot { opacity: 0.9; }
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}
.cta-banner h2 { color: var(--ink-on-dark); margin-bottom: var(--sp-4); }
.cta-banner p { color: rgba(243, 237, 228, 0.78); margin-bottom: var(--sp-6); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
.cta-drip {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-inline: auto var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}
.team-card h3 { margin-bottom: var(--sp-1); }
.team-role { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--swatch-teal); font-weight: 600; margin-bottom: var(--sp-3); }
.team-card p { font-size: var(--fs-sm); }

/* ---------- Certifications ---------- */
.cert-list { display: grid; gap: var(--sp-5); }
.cert-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.cert-item svg { width: 30px; height: 30px; color: var(--swatch-sage); flex-shrink: 0; }
.cert-item h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.cert-item p { font-size: var(--fs-sm); margin: 0; }
@media (min-width: 700px) {
  .cert-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Values ---------- */
.values-list { display: grid; gap: var(--sp-6); }
@media (min-width: 700px) {
  .values-list { grid-template-columns: repeat(3, 1fr); }
}
.value-item .value-num {
  font-size: var(--fs-lg);
  font-weight: 200;
  color: var(--swatch-terracotta);
  display: block;
  margin-bottom: var(--sp-2);
}

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-info-list { display: grid; gap: var(--sp-5); margin-block: var(--sp-6); }
.contact-info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info-item svg { width: 26px; height: 26px; color: var(--swatch-teal); flex-shrink: 0; }
.contact-info-item h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-1); color: var(--ink-soft); font-weight: 600; }
.contact-info-item a, .contact-info-item p { font-size: var(--fs-base); margin: 0; text-decoration: none; }
.contact-info-item a:hover { color: var(--swatch-terracotta); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
}
.hours-table caption { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: var(--sp-3); font-weight: 600; }
.hours-table th, .hours-table td { text-align: left; padding: 0.65rem 0; border-bottom: 1px solid var(--line-soft); font-weight: 400; }
.hours-table th { color: var(--ink); font-weight: 500; width: 55%; }
.hours-table td { color: var(--ink-soft); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-7);
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: var(--sp-5); }
.form-row label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  font-size: var(--fs-base);
  color: var(--ink);
}
.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover { border-color: var(--ink-faint); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-two { display: grid; gap: var(--sp-5); }
@media (min-width: 560px) {
  .form-two { grid-template-columns: 1fr 1fr; }
}
.form-note { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: var(--sp-4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-on-dark);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer-top {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(243, 237, 228, 0.14);
}
@media (min-width: 700px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.footer-brand .brand { color: var(--ink-on-dark); }
.footer-brand p { color: rgba(243, 237, 228, 0.65); margin-top: var(--sp-4); font-size: var(--fs-sm); max-width: 32ch; }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243, 237, 228, 0.25);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.footer-social a svg { width: 16px; height: 16px; color: var(--ink-on-dark); }
.footer-social a:hover { border-color: var(--swatch-gold); }
.footer-heading {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(243, 237, 228, 0.55);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.footer-links { display: grid; gap: var(--sp-3); }
.footer-links a {
  text-decoration: none;
  color: rgba(243, 237, 228, 0.85);
  font-size: var(--fs-sm);
}
.footer-links a:hover { color: var(--swatch-gold); }
.footer-nap p { font-size: var(--fs-sm); color: rgba(243, 237, 228, 0.85); margin-bottom: var(--sp-2); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: rgba(243, 237, 228, 0.5);
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- No horizontal scroll safety ---------- */
html, body { max-width: 100%; overflow-x: hidden; }

/* =========================================================================
   Add-on components — Booking, Client Portal, Estimate Builder
   Reuses existing tokens (--ink, --paper, --swatch-*, --sp-*, --radius-*,
   --shadow-*, --fs-*). Appended without touching any rule above.
   ========================================================================= */

/* ---------- Nav density: fit the added Get Estimate / Client Portal links ---------- */
@media (min-width: 900px) {
  .nav-list { gap: var(--sp-4); }
  .nav-link { font-size: 0.86rem; }
}

/* ---------- Demo label ---------- */
.demo-note { font-size: var(--fs-xs); color: var(--ink-faint); }

/* ---------- Contextual callout (e.g. contact -> booking) ---------- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border: 1.5px dashed var(--swatch-teal);
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  margin-block: var(--sp-6);
}
.callout svg { width: 28px; height: 28px; color: var(--swatch-teal); flex-shrink: 0; }
.callout h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.callout p { font-size: var(--fs-sm); margin: 0; }
.callout .btn { margin-top: var(--sp-3); }

/* ---------- FAQ blocks ---------- */
.faq-list { display: grid; gap: var(--sp-5); max-width: 68ch; }
.faq-item {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.faq-item h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.faq-item p { font-size: var(--fs-sm); margin: 0; }

/* =========================================================================
   Booking page (booking.html)
   ========================================================================= */
.booking-layout { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 960px) {
  .booking-layout { grid-template-columns: 0.95fr 1.05fr; }
}
.booking-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}
.booking-card + .booking-card { margin-top: var(--sp-6); }
.booking-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.booking-card-head h2 { font-size: var(--fs-md); margin: 0; }
.cal-month-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--swatch-terracotta);
  margin: 0;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: var(--sp-2);
}
.cal-weekdays span {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell { aspect-ratio: 1 / 1; display: flex; }
.cal-day {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.cal-day:hover { border-color: var(--swatch-teal); color: var(--swatch-teal); }
.cal-day.is-selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cal-day.is-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  color: var(--ink-faint);
  font-size: var(--fs-sm);
  text-decoration: line-through;
  opacity: 0.65;
}
.cal-legend { display: flex; gap: var(--sp-5); margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--ink-soft); }
.cal-legend li { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-available { background: var(--swatch-teal); }
.legend-unavailable { background: var(--ink-faint); }

.booking-step-sub { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--sp-5); }

.slot-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 480px) {
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}
.slot-btn {
  text-align: left;
  padding: var(--sp-5);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.slot-btn strong { display: block; font-size: var(--fs-base); margin-bottom: 2px; }
.slot-btn span { font-size: var(--fs-xs); color: var(--ink-soft); }
.slot-btn:hover { border-color: var(--swatch-teal); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.slot-btn.is-selected { border-color: var(--ink); background: var(--paper-deep); }

.booking-placeholder {
  padding: var(--sp-7) var(--sp-6);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--ink-faint);
  font-size: var(--fs-sm);
}

.booking-confirm { text-align: center; }
.success-check { width: 64px; height: 64px; margin: 0 auto var(--sp-5); }
.booking-ref { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.booking-ref strong { color: var(--swatch-terracotta); }
.next-steps { text-align: left; margin-block: var(--sp-6); }
.next-steps h3 { text-align: center; margin-bottom: var(--sp-5); }
.next-steps ol { display: grid; gap: var(--sp-5); }
.next-steps li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.next-steps p { font-size: var(--fs-sm); margin: 0; }

/* =========================================================================
   Client Portal (portal.html)
   ========================================================================= */
.portal-login-wrap { max-width: 480px; margin-inline: auto; }
.portal-login {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-7);
  box-shadow: var(--shadow-card);
}
.portal-login h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.portal-login .lede { margin-bottom: var(--sp-6); font-size: var(--fs-sm); }
.portal-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.portal-divider::before, .portal-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.dashboard-head h1 { margin: 0; }
.dashboard-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid .span-2 { grid-column: 1 / -1; }
}
.dash-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--card-accent, var(--swatch-teal));
}
.dash-card h2 { font-size: var(--fs-md); margin-bottom: var(--sp-5); }

.appt-list { display: grid; gap: var(--sp-4); }
.appt-item { display: flex; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--paper-alt); }
.appt-date { flex-shrink: 0; width: 56px; text-align: center; }
.appt-date .appt-month { display: block; font-size: var(--fs-xs); text-transform: uppercase; color: var(--swatch-terracotta); font-weight: 700; letter-spacing: 0.05em; }
.appt-date .appt-day { display: block; font-size: 1.4rem; font-weight: 300; }
.appt-item h3 { font-size: var(--fs-sm); margin-bottom: 2px; }
.appt-item p { font-size: var(--fs-xs); margin: 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th, .data-table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line-soft); }
.data-table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.data-table-wrap { overflow-x: auto; }
.status-pill { display: inline-block; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.status-completed { background: #e6ebe3; color: var(--swatch-sage); }
.status-scheduled { background: #e3e8f0; color: var(--swatch-denim); }

.invoice-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-5); background: var(--paper-alt); }
.invoice-card + .invoice-card { margin-top: var(--sp-5); }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.invoice-head h3 { font-size: var(--fs-base); margin-bottom: 2px; }
.invoice-head p { font-size: var(--fs-xs); margin: 0; }
.invoice-status { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); white-space: nowrap; }
.invoice-status.is-paid { background: #e6ebe3; color: var(--swatch-sage); }
.invoice-status.is-due { background: #f6e6df; color: var(--swatch-terracotta); }
.line-items { display: grid; gap: 0.4rem; margin-block: var(--sp-4); font-size: var(--fs-sm); }
.line-items .line-item { display: flex; justify-content: space-between; color: var(--ink-soft); }
.line-items .line-total { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.2rem; }
.invoice-actions { margin-top: var(--sp-4); }

.color-history-list { display: grid; gap: var(--sp-4); }
.color-history-item { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); }
.color-history-item:last-child { border-bottom: none; }
.color-history-item svg { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; }
.color-history-item h3 { font-size: var(--fs-sm); margin-bottom: 1px; }
.color-history-item p { font-size: var(--fs-xs); margin: 0; color: var(--ink-soft); }

.account-detail-list { display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.account-detail-list dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.account-detail-list dd { margin: 0 0 var(--sp-3) 0; }

/* ---------- Mock payment modal (shared by portal.html + estimate.html) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 29, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  z-index: 300;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--sp-7);
  box-shadow: var(--shadow-soft);
}
.modal h2 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.modal-desc { font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.modal-amount { font-size: var(--fs-lg); font-weight: 300; color: var(--ink); margin-bottom: var(--sp-5); }
.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close svg { width: 14px; height: 14px; }
.modal-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--swatch-sage);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.modal-trust svg { width: 16px; height: 16px; }
.field-error { color: var(--swatch-terracotta); font-size: var(--fs-xs); min-height: 1.1em; margin-top: 0.3rem; }
.payment-state { text-align: center; padding-block: var(--sp-6); }
.payment-state h3 { margin-bottom: var(--sp-2); }
.payment-state p { font-size: var(--fs-sm); }
.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--swatch-teal);
  margin: 0 auto var(--sp-5);
  animation: fc-spin 0.8s linear infinite;
}
@keyframes fc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 4s; }
}
.payment-state .success-check { margin-bottom: var(--sp-4); }
.payment-state .btn { margin-top: var(--sp-4); }

/* =========================================================================
   Estimate builder (estimate.html)
   ========================================================================= */
.estimate-layout { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 960px) {
  .estimate-layout { grid-template-columns: 1.1fr 0.9fr; }
}
.estimate-form-card, .estimate-result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}
.estimate-result-card { position: sticky; top: calc(var(--sp-8) + 60px); }
@media (max-width: 959px) {
  .estimate-result-card { position: static; }
}
.est-field { margin-bottom: var(--sp-6); }
.est-field:last-child { margin-bottom: 0; }
.est-field > label, .est-field > span.est-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}
.stepper { display: inline-flex; align-items: center; gap: var(--sp-3); }
.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper-btn:hover { border-color: var(--swatch-teal); color: var(--swatch-teal); }
.stepper-value { min-width: 3ch; text-align: center; font-size: var(--fs-md); font-weight: 500; }

.range-row { display: flex; align-items: center; gap: var(--sp-4); }
.range-row input[type="range"] { flex: 1; accent-color: var(--swatch-teal); height: 6px; }
.range-value { min-width: 8ch; text-align: right; font-size: var(--fs-md); font-weight: 500; }

.pill-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.pill-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pill-toggle label {
  padding: 0.6rem 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.pill-toggle input:checked + label { background: var(--ink); color: var(--paper); }
.pill-toggle input:focus-visible + label { outline: 2.5px solid var(--swatch-teal); outline-offset: -2px; }

.grade-cards { display: grid; gap: var(--sp-3); }
@media (min-width: 480px) {
  .grade-cards { grid-template-columns: repeat(3, 1fr); }
}
.grade-card { position: relative; }
.grade-card input { position: absolute; opacity: 0; pointer-events: none; }
.grade-card label {
  display: block;
  padding: var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  height: 100%;
}
.grade-card label strong { display: block; font-size: var(--fs-sm); margin-bottom: 2px; }
.grade-card label span { font-size: var(--fs-xs); color: var(--ink-soft); }
.grade-card input:checked + label { border-color: var(--ink); background: var(--paper-deep); }
.grade-card input:focus-visible + label { outline: 2.5px solid var(--swatch-teal); outline-offset: 2px; }

.swatch-picker { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.swatch-picker input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.swatch-option .swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(32, 29, 25, 0.12);
}
.swatch-picker input:checked + .swatch-option .swatch-circle {
  border-color: var(--ink);
  outline: 2px solid var(--paper);
  outline-offset: -6px;
}
.swatch-picker input:focus-visible + .swatch-option .swatch-circle {
  outline: 2.5px solid var(--swatch-teal);
  outline-offset: 2px;
}
.swatch-note { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--sp-4); font-style: italic; }

.price-range-display { text-align: center; padding: var(--sp-5); background: var(--paper-alt); border-radius: var(--radius-md); margin-bottom: var(--sp-5); }
.price-range-display .price-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.price-range-display .price-value { font-size: var(--fs-xl); font-weight: 260; color: var(--ink); display: block; margin-block: var(--sp-2); }
.est-breakdown { display: grid; gap: 0.5rem; font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.est-breakdown .line-item { display: flex; justify-content: space-between; color: var(--ink-soft); }
.est-disclaimer { font-size: var(--fs-xs); color: var(--ink-faint); margin-bottom: var(--sp-6); }
.estimate-cta { display: grid; gap: var(--sp-3); }
.deposit-confirm { text-align: center; }
