/* ==========================================================================
   MAO & MIA Cleaning Service — shared stylesheet
   Cloned 1:1 from https://maomiacleaningservice.com/ (Lovable / gpt-engineer).
   Design tokens + shared chrome (header / footer) + page components.
   Fonts are loaded via <link> in the page <head>, NOT via @import here.
   ========================================================================== */

:root {
  /* palette — sampled from the source screenshot */
  --cream: #f8f6f1;
  --cream-2: #efece5;
  --card: #ffffff;
  --emerald: #0f3b30;
  --emerald-2: #1a5544;
  --emerald-deep: #052e24;
  --gold: #cf9b43;
  --gold-2: #d4ad66;
  --gold-soft: #f5dfbb;
  --ink: #182620;
  --text: #41504a;
  --muted: #71807a;
  --border: #e6e1d8;
  --white: #ffffff;

  --grad-emerald: linear-gradient(135deg, #0f3b30 0%, #1a5544 100%);
  --grad-gold: linear-gradient(135deg, #d4ad66 0%, #cf9b43 100%);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(24, 38, 32, 0.08);
  --shadow-md: 0 12px 30px rgba(24, 38, 32, 0.12);
  --shadow-emerald: 0 12px 28px rgba(15, 59, 48, 0.28);

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.accent { color: var(--gold); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-cream-2 { background: var(--cream-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--grad-gold); color: #3a2a08; box-shadow: 0 10px 24px rgba(207, 155, 67, 0.4); }
.btn-emerald { background: var(--grad-emerald); color: #fff; box-shadow: var(--shadow-emerald); }
.btn-outline { background: transparent; border-color: var(--emerald); color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.24); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-phone {
  background: var(--grad-gold);
  color: #3a2a08 !important;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(207,155,67,0.35);
}
.nav-phone::after { display: none; }
@media (max-width: 860px) {
  /* Keep every nav link reachable on mobile — wrap instead of hiding.
     A display:none menu with no replacement would orphan navigation. */
  .site-header { position: static; }
  .nav { height: auto; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; justify-content: center; }
  .nav-links { gap: 20px; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,46,36,0.35) 0%, rgba(5,46,36,0.45) 50%, rgba(5,46,36,0.6) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 40px 24px 90px;
}
.hero .eyebrow {
  color: var(--gold-2);
  background: rgba(0,0,0,0.18);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  margin: 18px 0 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero h1 .accent { color: var(--gold-2); }
.hero p {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 34px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll .mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-pill);
  position: relative;
}
.hero-scroll .mouse::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media .img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-media .img-float {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-md);
}
.about-copy h3 { font-size: 1.7rem; font-weight: 600; margin-bottom: 18px; }
.about-copy p { margin: 0 0 18px; color: var(--text); }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 70px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(207,155,67,0.14);
  color: var(--gold);
}
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--emerald); }
.stat-label { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-top: 6px; }
.stat-sub { font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .thumb { width: 100%; height: 210px; object-fit: cover; }
.service-body { padding: 26px 24px 30px; }
.service-body h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.service-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ==========================================================================
   Before / After sliders
   ========================================================================== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ba-item { text-align: center; }
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .tag {
  position: absolute;
  top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: #fff;
}
.ba .tag-before { left: 14px; background: rgba(24,38,32,0.75); }
.ba .tag-after { right: 14px; background: var(--emerald); }
.ba .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
  pointer-events: none;
}
.ba .handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--emerald);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  letter-spacing: 2px;
}
.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-caption { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-top: 16px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tm-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.tm-stat { text-align: center; }
.tm-stat .n { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--gold); }
.tm-stat .l { color: var(--muted); font-size: 0.95rem; }
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.tm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tm-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.tm-quote { font-style: italic; color: var(--text); flex-grow: 1; }
.tm-person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.tm-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-emerald);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.tm-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.tm-loc { font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.faq-intro p { color: var(--muted); margin: 0 0 20px; }
.faq-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  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.4rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.contact-card .ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(15,59,48,0.1);
  color: var(--emerald);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.contact-card .k { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.contact-card .v { color: var(--muted); font-size: 0.95rem; word-break: break-word; }
.contact-card .v a:hover { color: var(--gold); }
#map {
  grid-column: 1 / -1;
  height: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 0;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 24px; }
.form-field {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.form-field:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15,59,48,0.15);
}
textarea.form-field { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%;
  background: var(--grad-emerald);
  color: #fff;
  border: 0;
  padding: 16px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-emerald);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.form-submit:hover { opacity: 0.92; transform: translateY(-2px); }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--emerald-deep);
  color: rgba(255,255,255,0.72);
  padding: 70px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  display: inline-block;
  background: var(--cream);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.footer-logo img { height: 44px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.72); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-2); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a:hover { color: var(--gold-2); }
.footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: right;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Motion — plain CSS keyframes (no libraries).
   Reveal elements ALWAYS end visible (fill-mode both); nothing is hidden
   from the stylesheet. A vanilla IntersectionObserver only re-times these.
   ========================================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scroll-dot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.reveal { animation: fade-up 0.8s ease both; }
.reveal-in { animation-play-state: running; }

/* On-load hero entrance (always runs, always ends visible) */
.hero .eyebrow { animation: fade-in 0.8s ease both; }
.hero h1 { animation: fade-up 0.9s ease 0.1s both; }
.hero p  { animation: fade-up 0.9s ease 0.25s both; }
.hero-cta { animation: fade-up 0.9s ease 0.4s both; }

.about-media .img-float { animation: float-soft 6s ease-in-out infinite; }

/* Stagger helpers for cards revealed on scroll */
.stagger > * { animation: fade-up 0.7s ease both; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.32s; }
.stagger > *:nth-child(6) { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 66px 0; }
  .stats, .services-grid, .tm-grid, .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { text-align: left; }
  .about-media .img-float { width: 140px; height: 105px; right: 10px; }
}
