/*
Theme Name: Clean Habitat One Page
Theme URI: https://www.clean-habitat.com/
Author: Clean Habitat, Inc.
Description: A bespoke single-page WordPress theme for Clean Habitat's NYC property maintenance and handyman services.
Version: 1.0.2
Text Domain: clean-habitat
*/

:root {
  --ink: #12211e;
  --ink-soft: #52605c;
  --paper: #f0ede5;
  --white: #f7f4ed;
  --mist: #e6ebe8;
  --green: #173a32;
  --green-light: #335e53;
  --line: rgba(18, 33, 30, 0.16);
  --shadow: 0 24px 60px rgba(18, 33, 30, 0.12);
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #8fb3c8; outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: .8rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 246, 241, .96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}
.nav-shell {
  width: min(1460px, calc(100% - 3rem));
  min-height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 88px; height: 88px; object-fit: contain; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 3rem); }
.main-nav a {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.4rem;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.main-nav a:hover::after { right: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .9rem 1.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--white); }
.button--light { border-color: var(--white); background: var(--white); color: var(--ink); }
.button--light:hover { background: transparent; color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; padding: .6rem; color: var(--ink); }
.menu-toggle span { display: block; width: 24px; height: 1.5px; margin: 5px 0; background: currentColor; }

.hero {
  min-height: 100svh;
  padding: 168px clamp(1.5rem, 5vw, 5rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 7rem);
}
.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1, .display-heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}
.hero h1 { max-width: 760px; font-size: clamp(3.4rem, 7.2vw, 7.5rem); }
.hero h1 .hero-phrase { white-space: nowrap; }
.hero h1 .hero-accent { display: block; color: var(--green-light); font-style: italic; }
.hero-copy { padding-bottom: 4vh; }
.hero-copy .lede { max-width: 590px; margin: 2rem 0 2.2rem; font-size: clamp(1.05rem, 1.55vw, 1.35rem); color: var(--ink-soft); }
.hero-media { height: calc(100svh - 206px); min-height: 520px; overflow: hidden; }
.hero-media img { height: 100%; object-fit: cover; }

