/* ===== CSS Custom Properties ===== */
:root {
  --color-bg: #060D0A;
  --color-bg-elevated: rgba(255, 255, 255, 0.03);
  --color-emerald: #10b981;
  --color-emerald-dark: #047857;
  --color-gold: #d4a017;
  --color-gold-light: #f0c040;
  --color-cream: #FDF8F0;
  --color-cream-muted: rgba(253, 248, 240, 0.6);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* ===== 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: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-emerald);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ===== Gold Gradient Text ===== */
.gold-gradient {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Section Utilities ===== */
.section {
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-cream);
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-cream-muted);
}

/* ===== Navigation ===== */
.nav {
  background: rgba(6, 13, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(6, 13, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-emerald);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--color-cream);
}

/* Mobile Menu */
.mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  display: block;
}

.menu-line {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

/* ===== Buttons ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-dark) 100%);
  color: var(--color-bg);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-cream);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cta-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
}

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

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-blob-1 {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  animation: heroFadeIn 1s ease-out 0.2s both;
}

.hero-content > div {
  animation: heroFadeIn 1s ease-out 0.4s both;
}

/* Floating Stat Cards */
.stat-card {
  animation: float 6s ease-in-out infinite;
}

.card-years {
  animation-delay: 0s;
}

.card-awards {
  animation-delay: -1.5s;
}

.card-satisfaction {
  animation-delay: -3s;
}

.card-local {
  animation-delay: -4.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(253, 248, 240, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(253, 248, 240, 0.5);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ===== Service Cards ===== */
.service-card {
  opacity: 1;
}

.service-card .bg-white\/\[0.03\] {
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.service-card:hover .bg-white\/\[0.03\] {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
}

/* ===== Gallery ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 13, 10, 0.4) 0%, transparent 50%);
  border-radius: 1rem;
  pointer-events: none;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(212, 160, 23, 0.2);
  transform: translateY(-4px);
}

/* ===== Contact Form ===== */
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--color-cream);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(253, 248, 240, 0.25);
}

.form-input:focus {
  border-color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input option {
  background: #1a2e23;
  color: var(--color-cream);
}

.success-message {
  animation: successFadeIn 0.4s ease-out;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    min-h: auto;
    padding-top: 6rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }

  .cta-btn, .cta-outline {
    width: 100%;
    justify-content: center;
  }
}
