/* ==========================================================================
   MM Services CSL — Deck Landing Page
   ========================================================================== */

:root {
  --forest: #1A5C42;
  --forest-dark: #123F2D;
  --red: #D4474B;
  --red-dark: #B23539;
  --cream: #F7F5EE;
  --cream-tint: #EAF3DD;
  --ink: #1E271F;
  --ink-soft: #445046;
  --white: #FFFFFF;
  --warn-bg: #FFF7D6;
  --warn-border: #C99A00;
  --font-head: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 76px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 760px; }

.section { padding: 56px 0; }

.section-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--forest);
  margin: 0 0 20px;
  line-height: 1.25;
}

.section-headline.center { text-align: center; }
.section-headline.light { color: var(--white); }

.center { text-align: center; }
.light { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover { background: var(--red-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-large { font-size: 1.05rem; padding: 16px 32px; }
.btn-full { width: 100%; text-align: center; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--forest);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-logo-link { display: inline-block; line-height: 0; }

.header-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18,63,45,0.88) 0%, rgba(26,92,66,0.82) 55%, rgba(18,63,45,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 640px;
}

.hero-sub {
  color: var(--cream);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 0 28px;
}

/* Trust badges */
.trust-badges {
  background: var(--cream);
  padding: 28px 0;
  border-bottom: 1px solid #e3ddc9;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest);
}

.trust-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  color: var(--forest);
}

/* ==========================================================================
   Problem
   ========================================================================== */

.problem { background: var(--white); }
.problem p { color: var(--ink-soft); }
.problem-close {
  color: var(--forest) !important;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Two Paths
   ========================================================================== */

.paths { background: var(--cream-tint); }

.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.path-card {
  position: relative;
  overflow: hidden;
  background-color: var(--forest-dark);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(18,63,45,0.08);
  display: flex;
  flex-direction: column;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18,63,45,0.85);
  z-index: 0;
}

.path-subhead {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.path-list {
  position: relative;
  z-index: 1;
  padding-left: 20px;
  margin: 0 0 24px;
  color: var(--cream);
  flex-grow: 1;
}

.path-list li { margin-bottom: 10px; }

.path-card .btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

/* ==========================================================================
   How We Work
   ========================================================================== */

.how-we-work { background: var(--white); }

.steps-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  background: var(--forest);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step p { margin: 6px 0 0; color: var(--ink-soft); }
.step p strong { color: var(--ink); }

/* ==========================================================================
   Why Choose Manny
   ========================================================================== */

.why-manny {
  background: var(--forest);
  color: var(--white);
}

.why-manny .section-headline { color: var(--white); }
.why-manny p { color: var(--cream); }

.why-manny-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.manny-photo {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--white) !important;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 7px;
  height: 3px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Gallery — Past Deck Projects
   ========================================================================== */

.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { background: var(--cream-tint); }

.faq-list { margin-top: 24px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 4px 20px;
  box-shadow: 0 1px 4px rgba(18,63,45,0.06);
}

.faq-item summary {
  font-weight: 700;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-answer { padding-bottom: 18px; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ==========================================================================
   Placeholder blocks (FAQ + Social Proof) — must stay visually loud
   ========================================================================== */

.placeholder-block {
  background: var(--warn-bg);
  border: 2px dashed var(--warn-border);
  border-radius: 8px;
  padding: 16px;
}

.placeholder-block-large { padding: 20px; margin-top: 24px; }

.placeholder-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7A5A00;
  background: #FFE799;
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.placeholder-block p {
  color: #6B5200;
  font-size: 0.95rem;
  margin: 0;
}

.placeholder-note {
  margin-top: 14px !important;
  font-style: italic;
}

.social-proof-photo {
  border-radius: 8px;
  margin-bottom: 14px;
  width: 100%;
  height: auto;
}

.social-proof-caption {
  font-weight: 600;
  color: var(--ink) !important;
  margin-bottom: 14px !important;
}

.placeholder-inline {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  border-radius: 4px;
  padding: 0 5px;
  color: #7A5A00;
  font-weight: 600;
}

/* ==========================================================================
   Social Proof — testimonial cards
   ========================================================================== */

.social-proof { background: var(--cream-tint); }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.testimonial-card {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 0;
}

.testimonial-card p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 16px;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--cream);
  font-size: 0.9rem;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
}

.final-cta p { max-width: 560px; margin-left: auto; margin-right: auto; }

.thank-you-main { min-height: 60vh; display: flex; align-items: center; }

/* ==========================================================================
   Form
   ========================================================================== */

.form-section { background: var(--cream); }

.estimate-form {
  margin-top: 24px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(18,63,45,0.08);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.optional { font-weight: 500; color: var(--ink-soft); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6d0;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}

.hidden-field { position: absolute; left: -9999px; }

.form-confirmation {
  margin-top: 24px;
  background: var(--cream-tint);
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--forest-dark);
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--forest-dark);
  color: var(--cream);
  text-align: center;
  padding: 32px 20px 100px;
  font-size: 0.9rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.site-footer p { margin: 4px 0; }
.service-area { opacity: 0.85; font-size: 0.85rem; }
.copyright { opacity: 0.7; font-size: 0.82rem; }

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
}

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */

@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .section { padding: 80px 0; }
  .section-headline { font-size: 2.2rem; }
  .hero-h1 { font-size: 2.8rem; }
  .hero-sub { font-size: 1.25rem; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-badge { flex-direction: column; text-align: center; gap: 8px; }
  .paths-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr 1fr; }
  .why-manny-grid { grid-template-columns: 0.9fr 1.1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .estimate-form { padding: 40px; }
  .sticky-cta { display: none; }
  .site-footer { padding: 40px 20px; }
}

@media (min-width: 1000px) {
  .hero-h1 { font-size: 3.2rem; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
