/* =====================================================
   WIMBORNE WINDOW CLEANING — styles.css
   Tier 1 Starter Demo · Mobile-first
   Breakpoints: 768px / 1024px
   ===================================================== */

/* ===================== CUSTOM PROPERTIES ===================== */
:root {
  --primary: #1b4d6b;
  --accent: #f4b942;
  --ink: #0f1d2a;
  --paper: #fbfbfa;
  --grey: #e8ecef;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===================== RESET ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* ===================== FOCUS VISIBLE ===================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-stack);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

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

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  body { font-size: 1.0625rem; }
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-stack);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: #e5a835;
  box-shadow: 0 4px 12px rgba(244, 185, 66, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--grey);
}

/* ===================== TIER BADGE ===================== */
.tier-badge {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 20px 8px 12px;
  text-decoration: none;
  transition: opacity 0.25s;
  letter-spacing: 0.02em;
}

.tier-badge:hover {
  background: var(--primary);
}

body.dn-on .tier-badge {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .tier-badge {
    font-size: 0.8125rem;
    padding: 10px 24px 10px 16px;
  }
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--grey);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone svg {
  width: 16px;
  height: 16px;
}

.header-nav {
  display: none;
}

.header-nav ul {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--primary);
}

.header-cta {
  display: none;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .header-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--paper);
  padding: 80px 24px 32px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 12px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--grey);
}

.mobile-menu .mobile-cta {
  margin-top: 16px;
  width: 100%;
}

/* ===================== HERO ===================== */
.hero {
  padding: 120px 0 3rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(27, 77, 107, 0.10) 0%, rgba(27, 77, 107, 0.04) 50%, rgba(244, 185, 66, 0.03) 100%);
  z-index: -1;
}

.hero .container {
  text-align: center;
}

.hero h1 {
  max-width: 680px;
  margin: 0 auto 1rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: #4a5568;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.hero-bottom {
  border-bottom: 1px solid var(--grey);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.875rem;
  color: #4a5568;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey);
  max-width: 640px;
  margin: 0 auto;
}

.trust-strip span {
  white-space: nowrap;
}

.trust-strip .stars {
  color: var(--accent);
}

@media (min-width: 1024px) {
  .hero {
    padding: 160px 0 5rem;
  }

  .hero-sub {
    font-size: 1.125rem;
  }
}

/* ===================== OWNER INTRO ===================== */
.owner-intro {
  background: var(--paper);
  border-bottom: 1px solid var(--grey);
}

.owner-grid {
  display: grid;
  gap: 2rem;
}

.owner-photo {
  aspect-ratio: 4 / 3;
  background: var(--grey);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  padding: 24px;
}

.owner-text p {
  color: #4a5568;
  max-width: 520px;
}

@media (min-width: 768px) {
  .owner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

/* ===================== SERVICE CARDS ===================== */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(27, 77, 107, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

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

.card p {
  color: #4a5568;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================== CARDS SECTION (alternate bg) ===================== */
.section-grey {
  background: var(--grey);
}

/* ===================== AREAS SERVED ===================== */
.areas {
  background: var(--grey);
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9375rem;
  color: #4a5568;
  margin-top: 1rem;
}

.areas-list li {
  position: relative;
  padding-left: 16px;
}

.areas-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===================== REVIEWS ===================== */
.section-reviews {
  border-top: 1px solid var(--grey);
}

.reviews-grid {
  display: grid;
  gap: 1.5rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: 8px;
  padding: 1.5rem;
}

.review-stars {
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.9375rem;
  color: #4a5568;
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.65;
}

.review-author {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================== CTA BAND ===================== */
.cta-band {
  background: var(--primary);
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

@media (min-width: 1024px) {
  .cta-band {
    padding: 4.5rem 0;
  }
  .cta-band h2 {
    font-size: 2.25rem;
  }
}

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 120px 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 160px 0 4rem;
  }
}

/* ===================== SERVICE BLOCKS (services page) ===================== */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--grey);
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.service-block p {
  color: #4a5568;
  max-width: 640px;
  margin-bottom: 1rem;
}

.service-block ul {
  margin-bottom: 1.5rem;
}

.service-block li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: #4a5568;
  font-size: 0.9375rem;
}

.service-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===================== AREA PARAGRAPHS (services page) ===================== */
.area-detail {
  margin-bottom: 1.5rem;
}

.area-detail h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.area-detail p {
  color: #4a5568;
  font-size: 0.9375rem;
}

/* ===================== FAQ ===================== */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--grey);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.75rem;
  color: #4a5568;
  font-size: 0.9375rem;
  padding-right: 2rem;
}

/* ===================== CONTACT LAYOUT ===================== */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ===================== FORM ===================== */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select {
  padding: 0.85rem;
  border: 1.5px solid var(--grey);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%231b4d6b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 107, 0.12);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #dc3545;
}

.form-error {
  font-size: 0.8125rem;
  color: #dc3545;
  display: none;
}

.form-group input.invalid ~ .form-error,
.form-group select.invalid ~ .form-error {
  display: block;
}

.form-privacy {
  font-size: 0.8125rem;
  color: #6b7280;
}

.form-success {
  background: rgba(27, 77, 107, 0.06);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ===================== CONTACT DETAILS SIDEBAR ===================== */
.contact-sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-sidebar p,
.contact-sidebar a {
  color: #4a5568;
  font-size: 0.9375rem;
}

.contact-sidebar a {
  transition: color 0.2s;
}

.contact-sidebar a:hover {
  color: var(--primary);
}

.contact-block {
  margin-bottom: 2rem;
}

.big-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.big-phone svg {
  width: 24px;
  height: 24px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.whatsapp-link:hover {
  background: #1ebe5d;
  color: #fff;
}

.hours-list {
  font-size: 0.9375rem;
  color: #4a5568;
}

.hours-list li {
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  max-width: 280px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-hours li {
  padding: 2px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ===================== UTILITY ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Placeholder images */
[data-placeholder] {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 24px;
}

/* Section headings centred by default */
.section-centered {
  text-align: center;
}

.section-centered h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}
