/* ============================================================
   Pierre Carpet Cleaning — design system
   Palette pulled directly from the logo artwork.
   ============================================================ */

:root{
  /* Brand */
  --gold:#EAB94F;  --gold-deep:#D9A335;  --gold-soft:#F7E4B4;
  --mint:#76C6BA;  --mint-deep:#4FA89A;  --mint-soft:#DCF0EC;  --teal-text:#27695D;
  --rose:#C8908B;  --rose-soft:#F0DEDC;
  --ink:#000000;   --gray:#515557;

  /* Surfaces */
  --cream:#FBF7EF;  --paper:#FFFFFF;  --line:rgba(0,0,0,.14);

  /* Type */
  --display:'Archivo',system-ui,sans-serif;
  --body:'Karla',system-ui,sans-serif;

  /* Retro hard shadow */
  --pop:4px 4px 0 var(--ink);
  --pop-sm:3px 3px 0 var(--ink);
  --radius:14px;

  --wrap:1140px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:var(--body); font-size:17px; line-height:1.65;
  overflow-x:hidden;
}
img,svg{max-width:100%;height:auto;display:block}

h1,h2,h3,h4{font-family:var(--display);font-weight:800;line-height:1.05;margin:0 0 .5em;letter-spacing:-.02em;text-wrap:balance}
h1{font-size:clamp(2.4rem,6vw,4.2rem)}
h2{font-size:clamp(1.9rem,4vw,2.9rem)}
h3{font-size:clamp(1.2rem,2.4vw,1.5rem)}
p{margin:0 0 1.1em;text-wrap:pretty}
a{color:inherit}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 22px}
.section{padding:clamp(56px,8vw,104px) 0}
.center{text-align:center}
.muted{color:var(--gray)}
.eyebrow{
  font-family:var(--display);font-weight:700;font-size:.8rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--teal-text);
  margin:0 0 .8em;
}

/* ---- Buttons ------------------------------------------------ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--display);font-weight:800;font-size:1rem;
  letter-spacing:.01em; padding:15px 30px; border-radius:var(--radius);
  border:2.5px solid var(--ink); background:var(--gold); color:var(--ink);
  text-decoration:none; cursor:pointer; box-shadow:var(--pop);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink);background:var(--gold-deep)}
.btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.btn:focus-visible{outline:3px solid var(--mint-deep);outline-offset:3px}
.btn--mint{background:var(--mint)}
.btn--mint:hover{background:var(--mint-deep)}
.btn--ghost{background:var(--paper)}
.btn--ghost:hover{background:var(--gold-soft)}
.btn--lg{font-size:1.12rem;padding:18px 38px}
.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none;box-shadow:var(--pop)}

/* ---- Cards -------------------------------------------------- */
.card{
  background:var(--paper);border:2.5px solid var(--ink);
  border-radius:var(--radius);box-shadow:var(--pop);padding:26px;
}
.card--flat{box-shadow:none}

/* ---- Header ------------------------------------------------- */
.site-header{
  position:sticky;top:0;z-index:60;background:var(--cream);
  border-bottom:2.5px solid var(--ink);
}
.site-header__in{display:flex;align-items:center;justify-content:center;gap:26px;padding:14px 22px 16px;max-width:var(--wrap);margin:0 auto}
.site-header__nav{display:flex;align-items:center;justify-content:center;gap:26px}

/* hamburger (mobile only) */
.site-header__burger{
  display:none;width:46px;height:46px;flex-direction:column;align-items:center;
  justify-content:center;gap:5px;background:var(--paper);border:2.5px solid var(--ink);
  border-radius:12px;cursor:pointer;box-shadow:var(--pop-sm);flex-shrink:0;padding:0;
}
.site-header__burger span{
  display:block;width:20px;height:3px;background:var(--ink);border-radius:2px;
  transition:transform .18s ease, opacity .18s ease;
}
.site-header__burger.is-open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.site-header__burger.is-open span:nth-child(2){opacity:0}
.site-header__burger.is-open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.site-header__burger:focus-visible{outline:3px solid var(--mint-deep);outline-offset:2px}
.site-header__nav a{
  font-family:var(--display);font-weight:700;font-size:.95rem;
  text-decoration:none;padding:4px 0;border-bottom:2.5px solid transparent;
}
.site-header__nav a:hover{border-bottom-color:var(--gold)}
.site-header__phone{font-family:var(--display);font-weight:800;white-space:nowrap;text-decoration:none}
.site-header__cta{padding:11px 20px;font-size:.92rem;box-shadow:var(--pop-sm);white-space:nowrap}
@media (max-width:640px){
  .site-header__in{justify-content:space-between;gap:14px}
  .site-header__burger{display:flex}
  .site-header__nav{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--cream);border-bottom:2.5px solid var(--ink);
    flex-direction:column;align-items:stretch;gap:0;padding:6px 0 10px;
    box-shadow:0 8px 16px rgba(0,0,0,.12);
  }
  .site-header__nav.is-open{display:flex}
  .site-header__nav a{padding:13px 22px;text-align:center;border-bottom:2.5px solid transparent}
  .site-header__nav a:hover{border-bottom-color:transparent;background:var(--gold-soft)}
}

