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

:root {
  --clr-terra-950: #3D1C0E;
  --clr-terra-900: #5C2A14;
  --clr-terra-800: #7A3518;
  --clr-terra-700: #9A4320;
  --clr-terra-600: #B5542A;
  --clr-terra-500: #C0603A;
  --clr-terra-400: #D47856;
  --clr-terra-300: #E09478;
  --clr-terra-200: #EAB89E;
  --clr-terra-100: #F5D5C4;
  --clr-terra-50:  #FBEBE4;

  --clr-sand-950: #2C2418;
  --clr-sand-900: #3D3224;
  --clr-sand-800: #5C4D38;
  --clr-sand-700: #7A6850;
  --clr-sand-600: #968268;
  --clr-sand-500: #B09C82;
  --clr-sand-400: #C4B49C;
  --clr-sand-300: #D8CCBC;
  --clr-sand-200: #E8DFD2;
  --clr-sand-100: #F2EDE6;
  --clr-sand-50:  #FAF7F3;

  --clr-white: #FEFCFA;
  --clr-dark:  #1E1510;

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(30,21,16,.08), 0 1px 2px rgba(30,21,16,.06);
  --shadow-md: 0 4px 16px rgba(30,21,16,.10), 0 2px 6px rgba(30,21,16,.07);
  --shadow-lg: 0 12px 40px rgba(30,21,16,.12), 0 4px 12px rgba(30,21,16,.08);
  --shadow-xl: 0 24px 60px rgba(30,21,16,.15), 0 8px 20px rgba(30,21,16,.10);

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--clr-sand-900);
  background: var(--clr-sand-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-terra-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-terra-500); }
ul { list-style: none; }
address { font-style: normal; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--clr-terra-700); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  z-index: 9999; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography ─────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-terra-500);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--clr-terra-950);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--clr-sand-700);
  max-width: 600px;
  line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-desc { margin: 0 auto; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: .8125rem 1.75rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-terra-500);
  color: #fff;
  border-color: var(--clr-terra-500);
  box-shadow: 0 4px 14px rgba(192,96,58,.35);
}
.btn-primary:hover {
  background: var(--clr-terra-600);
  border-color: var(--clr-terra-600);
  color: #fff;
  box-shadow: 0 6px 20px rgba(192,96,58,.45);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--clr-terra-700);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-terra {
  background: transparent;
  color: var(--clr-terra-600);
  border-color: var(--clr-terra-300);
}
.btn-outline-terra:hover {
  background: var(--clr-terra-50);
  border-color: var(--clr-terra-500);
  color: var(--clr-terra-700);
}

.btn-sm { padding: .5rem 1.125rem; font-size: .8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,247,243,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,96,58,.10);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  color: var(--clr-terra-900);
}
.logo-icon { color: var(--clr-terra-600); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-list a {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--clr-sand-800);
  padding: .5rem .875rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.nav-list a:hover {
  color: var(--clr-terra-600);
  background: var(--clr-terra-50);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1001;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--clr-terra-800);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-terra-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/8387807/pexels-photo-8387807.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30,21,16,.82) 0%,
    rgba(61,28,14,.72) 50%,
    rgba(122,53,24,.60) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 8rem 1.5rem 5rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-terra-200);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(250,247,243,.82);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,247,243,.15);
}

.hero-stat { display: flex; flex-direction: column; gap: .25rem; }
.hero-stat-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}
.hero-stat-label {
  font-size: .8125rem;
  color: rgba(250,247,243,.6);
  font-weight: 600;
  letter-spacing: .04em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(250,247,243,.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(250,247,243,.5);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Base ───────────────────────────────────── */
.section {
  padding: 6rem 0;
}

/* ── Services ───────────────────────────────────────── */
.services { background: var(--clr-sand-50); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(192,96,58,.07);
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--clr-terra-200);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--clr-terra-50);
  color: var(--clr-terra-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--clr-terra-500);
  color: #fff;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--clr-terra-900);
  margin-bottom: .625rem;
}

.service-desc {
  font-size: .9375rem;
  color: var(--clr-sand-700);
  line-height: 1.7;
}

