/* CO2GO Custom Styles */

:root {
  --deep-forest: #1b4332;
  --primary-green: #2d6a4f;
  --light-green: #40916c;
  --mint: #d8f3dc;
  --warm-white: #fafaf5;
  --cream: #f5f0e8;
  --dark-text: #1a1a1a;
  --muted-text: #6b7c6e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark-text);
  background-color: var(--warm-white);
  line-height: 1.6;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 1px 12px rgba(27, 67, 50, 0.08);
}

/* Navigation */
.nav-link {
  position: relative;
  color: var(--muted-text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-green);
  border-radius: 1px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background-color: #f0f5f0;
  border-radius: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-text);
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-btn.active {
  background-color: var(--primary-green);
  color: white;
}

.lang-btn svg {
  width: 16px;
  height: 12px;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--deep-forest);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.1);
  padding: 16px 24px;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--deep-forest) 0%, var(--primary-green) 50%, var(--light-green) 100%);
  position: relative;
  overflow: hidden;
}

.hero-image {
  background-image:
    linear-gradient(
      160deg,
      rgba(27, 67, 50, 0.88) 0%,
      rgba(45, 106, 79, 0.75) 40%,
      rgba(64, 145, 108, 0.65) 100%
    ),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(27, 67, 50, 0.06);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background-color: var(--mint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-green);
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 0 24px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(27, 67, 50, 0.1);
}

[dir="rtl"] .stat-item:not(:last-child) {
  border-right: none;
  border-left: 1px solid rgba(27, 67, 50, 0.1);
}

@media (max-width: 768px) {
  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
    padding-bottom: 16px;
  }
  [dir="rtl"] .stat-item:not(:last-child) {
    border-left: none;
  }
}

/* Process Steps (How We Work) */
.process-step {
  position: relative;
  padding-left: 80px;
  padding-bottom: 48px;
}

[dir="rtl"] .process-step {
  padding-left: 0;
  padding-right: 80px;
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-green), var(--mint));
}

[dir="rtl"] .process-step:not(:last-child)::before {
  left: auto;
  right: 24px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

[dir="rtl"] .step-number {
  left: auto;
  right: 0;
}

/* Contact Cards */
.contact-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(27, 67, 50, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.08);
}

/* Footer */
.footer {
  background-color: var(--deep-forest);
  color: #a7c4a0;
}

.footer a {
  color: #a7c4a0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--deep-forest) 0%, var(--primary-green) 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* Utility */
.section-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--primary-green);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background-color: white;
  color: var(--deep-forest);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background-color: var(--primary-green);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-green:hover {
  background-color: var(--deep-forest);
  transform: translateY(-1px);
}

/* About visual panel */
.about-visual {
  position: relative;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--mint);
  border-radius: 20px;
  z-index: -1;
}

[dir="rtl"] .about-visual::before {
  left: 16px;
  right: -16px;
}

/* Process card style (for How We Work redesign) */
.process-card {
  background: white;
  border-radius: 20px;
  padding: 36px;
  border: 1px solid rgba(27, 67, 50, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.process-card:hover {
  box-shadow: 0 12px 40px rgba(27, 67, 50, 0.08);
}

.process-card .process-number {
  position: absolute;
  top: -14px;
  left: 28px;
  width: 28px;
  height: 28px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

[dir="rtl"] .process-card .process-number {
  left: auto;
  right: 28px;
}

/* Decorative line between process cards */
.process-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary-green), var(--mint));
  margin: 0 auto;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Subtle grain texture overlay */
.grain::after {
  content: '';
  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;
  z-index: 1;
}

/* Service card enhanced */
.service-card-featured {
  background: linear-gradient(135deg, var(--deep-forest) 0%, var(--primary-green) 100%);
  color: white;
  border: none;
}

.service-card-featured .service-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.service-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27, 67, 50, 0.25);
}

/* Contact card alignment for RTL */
[dir="rtl"] .contact-card {
  flex-direction: row-reverse;
  text-align: right;
}

/* ── Scroll Reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Page Transitions ──────────────────────────────────────────── */
.page-transition {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-transition.page-visible {
  opacity: 1;
}
