/* ============================================================
   EcoPass Website — Shared Stylesheet
   Theme: Dark hero + white content, rose gold accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --rose-gold: #C8836A;
  --rose-gold-light: #E8A898;
  --rose-gold-dim: rgba(200, 131, 106, 0.15);
  --dark-bg: #0F0D0C;
  --dark-surface: #1A1614;
  --dark-surface-2: #2A2220;
  --dark-text: #F0E8E5;
  --dark-text-muted: #C4B5B0;
  --light-bg: #FFFFFF;
  --light-alt: #FAF7F5;
  --light-text: #1A1614;
  --light-text-muted: #6B5C56;
  --outline: #4A3F3A;
  --radius: 16px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--light-text);
  background: var(--light-bg);
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 13, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 131, 106, 0.15);
  transition: background var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--dark-text);
  letter-spacing: 0.04em;
}

.nav-logo-text span { color: var(--rose-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-text-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--rose-gold-light); }

.nav-cta {
  background: var(--rose-gold) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--rose-gold-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--outline);
  padding: 24px 5%;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}

.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--dark-text-muted);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--rose-gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rose-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 131, 106, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid var(--outline);
}
.btn-outline:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold-light);
}

/* ── Section spacing ── */
.section { padding: 100px 5%; }
.section-alt { background: var(--light-alt); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--light-text);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--light-text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Shield SVG for logo usage ── */
.shield-svg { fill: var(--rose-gold); }

/* ── Footer ── */
footer {
  background: var(--dark-bg);
  color: var(--dark-text-muted);
  padding: 60px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-surface-2);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  color: var(--dark-text-muted);
  max-width: 280px;
}

.footer-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--dark-text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--rose-gold-light); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ── Page hero (for inner pages) ── */
.page-hero {
  background: var(--dark-bg);
  padding: 140px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,131,106,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--dark-text);
  position: relative;
}

.page-hero h1 span { color: var(--rose-gold); }

.page-hero p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--dark-text-muted);
  position: relative;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 70px 5%; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── Fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--rose-gold);
  margin: 20px 0 32px;
}
