/* =========================
   CONTEMPORARY ON LAND & OFFSHORE
   Global Stylesheet (styles.css)
   Palette:
   --primary: #353654
   --accent:  #d8b66e
   --neutral: #8d8f84
   ========================= */

:root {
  --blue: #07408c;
  --gold: #eeba2b;
  --primary: #353654;
  --accent: #d8b66e;
  --neutral: #8d8f84;
  --text-dark: #222222;
  --text-muted: #555555;
  --bg-light: #d8b66ec6;
}
#about {
  scroll-margin-top: 3em;
}
#services {
  scroll-margin-top: 3em;
}
#capacity {
  scroll-margin-top: 3em;
}
#commitment {
  scroll-margin-top: 3em;
}
#contact {
  scroll-margin-top: 3em;
}

#svc-ops {
  scroll-margin-top: 6em;
}
/* ========== RESET / BASE ========== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utility */

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

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

/* a:hover {
  text-decoration: underline;
} */

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.quote-container {
  padding: 2em;
}

/* ========== HEADER / NAV ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(141, 143, 132, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.logo {
  width: 250px;
  height: 28px;
}

/* Nav */

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.main-nav a {
  padding: 0.2rem 0;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: transform 2.2s ease; /* <-- transition goes here */
}

.main-nav a:hover {
  color: #d68407;
}

/* Mobile nav toggle */

/* =========================
   HAMBURGER (premium animated)
   ========================= */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2000;
}

/* Container spacing on mobile */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
  }
}

/* Hamburger lines */
.hamburger-icon {
  position: relative;
  width: 30px;
  height: 22px;
}

.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #151756;
  border-radius: 3px;
  transition: all 0.35s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}
.hamburger-icon span:nth-child(2) {
  top: 9px;
}
.hamburger-icon span:nth-child(3) {
  top: 18px;
}

/* ====== ANIMATION TO X ====== */
.nav-toggle.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

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

.nav-toggle.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ========== HERO ========== */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 95vh;
  background-image: url(images/hero1-background.webp);
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  left: -10%;
  top: -10%;
  backdrop-filter: blur(10px); /* <-- REAL background blur */
  background: linear-gradient(to bottom right, #151756, #353654);
  clip-path: polygon(0% 0%, 65% 0%, 0% 240%);
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 65%;
  left: -20%;
  bottom: -35%;
  background: #d8b66eff;
  clip-path: polygon(0% 10%, 100% 50%, 20% 180%);
  z-index: 1;
  pointer-events: none;
}

.hero * {
  position: relative;
  z-index: 2;
}

/* Initial states */
.hero::before {
  opacity: 0;
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.hero::after {
  opacity: 0;
  transition: opacity 1s ease 5s,
    transform 2.5s cubic-bezier(0.16, 0.84, 0.44, 1) 5s;
}

/* Blue polygon starts off-screen LEFT */
.hero::before {
  transform: translateX(-250px);
}

/* Gold polygon starts BELOW */
.hero::after {
  transform: translateY(150px);
  transition-delay: 0.2s; /* gold comes slightly after blue */
}

/* When hero loads */
.hero.animate::before,
.hero.animate::after {
  opacity: 1;
  transform: translate(0, 0);
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* keep full video visible */
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
  gap: 3rem;
  align-items: flex-start;
}

.hero-copy {
  position: relative;
  padding-left: 1.6em;

  /* initial state for animation */
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.03);

  /* run the heroReveal animation */
  animation: heroReveal 1.3s ease-out 0.25s forwards;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.8rem;
  height: 80%;
  width: 6px;
  background: #d8b66e;
  border-radius: 50px;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: scale(1.3);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* Hero service cards: slide in from the right, staggered */
.hero-services .service-card {
  opacity: 0;
  transform: translateX(100px);
  animation: serviceSlideIn 0.7s ease-out forwards;
}

/* Stagger timing */
.hero-services .service-card:nth-child(1) {
  animation-delay: 1.2s;
}

.hero-services .service-card:nth-child(2) {
  animation-delay: 1.4s;
}

.hero-services .service-card:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes serviceSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  /* color: var(--primary); */
  color: #d68407;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  /* color: var(--accent); */
  color: #dcdcdc;
}
.outline {
  color: #151756; /* normal fill */
  text-shadow: -1px -1px 0 #dcdcdc, 1px -1px 0 #dcdcdc, -1px 1px 0 #dcdcdc,
    1px 1px 0 #dcdcdc;
}

