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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #faf9f5;
  color: #1f361c;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* ========== GEOMETRIC SHAPES ========== */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-circle--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 82, 41, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.geo-circle--2 {
  width: 200px;
  height: 200px;
  background: rgba(201, 168, 76, 0.1);
  bottom: 10%;
  left: 5%;
}

.geo-square {
  position: absolute;
  pointer-events: none;
  border-radius: 16px;
}

.geo-square--1 {
  width: 120px;
  height: 120px;
  background: rgba(46, 82, 41, 0.05);
  transform: rotate(45deg);
  top: 20%;
  right: 8%;
}

.geo-triangle {
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
}

.geo-triangle--1 {
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(201, 168, 76, 0.08);
  top: 35%;
  left: 3%;
  transform: rotate(-15deg);
}

.geo-bar {
  position: absolute;
  pointer-events: none;
  border-radius: 4px;
}

.geo-bar--1 {
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, rgba(46, 82, 41, 0.1), transparent);
  top: 60%;
  right: 0;
}

.geo-bar--2 {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2));
  bottom: 20%;
  left: 10%;
}

/* ========== NAVIGATION ========== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-line {
  display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  margin-left: 0;
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #c9a84c;
}

/* ========== CTA BUTTONS ========== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #2e5229;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-primary:hover {
  background: #3a6634;
  transform: translateY(-2px);
  shadow: 0 10px 30px rgba(46, 82, 41, 0.3);
}

.cta-primary .cta-arrow {
  transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #2e5229;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid #2e5229;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-secondary:hover {
  background: #2e5229;
  color: #fff;
  transform: translateY(-2px);
}

/* ========== SERVICE CARDS ========== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HEADER SCROLL STATE ========== */
header.scrolled {
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(31, 54, 28, 0.08);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f3ec;
}

::-webkit-scrollbar-thumb {
  background: #93bc8a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4f8246;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .geo-circle--1 {
    width: 300px;
    height: 300px;
  }

  .geo-square--1 {
    width: 60px;
    height: 60px;
  }

  .geo-triangle--1 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(201, 168, 76, 0.08);
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.75rem !important;
  }

  .cta-primary, .cta-secondary {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
}
