/* === Custom Properties === */
:root {
  --bg: #f5f0eb;
  --surface: #ebe5dd;
  --text: #2c2418;
  --primary: #2d5a3d;
  --primary-light: #e8efe9;
  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 24px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }

/* === Utility === */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.skip-link {
  position: absolute; top: -100%; left: 1rem; padding: 0.5rem 1rem;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.875rem 2rem; border-radius: 100px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #1f4a2f; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(245,240,235,0.9); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; width: 90%; max-width: var(--max-width); margin: 0 auto;
}
.nav__logo { font-weight: 700; font-size: 1.125rem; color: var(--text); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.nav__links a:hover { color: var(--primary); }
.nav__cta { display: flex; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: 0.3s;
}

/* === Mobile Nav === */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 100; padding: 0.5rem 0 env(safe-area-inset-bottom);
}
.mobile-nav { display: flex; justify-content: space-around; }
.mobile-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.5rem; color: var(--text); opacity: 0.5; font-size: 0.6875rem;
  text-decoration: none;
}
.mobile-nav__item--active { opacity: 1; color: var(--primary); }
.mobile-nav__item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* === Footer === */
.footer {
  background: var(--surface); padding: 3rem 0; margin-bottom: 60px;
  border-radius: var(--radius) var(--radius) 0 0;
  contain: layout style;
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__logo { font-weight: 700; font-size: 1.125rem; color: var(--text); }
.footer__copy { color: var(--text); opacity: 0.6; font-size: 0.875rem; }

/* === Scroll Reveal === */
.reveal { }
.reveal--animate { animation: revealSlide 0.6s ease both; }
.reveal--animate.reveal--delay-1 { animation-delay: 0.1s; }
.reveal--animate.reveal--delay-2 { animation-delay: 0.2s; }
.reveal--animate.reveal--delay-3 { animation-delay: 0.3s; }
@keyframes revealSlide {
  from { opacity: 0.4; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal--animate { animation: none; }
}

/* === Hero (centered) === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  text-align: center;
  contain: layout style;
}
.hero__inner {
  width: 90%; max-width: 720px; margin: 0 auto;
}
.hero__eyebrow {
  text-transform: uppercase; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--primary); margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; }
.hero__subtitle { font-size: 1.125rem; line-height: 1.7; color: var(--text); opacity: 0.8; margin-bottom: 2rem; }
.hero__image { width: 100%; max-width: 720px; margin: 2.5rem auto 0; }
.hero__image img {
  width: 100%; height: auto; border-radius: var(--radius);
  object-fit: cover; aspect-ratio: 3/2;
}

/* === Intro Paragraph === */
.intro-section { padding: 4rem 0; contain: layout style; }
.intro-section p {
  max-width: 720px; margin: 0 auto; font-size: 1.125rem;
  line-height: 1.8; text-align: center; opacity: 0.85;
}

/* === Services Cards (2x2) === */
.services-section { padding: 5rem 0; contain: layout style; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; opacity: 0.7; max-width: 600px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.service-card__image {
  width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1.25rem;
}
.service-card__icon { width: 48px; height: 48px; margin-bottom: 1.25rem; }
.service-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card__desc { font-size: 0.9375rem; opacity: 0.7; margin-bottom: 1rem; line-height: 1.6; }
.service-card__link { font-weight: 600; font-size: 0.875rem; }

/* === Philosophy === */
.philosophy-section {
  background: var(--primary-light); padding: 5rem 0;
  contain: layout style;
}
.philosophy__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.philosophy__content { text-align: left; }
.philosophy__content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1.5rem; }
.philosophy__content p { font-size: 1.0625rem; line-height: 1.7; opacity: 0.85; margin-bottom: 1.5rem; }
.philosophy__image img {
  width: 100%; height: auto; border-radius: var(--radius);
  object-fit: cover; aspect-ratio: 3/2;
}
.pull-quote {
  font-size: 1.25rem; font-weight: 600; color: var(--primary);
  font-style: italic; line-height: 1.6;
}

/* === Testimonial Carousel === */
.testimonial-section { padding: 5rem 0; contain: layout style; }
.testimonial-carousel {
  display: flex; gap: 1.5rem; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 1rem 0; scrollbar-width: none;
}
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-carousel > * {
  scroll-snap-align: center; flex: 0 0 min(320px, 85vw);
}
.testimonial-card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem;
  text-align: center;
}
.testimonial-card__avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.25rem; border: 3px solid var(--primary-light);
}
.testimonial-card__quote { font-size: 1rem; line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card__name { font-weight: 700; }
.testimonial-card__role { font-size: 0.875rem; opacity: 0.6; }

/* === CTA Section === */
.cta-section { padding: 5rem 0; text-align: center; contain: layout style; }
.cta-section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.cta-section p { font-size: 1.0625rem; opacity: 0.7; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === Page Hero (warm) === */
.page-hero { padding: calc(var(--nav-height) + 3rem) 0 3rem; contain: layout style; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
.page-hero p { font-size: 1.0625rem; opacity: 0.7; margin-top: 0.75rem; }

/* === Service Blocks (services page, stacked cards) === */
.service-blocks { padding: 4rem 0; contain: layout style; }
.service-block {
  display: grid; grid-template-columns: 80px 1fr; gap: 2rem;
  padding: 2.5rem; margin-bottom: 2rem;
  background: var(--surface); border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  align-items: start;
}
.service-block__icon { width: 64px; height: 64px; }
.service-block__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-block__desc { font-size: 1rem; opacity: 0.8; margin-bottom: 1rem; line-height: 1.7; }
.service-block__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-block__list li {
  font-size: 0.8125rem; font-weight: 500; padding: 0.375rem 0.875rem;
  background: var(--primary-light); color: var(--primary); border-radius: 100px;
}

/* === Contact Form === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem 0; }
.form-card { background: var(--surface); padding: 2.5rem; border-radius: var(--radius); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; font-family: inherit; font-size: 1rem;
  background: var(--bg); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.info-card { padding: 2.5rem; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--primary); }
.info-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.info-card__item { margin-bottom: 1.25rem; }
.info-card__item strong { display: block; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; margin-bottom: 0.25rem; }
.info-card__item a { color: var(--primary); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links--open { display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg); padding: 1rem 5%; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .services-grid { grid-template-columns: 1fr; }
  .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy__content { text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 1rem; }
  .footer { margin-bottom: 72px; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none; }
}
