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

:root {
  --primary: #2C5545;
  --primary-light: #3a7a60;
  --cream: #FAF6F0;
  --cream-dark: #F0EBE3;
  --accent: #C67A52;
  --accent-hover: #b56a44;
  --dark: #1a1a1a;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; color: var(--dark); }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-lg { font-size: 1.15rem; line-height: 1.7; color: var(--text-light); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 50px; font-family: var(--font-heading);
  font-weight: 500; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.3s ease; background: var(--primary); color: var(--white);
  text-decoration: none;
}
.btn:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(44,85,69,0.2); }
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 8px 30px rgba(198,122,82,0.25); }
.btn-full { width: 100%; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  padding: 14px 0; box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--white); transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--dark); }
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.8); transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a:hover { color: var(--primary); }
.nav-links .btn { color: var(--white) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: all 0.3s; border-radius: 2px;
}
.nav.scrolled .nav-toggle span { background: var(--dark); }

/* === Hero === */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--primary); overflow: hidden; padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(198,122,82,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(198,122,82,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 28px;
  font-family: var(--font-heading); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero-sub {
  font-size: 1.2rem; line-height: 1.7; color: rgba(255,255,255,0.7);
  margin-bottom: 40px; max-width: 560px;
}

/* === Sections === */
.section { padding: 120px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p, .section-dark span, .section-dark a { color: rgba(255,255,255,0.75); }

.section-grid { display: grid; grid-template-columns: 200px 1fr; gap: 60px; }
.section-header { max-width: 640px; margin-bottom: 64px; }
.section-header h2 { margin-top: 12px; margin-bottom: 16px; }

.label-tag {
  display: inline-block; font-family: var(--font-heading); font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); padding: 6px 16px; border-radius: 50px;
  background: rgba(198,122,82,0.1);
}
.label-tag-light { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

.section-content h2 { margin-bottom: 20px; }
.section-content p { margin-bottom: 16px; max-width: 600px; }

/* About stats */
.about-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat-icon { font-size: 1.4rem; }
.stat-text { font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; color: var(--dark); }

/* === Services === */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px;
  transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 24px;
  background: var(--cream); color: var(--primary);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }

/* === Why === */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card {
  padding: 44px 36px; border-radius: var(--radius-lg);
  background: var(--cream); border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}
.why-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.04); }
.why-number {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  color: var(--accent); margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 12px; }
.why-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { margin-top: 12px; margin-bottom: 16px; color: var(--white); }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); }
.contact-item a { border-bottom: 1px solid rgba(255,255,255,0.2); transition: border-color 0.3s; }
.contact-item a:hover { border-color: rgba(255,255,255,0.6); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06);
  color: var(--white); font-family: var(--font-body); font-size: 1rem;
  transition: all 0.3s; outline: none; backdrop-filter: blur(4px);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); background: rgba(255,255,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* === Footer === */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { max-width: 280px; }
.footer-links h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.95rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; font-size: 0.85rem; }

/* === Animations === */
.animate-in {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 900px) {
  .section-grid { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); flex-direction: column; padding: 80px 32px 32px;
    gap: 24px; transition: right 0.3s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 1.1rem; }
}
