/* Prime Cleaning Chesterfield — cleaned IONOS-style layout
   Palette matched from live site theme vars:
   body #fafafa / text #444 / accent #00667b / Montserrat + Open Sans
*/

:root {
  --bg: #fafafa;
  --bg-white: #ffffff;
  --text: #444444;
  --text-soft: #5a5a5a;
  --heading: #444444;
  --accent: #00667b;
  --accent-dark: #004f5f;
  --accent-soft: rgba(0, 102, 123, 0.1);
  --accent-softer: rgba(0, 102, 123, 0.05);
  --line: #e2e2e2;
  --button-gray: #6b6b6b;
  --button-gray-hover: #555555;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --font-heading: Montserrat, Arial, Helvetica, sans-serif;
  --max: 1080px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 780px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Header (phone prominent, simple nav) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--heading);
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.logo-text span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.phone-pill:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-white);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--button-gray);
  color: #fafafa !important;
}

.btn-primary:hover {
  background: var(--button-gray-hover);
  color: #fff !important;
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.92) 0%, rgba(250, 250, 250, 0.97) 100%),
    radial-gradient(ellipse at top, var(--accent-soft), transparent 55%);
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 0 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-kicker {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-lead {
  color: var(--text-soft);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Sections ---------- */
.section {
  padding: 3.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-intro {
  text-align: center;
  color: var(--text-soft);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---------- Services (block style like original) ---------- */
.services {
  background: var(--bg-white);
}

.service-blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-block.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.service-block.reverse .service-media {
  order: 2;
}

.service-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  aspect-ratio: 1;
}

.service-body {
  padding: 1.5rem 1.5rem 1.5rem 0.5rem;
}

.service-block.reverse .service-body {
  padding: 1.5rem 0.5rem 1.5rem 1.5rem;
}

.service-body h3 {
  margin-bottom: 0.65rem;
}

.service-body .btn {
  margin-top: 0.5rem;
}

.extra-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.extra-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.extra-card h3 {
  color: var(--accent);
}

.extra-card .btn {
  margin-top: 0.75rem;
}

/* ---------- FAQ ---------- */
.faq-teaser {
  background: var(--bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-list details {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.15rem 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.95rem 1.15rem;
  color: var(--heading);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Tips ---------- */
.tips {
  background: var(--bg-white);
}

.tips-banner {
  background: var(--accent-softer);
  border: 1px solid var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.tips-banner h3 {
  margin-bottom: 0.35rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tip-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.tip-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tip-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- About ---------- */
.about {
  background: var(--bg);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 420px;
}

.about-copy h2 {
  text-align: left;
}

/* ---------- Differentiators ---------- */
.differentiators {
  background: var(--bg-white);
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diff-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  border-left: 4px solid var(--accent);
}

.diff-list strong {
  color: var(--heading);
  font-family: var(--font-heading);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-copy .section-title {
  text-align: left;
}

.contact-details {
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-details li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.contact-details .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contact-details a {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--accent);
}

.contact-details a:hover {
  text-decoration: underline;
}

.quote-form {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.quote-form h3 {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--heading);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-success {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2c2d2c;
  color: #e8e8e8;
  padding: 2rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-phone a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-phone a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: #b0b0b0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Two service cards side-by-side on tablet/mobile */
  .service-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .service-block,
  .service-block.reverse {
    grid-template-columns: 1fr;
  }

  .service-block.reverse .service-media {
    order: 0;
  }

  .service-body,
  .service-block.reverse .service-body {
    padding: 0.9rem 0.95rem 1.1rem;
  }

  .service-body h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .service-body p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .service-body .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .service-media img {
    min-height: 110px;
    max-height: 140px;
    aspect-ratio: 16 / 10;
  }

  .extra-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
  }

  .phone-pill span,
  .phone-pill {
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  /* Keep services as 2-across on phones */
  .service-blocks,
  .extra-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .service-media img {
    min-height: 90px;
    max-height: 120px;
  }

  .extra-card {
    padding: 1rem 0.85rem;
  }

  .extra-card h3 {
    font-size: 0.95rem;
  }

  .extra-card p {
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .phone-pill {
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
  }

  .logo-text span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Secondary page hero ---------- */
.page-hero {
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.92) 0%, rgba(250, 250, 250, 0.97) 100%),
    radial-gradient(ellipse at top, var(--accent-soft), transparent 55%);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2.75rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .hero-lead {
  margin-bottom: 0;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

/* Service detail lists on services.html */
.service-detail-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.service-detail-list li {
  margin-bottom: 0.35rem;
}

.cta-band {
  background: var(--accent-softer);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
  text-align: center;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  color: var(--text-soft);
}

.home-teaser-link {
  margin-top: 1.5rem;
  text-align: center;
}

.home-teaser-link a {
  font-weight: 700;
  text-decoration: none;
}

.home-teaser-link a:hover {
  text-decoration: underline;
}

/* ---------- Tip card links ---------- */
.tip-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.tip-card-link:hover h3 {
  color: var(--accent);
}

.tip-card-link .tip-read {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.tip-card-link:hover .tip-read {
  text-decoration: underline;
}

/* ---------- Blog posts ---------- */
.blog-post {
  background: var(--bg-white);
}

.blog-prose {
  max-width: 42rem;
  margin: 0 auto;
}

.blog-prose > p:first-of-type {
  font-size: 1.05rem;
}

.blog-prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.blog-prose p {
  margin-bottom: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.blog-prose li {
  margin-bottom: 0.4rem;
}

.blog-prose a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.blog-prose a:hover {
  text-decoration: underline;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}
