/* ─────────────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-navy:       #001f3f;
  --color-teal:       #547792;
  --color-cream:      #f4f0e4;
  --color-light-gold: #e1d9bc;
  --color-gold:       #c39a6e;
  --color-offwhite:   #f9f9f9;
  --color-white:      #ffffff;
  --color-black:      #000000;

  /* Semantic */
  --bg-dark:          var(--color-navy);
  --bg-brand:         var(--color-teal);
  --bg-light:         var(--color-offwhite);
  --bg-surface:       var(--color-cream);
  --text-on-dark:     var(--color-white);
  --text-on-light:    var(--color-navy);
  --accent:           var(--color-gold);
  --cta-bg:           var(--color-light-gold);
  --cta-text:         var(--color-navy);

  /* Typography */
  --font-display: "Cabooet", Georgia, serif;
  --font-body:    "Urbanist", system-ui, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  --fs-h2:      clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  --fs-h3:      clamp(1.25rem, 1rem + 1vw, 1.5rem);
  --fs-stat:    clamp(3rem, 2rem + 4vw, 5rem);
  --fs-lg:      clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-base:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --section-y: clamp(4rem, 6vw, 8rem);

  /* Layout */
  --max-width:    90rem;
  --content-pad:  clamp(1.5rem, 4vw, 3rem);
  --nav-height:   88px;

  /* Misc */
  --radius-sm:    0.25rem;
  --radius-round: 999px;
  --transition:   200ms ease;
}

/* ─────────────────────────────────────────────────────────────────
   CUSTOM FONT
───────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Cabooet";
  src: url("assets/fonts/Cabooet-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-navy);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul[role="list"] {
  list-style: none;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ─────────────────────────────────────────────────────────────────
   SKIP LINK
───────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
}

/* ─────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* Light gold / navy — primary CTA */
.btn--primary {
  background: var(--color-light-gold);
  color: var(--color-navy);
  border-color: var(--color-light-gold);
}

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

/* Transparent / white border — secondary */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Nav & footer CTA */
.btn--cta {
  background: var(--color-light-gold);
  color: var(--color-navy);
  border-color: var(--color-light-gold);
}

.btn--cta:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

/* Form submit */
.btn--submit {
  width: 100%;
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  margin-top: var(--space-2);
}

.btn--submit:hover {
  background: #002d5a;
  border-color: #002d5a;
}

/* ─────────────────────────────────────────────────────────────────
   SHARED SECTION UTILITIES
───────────────────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-y) var(--content-pad);
}

.section-header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-navy);
  max-width: 48rem;
  line-height: 1.6;
}

.section-subtitle--brand {
  color: var(--color-teal);
  font-weight: 500;
}

.section-subtitle--muted {
  color: rgba(255, 255, 255, 0.65);
}

/* ─────────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem var(--content-pad);
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: none;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__cta {
  display: none;
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-xs);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
}

.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger[aria-expanded="true"] .nav__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__bar:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] .nav__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE MENU
───────────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--content-pad);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-5);
  right: var(--content-pad);
  color: var(--color-white);
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu__close:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--color-white);
  transition: color var(--transition);
}

.mobile-menu__links a:hover {
  color: var(--color-gold);
}

/* ─────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background-image: url("assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--color-navy);
  display: flex;
  flex-direction: column;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(60deg, var(--color-navy) 22%, transparent 48%, var(--color-navy) 74%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-7)) var(--content-pad) var(--space-8);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.hero__lead {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  line-height: 1.65;
  margin-bottom: var(--space-7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__stat {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero__stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__stat-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-white);
  line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────
   ABOUT BANNER
───────────────────────────────────────────────────────────────── */
.about-banner {
  position: relative;
  background-color: var(--color-teal);
  overflow: hidden;
  aspect-ratio: 1015 / 720;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.about-banner__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/banner-worker.jpg");
  background-size: cover;
  background-position: center top;
  mix-blend-mode: darken;
  opacity: 0.22;
  pointer-events: none;
}

.about-banner__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 9rem) var(--content-pad);
  text-align: center;
}

/* Slider: CSS grid stacking so all quotes occupy the same cell */
.about-banner__slider {
  display: grid;
  margin-bottom: var(--space-5);
}

