/* ================================================================
   FamilySafe Carpet Cleaning — Site Stylesheet
   Design system: Cream + Forest Green + Terracotta
   Type: Fraunces (display serif) + Plus Jakarta Sans (body)
   ================================================================ */

:root {
  /* Colour — derived from logo: burgundy + gold + cream */
  --bg: #FAF7F2;
  --bg-warm: #F2EBDE;
  --surface: #FFFFFF;
  --surface-2: #F4ECDE;
  --primary: #6B1F26;
  --primary-hover: #7E2530;
  --primary-soft: #F5E4E0;
  --primary-deep: #3D0F14;
  --accent: #C49A4C;
  --accent-hover: #B0862F;
  --accent-soft: #F7EAD0;
  --gold: #D4B27D;
  --gold-soft: #F2E4BD;
  --text: #1F1416;
  --text-muted: #5E4E50;
  --text-faint: #8E7E80;
  --border: #E8DFD0;
  --border-strong: #C9BC9F;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(61,15,20,0.04), 0 1px 3px rgba(61,15,20,0.06);
  --shadow-md: 0 4px 12px rgba(61,15,20,0.06), 0 2px 4px rgba(61,15,20,0.04);
  --shadow-lg: 0 10px 30px rgba(61,15,20,0.08), 0 4px 12px rgba(61,15,20,0.06);
  --shadow-xl: 0 24px 48px rgba(61,15,20,0.14), 0 8px 16px rgba(61,15,20,0.08);

  /* Geometry */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --max-w: 1200px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Subtle texture on the background (warm grain) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.35  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.serif { font-family: 'Fraunces', Georgia, serif; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: 0; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}
.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) { .container { padding: 0 18px; } }

section { padding: clamp(56px, 8vw, 96px) 0; }
section.tight { padding: clamp(40px, 6vw, 64px) 0; }

/* ============================================================
   OFFER BANNER
   ============================================================ */
.offer-banner {
  background: var(--primary-deep);
  color: #FAF7F2;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.offer-banner strong { color: var(--gold-soft); font-weight: 700; }
.offer-banner.hidden { display: none; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
header.site-header {
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FAF7F2;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.primary a {
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
nav.primary a:hover { background: var(--primary-soft); color: var(--primary); }
nav.primary a.current { color: var(--primary); font-weight: 600; }
.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.phone-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone-link:hover { background: var(--primary-soft); }
.menu-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  color: var(--primary);
}
.menu-toggle:hover { background: var(--primary-soft); }
@media (max-width: 1100px) {
  nav.primary { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta .phone-link span.label { display: none; }
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--primary-soft); color: var(--primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-soft); }
.btn-large { padding: 18px 28px; font-size: 17px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.trust-strip > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.trust-strip svg { color: var(--gold); flex-shrink: 0; }
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--primary-deep);
  color: rgba(250,247,242,0.85);
  padding: 64px 0 28px;
  margin-top: 64px;
}
footer.site-footer h4 {
  color: #FAF7F2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}
@media (max-width: 860px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
footer.site-footer .logo { color: #FAF7F2; }
footer.site-footer .logo-mark { background: var(--bg); color: var(--primary); }
footer.site-footer p { font-size: 14px; line-height: 1.6; margin-top: 10px; }
footer.site-footer a {
  color: rgba(250,247,242,0.75);
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}
footer.site-footer a:hover { color: #FAF7F2; }
footer.site-footer .socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
footer.site-footer .socials a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,247,242,0.08);
  border-radius: 50%;
  color: #FAF7F2;
  padding: 0;
}
footer.site-footer .socials a:hover { background: rgba(250,247,242,0.18); }
footer.site-footer .copyright {
  border-top: 1px solid rgba(250,247,242,0.12);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ============================================================
   UTILITY ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards;
}
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.3s; }
.reveal-d4 { animation-delay: 0.4s; }
.reveal-d5 { animation-delay: 0.5s; }

/* ============================================================
   IMAGE PLACEHOLDERS (replace with real photos)
   ============================================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface-2) 100%);
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-muted);
  font-size: 13px;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.img-placeholder svg {
  width: 36px; height: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
}
.img-placeholder strong {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.logo .brand { display: inline-flex; flex-direction: column; line-height: 1.05; }
.logo .brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.logo .brand-tag { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 1px; }
.site-footer .logo .brand-name { color: #FAF7F2; }
.site-footer .logo .brand-tag { color: var(--gold-soft, #F2E4BD); opacity: 0.85; }


.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
