/* ============================================================
   Nerto's Painting — site.css
   Design system generated from taste plan: seed 6643 · Geist ·
   Editorial Split · variance 5 / motion 4 / density 5
   Palette extracted from the client's own logo (raw/brand-logo.png):
   cream #F8F8E0 dominant · near-black ink · paint-blue #1891E3
   ============================================================ */

/* --- tokens --- */
:root {
  --paper: #FAF8EC;        /* page base — lifted logo cream */
  --paper-2: #F2EFDC;      /* deeper cream band */
  --card: #FFFDF3;         /* raised cream card */
  --ink: #191A1B;          /* logo linework black */
  --ink-2: #4A4B40;        /* warm body gray */
  --ink-3: #7C7D6E;        /* muted labels */
  --line: rgba(25, 26, 27, .13);
  --blue: #1891E3;         /* the paint in their bucket — large accents only */
  --blue-deep: #0E6FB8;    /* AA-safe blue: links, button fills (5.0:1 on paper) */
  --blue-ink: #0B5A96;     /* hover/darker */
  --chip: #E9E6D2;         /* paint-chip border tone */
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(25,26,27,.05), 0 8px 28px rgba(25,26,27,.07);
  --shadow-2: 0 2px 4px rgba(25,26,27,.06), 0 18px 48px rgba(25,26,27,.12);
  --maxw: 1160px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* --- reset + base --- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, rgba(24, 145, 227, .06), transparent 60%),
    radial-gradient(900px 500px at -12% 12%, rgba(232, 217, 164, .5), transparent 55%),
    var(--grain);
  color: var(--ink);
  font: 400 18px/1.6 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); }
::selection { background: #BCE0F8; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 5.6vw, 4.35rem); margin: 0 0 1.1rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.22rem; margin: 0 0 .45rem; }
p { margin: 0 0 1.05rem; max-width: 66ch; }
.lead { font-size: 1.13rem; color: var(--ink-2); }

/* --- layout primitives --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
section { padding: clamp(4.2rem, 9vw, 8.5rem) 0; position: relative; }
.band { background: var(--paper-2); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.band-blue { background: linear-gradient(135deg, #0C6AAD, #1891E3 130%); color: #F5FAFE; }
.band-blue p { color: rgba(245, 250, 254, .92); }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .8rem/1 "Geist", sans-serif; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue-deep); margin: 0 0 1.1rem;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--blue); }
.band-blue .kicker { color: #CFE9FB; }
.band-blue .kicker::before { background: #CFE9FB; }

/* --- header --- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 236, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 1.4rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand b { font: 600 1.12rem/1.1 "Geist", sans-serif; letter-spacing: -0.01em; display: block; }
.brand small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.nav-links { display: none; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.head-cta { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font: 500 .82rem/1 "Geist", sans-serif; }
.lang button { border: 0; background: transparent; padding: .5rem .8rem; cursor: pointer; color: var(--ink-3); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.head-call { display: none; font-weight: 600; text-decoration: none; color: var(--ink); font-size: .95rem; }
@media (min-width: 900px) {
  .nav-links, .head-cta, .head-call { display: inline-flex; align-items: center; }
  .nav-links { flex: 1; justify-content: flex-end; }
  .head-call { margin-left: 1rem; }
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .95rem 1.7rem; border-radius: 12px;
  font: 600 1rem/1 "Geist", sans-serif; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--blue-deep); background: var(--blue-deep); color: #fff;
  box-shadow: var(--shadow-1); transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); transform: translateY(-1px); box-shadow: var(--shadow-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(25,26,27,.35); box-shadow: none; }
.btn-ghost:hover { background: rgba(25,26,27,.05); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: var(--blue-ink); }
.btn-light:hover { background: #EAF6FE; border-color: #EAF6FE; color: var(--blue-ink); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* --- hero (Editorial Split) --- */
.hero { padding: clamp(3.2rem, 7vw, 6.5rem) 0 clamp(3.4rem, 7vw, 6.8rem); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.04fr .96fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem .5rem .6rem; font: 500 .86rem/1 "Geist", sans-serif; color: var(--ink-2);
  box-shadow: var(--shadow-1); margin-bottom: 1.4rem;
}
.hero-badge .stars { color: var(--blue-deep); letter-spacing: .08em; font-size: .8rem; }
.hero-fig { position: relative; margin: 0; }
.hero-fig img { border-radius: 18px; box-shadow: var(--shadow-2); width: 100%; }
.hero-fig figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(250, 248, 236, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem;
  font: 500 .8rem/1.35 "Geist", sans-serif; color: var(--ink-2);
}
/* --- social row (hero) --- */
.social-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.social-row a {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--ink-2); font: 500 .9rem/1 "Geist", sans-serif;
  min-height: 44px; padding: .55rem 0;
}
.social-row a:hover { color: var(--blue-deep); }
.social-row svg { width: 34px; height: 34px; border-radius: 50%; padding: 7px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); box-shadow: var(--shadow-1); transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.social-row a:hover svg { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); }

