/* ============================================
   EPITOME GREEN ENERGY — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette — Deep forest, moss, parchment */
  --forest-deep: #0e2a23;
  --forest-mid: #1a4035;
  --forest: #2d5f4e;
  --moss: #6b8e6f;
  --sage: #a8b89f;
  --parchment: #f5f1e8;
  --cream: #faf7ef;
  --bone: #ede7d3;
  --gold: #c9a14a;
  --gold-light: #e0c277;
  --rust: #9c5a3c;
  --ink: #0a1410;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --container: 1280px;
  --container-narrow: 1080px;
  --section-pad: clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a3530;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--forest);
}

.italic-accent {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--forest);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-pad) 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--forest-deep);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14, 42, 35, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--forest-deep);
  border: 1px solid var(--forest-deep);
}

.btn-outline:hover {
  background: var(--forest-deep);
  color: var(--cream);
}

.btn-light {
  background: var(--cream);
  color: var(--forest-deep);
}

.btn-light:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 247, 239, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 rgba(14, 42, 35, 0.08);
}

/* .nav.dark-bg {
  background: transparent;
} */

.nav.dark-bg .nav-link,
.nav.dark-bg .logo {
  color: var(--cream);
}

.nav.dark-bg .logo-mark svg {
  color: var(--cream);
}

.nav.dark-bg.scrolled .nav-link,
.nav.dark-bg.scrolled .logo {
  color: var(--forest-deep);
}

.nav.dark-bg.scrolled .logo-mark svg {
  color: var(--forest-deep);
}

/* Footer logo always sits on dark background */
.footer .logo-mark svg {
  color: var(--cream);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo span.italic {
  font-style: italic;
  font-weight: 300;
  color: var(--forest);
}

.nav.dark-bg .logo span.italic {
  color: var(--gold-light);
}

.nav.dark-bg.scrolled .logo span.italic {
  color: var(--forest);
}

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

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--forest-deep);
  padding: 0.5rem 0;
}

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

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

.nav-cta {
  padding: 0.7rem 1.4rem;
  background: var(--forest-deep);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--cream);
}

.nav.dark-bg .nav-cta {
  background: var(--cream);
  color: var(--forest-deep);
}

.nav.dark-bg .nav-cta:hover {
  background: var(--white);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--forest-deep);
  margin: 5px auto;
  transition: all 0.3s var(--ease);
}

.nav.dark-bg .menu-toggle span {
  background: var(--cream);
}

.nav.scrolled .menu-toggle span {
  background: var(--forest-deep);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   HERO — IMAGE SLIDER
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.15);
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(14, 42, 35, 0.85) 0%,
    rgba(14, 42, 35, 0.55) 50%,
    rgba(14, 42, 35, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  color: var(--cream);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-light);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 2rem;
  max-width: 900px;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 560px;
  color: rgba(245, 241, 232, 0.85);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

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

/* Slider controls */
.hero-controls {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 36px;
  height: 2px;
  background: rgba(245, 241, 232, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  padding: 0;
}

.hero-dot.active {
  background: var(--gold-light);
}

.hero-counter {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 3;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.hero-counter .current {
  font-size: 1.5rem;
  color: var(--gold-light);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.6;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--cream);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5) translateY(20px); opacity: 0.2; }
}

/* ============================================
   PAGE HERO (smaller, for inner pages)
   ============================================ */

.page-hero {
  position: relative;
  padding: 11rem 0 6rem;
  background: var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(107, 142, 111, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 161, 74, 0.1) 0%, transparent 50%);
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(245, 241, 232, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, 0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero h1 {
  color: var(--cream);
  max-width: 900px;
  margin-top: 1rem;
}

.page-hero h1 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 300;
}

.page-hero-sub {
  color: rgba(245, 241, 232, 0.75);
  font-size: 1.15rem;
  max-width: 640px;
  margin-top: 1.5rem;
}

.page-hero .eyebrow {
  color: var(--gold-light);
}

.page-hero .eyebrow::before {
  background: var(--gold-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 232, 0.6);
  margin-bottom: 2rem;
}

.breadcrumb a:hover { color: var(--gold-light); }

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.stat {
  text-align: left;
  padding-right: 2rem;
  border-right: 1px solid rgba(245, 241, 232, 0.15);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.stat-num em {
  font-size: 1.5rem;
  vertical-align: top;
  display: inline-block;
  margin-left: 0.25rem;
  margin-top: 0.5rem;
  color: var(--sage);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 232, 0.75);
  line-height: 1.5;
}

/* ============================================
   INTRO / MANIFESTO
   ============================================ */

.intro {
  background: var(--cream);
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: start;
}

.intro-left {
  position: sticky;
  top: 8rem;
}

.intro h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}