.section { padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 5vw, 5rem); }
.section-inner { width: min(1320px, 100%); margin: 0 auto; }
.intro-grid { display: grid; grid-template-columns: minmax(560px, 1.1fr) minmax(420px, .9fr); gap: clamp(3rem, 5vw, 5rem); align-items: start; }
.display-heading { font-size: clamp(3rem, 5.4vw, 6.1rem); }
.heading-inline { font-size: clamp(3rem, 4.1vw, 3.75rem); white-space: nowrap; }
.intro-copy { max-width: 680px; padding-top: 1rem; }
.intro-copy p { margin: 0 0 1.4rem; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.intro-copy p + p { color: var(--ink-soft); }
.image-break { padding: 0 clamp(1.5rem, 5vw, 5rem); }
.image-break img { width: min(1320px, 100%); height: min(72vw, 760px); margin: 0 auto; object-fit: cover; object-position: center; }

.services { background: var(--green); color: var(--white); }
.services-top { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: end; margin-bottom: 5rem; }
.services .display-heading { color: var(--white); }
.services-intro { max-width: 600px; color: rgba(255,255,255,.78); font-size: 1.13rem; }
.service-list { border-top: 1px solid rgba(255,255,255,.28); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 116px;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.service-number { color: rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .15em; }
.service-row h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 400; }
.service-row span:last-child { font-size: 1.5rem; }
.services-footer { margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.services-footer p { margin: 0; color: rgba(255,255,255,.75); }

.care-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.care-media { position: relative; padding-bottom: 12%; }
.care-media .main-image { height: 690px; object-fit: cover; }
.care-media .inset-image { position: absolute; width: 42%; height: 42%; right: -5%; bottom: 0; object-fit: cover; border: 12px solid var(--paper); }
.care-copy { max-width: 560px; }
.care-copy p:not(.eyebrow) { margin: 2rem 0; font-size: 1.2rem; color: var(--ink-soft); }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 2rem); }
.work-card { position: relative; overflow: hidden; min-height: 650px; background: var(--mist); }
.work-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .7s ease; }
.work-card:hover img { transform: scale(1.025); }
.work-label { position: absolute; inset: auto 1.5rem 1.5rem; background: rgba(247,246,241,.95); padding: 1rem 1.2rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.reviews { background: #e8eceb; }
.reviews-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 4rem; }
.reviews-heading p { max-width: 440px; margin: 0; color: var(--ink-soft); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(18,33,30,.2); border: 1px solid rgba(18,33,30,.2); }
.review-card { min-height: 330px; padding: clamp(2rem, 3.5vw, 3.5rem); background: #e8eceb; display: flex; flex-direction: column; justify-content: space-between; }
.stars { letter-spacing: .18em; font-size: .8rem; }
.review-card blockquote { margin: 2rem 0; font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.25; }
.review-card cite { font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.nyc-moment { min-height: 86svh; padding: clamp(3rem, 7vw, 7rem); display: grid; place-items: center; text-align: center; color: var(--white); background: linear-gradient(rgba(8,22,19,.35), rgba(8,22,19,.58)), url("assets/images/property-exterior.webp") center / cover no-repeat; }
.nyc-moment p { margin: 0 0 1.5rem; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.nyc-moment h2 { max-width: 930px; margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 7.8rem); line-height: .98; font-weight: 400; }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(4rem, 9vw, 9rem); align-items: start; }
.contact-copy { position: sticky; top: 140px; }
.contact-copy .display-heading { margin-bottom: 2rem; }
.contact-direct { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.contact-direct a { width: fit-content; font-weight: 600; }
.contact-direct a:hover { text-decoration: underline; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
.field { display: grid; gap: .45rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(18,33,30,.45);
  border-radius: 0;
  padding: .8rem 0;
  background: transparent;
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.form-status { grid-column: 1 / -1; margin: 0 0 1rem; padding: 1rem 1.1rem; border-left: 3px solid var(--green-light); background: var(--mist); }
.form-status--error { border-color: #8c352f; background: #f7e9e7; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { padding: 4rem clamp(1.5rem, 5vw, 5rem) 2rem; background: var(--green); color: var(--white); }
.footer-inner { width: min(1320px, 100%); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: end; padding-bottom: 4rem; }
.footer-mark { width: 132px; filter: brightness(0) invert(1); }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-meta { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; color: rgba(255,255,255,.64); font-size: .76rem; }
.privacy-details summary { cursor: pointer; }
.privacy-details p { max-width: 700px; margin: 1rem 0 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@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 (max-width: 980px) {
  .nav-shell { width: min(100% - 2rem, 1460px); min-height: 82px; grid-template-columns: auto 1fr auto; }
  .brand img { width: 72px; height: 72px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav {
    position: fixed;
    inset: 82px 0 0;
    display: none;
    padding: 3rem 1.5rem;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-family: var(--serif); font-size: 2.3rem; font-weight: 400; letter-spacing: -.02em; text-transform: none; }
  section[id] { scroll-margin-top: 82px; }
  .hero { min-height: auto; padding-top: 130px; grid-template-columns: 1fr; }
  .hero-media { height: 68svh; min-height: 460px; order: -1; }
  .intro-grid, .services-top, .care-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .review-grid { grid-template-columns: 1fr; }
  .review-card { min-height: 250px; }
  .care-media { width: 92%; }
  .care-media .main-image { height: 600px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (min-width: 681px) and (max-width: 1179px) {
  .intro-grid, .services-top, .care-grid { grid-template-columns: 1fr; }
  .heading-inline { font-size: clamp(3.2rem, 7vw, 4.7rem); }
  .care-copy { max-width: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; gap: 2.25rem; }
  .hero-media { min-height: 390px; height: 56svh; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .hero h1 .hero-phrase { white-space: normal; }
  .heading-inline { white-space: normal; }
  .image-break { padding: 0; }
  .image-break img { height: 72svh; }
  .service-row { grid-template-columns: 42px 1fr auto; gap: .75rem; min-height: 94px; }
  .services-footer, .reviews-heading { align-items: flex-start; flex-direction: column; }
  .care-media { width: 100%; padding-bottom: 20%; }
  .care-media .main-image { height: 480px; }
  .care-media .inset-image { width: 48%; right: 0; border-width: 8px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 510px; }
  .nyc-moment { min-height: 74svh; }
  .quote-form { grid-template-columns: 1fr; }
  .field--wide { grid-column: 1; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