.hero-subtitle {
  max-width: 36rem;
  font-size: 1rem;
  color: #dcdcdc;

  /* color: var(--neutral); */
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease,
    border-color 150ms ease, transform 120ms ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: #c9a45f;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  /* color: var(--accent); */
  border-color: var(--accent);
}
.btn-ghost2 {
  background-color: transparent;
  color: #c9a45f;
  /* color: var(--accent); */
  border-color: var(--accent);
}

.btn-ghost:hover {
  background-color: rgba(216, 182, 110, 0.12);
}

.btn-ghost2:hover {
  background-color: #c9a45f;
  color: #383837;

  /* color: var(--accent); */
}

.btn-invert {
  background-color: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.btn-invert:hover {
  background-color: #f3f3f3;
}

/* Hero services cards */

.hero-services {
  display: grid;
  gap: 1rem;
}

.service-card {
  border-radius: 1rem;
  /* border: 1px solid var(--neutral); */
  padding: 1.2rem 1.4rem;
  background: rgba(44, 44, 44, 0.751); /* or any transparent color */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(12px); /* for Safari */
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
  color: #d68407;
  /* color: var(--primary); */
}

.service-card p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #ececec;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  color: var(--primary);
  color: #ececec;
}

.card-link:hover {
  border-color: currentColor;
  color: var(--accent);
}

/* ========== SECTIONS ========== */
/* ========== capacity ========== */
/* .capacity {
  background-color: #1e275a7c;
} */
/* ===== About section polygon background ===== */
/* Bottom-right blue polygon for entire capacity section */
#capacity {
  position: relative;
  overflow: hidden; /* keeps polygon contained if needed */
  z-index: 1;
}

#capacity::before {
  content: "";
  position: absolute;
  width: 130%;
  height: 50%;
  right: 0%;
  bottom: 0%;
  backdrop-filter: blur(10px); /* <-- REAL background blur */
  background: #d8b66eff;
  clip-path: polygon(100% 0, 0 100%, 100% 100%); /* triangle */
  z-index: -2;
  pointer-events: none;
}

#capacity::after {
  content: "";
  position: absolute;
  width: 130%;
  height: 45%;
  right: 0%;
  bottom: 0%;
  backdrop-filter: blur(10px); /* <-- REAL background blur */
  background: linear-gradient(to bottom right, #151756, #353654);
  clip-path: polygon(100% 0, 0 100%, 100% 100%); /* triangle */
  z-index: -1;
  pointer-events: none;
}
#about {
  position: relative;
  overflow: hidden; /* hides the extra polygon area */
}

/* Make sure the content sits above the polygon */
#about > .container {
  position: relative;
  z-index: 1;
}

/* Polygon overlay at the top of the section */
#about::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 230px; /* adjust height as you like */
  background: #d8b66eff;
  clip-path: polygon(
    0 0,
    /* top-left */ 100% 0%,
    /* top-right */ 100% 100%,
    /* diagonal down right */ 0% 100% /* diagonal down left */
  );
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.section {
  padding-block: 3.5rem;
}

.section-light-about {
  background-color: #efede8bb;
}
.section-light {
  background-color: #fdfdfd;
}

.section-muted {
  background-color: #d8b66eff;
}

.section-accent {
  background-color: var(--primary);
  color: #ffffff;
}

.section-header,
.section-header-2 {
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
  margin-bottom: 6rem;
}