.about-banner__quote {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 0.875rem + 2vw, 1.625rem);
  font-weight: 600;
  color: var(--color-cream);
  line-height: 1.55;
  font-style: normal;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  /* Salida: rápida */
  transition: opacity 320ms ease-in,
              transform 320ms ease-in;
  pointer-events: none;
}

.about-banner__quote--active {
  opacity: 1;
  transform: translateY(0);
  /* Entrada: lenta y suave */
  transition: opacity 750ms cubic-bezier(0.0, 0.0, 0.2, 1),
              transform 750ms cubic-bezier(0.0, 0.0, 0.2, 1);
  pointer-events: auto;
}

.about-banner__bars {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

/* Progress indicator bars */
.about-banner__bar {
  width: 48px;
  padding: 8px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: block;
  position: relative;
}

/* Gray track (always visible) */
.about-banner__bar::after {
  content: '';
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
}

/* Animated cream fill that progresses left → right */
.about-banner__bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  height: 2px;
  width: 100%;
  background: var(--color-cream);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
}

.about-banner__bar--active::before {
  opacity: 1;
  animation: barFill 5s linear both;
}

@keyframes barFill {
  from { transform: scaleX(0); opacity: 1; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────────────────────────── */
.services {
  background: var(--color-offwhite);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.service-card {
  background: var(--color-white);
  overflow: hidden;
}

.service-card__visual {
  background: var(--color-cream);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-card__icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.service-card__hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

@media (hover: hover) {
  .service-card:hover .service-card__hover-img { opacity: 1; }
  .service-card:hover .service-card__icon { opacity: 0; }
}

.service-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.service-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.service-card__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.service-card__desc {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-teal);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────────
   PROJECTS
───────────────────────────────────────────────────────────────── */
.projects {
  background: var(--color-offwhite);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-navy);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

/* Default label — always visible, gradient + white title */
.project-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-5) var(--space-5);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  transition: opacity 260ms ease;
}

.project-card__label h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-white);
}

/* Hover overlay — navy, bottom only, hidden by default */
.project-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: rgba(0, 31, 63, 0.87);
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-card__overlay h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.project-card__overlay p {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

/* Desktop hover: hide label, show overlay */
@media (hover: hover) {
  .project-card:hover .project-card__label { opacity: 0; }
  .project-card:hover .project-card__overlay { opacity: 1; }
}

/* Touch: tap to toggle overlay */
.project-card.is-expanded .project-card__label { opacity: 0; }
.project-card.is-expanded .project-card__overlay {
  opacity: 1;
  aria-hidden: false;
}

/* ─────────────────────────────────────────────────────────────────
   TEAM
───────────────────────────────────────────────────────────────── */
.team {
  background: var(--color-navy);
}

.section-header--dark {
  color: var(--color-white);
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.team-card__portrait {
  position: relative;
  aspect-ratio: 4 / 5.6;
  overflow: hidden;
  background: var(--color-teal);
}

.team-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-card__info {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.team-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
}

.team-card__role {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-card__btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}

.team-card__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.team-card__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────
   TEAM MODAL
───────────────────────────────────────────────────────────────── */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity 340ms ease;
}

.team-modal[hidden] { display: none; }
.team-modal.is-open { opacity: 1; }

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 40, 0.82);
  cursor: pointer;
}

.team-modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  background: var(--color-white);
  transform: translateY(32px) scale(0.97);
  transition: transform 440ms cubic-bezier(0.16, 1, 0.3, 1), opacity 380ms ease;
  opacity: 0;
}

.team-modal.is-open .team-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.team-modal__photo {
  position: relative;
  overflow: hidden;
  min-height: 540px;
}

.team-modal__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-modal__body {
  padding: var(--space-8) var(--space-7) var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}

.team-modal__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-navy);
  border-radius: var(--radius-round);
  transition: background 200ms ease;
}

.team-modal__close:hover {
  background: rgba(0, 31, 63, 0.07);
}

.team-modal__name {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  margin-top: var(--space-6);
}

.team-modal__role {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.team-modal__bio {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-teal);
  line-height: 1.75;
}

