/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --espresso: #1C1917;
  --cream: #FAF7F2;
  --sienna: #C2410C;
  --ember: #E8824D;
  --sand: #E7E2D8;
  --stone: #78716C;
  --pine: #3F4A3C;
  --white: #FFFFFF;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 0.75rem;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* ===== Fade-up animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--sienna);
  color: var(--white);
}
.btn-primary:hover { background: var(--ember); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  height: var(--nav-height);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--espresso); }
.nav-cta .btn { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-mobile-toggle svg { width: 24px; height: 24px; stroke: var(--espresso); }
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 1rem 1.5rem;
}
.nav-mobile-menu.is-open { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile-menu a { font-size: 0.9rem; font-weight: 500; color: var(--stone); }
.nav-mobile-menu .btn { width: 100%; text-align: center; margin-top: 0.5rem; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-interior.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.125rem; max-width: 640px; margin: 0 auto 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Trust Strip ===== */
.trust-strip {
  background: var(--sand);
  padding: 1.25rem 0;
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-item svg { width: 18px; height: 18px; stroke: var(--sienna); fill: none; flex-shrink: 0; }

@media (max-width: 640px) {
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* ===== What Is It ===== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.comparison-card {
  padding: 2rem;
  border-radius: 0.75rem;
}
.comparison-card.old { background: rgba(231, 226, 216, 0.6); }
.comparison-card.modern { background: var(--white); border: 1px solid var(--sand); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.comparison-card h3 { margin-bottom: 1.5rem; }
.comparison-card ul { list-style: none; }
.comparison-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.comparison-card.old li { color: var(--stone); }
.comparison-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.comparison-card.old li svg { stroke: #EF4444; }
.comparison-card.modern li svg { stroke: var(--sienna); }

@media (max-width: 640px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

/* ===== How It Works ===== */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
.how-column h3 { margin-bottom: 2rem; }
.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sienna);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.125rem;
}
.step h4 { font-family: 'Inter', sans-serif; font-weight: 500; margin-bottom: 0.25rem; }
.step p { font-size: 0.875rem; color: var(--stone); }

@media (max-width: 640px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(194, 65, 12, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--sienna); fill: none; }
.feature-card h3 { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--stone); }

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== Environments ===== */
.bg-sand-light { background: rgba(231, 226, 216, 0.4); }

.env-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.env-tile {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.env-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.env-tile:hover img { transform: scale(1.05); }
.env-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.8), rgba(28,25,23,0.2) 50%, transparent);
}
.env-tile-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}
.env-tile-text h3 { color: var(--white); font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.25rem; }
.env-tile-text p { color: rgba(255,255,255,0.7); font-size: 0.75rem; line-height: 1.4; }

@media (max-width: 1024px) { .env-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .env-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Benefits ===== */
.benefits-headline { white-space: pre-line; }
.benefit-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.benefit-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(194, 65, 12, 0.1);
  color: var(--sienna);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.875rem;
}
.benefit-item h3 { margin-bottom: 0.5rem; }
.benefit-item p { color: var(--stone); }

/* ===== Why Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.why-text p { color: var(--stone); margin-bottom: 1rem; }
.why-image {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.why-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-image { order: -1; }
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.testimonial-card blockquote {
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.testimonial-card .name { font-weight: 500; font-size: 0.875rem; }
.testimonial-card .role { color: var(--stone); font-size: 0.75rem; }

@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 3rem auto 0; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--espresso);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--sienna); }
.faq-question svg {
  width: 18px;
  height: 18px;
  stroke: var(--stone);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.is-open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--stone);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Final CTA ===== */
.final-cta {
  background: var(--espresso);
  text-align: center;
  padding: 5rem 1.5rem;
}
.final-cta img { height: 64px; width: auto; margin: 0 auto 2rem; }
.final-cta h2 { color: var(--white); margin-bottom: 2rem; white-space: pre-line; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--sand);
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  background: var(--white);
  color: var(--espresso);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sienna);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select { cursor: pointer; }
.form-status { font-size: 0.875rem; }
.form-status.success { color: var(--pine); }
.form-status.error { color: #DC2626; }

.contact-sidebar { padding-top: 4rem; }
.contact-info-item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info-item svg { width: 18px; height: 18px; stroke: var(--sienna); flex-shrink: 0; margin-top: 2px; }
.contact-info-item .label { font-weight: 500; font-size: 0.875rem; }
.contact-info-item .value { color: var(--stone); font-size: 0.875rem; }
.contact-info-item a:hover { color: var(--sienna); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { padding-top: 0; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  background: var(--espresso);
  color: rgba(250, 247, 242, 0.6);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-logo img { height: 32px; width: auto; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,247,242,0.4); }
.footer nav a { display: block; font-size: 0.875rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer nav a:hover { color: var(--cream); }
.footer-contact p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-contact a:hover { color: var(--cream); }
.footer-family { color: rgba(250,247,242,0.4); margin-top: 1rem; font-size: 0.875rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,247,242,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(250,247,242,0.3);
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}