.section-header-2 {
  margin-bottom: 0rem;
}

.section-header h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(35px, 3vw, 48px);
  line-height: 1;
  color: var(--blue);
  /* color: #151756; */
  margin-top: -3rem;
}

.section-header-2 h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(35px, 3vw, 48px);
  line-height: 1;
  color: var(--blue);
}

.section-header p {
  text-align: left;
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
}

.section-header-2 p {
  text-align: left;
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-accent {
  color: #ffffff;
}

.section-accent .section-header p {
  color: #e6e6e6;
}

/* Logo row (if used) */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.logo-pill {
  border-radius: 999px;
  border: 1px solid rgba(141, 143, 132, 0.7);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Assessment (if used) */

.assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.assessment-copy h2 {
  margin-top: 0;
  color: #ffffff;
}

.assessment-copy p {
  max-width: 30rem;
}

.checklist {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}

.checklist li {
  margin-bottom: 0.2rem;
}

.assessment-visual {
  display: flex;
  justify-content: flex-end;
}

.assessment-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  max-width: 20rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.mini-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-top: 0;
}

.assessment-card h3 {
  margin: 0.5rem 0 0.5rem;
}

/* Stats (if you decide to use them later) */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
}

.stat {
  border-radius: 1rem;
  border: 1px solid var(--neutral);
  padding: 1.25rem 1.3rem;
  background-color: #ffffff;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--neutral);
}

.stat p {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Two-column general */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 2.8rem;
  align-items: flex-start;
}

.two-column h3,
strong {
  color: var(--blue);
}
.col-1 h2 {
  font-size: clamp(45px, 4vw, 64px);
  font-weight: 900;
  line-height: 1;
  padding: 0%;
  margin: 0%;
  color: var(--primary);
}
.col-visual {
  display: flex;
  justify-content: flex-end;
}

/* Base state: blurred and slightly lowered */
.about-block {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
  transition: opacity 0.7s ease, transform 1.1s ease, filter 0.7s ease;
}

/* When in view */
.about-block.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Group timing: 1&2 together, then 3&4, then 5&6 */
.about-block.group-1 {
  transition-delay: 0s;
}

.about-block.group-2 {
  transition-delay: 0.18s;
}

.about-block.group-3 {
  transition-delay: 0.36s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about-block {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Book mockup (if used) */

.book-mockup {
  border-radius: 1.4rem;
  border: 1px solid var(--primary);
  padding: 1.6rem 1.7rem;
  max-width: 17rem;
  background: linear-gradient(145deg, #ffffff, #ececec);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.book-label {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.book-mockup h3 {
  margin: 0.9rem 0 0.3rem;
  color: var(--primary);
}
/* ========== CARD GRID / SERVICES CAROUSEL ========== */

.card-grid {
  display: flex;
  gap: 1.7rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox hide */
}

.card-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge hide */
}

/* DESKTOP: 3 CARDS PER PAGE, SNAP BY PAGE */
.card-page {
  flex: 0 0 100%; /* each page = full viewport width */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
  scroll-snap-align: start;
}

/* Your existing content-card styles can stay */
.content-card {
  position: relative;
  padding: 2rem 1.7rem 2rem;
  background: #e9e9e6;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: 100;
}

.tag {
  position: relative; /* required so ::before aligns to this */
  display: inline-block;
  display: flex;
  justify-content: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  padding: 8px 14px; /* add padding to make space for background */
}

.tag::before {
  content: ""; /* <-- REQUIRED */
  position: absolute;
  left: 0;
  inset: 0; /* fill the entire tag box */
  background-color: #3f416a;
  border-radius: 20px 20px 20px 20px;
  z-index: -1; /* place behind text */
}

.content-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--primary);
}

.content-card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c9a45f;
  /* color: var(--text-muted); */
}

.content-card p span {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  /* color: var(--text-muted); */
}

