/* FixMyCasa — Warm whole-home maintenance */
:root {
  --cream: #F5EFE6;
  --cream-2: #EFE7DA;
  --paper: #FAF6EF;
  --cocoa: #2A1F18;
  --cocoa-2: #1B130D;
  --terracotta: #C2552D;
  --terracotta-deep: #A33F1B;
  --brick: #8B3A1F;
  --sage: #7A8C6C;
  --ink: #2A1F18;
  --muted: #6B5C4F;
  --line: #E2D7C5;
  --line-strong: #C9B89E;
  --gold: #C99A4A;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Bricolage Grotesque', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

.font-display { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.font-serif { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; }
.font-mono { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: -0.01em; }

/* Paper grain */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; 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 baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.18; mix-blend-mode: multiply;
}

/* Hand-drawn underline */
.underline-ink {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 2 100 6 T 198 5' stroke='%23C2552D' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.4em;
  padding-bottom: 0.15em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--terracotta); color: #FFF8EE;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 8px 20px -6px rgba(194,85,45,0.5), 0 0 0 1px rgba(0,0,0,0.05);
}
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--cocoa);
  border: 1.5px solid var(--cocoa);
}
.btn-ghost:hover { background: var(--cocoa); color: var(--cream); }
.btn-cream {
  background: var(--cream); color: var(--cocoa);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 20px -6px rgba(0,0,0,0.15);
}
.btn-cream:hover { transform: translateY(-1px); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--cocoa);
}

/* Section spacing */
.section { padding: 96px 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* Subscription badge */
.tile-pattern {
  background-image:
    radial-gradient(circle at 50% 0%, var(--line-strong) 0, var(--line-strong) 1px, transparent 1.5px),
    radial-gradient(circle at 0% 50%, var(--line-strong) 0, var(--line-strong) 1px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Roof tile pattern */
.roof-pattern {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'><path d='M0 20 Q 10 0 20 20 Q 30 0 40 20' stroke='%23C2552D' stroke-width='1' fill='none' opacity='0.25'/></svg>");
  background-repeat: repeat;
}

/* Subtle striped placeholder */
.placeholder-stripe {
  background:
    repeating-linear-gradient(135deg,
      rgba(42,31,24,0.04) 0 8px,
      rgba(42,31,24,0.08) 8px 9px);
  border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-align: center;
}

/* Inputs */
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(194,85,45,0.12);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Marquee */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  animation: scroll-x 40s linear infinite;
}

/* Calendar */
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  border: 1px solid transparent;
  user-select: none;
}
.cal-day:hover:not(.disabled) {
  background: var(--cream-2);
  border-color: var(--line-strong);
}
.cal-day.disabled {
  color: var(--line-strong);
  cursor: not-allowed;
}
.cal-day.today {
  border-color: var(--terracotta);
  color: var(--terracotta);
  font-weight: 600;
}
.cal-day.selected {
  background: var(--cocoa);
  color: var(--cream);
  border-color: var(--cocoa);
}
.cal-day.has-slots::after {
  content: "";
  display: block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--terracotta);
  position: absolute;
  margin-top: 28px;
}

.slot {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
}
.slot:hover { border-color: var(--terracotta); color: var(--terracotta); }
.slot.selected { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }

/* Star */
.star { color: var(--gold); }

/* Spin */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ───────────────────────── Responsive ───────────────────────── */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }

/* Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
  .hero-floater { transform: none !important; }
  .hero-floater.left { left: -8px !important; }
  .hero-floater.right { right: -8px !important; }
}

/* Phone */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }

  .btn { padding: 13px 20px; font-size: 15px; }

  /* Nav: drop secondary links, keep logo + lang + book CTA */
  .nav-links { display: none !important; }
  .nav-cta { padding: 9px 14px !important; font-size: 13px !important; }

  /* Hero — stack and scale */
  .hero-grid { grid-template-columns: 1fr !important; gap: 36px !important; padding: 28px 0 56px !important; }
  .hero-img-wrap { height: 360px !important; }
  .hero-img-wrap.tall { height: 320px !important; }
  .hero-floater { display: none !important; }
  .hero-title { font-size: clamp(40px, 11vw, 60px) !important; line-height: 1 !important; margin-bottom: 18px !important; letter-spacing: -0.035em !important; }
  .hero-title.huge { font-size: clamp(44px, 13vw, 76px) !important; }
  .hero-sub { font-size: 15px !important; line-height: 1.55 !important; margin-bottom: 24px !important; }
  .hero-cta-row { flex-wrap: wrap; gap: 10px !important; margin-bottom: 28px !important; }
  .hero-cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero-meta { font-size: 11px !important; margin-bottom: 18px !important; letter-spacing: 0.08em !important; }
  .hero-pill { font-size: 11px !important; padding: 5px 12px !important; }
  .hero-quote-c { font-size: 16px !important; top: 8px !important; right: 8px !important; }
  .hero-b-section { min-height: 0 !important; }
  .hero-b-pad { padding: 80px 0 56px !important; }

  /* Trust bar — wrap nicely */
  .trust-bar { flex-wrap: wrap; gap: 12px !important; }

  /* Section heads (eyebrow + title + paragraph) */
  .section-head-grid { grid-template-columns: 1fr !important; gap: 20px !important; margin-bottom: 32px !important; align-items: start !important; }
  .section-head-grid p { justify-self: start !important; max-width: 100% !important; font-size: 15px !important; }
  .section-title { font-size: clamp(32px, 8vw, 44px) !important; line-height: 1 !important; letter-spacing: -0.03em !important; }

  /* Services */
  .services-grid { grid-template-columns: 1fr !important; }

  /* How It Works */
  .how-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .how-grid > .how-side { position: static !important; }
  .how-step-row { grid-template-columns: auto 1fr !important; gap: 16px !important; padding: 22px 0 !important; }
  .how-step-row .step-arrow { display: none !important; }
  .how-step-num { font-size: 40px !important; }
  .how-step-title { font-size: 20px !important; }
  .how-step-body { font-size: 15px !important; }

  /* Service Area */
  .service-area-section { margin: 0 14px !important; padding: 56px 0 !important; border-radius: 22px !important; }
  .service-area-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .area-stats { flex-wrap: wrap; gap: 20px !important; }

  /* Testimonials */
  .testimonials-head { flex-direction: column; align-items: flex-start !important; gap: 16px !important; }
  .testimonials-head .stars-block { text-align: left !important; }
  .testimonials-head .stars-block > div:first-child { justify-content: flex-start !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .review-quote { font-size: 17px !important; }

  /* Membership */
  .membership-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .membership-tier { transform: none !important; padding: 26px !important; }
  .tier-price { font-size: 44px !important; }
  .mem-head { margin-bottom: 36px !important; }
  .mem-title { font-size: clamp(32px, 8vw, 44px) !important; line-height: 1 !important; }

  /* Rules */
  .rules-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; margin-bottom: 36px !important; }
  .footer-bottom { flex-direction: column !important; gap: 14px !important; align-items: flex-start !important; text-align: left !important; }
  footer.site-footer { padding: 56px 0 28px !important; border-radius: 24px 24px 0 0 !important; }

  /* Scheduler */
  .scheduler-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .scheduler-grid > .sch-side { position: static !important; }
  .scheduler-grid .sch-title { font-size: clamp(32px, 8vw, 44px) !important; line-height: 1 !important; }
  .scheduler-step2-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .sch-stepper { gap: 4px !important; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .sch-stepper::-webkit-scrollbar { display: none; }
  .sch-step-label:not(.active) { display: none; }
  .sch-step-label.active { font-size: 12px !important; }
  .sch-step-row { flex-shrink: 0; }
  .sch-step-divider { min-width: 12px !important; }
  .sch-card-pad { padding: 22px !important; min-height: auto !important; }
  .sch-card-head { padding: 18px 22px !important; }
  .sch-form-grid { grid-template-columns: 1fr !important; }
  .sch-card-grid { grid-template-columns: 1fr 1fr !important; }
  .sch-card-grid > [style*="1 / -1"] { grid-column: 1 / -1 !important; }

  /* Inputs/buttons readable on phones */
  .input { font-size: 16px; padding: 14px 14px; }
  .slot { padding: 12px 10px; font-size: 13px; }
  .cal-day { font-size: 13px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 36px !important; }
}

/* Scheduler stepper: collapse non-active labels when card column is too narrow
   for all 5 to fit (between phone breakpoint and ~desktop max container) */
@media (min-width: 721px) and (max-width: 1199px) {
  .sch-stepper { gap: 6px !important; }
  .sch-step-label:not(.active) { display: none; }
  .sch-step-label.active { font-size: 12px !important; }
  .sch-step-row { flex-shrink: 0; }
  .sch-step-divider { min-width: 10px !important; }
}