.intro h2 em {
  font-style: italic;
  color: var(--forest);
}

.intro-right p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #2a3530;
}

.intro-right p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 400;
  float: left;
  line-height: 0.85;
  margin: 0.4rem 0.5rem 0 0;
  color: var(--forest);
}

.intro-sig {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.intro-sig-line {
  width: 60px;
  height: 1px;
  background: var(--forest);
}

.intro-sig-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--forest-deep);
  font-size: 1.1rem;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services {
  background: var(--parchment);
  position: relative;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.services-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.05;
}

.services-header h2 em {
  font-style: italic;
  color: var(--forest);
}

.services-header p {
  font-size: 1.05rem;
  color: #2a3530;
  max-width: 480px;
  margin-left: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(14, 42, 35, 0.12);
  border-left: 1px solid rgba(14, 42, 35, 0.12);
}

.service-card {
  background: transparent;
  padding: 3rem;
  border-right: 1px solid rgba(14, 42, 35, 0.12);
  border-bottom: 1px solid rgba(14, 42, 35, 0.12);
  transition: background 0.4s var(--ease);
  position: relative;
  display: block;
  color: inherit;
  min-height: 380px;
}

.service-card:hover {
  background: var(--forest-deep);
  color: var(--cream);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-num {
  color: var(--cream);
}

.service-card:hover .service-icon {
  color: var(--gold-light);
}

.service-card:hover .service-arrow {
  background: var(--gold-light);
  color: var(--forest-deep);
  transform: translate(4px, -4px);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--forest);
  margin-bottom: 2rem;
  display: block;
  transition: color 0.4s var(--ease);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--forest-deep);
  margin-bottom: 1.75rem;
  transition: color 0.4s var(--ease);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: color 0.4s var(--ease);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  transition: color 0.4s var(--ease);
}

.service-arrow {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 42, 35, 0.08);
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}

.service-arrow svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   PROCESS / APPROACH
   ============================================ */

.approach {
  background: var(--cream);
}

.approach-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 5rem;
}

.approach-header h2 {
  margin-bottom: 1.5rem;
}

.approach-header h2 em {
  font-style: italic;
  color: var(--forest);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.approach-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(to right,
    var(--forest) 0,
    var(--forest) 4px,
    transparent 4px,
    transparent 12px);
  opacity: 0.3;
}

.approach-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  background: var(--cream);
  border: 1px solid var(--forest);
  color: var(--forest-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.approach-step:hover .step-num {
  background: var(--forest-deep);
  color: var(--gold-light);
}

.approach-step h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--forest-deep);
}

.approach-step p {
  font-size: 0.9rem;
  color: #4a554f;
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================
   PROJECTS / SHOWCASE STRIP
   ============================================ */

.showcase {
  background: var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
}

.showcase-header {
  max-width: var(--container);
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
}

.showcase-header h2 {
  color: var(--cream);
  max-width: 600px;
}

.showcase-header h2 em {
  color: var(--gold-light);
  font-style: italic;
}

.showcase-header .eyebrow {
  color: var(--gold-light);
}

.showcase-header .eyebrow::before {
  background: var(--gold-light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.showcase-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.showcase-card:hover img {
  transform: scale(1.08);
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 20, 16, 0.9) 0%,
    rgba(10, 20, 16, 0.2) 50%,
    transparent 100%);
}

.showcase-card-info {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 1;
}

.showcase-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  display: block;
}

.showcase-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--parchment);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
  opacity: 0.15;
}

.cta-section::before {
  top: -100px;
  left: -100px;
}

.cta-section::after {
  bottom: -100px;
  right: -100px;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.cta-section h2 em {
  font-style: italic;
  color: var(--forest);
}

.cta-section p {
  font-size: 1.15rem;
  color: #2a3530;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--ink);
  color: rgba(245, 241, 232, 0.7);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.footer-brand .logo span.italic {
  color: var(--gold-light);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.65);
  margin-bottom: 2rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 241, 232, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 241, 232, 0.6);
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.85rem;
}

.footer ul a {
  font-size: 0.92rem;
  color: rgba(245, 241, 232, 0.65);
  transition: color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: rgba(245, 241, 232, 0.65);
  line-height: 1.6;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

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

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in-view {
  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; }

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-story {
  background: var(--cream);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-story-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.about-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story-img::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--forest);
  z-index: -1;
}

.about-story-content h2 {
  margin-bottom: 1.5rem;
}

.about-story-content h2 em {
  font-style: italic;
  color: var(--forest);
}

.about-story-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #2a3530;
}