.content-card ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.content-card li + li {
  margin-top: 0.2rem;
}

.meta {
  font-size: 0.8rem;
  color: var(--neutral);
}

/* Services cards: slide in from right on scroll */

/* Services cards: slide in from right on scroll (subtle) */

.content-card.svc-hidden {
  opacity: 0;
  transform: translateY(50px); /* was 40px — now subtle */
  filter: blur(1.5px); /* reduced blur slightly */
}

.content-card.svc-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 500ms ease, transform 0.4s ease, filter 550ms ease;
}

/* ========== CARD DOTS (CAROUSEL INDICATORS) ========== */

.card-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  z-index: 2;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease,
    border-color 0.2s ease, width 0.2s ease;
  z-index: 2;
}

.card-dot.active {
  width: 20px;
  background-color: var(--bg-light);
  border-color: var(--bg-light);
  transform: scale(1.25);
}

/* ==== responsive cards-per-page (must match JS) ==== */

/* tablet ~2 cards */
@media (max-width: 900px) {
  .card-grid {
    grid-auto-columns: calc((100% - 1.7rem) / 2);
  }
}

/* mobile 1 card */
@media (max-width: 600px) {
  .card-grid {
    grid-auto-columns: 100%;
  }
}

/* Testimonials (if used) */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.testimonial {
  border-radius: 1.1rem;
  border: 1px solid var(--neutral);
  padding: 1.5rem 1.4rem;
  background-color: #fafafa;
}

.quote {
  font-size: 0.94rem;
  margin: 0 0 0.8rem;
  color: var(--text-dark);
}

.logo-quote {
  margin: 1.5em auto;
  width: 120px;
}
.banner {
  width: 100vw;
}

.banner img {
  width: 100%;
}
.role {
  font-size: 0.8rem;
  color: var(--neutral);
}

/* Team (if used) */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 0.8rem;
  justify-content: flex-end;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--neutral));
}

/* Purpose card / Commitment box */

/* .purpose-card {
  border-radius: 1.2rem;
  border: 1px solid var(--neutral);
  padding: 1.4rem 1.5rem;
  background-color: #ffffff;
} */

.purpose-card p {
  margin-top: 0;
  font-weight: 500;
  color: var(--primary);
}
.purpose-header {
  font-size: clamp(17px, 2vw, 24px);

  font-weight: 900;
  line-height: 1.2;
}

.purpose-card ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0 0;
}

.purpose-card li {
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
  color: var(--text-muted);
}

/* Quote strip */

.quote-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom right, #151756, #353654);
  min-height: 300px;
}

.quote-text {
  font-size: clamp(35px, 3vw, 48px);
  font-weight: 700;
  max-width: 70rem;
  line-height: 1;
  margin: 0 auto 0.5rem;
  color: rgb(241, 237, 237);
  padding-bottom: 0.5rem;
}