/* ---- Hero --------------------------------------------------- */
.hero{position:relative;overflow:hidden;background:var(--mint-soft);border-bottom:2.5px solid var(--ink)}
.hero__in{
  max-width:var(--wrap);margin:0 auto;padding:clamp(48px,7vw,86px) 22px;
  display:grid;grid-template-columns:1.15fr .85fr;gap:52px;align-items:center;
}
.hero__logo{max-width:420px;width:100%;filter:drop-shadow(6px 6px 0 rgba(0,0,0,.13))}
.hero h1{margin-bottom:.35em}
.hero__sub{font-size:clamp(1.05rem,2vw,1.3rem);max-width:34ch;margin-bottom:1.6em}
.hero__cta{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.hero__note{font-size:.95rem;color:var(--gray);margin:1.4em 0 0}
@media (max-width:900px){
  .hero__in{grid-template-columns:1fr;gap:30px;text-align:center}
  .hero__in > div:last-child{order:-1}
  .hero__sub{margin-left:auto;margin-right:auto}
  .hero__cta{justify-content:center}
  .hero__logo{margin:0 auto;max-width:250px}
}

/* Diamond motif echoing the logo's background field */
.diamonds{
  position:absolute;inset:auto 0 -14px 0;height:56px;
  background:repeating-linear-gradient(135deg,var(--mint) 0 22px,transparent 22px 44px);
  opacity:.35;pointer-events:none;
}

/* ---- Sparkle (from the logo) -------------------------------- */
.sparkle{position:absolute;width:26px;height:26px;pointer-events:none;opacity:.85}

/* ---- Trust strip -------------------------------------------- */
.strip{background:var(--gold);border-bottom:2.5px solid var(--ink);padding:15px 0}
.strip__in{
  display:flex;flex-wrap:wrap;justify-content:center;gap:14px 40px;
  font-family:var(--display);font-weight:700;font-size:.95rem;
}
.strip__in span{display:flex;align-items:center;gap:.45em}

/* ---- Service cards ------------------------------------------ */
.grid{display:grid;gap:24px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--2{grid-template-columns:repeat(2,1fr)}
@media (max-width:860px){.grid--3,.grid--2{grid-template-columns:1fr}}

.service__price{
  font-family:var(--display);font-weight:800;font-size:1.7rem;
  margin:.1em 0 .35em;
}
.service__unit{font-size:.88rem;font-weight:600;color:var(--gray);letter-spacing:.02em}
.service__icon{
  width:52px;height:52px;border-radius:50%;background:var(--mint-soft);
  border:2.5px solid var(--ink);display:grid;place-items:center;margin-bottom:14px;
  font-size:1.4rem;
}

/* ---- Footer ------------------------------------------------- */
.site-footer{background:var(--ink);color:var(--cream);padding:56px 0 30px}
.site-footer a{color:var(--gold)}
.site-footer .btn{color:#fff;background:var(--teal-text);border-color:#fff}
.site-footer .btn:hover{background:#1E574C}
.site-footer h4{font-family:var(--display);color:var(--paper);margin-bottom:.6em}
.site-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}
.site-footer__bottom{
  border-top:1px solid rgba(255,255,255,.25);margin-top:36px;padding-top:20px;
  font-size:.9rem;color:rgba(255,255,255,.8);
}
@media (max-width:800px){.site-footer__grid{grid-template-columns:1fr;gap:26px}}

/* ---- TODO badge (dev only, for unfilled config) ------------- */
.todo{
  display:inline-block;background:var(--rose-soft);border:2px dashed var(--rose);
  border-radius:8px;padding:1px 8px;font-size:.8rem;font-family:var(--display);
  font-weight:700;color:#8B4A44;
}

/* ---- Form fields (shared) ----------------------------------- */
.field{display:flex;flex-direction:column;gap:5px}
.field label,.label{
  font-family:var(--display);font-weight:700;font-size:.85rem;
  letter-spacing:.05em;text-transform:uppercase;color:var(--gray);
}
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=date],input[type=search],input[type=password],select,textarea{
  font-family:var(--body);font-size:1rem;color:var(--ink);
  padding:11px 13px;border:2.5px solid var(--ink);border-radius:10px;
  background:var(--paper);width:100%;
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--mint-deep);box-shadow:0 0 0 3px var(--mint-soft);
}
input[aria-invalid=true],select[aria-invalid=true]{border-color:#B4453D;background:#FDF3F2}
textarea{min-height:88px;resize:vertical}
.field-error{color:#B4453D;font-size:.85rem;font-weight:600;min-height:1.1em}
.is-hidden{display:none !important}

/* ---- Popup modal (installation quote) ----------------------- */
.modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px}
.modal__scrim{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.modal__card{
  position:relative;width:100%;max-width:430px;background:var(--paper);
  border:2.5px solid var(--ink);border-radius:var(--radius);
  box-shadow:var(--pop);padding:28px;
}
.modal__close{
  position:absolute;top:14px;right:14px;width:36px;height:36px;
  border:2px solid var(--ink);border-radius:9px;background:var(--paper);
  font-size:1.2rem;line-height:1;cursor:pointer;font-family:var(--display);
}
.modal__close:hover{background:var(--rose-soft)}

.success__mark{
  width:84px;height:84px;margin:0 auto 22px;border-radius:50%;
  background:var(--mint);border:2.5px solid var(--ink);box-shadow:var(--pop);
  display:grid;place-items:center;font-size:2.4rem;
}
