/* ================= ROOT / BRAND VARIABLES ================= */
:root {
  --green-primary: #00562c;
  --green-pale: #f0ffdd;
  --forest: #1B3A2D;
  --cream: #F5F0E4;
  --clay: #C47F52;
  --charcoal: #2B2B2B;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --section-padding: 5.5rem 1.5rem;
  --max-width: 1120px;
}

/* ================= RESET / BASE ================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.65;
  background: var(--cream);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--green-primary);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.card-grid, .points-row, .contact, .why-gridesc, .how-it-works, .journeys, .what-we-design {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--cream);
  border: 1px solid var(--green-primary);
}

.btn-primary:hover {
  background: #003d1f;
}

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

.btn-outline:hover {
  background: var(--green-primary);
  color: var(--cream);
}

/* ================= NAVIGATION ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  position: relative;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-logo .logo-dark {
  display: none;
}

.site-header.scrolled .logo-light {
  display: none;
}

.site-header.scrolled .logo-dark {
  display: block;
}

.nav-links {
  display: none;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.site-header.scrolled .nav-toggle span {
  background: var(--green-primary);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.nav-links.mobile-open li a {
  display: block;
  padding: 0.75rem 0;
  color: var(--green-primary);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 86, 44, 0.08);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -73px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 58, 45, 0.15) 0%, rgba(27, 58, 45, 0.35) 50%, rgba(27, 58, 45, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
  padding: 0 1.5rem 4.5rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  margin-bottom: 1.25rem;
}

.hero-subline {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  margin-bottom: 0.75rem;
}

.hero-support {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-link {
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(245, 240, 228, 0.5);
  padding-bottom: 2px;
}

/* ================= FADE-UP ANIMATION ================= */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ================= PHILOSOPHY ================= */
.philosophy {
  background: var(--green-pale);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: none;
}

.philosophy-media,
.philosophy-text {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.philosophy-media img {
  border-radius: 6px;
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

.philosophy-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

/* ================= CARD GRID (shared) ================= */
.what-we-design h2,
.journeys h2,
.how-it-works h2,
.why-gridesc h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.card {
  border: 1px solid rgba(0, 86, 44, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3,
.card p {
  padding: 0 1.25rem;
}

.card h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

.card p {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ================= JOURNEYS (dark section) ================= */
.journeys {
  background: var(--forest);
  color: var(--cream);
  max-width: none;
  padding: var(--section-padding);
}

.journeys h2 {
  color: var(--cream);
}

.journeys .card-grid,
.journeys > p {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.card-dark {
  background: rgba(245, 240, 228, 0.04);
  border-color: rgba(245, 240, 228, 0.18);
}

.card-dark h3 {
  color: var(--cream);
}

.card-dark p {
  color: rgba(245, 240, 228, 0.85);
}

.journeys-note {
  font-style: italic;
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 228, 0.75);
}

/* ================= HOW IT WORKS ================= */
.how-it-works {
  background: var(--cream);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
}

.step-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.step-text p {
  font-size: 0.95rem;
}

/* ================= WHY GRIDESC ================= */
.why-gridesc {
  background: var(--green-pale);
}

.why-gridesc > p {
  max-width: 760px;
}

.points-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.point h3 {
  font-size: 1.05rem;
}

.point p {
  font-size: 0.95rem;
}

/* ================= CONTACT ================= */
.contact {
  background: var(--green-pale);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.contact-intro {
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0, 86, 44, 0.15);
  border-radius: 8px;
  background: var(--cream);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-row:hover {
  border-color: var(--green-primary);
}

.contact-label {
  font-weight: 500;
  color: var(--green-primary);
}

.contact-value {
  color: var(--charcoal);
  font-size: 0.95rem;
}

.profile-download {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--clay);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.footer-logo {
  height: 26px;
  margin: 0 auto 1.5rem;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-meta {
  font-size: 0.9rem;
  color: rgba(245, 240, 228, 0.8);
  margin-bottom: 0.5rem;
}

.footer-meta a {
  border-bottom: 1px solid rgba(245, 240, 228, 0.3);
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(245, 240, 228, 0.55);
  margin-bottom: 0;
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (min-width: 700px) {
  .philosophy {
    flex-direction: row;
    align-items: center;
  }

  .philosophy-media,
  .philosophy-text {
    flex: 1;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .points-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-options {
    max-width: 480px;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }

  .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cream);
    transition: color 0.4s ease;
  }

  .site-header.scrolled .nav-links a {
    color: var(--green-primary);
  }

  .nav-cta {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: none;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step:nth-child(even) {
    margin-top: 2.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding: 7rem 2rem;
  }
}