.quote-author {
  font-size: 1.3rem;
  font-size: clamp(18px, 1.5vw, 24px);

  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* Initial state before entering viewport */
.observe-fade {
  opacity: 0;
  transform: translateX(200px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When observer adds the class */
.observe-fade.show {
  opacity: 1;
  transform: translateX(0);
}

/* Optional delay helpers */
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}

/* Contact */

.contact-header h2 {
  font-size: 3em;
  color: var(--blue);
  font-weight: 800;
}

.contact-grid {
  align-items: flex-start;
}

.contact-form {
  border-radius: 1.2rem;
  border: 1px solid var(--neutral);
  padding: 1.6rem 1.7rem;
  background-color: #ffffff;
}

.form-row {
  margin-bottom: 1rem;
}

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

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--neutral);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background-color: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #b0b0b0;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

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

.site-footer {
  border-top: 1px solid rgba(141, 143, 132, 0.5);
  background: linear-gradient(to bottom right, #151756, #353654);
  padding-block: 2.5rem 1.8rem;
  font-size: 0.85rem;
  color: #f3f3f3;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.footer-logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.footer-text {
  margin: 0;
  color: #e7e7e7;
}

.footer-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-block li {
  margin-bottom: 0.2rem;
}

.footer-block a {
  color: #e7e7e7;
  text-decoration: none;
}

.footer-block a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.newsletter-form {
  margin-top: 0.2rem;
}

.newsletter-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.newsletter-row input {
  flex: 1;
  border-color: rgba(231, 231, 231, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.newsletter-row input::placeholder {
  color: #d0d0d0;
}

.newsletter-row button {
  border-radius: 999px;
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.newsletter-row button:hover {
  background-color: #c9a45f;
}

.newsletter-footnote {
  margin: 0;
  color: #dcdcdc;
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-top: 1px solid rgba(141, 143, 132, 0.6);
  padding-top: 1rem;
  color: #dcdcdc;
}

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

.footer-links a {
  text-decoration: none;
  color: #f3f3f3;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* A11y helper */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 900px) {
  .hero-inner,
  .assessment-grid,
  .stats-grid,
  .two-column,
  .testimonial-grid,
  .footer-grid,
  .form-row-half {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .hero-services {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid,
  .testimonial-grid {
    gap: 1.3rem;
  }

  .col-visual,
  .assessment-visual {
    justify-content: flex-start;
  }

  .footer-grid {
    gap: 1.3rem;
  }

  /* carousel shows ~2 cards on tablet */
  .card-grid {
    grid-auto-columns: calc((100% - 1.7rem) / 2);
  }
}

/* Mobile breakpoint for carousel: 1 card full-width */
@media (max-width: 600px) {
  .card-grid {
    grid-auto-columns: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    border-bottom: 1px solid rgba(141, 143, 132, 0.45);
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    height: 100vh;
    background-color: #fff;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
    z-index: 100;

    /* NEW: make the nav itself a flex container */
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    padding-block: 0; /* remove extra top/bottom padding */
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* NEW: center items in column */
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    color: var(--blue);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
  }

  .observe-fade {
    opacity: 0;
    transform: translateX(0px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    position: relative; /* so the video can sit behind */
    padding-block: 4rem 3rem;
    min-height: 70vh; /* gives the section some height */
    overflow: hidden; /* hide overflow from the video */
  }

  .hero-inner {
    position: relative;
    z-index: 1; /* content above the video */
  }

  .hero::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    left: -10%;
    top: -10%;
    backdrop-filter: blur(10px); /* <-- REAL background blur */
    background: linear-gradient(to bottom right, #05337098, #02214aa4);
    clip-path: polygon(
      0% 0%,
      /* top-left  */ 100% 0%,
      /* top-right */ 100% 100%,
      /* bottom-right */ 0% 100% /* bottom-left */
    );
    z-index: 1;
    pointer-events: none;
  }

  .hero::after {
    display: none;
  }

  .hero-video {
    display: none;
  }

  #about::before {
    display: none;
  }

  .section {
    padding-block: 3rem;
  }
  .section-header h2,
  .section-header-2 h2 {
    margin: 0 0 0.7rem;
    text-align: left;
  }
  .section-header h2 {
    margin: 0 auto;
    width: 100%;
    line-height: 1;
    padding-bottom: 0.5em;
  }
  .section-header p {
    text-align: left;
    margin: 0;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0rem;
  }
  .card-grid {
    display: flex;
    gap: 1.2rem;
  }
  .content-card.svc-hidden,
  .content-card.svc-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  /* Make pages “disappear” so children behave like direct flex items */
  .card-page {
    display: contents;
    flex: none;
    scroll-snap-align: none;
  }

  .content-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .quote-strip {
    padding-block: 0rem;
  }

  .logo-quote {
    margin: 1em auto;
    width: 100px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 2rem, 480px);
  }

  .logo-text {
    font-size: 0.8rem;
  }

  .stats-grid,
  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
