:root {
  --navy: #05053b;
  --red: #ba0b08;
  --orange: #de5408;
  --amber: #e88109;
  --gold: #efae0c;
  --bg: #f8f7f3;
  --text: #0f1630;
  --muted: #596279;
  --white: #ffffff;
  --card-shadow: 0 20px 60px rgba(5, 5, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.site-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: opacity 0.6s ease;
}

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.92) 32%,
    rgba(255, 255, 255, 0.55) 62%,
    rgba(255, 255, 255, 0.12) 100%
  );
}

body.scrolled .site-video {
  opacity: 0;
  pointer-events: none;
}

.page-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 20px;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: var(--white);
  box-shadow: 0 14px 38px rgba(186, 11, 8, 0.24);
}

.btn-secondary,
.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(5, 5, 59, 0.12);
  color: var(--navy);
}

.hero {
  position: relative;
  width: 100%;
}

.hero-container {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  min-height: 720px;
  padding: 110px 24px 64px;
  display: flex;
  align-items: center;
}

.hero-brand {
  position: absolute;
  top: 32px;
  left: 24px;
  z-index: 2;
}

.hero-logo {
  width: 300px;
  height: auto;
  display: block;
  padding-bottom: 20px;
}

.lang-switch {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.lang-flag {
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.4;
  filter: grayscale(0.6);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.lang-flag:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

.lang-flag.is-active {
  opacity: 1;
  filter: grayscale(0);
}

.hero-tagline {
  margin: 10px 0 0;
}


.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
  min-width: 0;
}

.eyebrow,
.eyebrow-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 18px;
}

.eyebrow {
  color: var(--orange);
}

.eyebrow-badge {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--amber));
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(186, 11, 8, 0.32);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  line-height: 1.04;
  color: var(--navy);
  font-family: "Playfair Display", serif;
}

.intro {
  max-width: 560px;
  margin: 18px 0 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stats-row article {
  border: none;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.stats-row strong {
  display: block;
  color: var(--white);
  margin-bottom: 6px;
}

.stats-row span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.stats-row article:nth-child(1) {
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.stats-row article:nth-child(2) {
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.stats-row article:nth-child(3) {
  background: linear-gradient(135deg, var(--amber), var(--gold));
}

.about,
.services,
.mission,
.partners {
  padding: 60px 0;
}

.about-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 3fr;
  grid-template-areas:
    "heading media"
    "content media";
  column-gap: 48px;
  row-gap: 18px;
  border: 1px solid rgba(5, 5, 59, 0.12);
  border-radius: 16px;
  padding: 48px;
}

.about-heading {
  grid-area: heading;
}

.about-content {
  grid-area: content;
}

.about-heading h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  color: var(--navy);
  font-family: "Playfair Display", serif;
}

.about-content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-media {
  grid-area: media;
  height: 100%;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.section-heading h2,
.mission-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  color: var(--navy);
  font-family: "Playfair Display", serif;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.partners .eyebrow {
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 500;
}

.service-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid rgba(5, 5, 59, 0.12);
  border-radius: 16px;
  padding: 32px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--navy);
}

.service-card p,
.mission-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.accent-1 { border-top: 4px solid var(--red); }
.accent-2 { border-top: 4px solid var(--orange); }
.accent-3 { border-top: 4px solid var(--amber); }
.accent-4 { border-top: 4px solid var(--gold); }
.accent-5 { border-top: 4px solid var(--navy); }
.accent-6 { border-top: 4px solid var(--red); }

.mission-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 3fr;
  grid-template-areas:
    "heading media"
    "content media";
  column-gap: 48px;
  row-gap: 18px;
  border: 1px solid rgba(5, 5, 59, 0.12);
  border-radius: 16px;
  padding: 48px;
}

.mission-heading {
  grid-area: heading;
}

.mission-content {
  grid-area: content;
}

.mission-media {
  grid-area: media;
  height: 100%;
}

.mission-media img,
.mission-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.partners-marquee {
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 72px;
  animation: partners-scroll 24s linear infinite;
}

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

.partners-track img {
  flex: 0 0 auto;
  height: 40px;
  width: auto;
}

@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}

.site-footer {
  position: relative;
  background: var(--navy);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--red), var(--orange), var(--amber), var(--gold)) 1;
}

.footer-content {
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-content p {
  margin: 0;
}

.footer-name {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-content a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.82rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
}

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

@media (max-width: 940px) {
  .service-grid,
  .stats-row,
  .about-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .mission-grid {
    padding: 32px;
  }

  .about-grid,
  .mission-grid {
    grid-template-areas:
      "heading"
      "media"
      "content";
  }

  .about-media,
  .mission-media {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .site-overlay {
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 55%,
      rgba(255, 255, 255, 0.65) 100%
    );
  }

  .hero-container {
    min-height: 600px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .about,
  .services,
  .mission,
  .partners {
    padding: 100px 0;
  }
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-scale {
  transform: scale(0.94);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.stats-row .reveal:nth-child(1) { transition-delay: 0.05s; }
.stats-row .reveal:nth-child(2) { transition-delay: 0.15s; }
.stats-row .reveal:nth-child(3) { transition-delay: 0.25s; }

.about-heading .reveal:nth-child(1) { transition-delay: 0s; }
.about-heading .reveal:nth-child(2) { transition-delay: 0.1s; }
.about-content .reveal:nth-child(1) { transition-delay: 0.2s; }
.about-content .reveal:nth-child(2) { transition-delay: 0.3s; }

.section-heading .reveal:nth-child(1) { transition-delay: 0s; }
.section-heading .reveal:nth-child(2) { transition-delay: 0.12s; }

.service-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.service-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.service-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.service-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.service-grid .reveal:nth-child(5) { transition-delay: 0.33s; }
.service-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.mission-heading .reveal:nth-child(1) { transition-delay: 0s; }
.mission-heading .reveal:nth-child(2) { transition-delay: 0.12s; }
.mission-content .reveal:nth-child(1) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 24px;
  }

  .about,
  .services,
  .mission,
  .partners {
    padding: 72px 0;
  }

  .about-grid,
  .mission-grid {
    padding: 24px;
  }

  .hero-container {
    padding: 96px 20px 48px;
    min-height: 560px;
  }

  .hero-brand {
    top: 20px;
    left: 20px;
  }

  .hero-logo {
    width: 220px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .stats-row article strong {
    font-size: 1.35rem;
  }
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-header {
  padding: 32px 0;
}

.legal-logo {
  width: 160px;
  height: auto;
  display: block;
}

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 0 120px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-back:hover {
  color: var(--orange);
}

.legal-page h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  font-family: "Playfair Display", serif;
}

.legal-page h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  color: var(--navy);
}

.legal-page p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 340px;
  width: calc(100% - 40px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner-content {
  background: linear-gradient(140deg, var(--red), var(--orange) 55%, var(--amber));
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(5, 5, 59, 0.35);
}

.cookie-banner h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: var(--white);
  font-family: "Playfair Display", serif;
}

.cookie-banner p {
  margin: 0 0 10px;
  max-width: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  line-height: 1.55;
}

.cookie-banner p:last-of-type {
  margin-bottom: 16px;
}

.cookie-banner p a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-banner .btn {
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 10px 14px;
}

.cookie-banner .btn-primary {
  background: var(--white);
  color: var(--red);
  box-shadow: none;
}

.cookie-banner .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.cookie-banner .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.75);
}
