/* FreshNest Cleaning — Concept Demo styles (vanilla CSS, mobile-first) */
:root {
  --navy: #0f2a43;
  --navy-dark: #0a1e31;
  --accent: #1f9d63;
  --accent-dark: #157a4c;
  --accent-light: #e6f6ec;
  --banner-bg: #fbbf24;
  --banner-text: #1f2937;
  --text: #1f2937;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-soft: #f3f8f5;
  --border: #d9e8de;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 10px rgba(15, 42, 67, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 42, 67, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden; /* safety net: no page should ever scroll sideways */
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
/* Anchor targets sit below the sticky demo banner when jumped to. */
section[id] { scroll-margin-top: 76px; }

/* Demo banner */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 12px;
  line-height: 1.4;
}
.demo-banner a { color: inherit; }

/* Header — mobile-first. The nav is a full-width row under the logo
   (in normal flow, so it never overlays content). With JavaScript,
   script.js adds .js to <html> and the nav hides behind the hamburger;
   without JS the nav stays visible and usable. */
.site-header { background: var(--navy); color: #fff; position: relative; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.logo-mark { color: var(--accent); background: #fff; border-radius: 50%; padding: 6px; flex-shrink: 0; }
.logo-text { font-size: 1.15rem; line-height: 1.2; white-space: nowrap; }
.logo-text strong { display: block; font-size: 0.75rem; font-weight: 600; color: #a7e8c5; letter-spacing: 0.04em; text-transform: uppercase; }
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 100%;
  gap: 0;
  padding: 4px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.main-nav a {
  color: #dbe7f0;
  text-decoration: none;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; padding: 13px 24px; }
/* Hamburger: hidden until JS confirms it works. 44x44px tap target. */
.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 2.5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Hamburger animates into an X when the menu is open. */
.js .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.js .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.js .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.js .main-nav { display: none; }
.js .main-nav.open { display: flex; }

/* Buttons — 48px minimum height, thumb-friendly. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e6f6ec; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.05rem; }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.nav-cta { min-height: 44px; padding: 9px 20px; }
/* Sticky mobile call bar — hidden by default, shown on phones only
   (see the max-width media query below). */
.sticky-call { display: none; }

/* Hero — stacked on mobile: copy first, photo below. */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d27 55%, var(--accent-dark) 100%);
  color: #fff;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(2.25rem, 7vw, 4rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
.hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.6rem); line-height: 1.15; margin: 12px 0 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; font-weight: 700; color: #a7e8c5; }
.hero-sub { font-size: clamp(1.05rem, 2.5vw + 0.55rem, 1.2rem); max-width: 640px; color: #d9f2e4; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 16px; }
.sample-tag { font-size: 0.8em; font-weight: 600; opacity: 0.85; margin-left: 0.35em; }
/* Hero trust badges — pill chips under the call-to-action buttons. */
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.hero-badges li::before { content: "\2713"; color: var(--accent-light); font-weight: 700; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}


/* Rating card overlapping the hero photo. Small and bottom-left so it
   never covers the photo's subject, on phones or desktop. */
.hero-badge-card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  background: #fff;
  color: var(--navy);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.hero-badge-stars { color: #e8a013; letter-spacing: 2px; font-size: 0.95rem; line-height: 1; }
.hero-badge-card strong { display: block; font-size: 1rem; line-height: 1.3; margin-top: 2px; }
.hero-badge-card small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.3; margin-top: 1px; }
/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d27 55%, var(--accent-dark) 100%);
  color: #fff;
  padding: clamp(2rem, 6vw, 3rem) 0 clamp(1.75rem, 5vw, 2.5rem);
}
.page-hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.2rem); line-height: 1.2; margin-bottom: 8px; }
.page-hero p { color: #d9f2e4; font-size: clamp(1rem, 2vw + 0.55rem, 1.1rem); max-width: 640px; }

/* Sections */
.section { padding: clamp(2.75rem, 8vw, 4rem) 0; }
.section-soft { background: var(--bg-soft); }
.section h2 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); line-height: 1.25; margin-bottom: 12px; color: var(--navy); }
.section-intro { color: var(--muted); max-width: 680px; margin-bottom: 28px; font-size: 1.05rem; }


/* Trust/stats strip under the hero — 2x2 on phones, one row of 4 on
   tablets and up. Figures are samples for the fictional business. */
.stats-strip { background: var(--bg-soft); padding: 28px 0 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.stat { text-align: center; padding: 0 4px; }
.stat-number { display: block; font-size: clamp(1.5rem, 6vw, 1.9rem); font-weight: 800; color: var(--accent-dark); line-height: 1.15; }
.stat-label { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.stats-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 18px 0 0; }
/* Cards — one column on phones, two from 640px, three from 1024px. */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--muted); margin-bottom: 14px; }
.card-link { font-weight: 700; text-decoration: none; display: inline-block; padding: 4px 0; }
.card-link:hover { text-decoration: underline; }
/* Photo cards (landing page only) — the photo bleeds to the card edges
   and the text sits in a padded body below it. .card.card--photo has
   higher specificity than the .card padding rule in the 640px query. */
