/* ==========================================================================
   QC Carpet Cleaning Pembrokeshire
   Brand palette taken from the logo: royal blue, navy, silver-grey.
   ========================================================================== */

:root{
  --navy:#0B2545;
  --navy-2:#123259;
  --blue:#1B4F9C;
  --blue-bright:#2E7DD7;
  --blue-tint:#EAF1FA;
  --grey:#5A6572;
  --grey-light:#8A95A3;
  --line:#DDE4ED;
  --bg:#FFFFFF;
  --bg-alt:#F5F8FC;
  --ink:#152234;
  --accent:#F0A22E;
  --accent-dark:#D4881A;
  --ok:#1B8F5A;

  --wrap:1180px;
  --radius:14px;
  --radius-lg:20px;
  --shadow:0 2px 4px rgba(11,37,69,.06), 0 12px 28px rgba(11,37,69,.08);
  --shadow-lg:0 8px 20px rgba(11,37,69,.10), 0 24px 60px rgba(11,37,69,.14);
  --font:'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:88px}
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block}
a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.12; margin:0 0 .5em; color:var(--navy); font-weight:800; letter-spacing:-.015em}
h1{font-size:clamp(2.4rem,6vw,4.1rem)}
h2{font-size:clamp(1.8rem,3.6vw,2.6rem)}
h3{font-size:1.22rem}
p{margin:0 0 1em}

.wrap{width:100%; max-width:var(--wrap); margin:0 auto; padding:0 20px}
.wrap.narrow{max-width:820px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--navy); color:#fff; padding:12px 18px; border-radius:0 0 8px 0;
}
.skip-link:focus{left:0}

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

