/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 25%, #047857 50%, #065f46 75%, #022c22 100%);
}

.hero-pattern {
  background-image: url('data:image/svg+xml,%3Csvg width=\'80\' height=\'80\' viewBox=\'0 0 80 80\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'0.04\'%3E%3Cpath d=\'M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* ── Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}
@keyframes float-delay {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-2deg); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 10s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 12s ease-in-out infinite; }

/* Hero entrance */
.hero-badge { animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-title { animation: fadeInUp 0.8s ease-out 0.4s both; }
.hero-subtitle { animation: fadeInUp 0.8s ease-out 0.6s both; }
.hero-buttons { animation: fadeInUp 0.8s ease-out 0.8s both; }

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Labels ── */
.section-label {
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #047857;
}
.section-label-inline {
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6ee7b7;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d4c5a9, #e2cf9a);
  color: #064e3b;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 197, 169, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 197, 169, 0.4);
  background: linear-gradient(135deg, #e2cf9a, #d4c5a9);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  color: #fefdf8;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #047857, #10b981);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::after {
  transform: scaleX(1);
}

/* ── Contact Cards ── */
.contact-card {
  text-decoration: none;
}

/* ── Form Inputs ── */
.input-field {
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fefdf8;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: #94a3b8; }
.input-field:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: #fff;
}
.input-field:hover:not(:focus) {
  border-color: #6ee7b7;
}

/* ── Submit Button ── */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fefdf8;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 120, 87, 0.3);
}
.btn-submit:active { transform: translateY(0); }

/* ── Navigation ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #d4c5a9;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 60%;
}

/* Mobile nav */
.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background: rgba(2, 44, 34, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

/* ── Mobile menu animation ── */
#mobile-menu.open {
  animation: fadeIn 0.3s ease-out;
}
.menu-line {
  display: block;
}
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .service-card { padding: 1.5rem; }
  .section-label { font-size: 0.65rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: 4rem; }
}

/* ── Focus visible ── */
*:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: rgba(4, 120, 87, 0.2);
  color: #064e3b;
}
