/* ─────────── TOKENS ─────────── */
:root {
  --sage: #7DA882;
  --sage-dark: #5f8866;
  --sage-light: #EEF3EE;
  --cream: #F9F7F2;
  --ink: #1A1A1A;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --gold: #C9A84C;
  --gold-dark: #a88a35;
  --line: rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 10px 30px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 26, 26, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1240px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--sage-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─────────── REVEAL ANIMATIONS ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ─────────── SECTION CHROME ─────────── */
section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; color: var(--ink-mute); }

/* ─────────── NAVBAR ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(249, 247, 242, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(249, 247, 242, 0.92);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s var(--ease);
}
.nav.scrolled .nav-inner { padding-top: 16px; padding-bottom: 16px; }

/* ─── Logo wordmark ─── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  line-height: 1;
}
.logo-name {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 1.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  font-style: normal;
  line-height: 1;
}
.logo-name::first-letter {
  font-weight: 600;
  color: var(--sage-dark);
  margin-right: 0.5px;
}
.logo-leaf {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--sage);
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease), background 0.3s var(--ease);
}
.logo:hover .logo-leaf {
  transform: rotate(135deg) translateY(-1px);
  background: var(--gold);
}
.logo-mark {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 3px;
}
.logo:hover { color: var(--ink); }
.logo:hover .logo-mark { color: var(--sage-dark); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }

.burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────── HERO CAROUSEL ─────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 7s ease-out;
}
.slide.active .slide-bg { transform: scale(1); }
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 24px;
  max-width: var(--container);
  margin-inline: auto;
  color: #fff;
}
.slide-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.2s var(--ease), transform 0.8s 0.2s var(--ease);
}
.slide-eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-3px);
}
.slide h1, .slide h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  max-width: 880px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s 0.35s var(--ease), transform 0.9s 0.35s var(--ease);
}
.slide-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin-bottom: 38px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s 0.5s var(--ease), transform 0.9s 0.5s var(--ease);
}
.slide-cta {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s 0.65s var(--ease), transform 0.9s 0.65s var(--ease);
}
.slide.active .slide-eyebrow,
.slide.active h1,
.slide.active h2,
.slide.active .slide-sub,
.slide.active .slide-cta {
  opacity: 1;
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 6px 20px rgba(125, 168, 130, 0.3);
}
.btn:hover { background: var(--sage-dark); transform: translateY(-2px); color: #fff; box-shadow: 0 10px 28px rgba(125, 168, 130, 0.42); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; box-shadow: none; }
.btn-arrow {
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease);
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn-arrow { width: 30px; }

/* carousel controls */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.arrow:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }
.arrow.prev { left: 28px; }
.arrow.next { right: 28px; }
.arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.dots {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), width 0.4s var(--ease);
}
.dot.active { background: #fff; width: 32px; border-radius: 5px; }
.dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ─────────── SERVICES ─────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.service-card:hover .card-img img { transform: scale(1.06); }
.card-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex: 1;
}
.card-link {
  color: var(--sage-dark);
  font-weight: 500;
  font-size: 0.92rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.card-link:hover { gap: 14px; color: var(--ink); }

/* ─────────── ABOUT ─────────── */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .eyebrow { margin-bottom: 22px; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { font-size: 1.02rem; line-height: 1.75; }
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.counter-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.counter-num .suffix { color: var(--gold); }
.counter-label {
  font-size: 0.88rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ─────────── ENGAGEMENT RSE ─────────── */
#engagement { background: var(--cream); position: relative; }
#engagement::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.engagement-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 90px;
  align-items: start;
}
.engagement-intro h2 { margin-bottom: 22px; }
.engagement-intro p { font-size: 1.02rem; line-height: 1.75; }
.engagement-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem !important;
  color: var(--ink) !important;
  line-height: 1.55 !important;
  margin-top: 30px !important;
  padding-left: 22px;
  border-left: 2px solid var(--sage);
}
.engagement-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.engagement-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.engagement-item:last-child { border-bottom: 0; }
.engagement-item:first-child { padding-top: 4px; }
.engagement-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-dark);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.engagement-item h3 {
  font-size: 1.18rem;
  font-weight: 500;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.engagement-item p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ─────────── PORTFOLIO ─────────── */
#realisations { background: #fff; }
.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.filter {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink-mute); }
.filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 3px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sage-light);
  cursor: pointer;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project:hover::after { opacity: 1; }