@media (max-width: 600px) {
  .team-modal__card {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }
  .team-modal__photo {
    min-height: 260px;
  }
  .team-modal__body {
    padding: var(--space-6) var(--space-5) var(--space-6);
  }
  .team-modal__name { margin-top: var(--space-4); }
}

/* ─────────────────────────────────────────────────────────────────
   BY THE NUMBERS
───────────────────────────────────────────────────────────────── */
.numbers {
  background: var(--color-offwhite);
}

.numbers__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.numbers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.numbers__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7) var(--space-5);
  gap: var(--space-2);
}

.numbers__cell:nth-child(odd) {
  border-right: 1px solid var(--color-teal);
}

.numbers__cell:nth-child(-n+2) {
  border-bottom: 1px solid var(--color-teal);
}

.numbers__value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  color: var(--color-gold);
  line-height: 1;
}

.numbers__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────────────────── */
.contact {
  background:
    linear-gradient(90deg, var(--color-navy) 0%, rgba(0, 31, 63, 0.7) 58%, rgba(0, 31, 63, 0.3) 100%),
    url("assets/images/contact-bg.jpg") center / cover no-repeat;
  background-color: var(--color-navy);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.contact__info .eyebrow {
  margin-bottom: var(--space-4);
}

.contact__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-7);
  line-height: 1.6;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact__detail dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-1);
}

.contact__detail dd {
  font-size: var(--fs-lg);
  color: var(--color-white);
  font-weight: 500;
  line-height: 1.5;
}

.contact__detail dd a {
  color: var(--color-white);
  transition: color var(--transition);
}

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

.contact__detail-note {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  margin-top: var(--space-1);
}

/* Contact form card */
.contact__form-card {
  background: var(--color-cream);
  padding: var(--space-7) var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus-visible {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 2px var(--color-navy);
}

.form-textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23001f3f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-success {
  background: rgba(0, 31, 63, 0.08);
  color: var(--color-navy);
  font-weight: 600;
  padding: var(--space-4);
  text-align: center;
  margin-top: var(--space-4);
}

.form-success[hidden] {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--content-pad);
  text-align: center;
}

.footer__copy {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer__logo img {
  height: 30px;
  width: auto;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__legal a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--color-white);
}

.footer__legal span {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--fs-xs);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET (768px+)
───────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {

  /* Nav */
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }

  /* Hero — content bottom-left, stats top-right */
  .hero__inner {
    grid-template-columns: 1fr 280px;
    grid-template-rows: 1fr;
    align-items: end;
  }

  .hero__content {
    align-self: end;
  }

  .hero__stats {
    align-self: start;
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services — third card full width as horizontal layout */
  .service-card:nth-child(3) {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
  }

  .service-card:nth-child(3) .service-card__visual {
    flex: 0 0 42%;
    aspect-ratio: unset;
    min-height: 200px;
  }

  .service-card:nth-child(3) .service-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-6) var(--space-7);
  }

  /* Projects */
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team — horizontal scroll slider showing 2.5 cards */
  .team__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-5);
    padding-bottom: var(--space-6);
    scrollbar-width: none;
  }

  .team__grid::-webkit-scrollbar {
    display: none;
  }

  .team-card {
    flex: 0 0 calc((100% - var(--space-5) * 2) / 2.5);
    min-width: 0;
    scroll-snap-align: start;
  }

  /* Numbers */
  .numbers__layout {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE — DESKTOP (1024px+)
───────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {

  /* Services — full 3-column grid */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Reset the full-width on the 3rd card */
  .service-card:nth-child(3) {
    grid-column: auto;
    display: block;
  }

  .service-card:nth-child(3) .service-card__visual {
    flex: unset;
    aspect-ratio: 4 / 3;
    min-height: unset;
  }

  .service-card:nth-child(3) .service-card__body {
    flex: unset;
    display: block;
    flex-direction: unset;
    justify-content: unset;
    padding: var(--space-5) var(--space-5) var(--space-6);
  }

  /* Projects */
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Team — reset to 3-column grid */
  .team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: unset;
    scroll-snap-type: unset;
    padding-bottom: 0;
  }

  .team-card {
    flex: unset;
    min-width: unset;
    scroll-snap-align: unset;
  }
}

/* ─────────────────────────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card:hover img {
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