.values {
  background: var(--parchment);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.value-card {
  padding: 2.5rem 0;
  border-top: 1px solid var(--forest);
}

.value-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 1.5rem;
  display: block;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.leadership {
  background: var(--cream);
}

.leadership-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.leader {
  text-align: center;
}

.leader-img {
  aspect-ratio: 4/5;
  background: var(--bone);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.leader-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.5s var(--ease);
}

.leader:hover .leader-img img {
  filter: grayscale(0%);
}

.leader h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.leader p {
  font-size: 0.85rem;
  color: var(--forest);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   SERVICES LIST PAGE
   ============================================ */

.services-list {
  background: var(--cream);
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 80px;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(14, 42, 35, 0.15);
  align-items: center;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
}

.service-row:last-child {
  border-bottom: 1px solid rgba(14, 42, 35, 0.15);
}

.service-row:hover {
  padding-left: 2rem;
  padding-right: 2rem;
  background: var(--forest-deep);
  color: var(--cream);
}

.service-row:hover h3,
.service-row:hover .service-row-num,
.service-row:hover p {
  color: var(--cream);
}

.service-row:hover .service-row-arrow {
  background: var(--gold-light);
  color: var(--forest-deep);
}

.service-row-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--forest);
  transition: color 0.4s var(--ease);
}

.service-row h3 {
  font-size: 1.85rem;
  font-weight: 400;
  margin: 0;
  transition: color 0.4s var(--ease);
}

.service-row p {
  font-size: 0.95rem;
  color: #4a554f;
  margin: 0;
  transition: color 0.4s var(--ease);
}

.service-row-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.4s var(--ease);
}

.service-row-arrow svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */

.service-detail {
  background: var(--cream);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.service-detail-sticky {
  position: sticky;
  top: 8rem;
}

.service-detail h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.service-detail h3 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
}

.service-detail p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #2a3530;
}

.service-detail ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-detail ul li {
  font-size: 1rem;
  line-height: 1.7;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: #2a3530;
}

.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.service-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-feature {
  padding: 1.5rem;
  background: var(--parchment);
  border-left: 2px solid var(--gold);
}

.service-feature h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--forest-deep);
}

.service-feature p {
  font-size: 0.9rem;
  margin: 0;
}

.service-cta-box {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--forest-deep);
  color: var(--cream);
}

.service-cta-box h3 {
  color: var(--cream);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-cta-box h3 em {
  color: var(--gold-light);
  font-style: italic;
}

.service-cta-box p {
  color: rgba(245, 241, 232, 0.8);
  margin-bottom: 1.5rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info h2 em {
  font-style: italic;
  color: var(--forest);
}

.contact-info > p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  color: #2a3530;
}

.contact-method {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(14, 42, 35, 0.12);
}

.contact-method:last-child {
  border-bottom: 1px solid rgba(14, 42, 35, 0.12);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: var(--forest-deep);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 18px;
  height: 18px;
}

.contact-method-info h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.contact-method-info p,
.contact-method-info a {
  font-size: 1rem;
  color: var(--forest-deep);
  line-height: 1.5;
  margin: 0;
}

.contact-method-info a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--parchment);
  padding: 3rem;
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-form h3 em {
  font-style: italic;
  color: var(--forest);
}

.contact-form > p {
  font-size: 0.95rem;
  color: #4a554f;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(14, 42, 35, 0.2);
  color: var(--forest-deep);
  transition: border-color 0.3s var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--forest);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.map-section {
  background: var(--forest-deep);
  padding: 0;
}

.map-placeholder {
  height: 480px;
  background: var(--forest-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 241, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.map-pin {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
}

.map-pin svg {
  width: 48px;
  height: 48px;
  color: var(--gold-light);
  margin: 0 auto 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.map-pin h3 {
  color: var(--cream);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.map-pin p {
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.95rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .stat { border-right: none; padding-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(245, 241, 232, 0.15); padding-right: 2rem; }
  .approach-steps { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .approach-steps::before { display: none; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .intro-grid,
  .services-header,
  .about-story-grid,
  .service-detail-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-left,
  .service-detail-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.mobile-open .nav-link {
    color: var(--forest-deep);
    font-size: 1.5rem;
    font-family: var(--font-display);
  }
  .nav-cta { display: none; }

  .hero { min-height: 600px; }
  .hero-controls,
  .hero-counter { bottom: 1.5rem; }
  .hero-controls { right: 1.5rem; }
  .hero-counter { left: 1.5rem; }
  .hero-scroll { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem; min-height: auto; }
  .service-arrow { top: 2rem; right: 2rem; }

  .approach-steps { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat:nth-child(odd) { border-right: none; padding-right: 0; }
  .stat-num { font-size: 2.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .service-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .service-row:hover { padding-left: 0; padding-right: 0; }
  .service-row-arrow { display: none; }

  .contact-form { padding: 2rem 1.5rem; }

  .page-hero { padding: 8rem 0 4rem; }
}
