@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  --forest: #1a3c34;
  --forest-light: #2d5a4e;
  --amber: #c8956c;
  --amber-light: #e8b896;
  --cream: #f8f4ef;
  --cream-dark: #ede6dc;
  --charcoal: #1e1e1e;
  --slate: #4a5568;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

.font-display { font-family: 'Fraunces', serif; }

/* Floating shapes */
.shape-blob {
  position: absolute;
  border-radius: 50% 40% 60% 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobFloat 12s ease-in-out infinite;
  pointer-events: none;
}
.shape-blob-2 { animation-delay: -4s; animation-duration: 15s; }
.shape-blob-3 { animation-delay: -8s; animation-duration: 18s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero animations */
.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(20deg);
  animation: heroWordIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title span:nth-child(1) { animation-delay: 0.2s; }
.hero-title span:nth-child(2) { animation-delay: 0.35s; }
.hero-title span:nth-child(3) { animation-delay: 0.5s; }
.hero-title span:nth-child(4) { animation-delay: 0.65s; }

@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-fade {
  opacity: 0;
  animation: heroFadeIn 1s ease 0.8s forwards;
}
@keyframes heroFadeIn { to { opacity: 1; } }

.hero-image-wrap {
  animation: heroImageIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
@keyframes heroImageIn {
  from { opacity: 0; transform: scale(1.1) translateX(40px); clip-path: inset(0 100% 0 0); }
  to { opacity: 1; transform: scale(1) translateX(0); clip-path: inset(0 0 0 0); }
}

/* Marquee */
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(26, 60, 52, 0.12);
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); }

.service-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover img { transform: scale(1.08); }

/* Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: white;
  transition: color 0.4s ease, transform 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 60, 52, 0.3); }

.btn-outline {
  border: 2px solid var(--forest);
  color: var(--forest);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--forest);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.btn-outline:hover::before { transform: scaleY(1); }
.btn-outline:hover { color: white; }
.btn-outline span { position: relative; z-index: 1; }

/* Nav */
.nav-link {
  position: relative;
  color: var(--charcoal);
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--forest); }

#navbar.scrolled {
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* Counter animation */
.counter { font-variant-numeric: tabular-nums; }

/* Diagonal section */
.diagonal-top {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}
.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* Step line */
.step-line {
  position: relative;
}
.step-line::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), transparent);
}

/* Image reveal on hover */
.img-reveal-wrap {
  overflow: hidden;
  border-radius: 1rem;
}
.img-reveal-wrap img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-reveal-wrap:hover img { transform: scale(1.06); }

/* Accordion FAQ */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item .faq-icon { transition: transform 0.4s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Cookie banner */
#cookie-banner {
  transform: translateY(120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#cookie-banner.show { transform: translateY(0); }

/* Mobile menu */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open { transform: translateX(0); }

/* Pulse ring */
.pulse-ring {
  animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 149, 108, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(200, 149, 108, 0); }
}

/* Bento grid item hover */
.bento-item {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.bento-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(26, 60, 52, 0.15);
}

/* Page hero inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 50%, #3d7264 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' 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='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Legal pages */
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p, .legal-content li { margin-bottom: 0.75rem; line-height: 1.75; color: var(--slate); }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }

/* Form inputs */
.form-input {
  border: 2px solid var(--cream-dark);
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(200, 149, 108, 0.15);
}

/* Testimonial slider dot */
.dot-active { background: var(--forest) !important; width: 24px !important; border-radius: 999px !important; }

/* Rotating badge */
.rotate-slow { animation: rotateSlow 20s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }

/* Line draw animation */
.line-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: lineDraw 2s ease forwards 1s;
}
@keyframes lineDraw { to { stroke-dashoffset: 0; } }

/* Breadcrumbs */
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--amber); }

/* Trust bar */
.trust-bar { border-bottom: 1px solid rgba(26, 60, 52, 0.08); }

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--amber);
}

/* Timeline */
.timeline-item { position: relative; padding-left: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--amber);
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background: var(--cream-dark);
}

/* Brand grid */
.brand-item {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.3s ease;
}
.brand-item:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* Spec table */
.spec-row { border-bottom: 1px solid var(--cream-dark); }
.spec-row:last-child { border-bottom: none; }

/* Region card */
.region-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(26, 60, 52, 0.1);
}

/* Pro CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 60%, #3d7264 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -50%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(200,149,108,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Image collage */
.collage-main { grid-row: span 2; }
.collage-item img { transition: transform 0.6s ease; }
.collage-item:hover img { transform: scale(1.05); }

/* Check list pro */
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* Stats strip */
.stats-strip {
  background: var(--forest);
  background-image: linear-gradient(90deg, rgba(200,149,108,0.1) 0%, transparent 50%, rgba(200,149,108,0.1) 100%);
}

/* Prose content */
.prose-content p { margin-bottom: 1rem; line-height: 1.8; color: var(--slate); }
.prose-content h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; color: var(--forest); margin: 1.5rem 0 0.75rem; }

/* Tab filter */
.filter-btn.active {
  background: var(--forest);
  color: white;
}