/* ── About ──────────────────────────────────────────── */
.about { background: var(--clr-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 560px;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 55%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid #fff;
}
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }

.about-badge {
  position: absolute;
  top: -1rem;
  left: -1rem;
  background: var(--clr-terra-500);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.4;
  z-index: 2;
}
.about-badge svg { flex-shrink: 0; }

.about-content .section-title { margin-top: .25rem; }
.about-text {
  font-size: 1rem;
  color: var(--clr-sand-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-features { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .875rem; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--clr-sand-800);
  font-weight: 600;
}
.about-check { color: var(--clr-terra-500); flex-shrink: 0; margin-top: 2px; }

/* ── Gallery ────────────────────────────────────────── */
.gallery { background: var(--clr-sand-50); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item--wide { grid-column: span 2; }
.gallery-item { min-height: 240px; }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(30,21,16,.7), transparent);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA ────────────────────────────────────────────── */
.cta {
  padding: 6rem 0;
  background: var(--clr-terra-900);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192,96,58,.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,148,120,.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-content { max-width: 520px; }
.cta-eyebrow { color: var(--clr-terra-300); }
.cta-title { color: #fff; }
.cta-text {
  font-size: 1.0625rem;
  color: rgba(250,247,243,.72);
  line-height: 1.75;
  margin-top: .75rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Contact ────────────────────────────────────────── */
.contact { background: var(--clr-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  color: var(--clr-sand-700);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--clr-terra-50);
  color: var(--clr-terra-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail strong {
  display: block;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-terra-700);
  margin-bottom: .25rem;
}
.contact-detail p {
  font-size: .9375rem;
  color: var(--clr-sand-800);
  line-height: 1.6;
}
.contact-detail a { color: var(--clr-terra-600); }
.contact-detail a:hover { color: var(--clr-terra-500); text-decoration: underline; }

/* ── Form ───────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--clr-sand-50);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--clr-terra-100);
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--clr-terra-900);
  margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-sand-800);
  margin-bottom: .5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .875rem 1rem;
  border: 2px solid var(--clr-sand-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--clr-sand-900);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-sand-400);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-terra-400);
  box-shadow: 0 0 0 4px rgba(192,96,58,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: .8125rem;
  color: var(--clr-sand-600);
  margin-top: .75rem;
  text-align: center;
}

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #e8f5e9;
  border-radius: var(--radius-md);
  color: #2e7d32;
  font-weight: 600;
  font-size: .9375rem;
}
.form-success svg { flex-shrink: 0; color: #4caf50; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--clr-terra-950);
  color: rgba(250,247,243,.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.logo-light { color: rgba(250,247,243,.9); }
.logo-light .logo-icon { color: var(--clr-terra-300); }

.footer-tagline {
  font-size: .9375rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(250,247,243,.55);
  max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-terra-300);
  margin-bottom: 1rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .9375rem;
  color: rgba(250,247,243,.6);
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--clr-terra-200); text-decoration: none; }

.footer-contact address { font-size: .9375rem; line-height: 1.8; }
.footer-contact a { color: rgba(250,247,243,.6); }
.footer-contact a:hover { color: var(--clr-terra-200); }

.footer-bottom {
  border-top: 1px solid rgba(250,247,243,.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8125rem;
  color: rgba(250,247,243,.4);
}
.footer-bottom a { color: rgba(250,247,243,.5); }
.footer-bottom a:hover { color: var(--clr-terra-200); }

/* ── Reveal Animations ──────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--clr-sand-50);
    flex-direction: column;
    align-items: stretch;
    padding: 6rem 1.5rem 2rem;
    gap: .25rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1000;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a {
    padding: .875rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
  .nav-list a:hover { background: var(--clr-terra-50); }
  .nav-list li:last-child { margin-top: 1rem; }

  .hero-content { padding-top: 7rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-images { min-height: 400px; }
  .about-img-secondary { right: -.5rem; bottom: -1rem; width: 60%; }
  .about-badge { top: -.75rem; left: -.5rem; }

  .services-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item { min-height: 180px; }
  .gallery-caption { display: none; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form-wrap { padding: 1.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,21,16,.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