/* --- background toggle (beige = brand default, white = comparison) --- */
.bgsw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font: 500 .82rem/1 "Geist", sans-serif; }
.bgsw button { border: 0; background: transparent; padding: .5rem .75rem; cursor: pointer; color: var(--ink-3); display: inline-flex; align-items: center; gap: .4rem; }
.bgsw button::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(25,26,27,.2); }
.bgsw button[data-bg="beige"]::before { background: #F8F8E0; }
.bgsw button[data-bg="white"]::before { background: #fff; }
.bgsw button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

html[data-bg="white"] {
  --paper: #FFFFFF;
  --paper-2: #F6F6F2;
  --card: #FFFFFF;
  --chip: #E9E9E4;
  --line: rgba(25, 26, 27, .18);
}
html[data-bg="white"] body {
  background-image:
    radial-gradient(1100px 520px at 82% -8%, rgba(24, 145, 227, .055), transparent 60%),
    radial-gradient(900px 500px at -12% 12%, rgba(236, 236, 232, .55), transparent 55%),
    var(--grain);
}
/* white mode needs stronger surface definition — cards/badge otherwise wash out */
html[data-bg="white"] .card { border-color: rgba(25, 26, 27, .16); box-shadow: 0 1px 2px rgba(25,26,27,.06), 0 10px 32px rgba(25,26,27,.10); }
html[data-bg="white"] .hero-badge { background: #F6F6F2; }
html[data-bg="white"] .hero-fig figcaption { background: rgba(255, 255, 255, .95); }

/* --- chips (paint swatch motif) --- */
.chips { display: flex; gap: .5rem; margin-top: 1.5rem; }
.chip { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--chip); box-shadow: inset 0 0 0 2px var(--paper); }

/* --- trust strip --- */
.trust { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.6rem; padding: 1.3rem 0; }
@media (min-width: 860px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: .75rem; align-items: flex-start; }
.trust-item svg { flex: none; width: 22px; height: 22px; color: var(--blue-deep); margin-top: 2px; }
.trust-item b { display: block; font-size: .98rem; }
.trust-item span { font-size: .85rem; color: var(--ink-3); }

/* --- services bento (density 5: 5 cards, mixed spans) --- */
.bento { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .5rem;
}
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--blue), #BCE0F8); opacity: .85; }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: .93rem; color: var(--ink-2); max-width: none; }
.card .num { font: 700 .78rem/1 "Geist", sans-serif; color: var(--blue-deep); letter-spacing: .1em; }
@media (min-width: 700px) {
  .card.w3 { grid-column: span 3; }
  .card.w2 { grid-column: span 2; }
}

/* --- before / after slider --- */
.ba { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); user-select: none; touch-action: pan-y; }
.ba img { width: 100%; display: block; pointer-events: none; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff;
  box-shadow: 0 0 0 1px rgba(25,26,27,.25), 0 2px 14px rgba(25,26,27,.35); cursor: ew-resize;
}
.ba .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6FB8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 22px;
}
.ba .tag {
  position: absolute; top: 12px; font: 600 .74rem/1 "Geist", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(25,26,27,.75); color: #fff; padding: .42rem .7rem; border-radius: 7px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ba .tag.b { left: 12px; } .ba .tag.a { right: 12px; background: rgba(14,111,184,.9); }

/* --- gallery --- */
.gal { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 640px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.gal figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gal figure:hover img { transform: scale(1.025); }
.gal figcaption { padding: .85rem 1rem; font-size: .86rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.gal figcaption b { color: var(--ink); display: block; font-size: .95rem; margin-bottom: .1rem; }

/* --- process --- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 3px solid var(--blue); padding-top: 1rem; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font: 700 2rem/1 "Geist", sans-serif; color: rgba(24,145,227,.28); display: block; margin-bottom: .5rem; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* --- reviews --- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.2rem; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: .9rem;
}
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.quote blockquote::before { content: "\201C"; font: 700 2.4rem/0 "Geist", sans-serif; color: rgba(24,145,227,.5); margin-right: 2px; vertical-align: -8px; }
.quote figcaption { font-size: .86rem; color: var(--ink-3); margin-top: auto; }
.quote figcaption b { color: var(--ink); }

/* --- estimate form --- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-2); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font: 500 .86rem/1.2 "Geist", sans-serif; margin-bottom: .4rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 1.5px solid rgba(25,26,27,.25); border-radius: 11px;
  background: #fff; padding: .8rem 1rem; font: 400 1rem/1.4 "Geist", system-ui, sans-serif; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue-deep); }
.form-note { font-size: .84rem; color: var(--ink-3); }
.alt-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.alt-actions .btn { min-height: 48px; padding: .8rem 1.3rem; font-size: .95rem; }

/* --- footer --- */
.site-foot { background: var(--ink); color: #D9D7C7; padding: 3.2rem 0 6.5rem; }
@media (min-width: 760px) { .site-foot { padding-bottom: 3.4rem; } }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h4 { font: 600 .8rem/1 "Geist", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9EA0A3; margin: 0 0 .9rem; }
.site-foot a { color: #D9D7C7; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: .7rem; color: #fff; margin-bottom: .9rem; }
.foot-brand img { width: 42px; height: 42px; border-radius: 9px; }
.foot-brand b { font-size: 1.05rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.foot-meta { font-size: .85rem; color: #9EA0A3; max-width: 40ch; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.3rem; font-size: .8rem; color: #9EA0A3; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }

/* --- sticky mobile bar --- */
.quickbar {
  position: fixed; z-index: 55; left: 12px; right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0));
  display: none; grid-template-columns: repeat(3, 1fr);
  background: rgba(25, 26, 27, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(25,26,27,.4); overflow: hidden;
}
@media (max-width: 759.98px) { .quickbar { display: grid; } body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0)); } }
.quickbar a {
  display: flex; flex-direction: column; align-items: center; gap: .22rem;
  padding: .62rem .3rem .55rem; color: #F3F1E4; text-decoration: none;
  font: 600 .72rem/1 "Geist", sans-serif; letter-spacing: .03em;
}
.quickbar a + a { border-left: 1px solid rgba(255,255,255,.12); }
.quickbar svg { width: 20px; height: 20px; color: #6FC1F2; }
.quickbar .q-est { background: var(--blue-deep); color: #fff; }

/* --- reveal motion (progressive enhancement, motion 4) --- */
html.reveal-ready .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
html.reveal-ready .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready .rv { opacity: 1; transform: none; transition: none; }
  .gal img, .btn, .btn .arr { transition: none !important; }
}

/* --- utilities --- */
.center { text-align: center; }
.center .kicker { justify-content: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
