/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3D2B1F;
  background: #FDF6EE;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: #C0603A; color: #fff; padding: 8px 16px;
  border-radius: 0 0 8px 8px; z-index: 200; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --terra-950: #2D1A10;
  --terra-900: #3D2B1F;
  --terra-800: #5C3D2E;
  --terra-700: #7A4F3A;
  --terra-600: #96634A;
  --terra-500: #B07858;
  --terra-400: #C0603A;
  --terra-300: #D4876A;
  --terra-200: #E8A070;
  --terra-100: #F2C4A0;
  --terra-50:  #FAE4D0;
  --sand-900:  #3D3529;
  --sand-800:  #5C5040;
  --sand-700:  #7A6D5A;
  --sand-600:  #968870;
  --sand-500:  #B0A088;
  --sand-400:  #C8B89E;
  --sand-300:  #DDD0BC;
  --sand-200:  #EDE5D8;
  --sand-100:  #F5EFE5;
  --sand-50:   #FDF6EE;
  --white:     #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(61,43,31,0.08);
  --shadow-md: 0 4px 20px rgba(61,43,31,0.10);
  --shadow-lg: 0 8px 40px rgba(61,43,31,0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Lora', serif; line-height: 1.25; color: var(--terra-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
p { color: var(--sand-700); }
.accent { color: var(--terra-400); }
.accent-light { color: var(--terra-200); }

/* ===== SECTION TAG ===== */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-400);
  background: var(--terra-50);
  border: 1px solid var(--terra-100);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 1rem; padding: 14px 28px;
  border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terra-400); color: var(--white);
  border-color: var(--terra-400);
}
.btn-primary:hover { background: var(--terra-500); border-color: var(--terra-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-outline-terra {
  background: transparent; color: var(--terra-400);
  border-color: var(--terra-400);
}
.btn-outline-terra:hover { background: var(--terra-400); color: var(--white); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,246,238,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand-200);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Lora', serif; font-weight: 600; font-size: 1.1rem;
  color: var(--terra-900);
}
.logo-icon { color: var(--terra-400); }
.logo-quote { color: var(--terra-400); font-style: italic; }
.nav nav { display: flex; align-items: center; gap: 8px; }
.nav nav a:not(.btn) {
  padding: 8px 16px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; color: var(--sand-800);
  transition: all 0.2s ease;
}
.nav nav a:not(.btn):hover { color: var(--terra-400); background: var(--terra-50); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 24px; height: 2px;
  background: var(--terra-800); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger { position: relative; }
.hamburger::before { content: ''; position: absolute; top: -7px; left: 0; }
.hamburger::after { content: ''; position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45,26,16,0.88) 0%,
    rgba(61,43,31,0.80) 50%,
    rgba(92,61,46,0.72) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 780px; text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terra-200);
  background: rgba(192,96,58,0.2); border: 1px solid rgba(192,96,58,0.4);
  padding: 8px 20px; border-radius: 50px; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .accent { color: var(--terra-200); }
.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(253,246,238,0.82); margin-bottom: 36px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-desc em { color: var(--terra-200); font-style: normal; font-weight: 700; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: rgba(253,246,238,0.75);
}
.trust-item svg { color: var(--terra-300); }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--sand-50); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--sand-200);
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--terra-100);
}
.service-icon {
  width: 72px; height: 72px;
  background: var(--terra-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--terra-400);
}
.service-card h3 { margin-bottom: 12px; color: var(--terra-900); }
.service-card p { font-size: 0.95rem; line-height: 1.7; }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-images { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 450px; object-fit: cover; }
.about-img-secondary {
  position: absolute; bottom: -30px; right: -20px;
  width: 200px; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 5px solid var(--white);
}
.about-img-secondary img { width: 100%; height: 200px; object-fit: cover; }
.about-accent {
  position: absolute; top: -20px; left: -20px;
  width: 120px; height: 120px;
  background: var(--terra-100); border-radius: var(--radius-md);
  z-index: -1;
}
.about-text .section-tag { margin-bottom: 16px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 1.02rem; }
.about-stats {
  display: flex; gap: 32px; margin: 32px 0;
}
.stat { text-align: center; }
.stat-number {
  display: block; font-family: 'Lora', serif;
  font-size: 1.75rem; font-weight: 600; color: var(--terra-400);
}
.stat-label { font-size: 0.85rem; color: var(--sand-600); font-weight: 600; }
.about-text .btn { margin-top: 8px; }

/* ===== GALLERY ===== */
.gallery { padding: 100px 0; background: var(--sand-50); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/5; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 100px 0; background: var(--white); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--sand-50);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--sand-200);
  position: relative;
  transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-quote {
  position: absolute; top: 16px; left: 24px;
  font-family: 'Lora', serif; font-size: 5rem;
  line-height: 1; color: var(--terra-100);
  pointer-events: none;
}
.testimonial-card p {
  font-size: 1rem; line-height: 1.8;
  color: var(--sand-800); margin-bottom: 24px;
  position: relative; z-index: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--terra-400); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; color: var(--terra-900); font-size: 0.95rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--sand-600); }

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative; padding: 100px 0; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,26,16,0.90), rgba(92,61,46,0.82));
}
.cta-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 680px; margin: 0 auto;
}
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { color: rgba(253,246,238,0.82); font-size: 1.1rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--sand-50); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.contact-info .section-tag { margin-bottom: 16px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { font-size: 1.05rem; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--terra-50); display: flex;
  align-items: center; justify-content: center;
  color: var(--terra-400); flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--terra-900); font-size: 0.95rem; margin-bottom: 2px; }
.contact-item span, .contact-item a {
  color: var(--sand-700); font-size: 0.95rem;
}
.contact-item a:hover { color: var(--terra-400); text-decoration: underline; }
.map-placeholder { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { margin-bottom: 8px; color: var(--terra-900); }
.contact-form-wrap > p { font-size: 0.95rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--terra-800); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--sand-300);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem; color: var(--terra-900);
  background: var(--sand-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terra-400);
  box-shadow: 0 0 0 4px rgba(192,96,58,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--sand-500); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Form success */
.form-success {
  text-align: center; padding: 40px 20px;
  color: var(--terra-800);
}
.form-success svg { color: #4CAF50; margin: 0 auto 16px; }
.form-success h4 { font-size: 1.3rem; color: var(--terra-900); margin-bottom: 8px; }
.form-success p { font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--terra-950); color: rgba(253,246,238,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 0.95rem; color: rgba(253,246,238,0.55); }
.footer h4 {
  font-family: 'Nunito', sans-serif; font-size: 0.85rem;
  font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terra-200); margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 0.95rem; color: rgba(253,246,238,0.6);
  transition: color 0.2s ease;
}
.footer ul a:hover { color: var(--terra-200); }
.footer address { font-style: normal; line-height: 1.8; font-size: 0.95rem; }
.footer p { font-size: 0.95rem; }
.footer a:hover { color: var(--terra-200); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(253,246,238,0.1);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; color: rgba(253,246,238,0.4);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-images { order: -1; max-width: 500px; }
  .about-img-secondary { width: 160px; right: -10px; bottom: -20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav nav { 
    display: none;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(253,246,238,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
  }
  .nav nav.open { display: flex; }
  .nav nav a:not(.btn) {
    font-size: 1.15rem; padding: 14px 20px;
    border-radius: var(--radius-sm);
  }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding: 120px 20px 80px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-trust { flex-direction: column; align-items: center; gap: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .about-img-main img { height: 300px; }
  .about-img-secondary { width: 130px; }
  .about-img-secondary img { height: 130px; }
}
