/* ========================================
   CleanMachineOS — Premium Landing Page
   ======================================== */

:root {
  --bg: #FAF8F5;
  --bg-alt: #F2EEE8;
  --bg-dark: #2D2A26;
  --fg: #2D2A26;
  --fg-light: #6B6560;
  --accent: #9B2D2D;
  --gold: #C9A84C;
  --border: #E2D9CE;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8125rem;
  color: var(--fg-light);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-light);
  line-height: 1.7;
  max-width: 520px;
}
.hero-image-wrap {
  position: relative;
}
.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* ---- Stats ---- */
.stats {
  background: var(--bg-dark);
  padding: 3rem 2rem;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat {
  text-align: center;
  padding: 0 3rem;
  flex: 1;
}
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ---- Services ---- */
.services {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.services-header {
  margin-bottom: 3.5rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--fg-light);
  max-width: 540px;
  line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
}
.service-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.service-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
.service-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.service-card-wide .service-img {
  width: 400px;
  height: 280px;
  flex-shrink: 0;
}
.service-body {
  padding: 2rem 2.25rem;
}
.service-card-wide .service-body {
  padding: 0;
}
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 0.9375rem;
  color: var(--fg-light);
  line-height: 1.7;
}

/* ---- Rebuild ---- */
.rebuild {
  background: var(--bg-alt);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rebuild-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.rebuild-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.rebuild-body {
  font-size: 1rem;
  color: var(--fg-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.rebuild-body:last-child { margin-bottom: 0; }
.rebuild-badge {
  flex-shrink: 0;
}
.rebuild-badge-inner {
  border: 2px solid var(--accent);
  padding: 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.rebuild-badge-year {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-light);
}
.rebuild-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin: 0.25rem 0;
}
.rebuild-badge-sub {
  font-size: 0.75rem;
  color: var(--fg-light);
  line-height: 1.4;
}

/* ---- Testimonial ---- */
.testimonial {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
}
.quote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.attr-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}
.attr-role {
  font-size: 0.8125rem;
  color: var(--fg-light);
  letter-spacing: 0.04em;
}

/* ---- Closing ---- */
.closing {
  background: var(--bg-dark);
  padding: 5rem 2rem;
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  font-style: italic;
}

/* ---- Footer ---- */
.footer {
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  align-items: start;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.8125rem;
  color: var(--fg-light);
  letter-spacing: 0.04em;
}
.footer-info {
  display: flex;
  gap: 3rem;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--fg-light);
}
.footer-hours-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-light);
  margin-bottom: 0.75rem;
}
.footer-hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--fg-light);
}
.footer-hours-grid span:nth-child(odd) { color: var(--fg); font-weight: 500; }
.footer-note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--fg-light);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 1rem;
  font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image-wrap { order: -1; }
  .hero-image { height: 320px; }
  .rebuild-inner { grid-template-columns: 1fr; }
  .rebuild-badge { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { flex-direction: column; }
  .service-card-wide .service-img { width: 100%; height: 240px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-info { flex-direction: column; gap: 2rem; }
}

@media (max-width: 600px) {
  .stats-inner { flex-wrap: wrap; gap: 2rem; }
  .stat { padding: 0 1.5rem; }
  .stat-divider { display: none; }
  .hero { padding: 3rem 1.5rem 3rem; }
  .services { padding: 4rem 1.5rem; }
  .rebuild { padding: 4rem 1.5rem; }
  .testimonial { padding: 4rem 1.5rem; }
  .testimonial .quote::before { font-size: 4rem; top: -2rem; }
}