/* ============================================================
   Rosales Painting LLC — design tokens
   Dark navy + crisp white + one vivid working-blue accent.
   Red/gold/green survive only inside the logo artwork itself.
   ============================================================ */
:root{
  --ink:        #0b121a;   /* deep navy-black — header, hero, footer, dark sections */
  --paper:      #fcfcfc;   /* crisp white — page background */
  --card:       #eef3f8;   /* pale blue-white wash — alt-section bg */
  --line:       #dbe4ec;   /* hairline borders on paper */
  --slate:      #576073;   /* secondary text */

  --blue:       #00b2f9;   /* vivid working blue — the single accent: CTAs, links, icons */
  --blue-deep:  #0092d1;   /* hover / pressed blue */
  --blue-ink:   #0a4c66;   /* darker blue for text-on-light where vivid blue fails contrast */
  --red:        #b3352a;   /* logo-only red, used sparingly (e.g. a single tag) */
  --red-deep:   #8c2a21;
  --gold:       #c98f2b;   /* star ratings only */
  --gold-deep:  #96701e;
  --green:      #3f6b34;

  --blue-tint:      #dff1fb;  /* icon-chip / feature wash */
  --blue-tint-line: #b9e3f7;
  --gold-tint:      #f6ecd3;
  --gold-tint-line: #e8d6a4;

  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-btn: 10px;

  --shadow-1: 0 1px 2px rgba(28,36,48,.07), 0 10px 28px -14px rgba(28,36,48,.28);
}

@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior:smooth; }
}

*, *::before, *::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }

:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:2px;
  border-radius:4px;
}

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue-ink);
}
.eyebrow::before{
  content:'';
  width:22px; height:2px;
  background:var(--blue);
  display:inline-block;
}
.eyebrow.on-dark{ color:#7fd8fb; }
.eyebrow.on-dark::before{ background:#7fd8fb; }

h1{ font-size:clamp(2.3rem, 5vw, 3.9rem); line-height:1.04; }
h2{ font-size:clamp(1.85rem, 3.3vw, 2.6rem); line-height:1.1; }
h3{ font-size:clamp(1.2rem, 2vw, 1.45rem); line-height:1.25; }

.lede{ font-size:clamp(1.03rem, 1.5vw, 1.18rem); color:var(--slate); max-width:52ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.85rem 1.6rem;
  border-radius:var(--radius-btn);
  font-weight:700;
  font-size:.95rem;
  min-height:44px;
  border:2px solid transparent;
  transition:transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  cursor:pointer;
  white-space:nowrap;
}
.btn-primary{ background:var(--blue); color:#04202c; box-shadow:0 6px 18px -8px rgba(0,178,249,.55); }
.btn-primary:hover{ background:var(--blue-deep); box-shadow:0 8px 20px -6px rgba(0,146,209,.55); transform:translateY(-1px); }
.btn-primary:active{ transform:translateY(1px); box-shadow:0 3px 10px -6px rgba(0,178,249,.5); }

.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); }

.btn-dark{ background:var(--ink); color:var(--paper); }
.btn-dark:hover{ background:#000; }

.btn-blue{ background:var(--blue); color:#fff; }
.btn-blue:hover{ background:var(--blue-deep); }

.btn-wide{ width:100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(252,252,252,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  gap:.5rem;
  padding-block:.7rem;
}
.brand{ display:flex; align-items:center; gap:.65rem; min-width:0; flex-shrink:1; }
.brand-mark-photo{ height:56px; width:auto; flex-shrink:0; display:flex; align-items:center; }
.brand-mark-photo img{ height:100%; width:auto; display:block; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; min-width:0; }
.brand-text strong{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.05rem;
  letter-spacing:-.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  color:var(--ink);
}
.brand-text span{
  font-size:.63rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue-ink); font-weight:700;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

@media (max-width:479px){
  .brand-mark-photo{ height:42px; }
  .brand-text span{ display:none; }
  .brand-text strong{ font-size:.88rem; }
  .header-actions{ gap:.4rem; }
  .header-actions .btn-primary{ padding-inline:1rem; font-size:.82rem; }
}

@media (min-width:480px){
  .brand-mark-photo{ height:66px; }
  .brand-text strong{ font-size:1.22rem; }
  .brand-text span{ font-size:.68rem; }
}

.nav{ display:none; gap:1.5rem; }
.nav a{ font-size:.92rem; font-weight:600; color:var(--slate); transition:color .15s ease; }
.nav a:hover, .nav a[aria-current]{ color:var(--ink); }

.header-actions{ display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
.header-phone{ display:none; }

.nav-toggle{
  width:44px; height:44px; border-radius:10px; border:1px solid var(--line);
  background:transparent; display:inline-flex; flex-direction:column;
  align-items:center; justify-content:center; gap:4px; cursor:pointer;
}
.nav-toggle span{ width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{ display:none; border-bottom:1px solid var(--line); background:var(--paper); }
.mobile-menu.is-open{ display:block; }
.mobile-menu nav{ display:flex; flex-direction:column; padding:.5rem clamp(1.25rem,4vw,2.5rem) 1.25rem; }
.mobile-menu a{ padding:.85rem 0; border-bottom:1px solid var(--line); font-weight:600; }
.mobile-menu .btn{ margin-top:1rem; }

@media (min-width:900px){
  .nav{ display:flex; }
  .header-phone{ display:inline-flex; }
  .nav-toggle{ display:none; }
  .mobile-menu{ display:none !important; }
}

/* ============================================================
   Photo system — graceful fallback while an image loads
   ============================================================ */
.photo{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px),
    linear-gradient(150deg, var(--blue-deep), var(--ink) 72%);
  isolation:isolate;
}
.photo img{ width:100%; height:100%; object-fit:cover; position:relative; z-index:1; }
.photo::after{
  content: attr(data-caption);
  position:absolute; inset:auto 0 0 0; z-index:2;
  padding:.7rem .9rem .6rem;
  font-size:.72rem; font-weight:600; letter-spacing:.03em;
  color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.62), transparent);
}
.photo:not([data-caption])::after{ content:none; }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position:relative;
  min-height:min(64vh, 640px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 62%;
  z-index:0;
  animation:hero-zoom 22s ease-out forwards;
  will-change:transform;
}
@keyframes hero-zoom{
  from{ transform:scale(1.08); }
  to{ transform:scale(1); }
}
.hero::before{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(13,17,23,.92) 4%, rgba(16,21,28,.56) 44%, rgba(16,21,28,.18) 74%);
  z-index:1;
}
@media (min-width:700px){
  .hero{ min-height:min(82vh, 720px); }
}
.hero-copy{
  position:relative; z-index:2;
  width:100%;
  padding-block: clamp(2.5rem, 8vw, 3.5rem);
  color:#fff;
  max-width:44rem;
  animation:hero-rise .9s cubic-bezier(.22,.68,.36,1) both;
}
@keyframes hero-rise{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (min-width:700px){
  .hero-copy{ padding-block: clamp(4rem, 14vw, 7rem) clamp(2.5rem, 6vw, 3.5rem); }
}
.hero-copy .eyebrow{ color:#7fd8fb; }
.hero-copy .eyebrow::before{ background:#7fd8fb; }
.hero-copy h1{
  margin-top:.75rem; color:#fff;
  text-wrap:balance;
  text-shadow:0 2px 20px rgba(0,0,0,.25);
}
.hero-copy .lede{ margin-top:1.1rem; color:#e4e6ea; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:.85rem; margin-top:2rem; }
.hero-copy .btn-ghost{ border-color:rgba(255,255,255,.55); color:#fff; }
.hero-copy .btn-ghost:hover{ border-color:#fff; }
.hero-assurances{
  display:flex; flex-wrap:wrap; gap:1.1rem 1.6rem;
  margin-top:1.75rem; padding-top:1.4rem;
  border-top:1px solid rgba(255,255,255,.25);
}
.hero-assurances li{ display:flex; align-items:center; gap:.5rem; font-size:.85rem; font-weight:600; color:#e4e6ea; }
.hero-assurances svg{ width:18px; height:18px; color:#7fd8fb; flex-shrink:0; }

/* ============================================================
   Signature strip — kitchen cabinet compare, right under the hero
   ============================================================ */
.signature-strip{ padding-block:clamp(2.5rem, 6vw, 4rem); }
.signature-grid{ display:grid; gap:2rem; align-items:center; }
.signature-copy .lede{ margin-top:.8rem; }
@media (min-width:900px){
  .signature-grid{ grid-template-columns:1fr 1.1fr; }
}
.signature-visual .compare-caption{ margin-top:.75rem; font-size:.85rem; color:var(--slate); }

/* ============================================================
   Before / after compare slider
   ============================================================ */
.compare{
  --pos:50%;
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-1);
  background:linear-gradient(150deg, var(--blue-deep), var(--ink) 72%);
}
.compare-media{ position:absolute; inset:0; cursor:ew-resize; touch-action:none; }
.compare-after, .compare-before{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 38%;
}
.compare-before-wrap{ position:absolute; inset:0; clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle{
  position:absolute; top:0; bottom:0; left:var(--pos); width:3px;
  background:#fff; transform:translateX(-1.5px);
  box-shadow:0 0 0 1px rgba(0,0,0,.15);
  pointer-events:none;
}
.compare-handle::after{
  content:''; position:absolute; top:50%; left:50%;
  width:42px; height:42px; border-radius:50%; background:#fff;
  transform:translate(-50%,-50%); box-shadow:0 4px 14px rgba(0,0,0,.25);
}
.compare-handle::before{
  content:'↔'; position:absolute; top:50%; left:50%;
  transform:translate(-50%,-56%); z-index:1;
  font-size:1.1rem; color:var(--ink); font-weight:700;
}
.compare-range{
  position:absolute; inset:0; width:100%; height:100%; margin:0;
  opacity:0; pointer-events:none; -webkit-appearance:none; appearance:none;
}
.compare-tag{
  position:absolute; top:.9rem; z-index:3;
  padding:.32rem .75rem; border-radius:999px;
  font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:#fff; background:rgba(28,36,48,.58); backdrop-filter:blur(4px);
  pointer-events:none;
}
.compare-tag-before{ left:.9rem; }
.compare-tag-after{ right:.9rem; background:rgba(0,146,209,.85); }

/* ============================================================
   Sections
   ============================================================ */
.section{ padding-block:clamp(3rem, 7vw, 5.5rem); }
.section-head{ display:flex; flex-direction:column; gap:.75rem; max-width:60ch; margin-bottom:clamp(2rem, 4vw, 3rem); }
.section-alt{ background:var(--card); }
.section-blue{ background:var(--blue-tint); }
.section-blue .lede{ color:#3d4a58; }
.section-gold{ background:var(--gold-tint); }
.section-gold .lede{ color:#5a4d33; }
.section-dark{ background:var(--ink); color:var(--paper); }
.section-dark .eyebrow{ color:#7fd8fb; }
.section-dark .eyebrow::before{ background:#7fd8fb; }
.section-dark .lede{ color:#c7ccd3; }

/* ============================================================
   Services
   ============================================================ */
.services-featured{ display:grid; gap:1.25rem; margin-bottom:1.25rem; }
@media (min-width:860px){ .services-featured{ grid-template-columns:1.3fr 1fr; } }
.feature-card{
  position:relative; border-radius:var(--radius); overflow:hidden;
  background:var(--ink); color:var(--paper);
  display:flex; flex-direction:column; justify-content:flex-end;
  min-height:340px; box-shadow:var(--shadow-1);
}
.feature-card .photo{ position:absolute; inset:0; border-radius:0; }
.feature-card .photo::after{ content:none; }
.feature-card::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(11,15,18,.92) 10%, rgba(11,15,18,.35) 55%, rgba(11,15,18,.15));
  z-index:1;
}
.feature-body{ position:relative; z-index:2; padding:1.75rem; }
.feature-tag{
  display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink); background:var(--paper); padding:.3rem .65rem; border-radius:999px; margin-bottom:.85rem;
}
.feature-card.card-deck .feature-tag{ background:var(--blue-tint); }
.feature-body h3{ font-size:clamp(1.35rem,2.3vw,1.85rem); margin-bottom:.5rem; color:#fff; }
.feature-body p{ color:#dfe2e6; max-width:44ch; font-size:.95rem; }
.feature-body .btn{ margin-top:1.1rem; }

.services-grid{ display:grid; gap:.85rem; grid-template-columns:repeat(2,1fr); }
@media (min-width:640px){ .services-grid{ gap:1.1rem; grid-template-columns:repeat(3,1fr); } }
.service-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:1.1rem; display:flex; flex-direction:column; gap:.55rem;
}
.service-card .icon{
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border-radius:10px; background:var(--blue-tint); color:var(--blue-ink);
}
.service-card .icon svg{ width:19px; height:19px; }
.service-card .icon-red{ background:#f3ddd9; color:var(--red); }
.service-card .icon-blue{ background:var(--blue-tint); color:var(--blue-ink); }
.service-card .icon-gold{ background:var(--gold-tint); color:var(--gold-deep); }
.service-card .icon-green{ background:#dfe9d8; color:var(--green); }
.service-card h4{ font-family:var(--font-display); font-weight:600; font-size:.98rem; line-height:1.25; }
.service-card p{ color:var(--slate); font-size:.82rem; line-height:1.45; }

@media (min-width:640px){
  .service-card{ padding:1.5rem; gap:.7rem; }
  .service-card .icon{ width:40px; height:40px; }
  .service-card .icon svg{ width:22px; height:22px; }
  .service-card h4{ font-size:1.1rem; }
  .service-card p{ font-size:.9rem; }
}

/* ============================================================
   Compare showcase (two-up, before/after section)
   ============================================================ */
.showcase-grid{ display:grid; gap:2rem; }
@media (min-width:760px){ .showcase-grid{ grid-template-columns:1fr 1fr; } }
.showcase-item{ display:flex; flex-direction:column; gap:1rem; }
.showcase-item h3{ font-size:1.25rem; }
.showcase-item p{ color:var(--slate); font-size:.92rem; }
.showcase-caption{ font-size:.85rem; color:var(--slate); }

/* ============================================================
   Gallery strip
   ============================================================ */
.gallery-grid{ display:grid; gap:1rem; grid-template-columns:repeat(2,1fr); }
@media (min-width:720px){ .gallery-grid{ grid-template-columns:repeat(3,1fr); } }
.gallery-grid .photo{ aspect-ratio:4/5; }
.gallery-grid .photo.wide{ aspect-ratio:4/3; }
@media (min-width:720px){ .gallery-grid .span-2{ grid-column:span 2; } }

/* ============================================================
   Process
   ============================================================ */
.process-grid{ display:grid; gap:1.75rem; grid-template-columns:1fr; }
@media (min-width:760px){ .process-grid{ grid-template-columns:repeat(4,1fr); } }
.process-step{ position:relative; padding-top:.25rem; }
.process-num{
  font-family:var(--font-display); font-size:2.2rem; opacity:.6;
  line-height:1; display:block; margin-bottom:.6rem;
}
.process-step:nth-child(odd) .process-num{ color:var(--blue); }
.process-step:nth-child(even) .process-num{ color:var(--blue-ink); }
.process-step h4{ font-size:1.05rem; margin-bottom:.4rem; font-weight:600; }
.process-step p{ font-size:.9rem; color:var(--slate); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-carousel{ position:relative; }
.testimonial-track{ position:relative; }
.testimonial-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:1.75rem; display:flex; flex-direction:column; gap:1rem;
}
.testimonial-stars{ display:flex; gap:.2rem; color:var(--gold); }
.testimonial-stars svg{ width:18px; height:18px; }
.testimonial-quote{ font-size:1.02rem; color:var(--ink); line-height:1.6; }
.testimonial-name{ font-weight:700; font-size:.9rem; }
.testimonial-source{ font-size:.8rem; color:var(--slate); }

.carousel-dots{ display:none; }

/* Mobile: one review at a time, new card swooshes in from the left */
@media (max-width:719px){
  .testimonial-track{ min-height:0; }
  .testimonial-card{ display:none; }
  .testimonial-card.is-active{
    display:flex;
    animation:testimonial-swoosh 1.4s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes testimonial-swoosh{
    from{ opacity:0; transform:translateX(-36px); }
    to{ opacity:1; transform:translateX(0); }
  }
  .carousel-dots{
    display:flex; justify-content:center; gap:.5rem; margin-top:1.25rem;
  }
  .carousel-dots .dot{
    width:9px; height:9px; border-radius:50%; border:none; padding:0;
    background:var(--line); cursor:pointer;
  }
  .carousel-dots .dot.is-active{ background:var(--blue); }
}

@media (min-width:720px){
  .testimonial-track{ display:grid; gap:1.25rem; grid-template-columns:repeat(2,1fr); }
}

/* ============================================================
   Area / trust
   ============================================================ */
.area-grid{ display:grid; gap:2.5rem; }
@media (min-width:900px){ .area-grid{ grid-template-columns:1fr 1fr; } }
.area-list{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.2rem; }
.area-list li{
  font-size:.85rem; font-weight:600; padding:.45rem .85rem;
  border:1px solid var(--line); border-radius:var(--radius-btn); color:var(--ink);
  background:#fff;
}
.area-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.75rem; }
.area-card ul{ display:flex; flex-direction:column; gap:.9rem; margin-top:1rem; }
.area-card li{ display:flex; gap:.7rem; font-size:.92rem; color:var(--slate); }
.area-card svg{ width:20px; height:20px; color:var(--blue); flex-shrink:0; margin-top:2px; }

/* ============================================================
   Final CTA
   ============================================================ */
.cta-band{ text-align:left; display:flex; flex-direction:column; gap:1.5rem; }
@media (min-width:800px){ .cta-band{ flex-direction:row; align-items:center; justify-content:space-between; } }
.cta-band h2{ color:#fff; }
.cta-band .lede{ color:#c7ccd3; margin-top:.6rem; }
.cta-actions{ display:flex; flex-wrap:wrap; gap:.75rem; flex-shrink:0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{ background:var(--ink); color:#c7ccd3; padding-block:2.75rem 1.75rem; }
.footer-grid{ display:grid; gap:2.25rem; grid-template-columns:1fr; }
@media (min-width:760px){ .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; } }
.footer-brand{ display:flex; flex-direction:column; align-items:flex-start; gap:.9rem; }
.footer-logo-badge{ width:min(110px, 32vw); }
.footer-logo-badge img{ width:100%; height:auto; display:block; }
.footer-tagline{ margin-top:.85rem; font-size:.88rem; max-width:32ch; color:#9aa0aa; }
.footer-col h5{ font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#7fd8fb; margin-bottom:.9rem; }
.footer-col a, .footer-col span{ display:block; font-size:.9rem; margin-bottom:.55rem; color:#c7ccd3; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid #2b323d;
  display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; justify-content:space-between;
  font-size:.8rem; color:#7d838d;
}

/* ============================================================
   Quote page
   ============================================================ */
.quote-hero{ padding-block:clamp(2.5rem,6vw,3.5rem) 1.5rem; }
.quote-grid{ display:grid; gap:2.5rem; align-items:start; }
@media (min-width:960px){ .quote-grid{ grid-template-columns:1.2fr .8fr; } }
.quote-form{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(1.5rem, 3vw, 2.25rem); display:flex; flex-direction:column; gap:1.25rem;
}
.form-row label, fieldset legend{ display:block; font-weight:600; font-size:.88rem; margin-bottom:.5rem; }
.req{ color:var(--red-deep); }
fieldset{ border:0; padding:0; margin:0; }
.form-row-split{ display:grid; gap:1rem; grid-template-columns:1fr; }
@media (min-width:520px){ .form-row-split{ grid-template-columns:1fr 1fr; } }
input[type=text], input[type=tel], input[type=email], textarea, select{
  width:100%; font:inherit; padding:.75rem .9rem; border:1px solid var(--line);
  border-radius:var(--radius-sm); background:var(--paper); color:var(--ink); min-height:44px;
}
textarea{ min-height:120px; resize:vertical; }
input:focus, textarea:focus, select:focus{ outline:3px solid var(--blue); outline-offset:1px; border-color:var(--blue); }

.check-group, .radio-group{ display:flex; flex-wrap:wrap; gap:.6rem; }
.check-pill, .radio-pill{
  position:relative; display:inline-flex; align-items:center;
  padding:.6rem 1rem; border:1px solid var(--line); border-radius:var(--radius-btn);
  font-size:.85rem; font-weight:600; cursor:pointer; background:var(--paper);
  transition:border-color .15s ease, background .15s ease; min-height:44px;
}
.check-pill input, .radio-pill input{ position:absolute; inset:0; opacity:0; cursor:pointer; margin:0; }
.check-pill:has(input:checked), .radio-pill:has(input:checked){ background:var(--blue); border-color:var(--blue); color:#fff; }
.check-pill input:focus-visible, .radio-pill input:focus-visible{ outline:3px solid var(--ink); outline-offset:2px; border-radius:var(--radius-btn); }

.quote-submit{ margin-top:.25rem; }
.form-note{ font-size:.85rem; color:var(--slate); }
.form-note a{ color:var(--blue-deep); font-weight:600; }

.quote-aside{ display:flex; flex-direction:column; gap:1.25rem; }
.quote-aside .photo{ aspect-ratio:4/3; }
.quote-aside-card{ background:var(--card); border-radius:var(--radius); padding:1.5rem; }
.quote-steps{ margin-top:1rem; display:flex; flex-direction:column; gap:1rem; counter-reset:qstep; list-style:none; }
.quote-steps li{ display:flex; gap:.85rem; font-size:.9rem; color:var(--slate); }
.quote-steps li::before{
  counter-increment:qstep; content:counter(qstep); flex-shrink:0;
  width:26px; height:26px; border-radius:50%; background:var(--blue); color:#04202c;
  font-weight:700; font-size:.8rem; display:flex; align-items:center; justify-content:center;
}
.quote-steps strong{ color:var(--ink); }

.contact-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem; display:flex; flex-direction:column; gap:1rem; }
.contact-row{ display:flex; gap:.85rem; align-items:flex-start; }
.contact-row svg{ width:22px; height:22px; color:var(--blue); flex-shrink:0; margin-top:2px; }
.contact-row strong{ display:block; font-size:.85rem; }
.contact-row a, .contact-row span{ font-size:.9rem; color:var(--slate); }

.thank-you-banner{ background:var(--blue-deep); color:#fff; padding-block:2rem; text-align:center; }
.thank-you-banner h2{ color:#fff; }
.thank-you-banner a{ color:#fff; text-decoration:underline; }
.thank-you-banner p{ margin-top:.5rem; color:#cfd9e6; }

/* ============================================================
   Scroll-reveal — sections and cards rise/fade in as they enter view
   ============================================================ */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  }
  .reveal.is-visible{ opacity:1; transform:translateY(0); }
  .reveal-group > *{ transition-delay:calc(var(--reveal-i, 0) * 90ms); }
}

/* Hover-lift — cards feel tactile, not just static.
   Opacity is listed here too (not just on .reveal) so elements carrying
   both classes still get the slow reveal fade instead of the fast hover
   timing clobbering it — later rule wins when both set `transition`. */
.service-card, .testimonial-card, .area-card, .contact-card, .gallery-grid .photo, .feature-card{
  transition:transform .25s ease, box-shadow .25s ease, opacity .8s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover, .testimonial-card:hover, .area-card:hover, .contact-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-1);
}
.gallery-grid .photo:hover, .feature-card:hover{
  transform:translateY(-3px);
}

/* ============================================================
   Utility
   ============================================================ */
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--ink); color:#fff;
  padding:.75rem 1.25rem; border-radius:0 0 8px 0; z-index:100;
}
.skip-link:focus{ left:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
