/* ============================================================
   Waterside Carpet Cleaning — stylesheet
   Palette grounded in Southampton Water / New Forest waterside:
   deep tidal ink, sea-mist paper, wet slate, gorse gold, heather.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #16323D;          /* deep water — headings, dark surfaces (footer, CTA band) */
  --ink-2: #1F4450;        /* slightly lighter ink for hover states */
  --slate: #3F5A64;        /* wet slate — secondary body text */
  --mist: #F5F9FA;         /* sea-mist paper — page background */
  --surface: #FFFFFF;      /* card / surface background */
  --sky-1: #E4F2FA;        /* light hero wash, top of gradient */
  --sky-2: #F4FAFC;        /* light hero wash, bottom of gradient */
  --gold: #C6922E;         /* gorse gold — CTA accent */
  --gold-dark: #A8791F;    /* gold hover */
  --brand-blue: #146382;   /* waterside blue — eyebrows, links, secondary accents */
  --heather: #6F6178;      /* New Forest heather — reserved for area chips */
  --text: #16232A;         /* body copy */
  --text-muted: #4C5D63;   /* secondary copy */
  --line: #DCE6E6;         /* hairline borders */
  --radius: 8px;
  --max-width: 1120px;
  --shadow-soft: 0 6px 24px rgba(22, 50, 61, 0.08);
  --shadow-card: 0 1px 2px rgba(22,50,61,0.04), 0 8px 20px -6px rgba(22,50,61,0.10);
}

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

body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--mist);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: #241a06;
  box-shadow: 0 1px 2px rgba(36,26,6,0.06), 0 8px 18px -6px rgba(198,146,46,0.45);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(36,26,6,0.08), 0 12px 22px -6px rgba(198,146,46,0.5); }
/* For use on dark surfaces (CTA band, dark hero remnants) */
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: inherit;
}
.btn-outline:hover { border-color: currentColor; }
/* For use on light surfaces (the new lighter hero, light sections) */
.btn-outline-onlight {
  background: transparent;
  border-color: rgba(22,50,61,0.25);
  color: var(--ink);
}
.btn-outline-onlight:hover { border-color: var(--ink); background: rgba(22,50,61,0.04); }
.btn-ink {
  background: var(--ink);
  color: var(--mist);
  box-shadow: 0 1px 2px rgba(22,50,61,0.08), 0 8px 18px -6px rgba(22,50,61,0.35);
}
.btn-ink:hover { background: var(--ink-2); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-sub { display: block; font-family: 'Public Sans', sans-serif; font-weight: 400; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a.active,
.main-nav a:hover { color: var(--ink); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phones { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--ink); white-space: nowrap; font-size: 0.92rem; }
.header-phone svg { vertical-align: -3px; margin-right: 6px; color: var(--gold); }
.header-phone:hover { color: var(--brand-blue); }
.header-phone-divider { width: 1px; height: 16px; background: var(--line); display: inline-block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%);
  color: var(--text);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
/* soft ambient glow, kept faint so it reads as texture, not decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,99,130,0.10) 0%, rgba(20,99,130,0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero p.lede {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 46ch;
}
.hero h1 { color: var(--ink); }
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-badge {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badge svg { flex-shrink: 0; color: var(--gold); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(22,50,61,0.06);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Tideline divider — the site's signature motif, always sits on light paper now */
.tideline {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
}
.tideline path { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0.7; }
.tideline.on-dark path { stroke: rgba(255,255,255,0.35); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.phone-alt {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone-alt a { color: var(--ink); font-weight: 600; text-decoration: none; }
.phone-alt a:hover { color: var(--brand-blue); }
.phone-alt-dark { font-size: 0.88rem; color: #C7D6D3; margin-top: 14px; }
.phone-alt-dark a { color: #fff; font-weight: 600; text-decoration: none; }
.phone-alt-dark a:hover { color: var(--gold); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(22,50,61,0.06), 0 16px 28px -10px rgba(22,50,61,0.16); }
.card .icon-wave {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 18px;
}

.service-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.service-card .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-1) 0%, #F0E4C8 100%);
}
.thumb-icon svg { width: 56px; height: 56px; color: var(--brand-blue); }
.service-card p { flex-grow: 1; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.testimonial p { font-style: italic; color: var(--text); flex-grow: 1; }
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.testimonial-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-who strong { font-family: 'Fraunces', serif; color: var(--ink); font-weight: 600; }

/* ---------- Area chips ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.area-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
}
.area-page-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 20px; }
.area-page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.area-page-card h3 { margin-bottom: 8px; }

/* ---------- FAQ (accordion) ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.faq-question .plus { flex-shrink: 0; transition: transform 0.2s ease; color: var(--gold); font-size: 1.4rem; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 20px; color: var(--text-muted); max-width: 68ch; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-top: 36px;
}
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.step h4 { margin: 0; font-size: 1rem; color: var(--ink); font-family: 'Fraunces', serif; font-weight: 600; }
.step p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #EAF1EF;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7D6D3; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-detail svg { flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.contact-detail strong { display: block; color: var(--ink); font-family: 'Fraunces', serif; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
}
.contact-form input:focus,
.contact-form textarea:focus,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.form-note { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B9C9C6;
  padding-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 32px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Public Sans', sans-serif; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #241a06;
  padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .area-page-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone-landline, .header-phone-divider { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .header-phone span.phone-text { display: none; }
  .header-phone-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
