/* ========================================
   Ravqen — Earth Balance Interface
   ======================================== */

:root {
  --earth-brown: #8B5E3C;
  --forest-green: #166534;
  --soft-olive: #84CC16;
  --sand-beige: #F5E6D3;
  --warm-white: #FFFBF5;
  --light-clay: #E7D3C1;
  --deep-brown: #2C1A12;
  --soft-gray: #6B7280;
  --cream: #FFFBF5;
  --shadow-soft: 0 4px 24px rgba(44, 26, 18, 0.06);
  --shadow-hover: 0 8px 32px rgba(44, 26, 18, 0.1);
  --transition: 0.4s ease;
  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep-brown);
  background: linear-gradient(180deg, var(--sand-beige) 0%, var(--warm-white) 40%, var(--warm-white) 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--earth-brown);
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--deep-brown);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 0.01em;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}

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

/* Staggered delays for grid children */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }

.features-grid .feature-item:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-item:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-item:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-item:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   Header
   ======================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  position: relative;
  z-index: 100;
}

.logo {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--deep-brown);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--soft-gray);
}

.nav a:hover {
  color: var(--earth-brown);
}

.nav-dot {
  color: var(--light-clay);
  font-size: 0.75rem;
  user-select: none;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--earth-brown);
  color: var(--warm-white);
  box-shadow: 0 4px 16px rgba(139, 94, 60, 0.25);
}

.btn-primary:hover {
  background: #7a5235;
  color: var(--warm-white);
  box-shadow: 0 6px 24px rgba(139, 94, 60, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--earth-brown);
  border: 1.5px solid var(--light-clay);
}

.btn-secondary:hover {
  border-color: var(--earth-brown);
  color: var(--earth-brown);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid rgba(255, 251, 245, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 251, 245, 0.12);
  color: var(--warm-white);
  border-color: var(--warm-white);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 6rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sand-beige) 0%, var(--warm-white) 50%, var(--light-clay) 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.shape-1 {
  width: 420px;
  height: 420px;
  background: var(--light-clay);
  top: -8%;
  right: -5%;
}

.shape-2 {
  width: 320px;
  height: 320px;
  background: rgba(22, 101, 52, 0.15);
  bottom: 10%;
  left: -8%;
  border-radius: 60% 40% 50% 50%;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(132, 204, 22, 0.12);
  top: 40%;
  left: 15%;
  border-radius: 40% 60% 55% 45%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep-brown);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--soft-gray);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Philosophy
   ======================================== */
.philosophy {
  background: var(--warm-white);
  text-align: center;
}

.philosophy h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 1.5rem;
}

.philosophy p {
  font-size: 1.05rem;
  color: var(--soft-gray);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.85;
}

/* ========================================
   Services
   ======================================== */
.services {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--sand-beige) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--forest-green);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--soft-gray);
  font-weight: 300;
  line-height: 1.7;
}

/* ========================================
   Process — Vertical Timeline
   ======================================== */
.process {
  background: var(--warm-white);
}

.timeline {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--light-clay), var(--forest-green), var(--light-clay));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.15rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 2px solid var(--earth-brown);
  z-index: 1;
}

.timeline-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--earth-brown);
  margin-bottom: 0.35rem;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  font-size: 0.925rem;
  color: var(--soft-gray);
  font-weight: 300;
  line-height: 1.7;
}

/* ========================================
   Features
   ======================================== */
.features {
  background: linear-gradient(180deg, var(--warm-white) 0%, rgba(22, 101, 52, 0.04) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-item {
  padding: 1.5rem 0;
}

.feature-accent {
  width: 2rem;
  height: 3px;
  background: var(--forest-green);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--soft-gray);
  font-weight: 300;
  line-height: 1.7;
}

/* ========================================
   Stats
   ======================================== */
.stats {
  background: var(--sand-beige);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--earth-brown);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft-gray);
}

/* ========================================
   CTA
   ======================================== */
.cta {
  position: relative;
  text-align: center;
  padding: 7rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-beige) 0%, rgba(22, 101, 52, 0.12) 50%, var(--light-clay) 100%);
}

.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape-4 {
  width: 360px;
  height: 360px;
  background: rgba(22, 101, 52, 0.1);
  top: -15%;
  left: -5%;
  border-radius: 50% 40% 60% 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.shape-5 {
  width: 280px;
  height: 280px;
  background: rgba(139, 94, 60, 0.12);
  bottom: -10%;
  right: -5%;
  border-radius: 40% 55% 45% 60%;
  filter: blur(60px);
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.05rem;
  color: var(--soft-gray);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: var(--forest-green);
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.25);
}

.cta .btn-primary:hover {
  background: #14532d;
  box-shadow: 0 6px 24px rgba(22, 101, 52, 0.35);
}

/* ========================================
   Contact
   ======================================== */
.contact {
  background: var(--warm-white);
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-gray);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--deep-brown);
  background: var(--warm-white);
  border: 1.5px solid var(--light-clay);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 114, 128, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--earth-brown);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--sand-beige);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--deep-brown);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--soft-gray);
  letter-spacing: 0.04em;
}

.footer-nav a:hover {
  color: var(--earth-brown);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--soft-gray);
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 75vh;
    padding: 3rem 1.5rem 5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .timeline {
    padding-left: 2.5rem;
  }

  .timeline::before {
    left: 0.6rem;
  }

  .timeline-item::before {
    left: -1.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
