/* TidySpace Home Cleaning — warm, cheerful residential maid service */

:root {
  --ink: #2b2420;
  --coral: #e8734a;
  --coral-dark: #d35f38;
  --sage: #6f9c6a;
  --sage-dark: #578153;
  --cream: #fff8f0;
  --card: #ffffff;
  --line: #f1e3d3;
  --tan: #fbeee0;
  --muted: #8a7c70;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }

a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.center-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.eyebrow { display: block; color: var(--coral-dark); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.5rem; }
.section-title { font-size: 2.1rem; }
.section-sub { color: var(--muted); margin-top: 0.5rem; }

.accent-underline { position: relative; white-space: nowrap; }
.accent-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.3em;
  background: rgba(232,115,74,0.28); border-radius: 3px; z-index: -1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 999px; background: var(--coral); color: #fff;
  text-decoration: none; font-weight: 700; border: none; cursor: pointer; font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -10px rgba(232,115,74,0.6);
}
.btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-outline:hover { border-color: var(--coral); background: #fff; }
.btn-lg { padding: 1.05rem 2.25rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
body.is-editable .site-header { top: 44px; }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-text { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.main-nav ul a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.main-nav ul a:hover { color: var(--coral); }
.nav-cta-row { display: flex; align-items: center; gap: 1.25rem; }
.phone-link { display: flex; align-items: center; gap: 0.4rem; color: var(--ink); text-decoration: none; font-weight: 700; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 5.5rem; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-top: 0.5rem; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 460px; margin-top: 1rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media-inner {
  overflow: hidden; border-radius: var(--radius); box-shadow: 0 24px 50px -18px rgba(90,60,30,0.28);
  aspect-ratio: 4 / 4.6; background: var(--tan);
}
.hero-media-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: obtKenBurns 18s ease-in-out infinite alternate;
}
@keyframes obtKenBurns { from { transform: scale(1); } to { transform: scale(1.07); } }

.hero-badge {
  position: absolute; bottom: -1.5rem; left: -1.25rem; z-index: 2;
  display: flex; align-items: center; gap: 0.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem 1.4rem; max-width: 260px;
  box-shadow: 0 20px 40px -16px rgba(90,60,30,0.35);
  animation: obtBadgePop 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}
@keyframes obtBadgePop { from { transform: scale(0.6) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.hero-badge-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(150deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(87,129,83,0.55);
}
.hero-badge-copy strong { display: block; font-family: 'Fraunces', serif; color: var(--ink); font-size: 1rem; line-height: 1.2; margin-bottom: 0.2rem; }
.hero-badge-copy span { font-size: 0.78rem; color: var(--muted); line-height: 1.35; display: block; }

/* ---------- sparkle checklist ---------- */
.included { padding: 5.5rem 0 5rem; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.checklist-item {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.is-editable .checklist-item { position: relative; padding-right: 6rem; }
body.is-editable .obt-service-toggle { position: absolute; top: 50%; right: 0.85rem; transform: translateY(-50%); }
.checklist-item:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(90,60,30,0.25); border-color: transparent; }
.checklist-item h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.checklist-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.check-badge {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sage);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.reveal.is-visible .check-badge { animation: obtCheckPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; animation-delay: inherit; }
@keyframes obtCheckPop {
  0% { transform: scale(0.4); box-shadow: 0 0 0 0 rgba(111,156,106,0.6); }
  60% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(111,156,106,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(111,156,106,0); }
}

/* ---------- why us ---------- */
.why-us { background: var(--card); padding: 5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card { text-align: center; padding: 0.5rem; }
.why-card svg { color: var(--coral); margin-bottom: 0.85rem; }
.why-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.why-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { animation: obtReveal 0.6s ease forwards; animation-delay: var(--reveal-delay, 0s); }
@keyframes obtReveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-media-inner img { animation: none; }
  .hero-badge { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-visible .check-badge { animation: none; }
}

/* ---------- gallery ---------- */
.gallery { padding: 5rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px -14px rgba(90,60,30,0.25); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 0.85rem 1rem; font-weight: 700; font-size: 0.9rem; background: var(--tan); }

/* ---------- quote ---------- */
.quote { padding: 5rem 0 6rem; }
.quote-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.quote-sub { color: var(--muted); }
.quote-contact-cards { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.5rem; }
.contact-card { display: flex; align-items: center; gap: 0.75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.contact-card svg { color: var(--coral); flex-shrink: 0; }
.map-frame { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.quote-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.9rem; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.checkbox-item { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-brand .logo-text { color: #fff; }
.footer-col h4 { color: #fff; font-family: 'Fraunces', serif; font-size: 1rem; margin-bottom: 0.75rem; }
.footer-col p { margin: 0 0 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; font-size: 0.85rem; text-align: center; }

/* ---------- responsive ---------- */
.nav-close { display: none; }
.nav-backdrop { display: none; }
@media (max-width: 900px) {
  .hero-inner, .quote-inner { grid-template-columns: 1fr; }
  .checklist-grid, .why-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .main-nav ul, .nav-cta-row .phone-link span { display: none; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: var(--card); flex-direction: column; align-items: flex-start; padding: 5rem 2rem 2rem;
    transition: right 0.25s ease; z-index: 70; overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav.open ul { display: flex; flex-direction: column; gap: 1.25rem; }
  body.is-editable .main-nav { top: 44px; height: calc(100vh - 44px); }
  .hero-badge { position: static; margin-top: 1.5rem; }

  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: var(--tan); border: none; color: var(--ink);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
  }
  .nav-close:hover { background: var(--line); }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(43,36,32,0.5);
    z-index: 65; opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.05rem; }
  .checklist-grid, .why-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-row--split, .checkbox-grid { grid-template-columns: 1fr; }
}
