/* =========================================================
   Zig Zag Carpet Cleaning — shared stylesheet
   Used on every page. Keep this file the single source of
   truth for colour, type and layout so pages stay consistent.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
  /* Colour */
  --ink: #1E2A2E;
  --paper: #F6F4EF;
  --teal: #1F5F5B;
  --teal-dark: #163F3D;
  --brass: #B8863F;
  --brass-dark: #96692D;
  --stone: #DCD8CE;
  --stone-dark: #C7C2B4;
  --success: #3C7A4F;
  --white: #FFFFFF;

  /* Type */
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 4px;
  --gap: 2rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--brass);
  color: var(--white);
}
.btn-primary:hover { background: var(--brass-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-outline:hover { background: var(--paper); color: var(--ink); }
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }

/* ---------- Zigzag rule (site signature device) ---------- */
.zigzag-rule {
  width: 100%;
  height: 14px;
  display: block;
}
.zigzag-rule svg { width: 100%; height: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo img { height: 42px; width: auto; }
.logo span {
  color: var(--paper);
  font-weight: 800;
  font-size: 1.15rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.main-nav a {
  color: var(--paper);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--brass); }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  min-width: 220px;
  padding: 0.6rem 0 0.5rem;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  color: var(--ink);
  padding: 0.6rem 1.2rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--stone); color: var(--ink); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brass);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
}
.header-call:hover { background: var(--brass-dark); color: var(--white); }
.header-call svg { width: 18px; height: 18px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 3.5rem;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero p.lede { font-size: 1.15rem; color: var(--stone); max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ---------- Services tiles ---------- */
.services-section { padding: 4rem 0; }
.section-heading { max-width: 60ch; margin-bottom: 2.5rem; }
.service-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.service-tile {
  display: block;
  padding: 1.6rem 1.2rem;
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.service-tile:hover { border-color: var(--teal); color: var(--ink); }
.service-tile .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: block;
  color: var(--teal);
}
.service-tile .icon svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; }
.service-tile h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-tile p { font-size: 0.92rem; margin: 0; color: #4B5359; }

/* ---------- Two column text section ---------- */
.two-col-section { padding: 3.5rem 0; background: var(--white); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ---------- Photo strip ---------- */
.photo-strip { padding: 3.5rem 0; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.photo-grid img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Featured review ---------- */
.featured-review { padding: 4rem 0; background: var(--stone); }
.review-card {
  max-width: 640px;
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}
.review-card p.quote { font-size: 1.15rem; font-style: normal; margin-bottom: 1rem; }
.review-card .attribution { font-weight: 700; }
.review-card .attribution span { font-weight: 400; color: #4B5359; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brass);
  color: var(--white);
  padding: 3rem 0;
  text-align: left;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #0f1618; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--stone); padding: 3.5rem 0 0; }
.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 2.5rem;
}
.footer-columns h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-columns a { color: var(--stone); }
.footer-columns a:hover { color: var(--brass); }
.footer-columns li { margin-bottom: 0.55rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-logo img { height: 36px; }
.footer-logo span { color: var(--white); font-weight: 800; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--stone-dark);
  border-radius: 50%;
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-map { border-top: 1px solid #2C3A3E; padding: 2rem 0; }
.footer-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.footer-bottom {
  border-top: 1px solid #2C3A3E;
  padding: 1.2rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: #8B9491;
}

/* ---------- Floating call button ---------- */
.floating-call {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.9rem 1.3rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.floating-call:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); }
.floating-call svg { width: 20px; height: 20px; fill: currentColor; }
.floating-call .label { display: inline; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1.1rem 0;
  font-size: 0.9rem;
  color: #5A625F;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}
.breadcrumb a { color: #5A625F; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ---------- Service page intro ---------- */
.service-intro { background: var(--ink); color: var(--paper); padding: 3.5rem 0; }
.service-intro .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  align-items: center;
}
.service-intro h1 { color: var(--white); max-width: 16ch; }
.service-intro p { color: var(--stone); font-size: 1.08rem; }
.service-intro img { border-radius: var(--radius); width: 100%; height: 320px; object-fit: cover; }

/* ---------- Body sections on service pages ---------- */
.body-section { padding: 3.5rem 0; background: var(--white); }
.body-section.alt { background: var(--paper); }
.body-section img { border-radius: var(--radius); width: 100%; height: 280px; object-fit: cover; margin-top: 1.5rem; }

/* ---------- FAQ ---------- */
.faq-section { padding: 3.5rem 0; }
.faq-list { max-width: 72ch; }
.faq-item { padding: 1.4rem 0; border-bottom: 1px solid var(--stone-dark); }
.faq-item:first-child { border-top: 1px solid var(--stone-dark); }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.faq-item p { margin: 0; color: #3C4448; }

/* ---------- Related services ---------- */
.related-services { padding: 2.5rem 0 3.5rem; }
.related-services h4 { font-size: 1rem; margin-bottom: 0.8rem; color: #4B5359; }
.related-services ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.related-services a { font-weight: 600; }

/* ---------- Contact page ---------- */
.contact-section { padding: 3.5rem 0 4.5rem; background: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.contact-form .field { margin-bottom: 1.2rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--teal);
}
.contact-form .btn { margin-top: 0.4rem; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { margin-top: 1rem; font-weight: 600; display: none; }
.form-status.success { display: block; color: var(--success); }
.form-status.error { display: block; color: #B3402E; }

.contact-details { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.8rem; }
.contact-details h3 { margin-bottom: 1rem; }
.contact-details ul { margin-bottom: 1.5rem; }
.contact-details li { margin-bottom: 0.7rem; }
.contact-details li strong { display: block; font-size: 0.85rem; color: #5A625F; font-weight: 600; }
.contact-details .hours-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; padding: 0.3rem 0; }

/* ---------- Reviews page ---------- */
.reviews-intro { padding: 3rem 0 1rem; background: var(--white); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1rem 0 3.5rem;
}
.reviews-grid .review-card { max-width: none; }
.reviews-grid .review-card p.quote { font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container,
  .service-intro .container { grid-template-columns: 1fr; }
  .hero-image,
  .service-intro img { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  h1 { font-size: 2.1rem; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }
  .site-header.nav-open .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
  }
  .dropdown { position: static; box-shadow: none; margin-top: 0.4rem; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .cta-band .container { flex-direction: column; align-items: flex-start; text-align: left; }
  .floating-call .label { display: none; }
  .floating-call { padding: 0.9rem; border-radius: 50%; }
}

@media (max-width: 480px) {
  .service-tiles { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
}