.project:hover img { transform: scale(1.06); }
.project-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project:hover .project-meta { opacity: 1; transform: none; }
.project-cat {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.project.hidden { display: none; }

/* ─────────── EVENTS ─────────── */
#evenements { background: var(--sage-light); }
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.event-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.event-img {
  height: 320px;
  overflow: hidden;
}
.event-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.event-card:hover .event-img img { transform: scale(1.04); }
.event-body { padding: 38px 40px 42px; }
.event-body .eyebrow { margin-bottom: 14px; }
.event-body h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.event-body p { margin-bottom: 22px; }
.event-body ul {
  list-style: none;
  padding: 0; margin: 0 0 24px;
}
.event-body li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-body li:last-child { border: 0; }
.event-body li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─────────── JOURNAL / BLOG ─────────── */
#journal { background: #fff; }
.journal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
}
.journal-head-text { max-width: 600px; }
.journal-head h2 { margin-bottom: 14px; }
.journal-head p { color: var(--ink-mute); margin: 0; }
.journal-all {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  flex-shrink: 0;
}
.journal-all:hover { gap: 16px; color: var(--sage-dark); border-color: var(--sage); }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.article {
  display: flex;
  flex-direction: column;
}
.article-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--sage-light);
}
.article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.article:hover .article-img img { transform: scale(1.05); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.article-cat {
  color: var(--gold-dark);
  font-weight: 600;
}
.article-meta .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-mute);
  opacity: 0.5;
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}
.article:hover h3 { color: var(--sage-dark); }
.article p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex: 1;
}
.article-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.article:hover .article-link { gap: 14px; color: var(--sage-dark); }

/* ─────────── CONTACT ─────────── */
#contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}
.contact-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
}
.contact-card { text-align: center; }
.contact-img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--sage-light);
}
.contact-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.contact-card:hover .contact-img img { transform: scale(1.05); }
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.contact-card a, .contact-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}
.contact-card a:hover { color: var(--sage-dark); }
.contact-cta { text-align: center; }

/* ─────────── MODAL ─────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: none; }
.modal-banner {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 2;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.modal-body { padding: 36px 40px 40px; }
.modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.modal-body .lede {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(125, 168, 130, 0.18);
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checkbox-field input { margin-top: 3px; flex-shrink: 0; accent-color: var(--sage); }
.modal .btn { width: 100%; justify-content: center; }
.success-state {
  text-align: center;
  padding: 50px 24px 20px;
  display: none;
}
.success-state.show { display: block; }
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--sage);
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  animation: pop 0.5s var(--ease);
}
.success-icon svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 2.5; }
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.success-state h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 10px; }
.success-state p { color: var(--ink-mute); }

/* ─────────── FOOTER ─────────── */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
footer .logo { color: #fff; margin-bottom: 16px; display: inline-block; }
footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 340px;
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 18px !important;
  font-size: 1.05rem;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 12px; }
footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}
footer a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s var(--ease);
}
.socials a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
  transform: translateY(-2px);
}
.socials svg { width: 15px; height: 15px; fill: currentColor; }
.copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.copyright a:hover { color: rgba(255, 255, 255, 0.85); }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { gap: 50px; }
  .about-image img { height: 460px; }
  .engagement-wrap { grid-template-columns: 1fr; gap: 50px; }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid .article:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }

  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(249, 247, 242, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 22px 24px 32px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; }
  .nav-links a { display: block; padding: 16px 0; font-size: 1rem; }
  .burger { display: flex; }

  .hero { height: 100svh; min-height: 540px; }
  .arrow { width: 42px; height: 42px; }
  .arrow.prev { left: 12px; }
  .arrow.next { right: 12px; }
  .dots { bottom: 24px; }

  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 380px; }
  .counters { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .counter-num { font-size: 2.2rem; }

  .engagement-item { grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; }
  .engagement-num { font-size: 1.15rem; }

  .events-grid { grid-template-columns: 1fr; gap: 28px; }
  .event-img { height: 240px; }
  .event-body { padding: 28px 26px 32px; }

  .journal-head { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 40px; }
  .journal-grid { grid-template-columns: 1fr; gap: 32px; }
  .journal-grid .article:nth-child(3) { display: flex; }

  .contact-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .contact-grid.two-col { grid-template-columns: 1fr; }
  .contact-img { height: 160px; }

  .modal-body { padding: 26px 24px 32px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .copyright { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
