/* ==========================================================================
   FreshNest Cleaning Co. — landing page styles
   Single stylesheet, no build step. Organised: tokens → base → components →
   sections → responsive.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --teal-900: #0b3b3c;
  --teal-700: #125b5d;
  --teal-600: #14807f;
  --teal-500: #17a2a0;
  --teal-100: #d8f1f0;
  --teal-50:  #f0faf9;

  --ink:      #10231f;
  --ink-soft: #4a5f5b;
  --ink-mute: #7b8d89;

  --surface:     #ffffff;
  --surface-alt: #f5faf9;
  --border:      #e2edea;

  --amber: #f0a202;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 59, 60, .06), 0 2px 8px rgba(11, 59, 60, .05);
  --shadow:    0 4px 12px rgba(11, 59, 60, .07), 0 14px 34px rgba(11, 59, 60, .08);
  --shadow-lg: 0 18px 50px rgba(11, 59, 60, .16);

  --container: 1160px;
  --gutter: 24px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--teal-700);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: .6rem;
}
.eyebrow-light { color: var(--teal-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-700); color: #fff; box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--teal-50); border-color: var(--teal-500); color: var(--teal-700); }

.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-block;
  font-weight: 700;
  margin-top: .35rem;
}
.link-arrow span { transition: transform .18s ease; display: inline-block; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--teal-600);
  color: #fff;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.brand-accent { color: var(--teal-500); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem 0;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-list a:hover { color: var(--ink); text-decoration: none; }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--teal-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--teal-900); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-sub { font-size: 1.06rem; color: var(--ink-mute); margin-bottom: 0; }
.section-dark .section-sub { color: rgba(255, 255, 255, .72); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(900px 500px at 78% 6%, var(--teal-100) 0%, transparent 62%),
    linear-gradient(180deg, var(--teal-50) 0%, #fff 72%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.lede {
  font-size: 1.15rem;
  max-width: 34rem;
  color: var(--ink-soft);
  margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.1rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-badges span {
  color: var(--teal-600);
  font-weight: 800;
  margin-right: .35rem;
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-stat {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: #fff;
  padding: .95rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  line-height: 1.25;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--teal-700);
  letter-spacing: -.02em;
}
.hero-stat span { font-size: .85rem; color: var(--ink-mute); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--border);
}
.stat dt {
  font-size: .82rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.stat dd {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--teal-700);
  letter-spacing: -.02em;
}

/* ---------- Services ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-media { position: relative; }
.service-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--teal-700);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.service-body { padding: 1.75rem; }

.tick-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .5rem;
  font-size: .97rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px var(--teal-100);
}

/* ---------- Features / why us ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease;
}
.feature:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  font-size: 1.4rem;
  background: var(--teal-100);
  border-radius: 13px;
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { margin: 0; font-size: .96rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--amber); letter-spacing: .12em; margin-bottom: .85rem; }
.testimonial blockquote { margin: 0 0 1.4rem; flex: 1; }
.testimonial blockquote p { margin: 0; color: var(--ink); font-size: 1.01rem; }

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.testimonial figcaption img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial figcaption span {
  display: flex;
  flex-direction: column;
  font-size: .87rem;
  color: var(--ink-mute);
  line-height: 1.4;
}
.testimonial figcaption strong { color: var(--ink); font-size: .96rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.04); }

.credit {
  text-align: center;
  font-size: .85rem;
  color: var(--ink-mute);
  margin: 1.75rem 0 0;
}

/* ---------- Contact + form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.contact-list li { display: flex; gap: .95rem; align-items: flex-start; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-100);
  margin-bottom: .1rem;
}
.contact-list a, .contact-list span:not(.contact-icon) { color: #fff; }
.contact-list a:hover { color: var(--teal-100); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .1);
  border-radius: 11px;
  font-size: 1.05rem;
}

.quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 90px;
}
.quote-card h3 { margin-bottom: 1.4rem; }

.field { margin-bottom: 1.05rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-size: .89rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .38rem;
}
.req { color: #c0392b; }

input, select, textarea {
  width: 100%;
  padding: .78rem .9rem;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--ink-mute); }

input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px var(--teal-100);
}
input.invalid, select.invalid, textarea.invalid { border-color: #d64541; }
input.invalid:focus, select.invalid:focus { box-shadow: 0 0 0 4px rgba(214, 69, 65, .14); }

.error {
  margin: .3rem 0 0;
  font-size: .82rem;
  color: #c0392b;
  min-height: 0;
}
.error:empty { display: none; }

.form-note {
  margin: .85rem 0 0;
  font-size: .82rem;
  color: var(--ink-mute);
  text-align: center;
}
.form-status {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 600;
  text-align: center;
}
.form-status:empty { display: none; }
.form-status.success {
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
}
.form-status.error-msg {
  background: #fdeceb;
  color: #c0392b;
  border: 1px solid #f7c9c7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #082a2b;
  color: rgba(255, 255, 255, .68);
  padding: clamp(2.75rem, 5vw, 4rem) 0 1.75rem;
  font-size: .93rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
}
.site-footer .brand-text { color: #fff; }
.footer-brand p { margin: .7rem 0 0; max-width: 30ch; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  background: rgba(8, 34, 35, .92);
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  width: 46px; height: 46px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-inner { text-align: left; }
  .hero-media { max-width: 520px; margin-inline: auto; }
  .about-media { order: -1; }

  .feature-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

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

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform .28s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }

  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: .85rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 1.1rem; }

  .service-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { left: 12px; bottom: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .feature-grid,
  .testimonial-grid,
  .field-row { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.85rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .lightbox, .hero-actions, .quote-card { display: none !important; }
  body { color: #000; }
}
