/* ============================================================
   Taylored Cleaning Services — tcsscotland.com
   One stylesheet for the whole site. Colours & fonts live in
   :root below — change them once, they change everywhere.
   ============================================================ */

:root {
  /* Brand colours */
  --sky:      #06ACFF;   /* brand blue */
  --sky-deep: #0489D6;   /* hover / darker blue */
  --navy:     #0A2B47;   /* deep-water ink for text & footer */
  --mist:     #EDF7FE;   /* pale blue section background */
  --line:     #CFE8FA;   /* hairlines & borders */
  --white:    #ffffff;

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  /* The squeegee angle — used on hero & section edges */
  --sweep: -2.5deg;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 43, 71, .10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}

img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--sky-deep); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sky-deep);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 11px; height: 14px; flex: none;
  background: var(--sky);
  clip-path: path("M5.5 0 C5.5 4, 0 7, 0 10 a5.5 5.5 0 0 0 11 0 C11 7, 5.5 4, 5.5 0 Z");
}

.lede { font-size: 1.2rem; color: #33526e; max-width: 44rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.logo img { height: 42px; width: auto; }
.logo strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.logo small { display: block; font-size: .72rem; color: #55708a; font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  text-decoration: none; color: var(--navy);
  font-weight: 600; font-size: .95rem; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--sky); }
.nav a[aria-current="page"] { border-bottom-color: var(--sky); color: var(--sky-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .7rem; font: inherit; font-weight: 600; color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background .12s ease;
}
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: var(--sky-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--sky); color: var(--sky-deep); background: transparent; }
.btn-ghost:hover { background: var(--mist); }
.btn-light { background: #fff; color: var(--sky-deep); }
.btn-light:hover { background: var(--mist); }

/* ---------- Hero (the squeegee sweep) ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0d3d63 55%, #0a6fb3 100%);
  color: #fff;
  padding: 4.5rem 0 6.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
  position: relative;
  overflow: hidden;
}
.hero::after { /* faint droplet texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(6,172,255,.25), transparent 34%),
    radial-gradient(circle at 12% 85%, rgba(6,172,255,.18), transparent 30%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem;
  align-items: center;
}
.hero .eyebrow { color: #9fdcff; }
.hero .eyebrow::before { background: #9fdcff; }
.hero h1 { color: #fff; position: relative; }

/* One squeegee pass across the headline on load */
@keyframes wipe {
  from { transform: translateX(-120%) rotate(var(--sweep)); }
  to   { transform: translateX(220%)  rotate(var(--sweep)); }
}
.hero h1::after {
  content: ""; position: absolute; inset: -10% -20%;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  animation: wipe 1.4s ease-out .3s 1 both;
  pointer-events: none;
}
.hero p { color: #d9eeff; font-size: 1.15rem; max-width: 34rem; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Quick-quote card */
.quote-card {
  background: #fff; color: var(--navy);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.4rem;
}
.quote-card h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.quote-card p { font-size: .93rem; color: #4a6683; margin-bottom: 1rem; }

/* ---------- Forms ---------- */
form label { display: block; font-weight: 600; font-size: .9rem; margin: .8rem 0 .3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--navy);
  padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff;
}
input:hover, select:hover, textarea:hover { border-color: var(--sky); }
form .btn { margin-top: 1.1rem; width: 100%; }
.form-note { font-size: .8rem; color: #61799a; margin-top: .6rem; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
section.tint { background: var(--mist); }
section.sweep-top { clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(4.5rem + 3.5vw); }

/* Trust strip */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
}
.trust div { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.trust strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.trust .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mist); color: var(--sky-deep);
  display: grid; place-items: center; font-weight: 800;
}

/* Cards */
.grid { display: grid; gap: 1.4rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: .2rem; }
.card p { font-size: .97rem; color: #3d5b78; margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--mist); color: var(--sky-deep);
  display: grid; place-items: center; font-size: 1.35rem;
}

/* Droplet bullet lists */
ul.drops { list-style: none; padding: 0; margin: 0 0 1em; }
ul.drops li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
ul.drops li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 10px; height: 13px; background: var(--sky);
  clip-path: path("M5 0 C5 3.5, 0 6.3, 0 9 a5 5 0 0 0 10 0 C10 6.3, 5 3.5, 5 0 Z");
}