.card.card--photo { padding: 0; overflow: hidden; }
.card-photo { margin: 0; }
.card-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px 20px 22px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; }
.feature h3 { color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* "Why choose us" split: photo above features on mobile, side by side on desktop. */
.why-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.why-photo { margin: 0; }
.why-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Areas */
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips li {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
}

/* Reviews — sample review cards for the fictional business, clearly
   labelled as illustrative content in the page itself. */
.reviews-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-stars { color: #e8a013; letter-spacing: 3px; font-size: 1.05rem; line-height: 1; }
.review-quote { margin: 0; }
.review-author { font-weight: 700; color: var(--navy); margin: 0; }
.review-area { font-weight: 500; color: var(--muted); }

/* FAQ */
details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); line-height: 1.4; }
summary:hover { color: var(--accent-dark); }
details p { margin-top: 10px; color: var(--muted); }

/* Check lists */
.check-list { list-style: none; margin: 18px 0 26px; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Price table — stacked cards on phones (a 3-column table overflows
   a phone screen), a real table from 640px up. No HTML change needed. */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 16px; }
.price-table thead { display: none; }
.price-table tbody tr {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.price-table td { display: block; padding: 2px 0; border: 0; text-align: left; }
.price-table td:first-child { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.price-table td:nth-child(2) { font-weight: 700; color: var(--accent-dark); font-size: 1.1rem; }
.price-table td:nth-child(3) { color: var(--muted); font-size: 0.95rem; }
.price-note { color: var(--muted); margin-bottom: 24px; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: clamp(2.5rem, 7vw, 3.5rem) 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); line-height: 1.25; margin-bottom: 10px; }
.cta-band p { margin-bottom: 24px; color: #e6f6ec; }

/* Contact — form above info on mobile, side by side on desktop. */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.enquiry-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 5vw, 2rem) clamp(1.125rem, 5vw, 1.75rem);
  box-shadow: var(--shadow);
}
.enquiry-form h2 { margin-bottom: 20px; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem; /* 16px: stops iOS zooming in on focus */
  color: var(--text);
  background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-message {
  margin-top: 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.contact-info h2, .contact-info h3 { color: var(--navy); margin-bottom: 12px; }
.contact-info h3 { margin-top: 28px; }
.contact-info p { color: var(--muted); margin-bottom: 10px; }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* Map */
.map-embed iframe { width: 100%; height: clamp(260px, 62vw, 360px); border: 0; border-radius: var(--radius); }

/* Footer — stacked on phones, columns from 640px up. */
.site-footer { background: var(--navy-dark); color: #bcd7e6; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: #dbe7f0; text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 18px 0; font-size: 0.85rem; line-height: 1.5; }

/* ---------- Photos — illustrative stock imagery (local files) ----------
   Hero photo: 16/10 landscape crop on mobile/tablet so it never
   dominates the screen; 4/3 crop beside the copy on desktop.
   "Why choose us" photo is 4/3 at every size. The demo banner and
   footer already state this is a fictional business with illustrative
   content — photos are never presented as real client work. */

/* Small phones: a little more room for content. */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .logo-text { font-size: 1.05rem; }
}

/* Full-width call-to-action buttons on phones. */
@media (max-width: 600px) {
  .btn-lg { width: 100%; }
  .section .btn { width: 100%; }
}

/* Sticky call bar on phones only: two thumb-sized buttons fixed to the
   bottom of the screen. Pages with the bar get bottom padding so the
   footer is never hidden behind it. */
@media (max-width: 639px) {
  body.has-sticky-call { padding-bottom: 78px; }
  .sticky-call {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.14);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .sticky-call .btn { flex: 1; min-height: 48px; padding: 12px 10px; font-size: 0.98rem; }
  .sticky-call .btn svg { margin-right: 8px; flex-shrink: 0; }
}

/* Two-column grids + side-by-side hero buttons from 640px. */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .card { padding: 26px 22px; }
  .card-body { padding: 22px 22px 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature { padding: 24px 22px; }
  details { padding: 18px 22px; }
  .area-chips { gap: 12px; }
  /* Price table becomes a real table again. */
  .price-table { border-collapse: collapse; }
  .price-table thead { display: table-header-group; }
  .price-table tbody tr { display: table-row; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
  .price-table th, .price-table td { display: table-cell; text-align: left; padding: 12px 16px; border: 1px solid var(--border); }
  .price-table th { background: var(--navy); color: #fff; }
  .price-table td:first-child { font-size: 1rem; }
  .price-table td:nth-child(2) { font-size: 1rem; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
  .price-table td:nth-child(3) { font-size: 1rem; }
}

/* Desktop layout from 900px: horizontal nav, two-column hero/why/contact. */
@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .main-nav, .js .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-basis: auto;
    padding: 0;
    border-top: 0;
    background: transparent;
  }
  .main-nav a { padding: 0; border-bottom: 0; }
  .main-nav a.nav-cta { margin-top: 0; padding: 9px 20px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .why-split { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
  .hero-badge-card { left: 16px; bottom: 16px; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}

/* Three-column grids on wide screens. */
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-top: 48px; }
}

/* Hover polish — only on devices that actually hover, so taps on
   phones never get a stuck hover state. */
@media (hover: hover) {
  .card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .review-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .btn { transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
  .btn:hover { transform: translateY(-2px); }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