/* ------------------------------------------------------------ buttons -- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  font:inherit; font-weight:700; letter-spacing:.01em;
  padding:.78em 1.5em; border-radius:999px; border:2px solid transparent;
  cursor:pointer; text-align:center; text-decoration:none!important;
  transition:transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-accent{background:var(--accent); color:#22160A; box-shadow:0 6px 16px rgba(240,162,46,.32)}
.btn-accent:hover{background:var(--accent-dark)}
.btn-primary{background:var(--blue); color:#fff}
.btn-primary:hover{background:var(--navy-2)}
.btn-ghost{background:rgba(255,255,255,.10); color:#fff; border-color:rgba(255,255,255,.55); backdrop-filter:blur(4px)}
.btn-ghost:hover{background:rgba(255,255,255,.20)}
.btn-outline{background:#fff; color:var(--blue); border-color:var(--line)}
.btn-outline:hover{border-color:var(--blue); background:var(--blue-tint)}
.btn-quiet{background:transparent; color:var(--grey); font-weight:600; padding:.5em 1em}
.btn-quiet:hover{color:var(--navy)}
.btn-big{font-size:1.06rem; padding:.9em 1.8em}
.btn-block{width:100%}
.btn .ic{width:1.15em; height:1.15em; flex:none}

/* ------------------------------------------------------------- header -- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.94); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex; align-items:center; gap:24px; min-height:74px}
.brand{display:flex; align-items:center; flex:none}
.brand img{width:auto; height:62px}
.site-nav{display:flex; gap:26px; margin-left:auto; font-weight:600}
.site-nav a{color:var(--navy); font-size:.98rem}
.site-nav a:hover{color:var(--blue-bright); text-decoration:none}
.header-cta{display:flex; gap:10px; flex:none}
.header-cta .btn{font-size:.95rem; padding:.6em 1.15em}

/* --------------------------------------------------------------- hero -- */
.hero{position:relative; isolation:isolate; color:#fff; overflow:hidden}
.hero-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2;
}
.hero::after{
  content:''; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(105deg, rgba(9,30,58,.94) 0%, rgba(11,37,69,.86) 42%, rgba(11,37,69,.42) 100%);
}
.hero-inner{padding:clamp(64px,9vw,120px) 20px clamp(56px,7vw,96px); max-width:var(--wrap)}
.eyebrow{
  display:inline-block; margin:0 0 18px; padding:.35em 1em;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28);
  border-radius:999px; font-size:.85rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase;
}
.hero h1{color:#fff; max-width:16ch; text-shadow:0 2px 24px rgba(0,0,0,.25)}
.hero h1 em{font-style:normal; color:#7FBFF5}
.lede{max-width:52ch; font-size:1.13rem; color:rgba(255,255,255,.90); margin-bottom:1.8em}
.hero-ctas{display:flex; flex-wrap:wrap; gap:14px}
.hero-points{
  display:flex; flex-wrap:wrap; gap:10px 30px;
  list-style:none; margin:34px 0 0; padding:0;
  font-size:.98rem; color:rgba(255,255,255,.86);
}
.hero-points li{position:relative; padding-left:24px}
.hero-points li::before{
  content:''; position:absolute; left:0; top:.55em;
  width:11px; height:11px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 4px rgba(240,162,46,.24);
}
.hero-points strong{color:#fff}

/* -------------------------------------------------------------- trust -- */
.trust{background:var(--navy); color:#fff; padding:20px 0}
.trust-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.trust-item{display:flex; align-items:center; gap:10px; font-weight:600; font-size:.97rem}
.tick{
  flex:none; width:22px; height:22px; border-radius:50%; background:var(--ok);
  position:relative;
}
.tick::after{
  content:''; position:absolute; left:7px; top:4px; width:6px; height:11px;
  border:solid #fff; border-width:0 2.5px 2.5px 0; transform:rotate(42deg);
}

/* ----------------------------------------------------------- sections -- */
.section{padding:clamp(56px,7vw,96px) 0}
.section-alt{background:var(--bg-alt)}
.section-dark{background:var(--navy); color:rgba(255,255,255,.86)}
.section-dark h2,.section-dark h3,.section-dark h4{color:#fff}
.section-dark .kicker{color:#7FBFF5}
.section-dark .section-lede{color:rgba(255,255,255,.80)}

.kicker{
  margin:0 0 10px; font-size:.82rem; font-weight:800;
  letter-spacing:.14em; text-transform:uppercase; color:var(--blue-bright);
}
.section-lede{max-width:58ch; font-size:1.06rem; color:var(--grey); margin-bottom:2.2em}
.section-dark .section-lede{color:rgba(255,255,255,.78)}

/* -------------------------------------------------------------- cards -- */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:26px}
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column;
}
.card:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
.card img{aspect-ratio:16/10; object-fit:cover; width:100%}
.card-body{padding:22px 24px 26px; display:flex; flex-direction:column; flex:1}
.card-body p{color:var(--grey); font-size:.98rem}
.card-price{
  margin:auto 0 0; padding-top:14px; border-top:1px solid var(--line);
  color:var(--navy)!important; font-weight:600; font-size:1rem!important;
}
.card-price strong{color:var(--blue); font-size:1.18rem}

/* --------------------------------------------------------- calculator -- */
.calc{display:grid; grid-template-columns:1fr 360px; gap:32px; align-items:start}

.calc-inputs{display:flex; flex-direction:column; gap:20px}
.calc-group{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:8px 24px 22px; margin:0; box-shadow:var(--shadow);
}
.calc-group legend{
  padding:0 10px; margin-left:-10px;
  font-weight:800; font-size:.86rem; letter-spacing:.13em;
  text-transform:uppercase; color:var(--blue-bright);
}

.row{
  display:grid; grid-template-columns:1fr auto auto; align-items:center;
  gap:18px; padding:16px 0; border-bottom:1px solid var(--line);
}
.row:last-of-type{border-bottom:0; padding-bottom:6px}
.row-text{display:flex; flex-direction:column; min-width:0}
.row-name{font-weight:700; color:var(--navy); line-height:1.3}
.row-note{font-size:.88rem; color:var(--grey-light); line-height:1.4}
.row-price{font-weight:700; color:var(--blue); white-space:nowrap; font-size:1.02rem}

.stepper{
  display:flex; align-items:center; border:1.5px solid var(--line);
  border-radius:999px; background:#fff; overflow:hidden;
}
.stepper .step{
  width:40px; height:40px; border:0; background:transparent; cursor:pointer;
  font-size:1.35rem; line-height:1; color:var(--blue); font-weight:700;
  display:flex; align-items:center; justify-content:center;
  transition:background-color .12s ease;
}
.stepper .step:hover{background:var(--blue-tint)}
.stepper .step:disabled{color:var(--line); cursor:not-allowed; background:transparent}
.stepper input{
  width:46px; height:40px; border:0; text-align:center;
  font:inherit; font-weight:800; color:var(--navy); font-size:1.05rem;
  background:transparent; -moz-appearance:textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0}
.stepper.is-active{border-color:var(--blue); background:var(--blue-tint)}

.addon{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px;
  padding:16px 0; border-bottom:1px solid var(--line); cursor:pointer;
}
.addon:last-of-type{border-bottom:0; padding-bottom:6px}
.addon input[type=checkbox]{
  width:24px; height:24px; accent-color:var(--blue); cursor:pointer; flex:none; margin:0;
}
.addon-body{display:flex; flex-direction:column; min-width:0}

.calc-hint{
  margin:16px 0 0; padding:12px 14px; border-radius:10px;
  background:var(--blue-tint); color:var(--navy);
  font-size:.9rem; line-height:1.5;
}

.calc-total{position:sticky; top:96px}
.calc-total-inner{
  background:var(--navy); color:#fff; border-radius:var(--radius-lg);
  padding:26px 26px 24px; box-shadow:var(--shadow-lg);
}
.calc-total h3{color:#fff; font-size:1.05rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:16px}
.calc-lines{list-style:none; margin:0 0 18px; padding:0; font-size:.96rem}
.calc-lines li{
  display:flex; justify-content:space-between; gap:14px;
  padding:9px 0; border-bottom:1px solid rgba(255,255,255,.13);
  color:rgba(255,255,255,.88);
}
.calc-lines li span:last-child{font-weight:700; color:#fff; white-space:nowrap}
.calc-empty{color:rgba(255,255,255,.55)!important; font-style:italic; justify-content:flex-start!important; border-bottom:0!important}
.calc-sum{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:16px 0 6px; border-top:2px solid rgba(255,255,255,.28);
  font-weight:700; font-size:1.05rem; letter-spacing:.04em; text-transform:uppercase;
}
.calc-sum strong{font-size:2.5rem; color:var(--accent); letter-spacing:-.02em}
.calc-disclaimer{font-size:.84rem; color:rgba(255,255,255,.62); line-height:1.5; margin:6px 0 18px}
.calc-total .btn-quiet{color:rgba(255,255,255,.6); margin-top:6px}
.calc-total .btn-quiet:hover{color:#fff}

/* --------------------------------------------------------- price list -- */
.price-table{width:100%; border-collapse:collapse; margin-bottom:18px}
.price-table th,.price-table td{
  text-align:left; padding:18px 4px; border-bottom:1px solid var(--line); vertical-align:top;
}
.price-table th{font-weight:700; color:var(--navy)}
.price-table th span{display:block; font-weight:500; color:var(--grey-light); font-size:.9rem}
.price-table td{text-align:right; font-weight:800; color:var(--blue); white-space:nowrap; font-size:1.1rem}
.fineprint{font-size:.88rem; color:var(--grey-light)}

/* ------------------------------------------------------------- steps -- */
.steps{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px; counter-reset:s;
}
.steps li{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-lg); padding:28px 26px;
}
.step-num{
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  background:var(--accent); color:#22160A; font-weight:800; font-size:1.2rem;
  margin-bottom:16px;
}
.steps p{margin:0; color:rgba(255,255,255,.78); font-size:.98rem}

/* ---------------------------------------------------------- showcase -- */
.showcase{position:relative; display:grid; grid-template-columns:1.2fr 1fr; min-height:420px}
.showcase img{width:100%; height:100%; object-fit:cover}
.showcase-panel{
  background:var(--blue); color:#fff; display:flex; align-items:center;
  padding:clamp(36px,5vw,64px);
}
.showcase-panel h2{color:#fff}
.showcase-panel p{color:rgba(255,255,255,.88); max-width:38ch}

/* ------------------------------------------------------------- areas -- */
.area-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:10px;
}
.area-list li{
  padding:.5em 1.1em; background:var(--blue-tint); color:var(--navy);
  border-radius:999px; font-weight:600; font-size:.95rem;
  border:1px solid rgba(27,79,156,.14);
}

/* --------------------------------------------------------------- faq -- */
.faq{display:flex; flex-direction:column; gap:12px}
.faq details{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:0 22px; box-shadow:0 1px 2px rgba(11,37,69,.04);
}
.faq summary{
  list-style:none; cursor:pointer; padding:20px 34px 20px 0; position:relative;
  font-weight:700; color:var(--navy); font-size:1.04rem;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:''; position:absolute; right:4px; top:50%;
  width:10px; height:10px; margin-top:-7px;
  border:solid var(--blue); border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg); transition:transform .2s ease;
}
.faq details[open] summary::after{transform:rotate(-135deg); margin-top:-2px}
.faq .faq-answer{padding:0 0 20px; color:var(--grey); margin:0}

/* ------------------------------------------------------------ contact -- */
.contact-ctas{display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px}
.quote-form{
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-lg); padding:28px;
}
.field{display:flex; flex-direction:column; gap:7px}
.field-wide{grid-column:1/-1}
.field label{font-weight:700; font-size:.92rem; color:#fff}
.field input,.field textarea{
  font:inherit; padding:.72em .9em; border-radius:10px;
  border:1.5px solid rgba(255,255,255,.22); background:rgba(255,255,255,.94);
  color:var(--ink); width:100%; resize:vertical;
}
.field input:focus,.field textarea:focus{border-color:var(--accent); outline:none; background:#fff}
.form-status{margin:14px 0 0; font-weight:600; font-size:.95rem; min-height:1.4em}
.form-status.is-ok{color:#7BE0AE}
.form-status.is-error{color:#FFB4A2}

/* ------------------------------------------------------------- footer -- */
.site-footer{background:#071B33; color:rgba(255,255,255,.72); padding:56px 0 0; font-size:.95rem}
.footer-inner{display:grid; grid-template-columns:auto 1.4fr 1fr 1fr; gap:36px; align-items:start}
.footer-logo{height:72px; width:auto; filter:brightness(0) invert(1); opacity:.9}
.site-footer h4{color:#fff; font-size:1rem; margin-bottom:12px}
.footer-col ul{list-style:none; margin:0; padding:0}
.footer-col li{margin-bottom:8px}
.footer-col a{color:rgba(255,255,255,.72)}
.footer-col a:hover{color:#fff}
.footer-base{
  margin-top:44px; padding-top:20px; padding-bottom:20px;
  border-top:1px solid rgba(255,255,255,.12); font-size:.86rem; color:rgba(255,255,255,.5);
}
.footer-base p{margin:0}

/* -------------------------------------------------------- mobile bar -- */
.mobile-bar{display:none}

/* ========================================================== RESPONSIVE == */
@media (max-width:1024px){
  .calc{grid-template-columns:1fr}
  .calc-total{position:static}
  .calc-total-inner{max-width:520px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .site-nav{display:none}
  .footer-inner{grid-template-columns:1fr 1fr; gap:28px}
  .footer-logo{grid-column:1/-1}
}

@media (max-width:760px){
  html{scroll-padding-top:72px}
  body{font-size:16px}
  .header-inner{min-height:64px; gap:12px}
  .brand img{height:46px}
  .header-cta{display:none}

  .hero-inner{padding:52px 20px 46px}
  .hero h1{max-width:none}
  .hero-ctas .btn{flex:1 1 100%}

  .trust-grid{grid-template-columns:1fr 1fr; gap:12px}
  .trust-item{font-size:.9rem; align-items:flex-start}

  .cards{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .showcase{grid-template-columns:1fr}
  .showcase img{height:260px}

  .calc-group{padding:6px 18px 18px}
  .row{grid-template-columns:1fr auto; gap:8px 14px}
  .row-price{grid-column:2; grid-row:1; align-self:start}
  .row .stepper{grid-column:1/-1; justify-self:start; margin-top:6px}
  .addon{grid-template-columns:auto 1fr; gap:12px}
  .addon .row-price{grid-column:2; margin-top:4px}
  .calc-sum strong{font-size:2.1rem}

  .quote-form{grid-template-columns:1fr; padding:22px}
  .price-table th,.price-table td{padding:14px 2px}

  /* sticky action bar */
  .mobile-bar{
    display:flex; gap:10px; position:fixed; left:0; right:0; bottom:0; z-index:120;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
    border-top:1px solid var(--line);
    box-shadow:0 -6px 24px rgba(11,37,69,.10);
  }
  .mobile-bar .btn{flex:1; font-size:.97rem; padding:.8em .6em}
  body{padding-bottom:74px}
  .site-footer{padding-bottom:10px}
}

@media (max-width:420px){
  .trust-grid{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms!important; animation-duration:.01ms!important}
  .btn:hover,.card:hover{transform:none}
}

@media print{
  .site-header,.mobile-bar,.hero-ctas,.contact-ctas,.quote-form{display:none!important}
}

/* Area chips that link to town pages */
.area-list a {
  color: inherit;
  text-decoration: none;
}
.area-list a:hover,
.area-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Coverage map */
.area-map {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.area-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