/* Area chips + town blocks */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.chip {
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem;
}
.chip:hover { border-color: var(--sky); color: var(--sky-deep); }

.town { border-top: 1px solid var(--line); padding: 1.8rem 0; }
.town h3 { margin-bottom: .35rem; }
.town p { max-width: 46rem; margin-bottom: .4rem; }
.town .back { font-size: .85rem; font-weight: 600; }

/* Steps (how quoting works) */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 2.2rem; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 1.4rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sky); color: #fff; font-family: var(--font-display);
  font-weight: 800; display: grid; place-items: center;
  border: 3px solid #fff;
}

/* Reviews */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.review .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: .5rem; }
.review footer { font-size: .88rem; color: #55708a; margin-top: .8rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid img, .gallery-grid .ph {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.gallery-grid .ph {
  background: linear-gradient(150deg, var(--mist), #d5edfd);
  display: grid; place-items: center; color: #4a80a8; font-size: .9rem; font-weight: 600;
}
.gallery-grid figcaption { font-size: .85rem; color: #55708a; margin-top: .4rem; }

/* CTA band */
.cta-band {
  background: var(--sky); color: #fff; text-align: center;
  clip-path: polygon(0 2.5vw, 100% 0, 100% 100%, 0 100%);
  padding: calc(3.5rem + 2.5vw) 0 3.5rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #eaf7ff; max-width: 38rem; margin: 0 auto 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #bcd6ec; padding: 3.5rem 0 2rem; font-size: .93rem; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; }
.site-footer a { color: #9fdcff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.5rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  font-size: .82rem; color: #8fb0cc;
}

/* Two-column content splits */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Prose pages (legal, about) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split, .footer-grid { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 1rem 1.25rem; gap: .9rem;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-2, .trust, .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 3.2rem 0; }
  .hero { padding: 3rem 0 5rem; }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1::after { animation: none; display: none; }
  .btn, .card { transition: none; }
}

/* Skip-to-content link (visible on keyboard focus only) */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* Simple centered hero (G71-style: headline + one button) */
.hero-simple { padding: 5.5rem 0 7rem; }
.hero-simple .wrap { grid-template-columns: 1fr; text-align: center; }
.hero-simple .wrap > div { max-width: 52rem; margin: 0 auto; }
.hero-simple .eyebrow { justify-content: center; }
.hero-simple p { margin-left: auto; margin-right: auto; }
.hero-simple .hero-ctas { justify-content: center; }
.hero-simple .btn { font-size: 1.1rem; padding: .95rem 2.2rem; }

/* Live postcode check status */
.pc-status.pc-ok  { color: #157a3d; font-weight: 600; }
.pc-status.pc-bad { color: #b3261e; font-weight: 600; }

/* Long-form service sections: unboxed feature points with accent underline */
.feature-row { margin-top: 2.2rem; }
.feature h3 {
  font-size: 1.08rem;
  padding-bottom: .45rem;
  margin-bottom: .55rem;
  border-bottom: 3px solid var(--sky);
  display: inline-block;
}
.feature p { font-size: .97rem; color: #3d5b78; margin: 0; }

/* Service section headings with icon chips */
.service-head { display: flex; align-items: center; gap: .9rem; }
.service-head .icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: var(--white); border: 1.5px solid var(--line);
  color: var(--sky-deep); display: grid; place-items: center; font-size: 1.6rem;
}
section:not(.tint) .service-head .icon { background: var(--mist); border-color: transparent; }
.service-head h2 { margin-bottom: 0; }
.service-head + .lede, .service-head + p { margin-top: .9rem; }

/* Highlighted callout (e.g. "What is a first clean?") */
.callout {
  margin-top: 2.2rem;
  background: var(--white);
  border-left: 6px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
}
.callout h3 { color: var(--sky-deep); }
