/* ========= Reset & base ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html:focus-within {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  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;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus {
  outline: none; /* remove dotted outline to replace with custom focus ring */
}
:focus-visible {
  outline: 2px solid transparent; /* reserve outline space without browser dotted */
  box-shadow: var(--focus-ring-shadow); /* apply unified gold halo */
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
}

/* ========= Branding ========= */
:root {
  --bg: #231f20;
  --gold: #dbb769; /* align accent tone with logomark */
  --gold-light: #e6cc90; /* softened highlight for hover states */
  --text: #ffffff;
  --muted: #e8dfd2; /* slightly deeper neutral for clearer accents */
  --text-dark: #231f20;

  --radius: 18px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --container-padding-inline: clamp(
    16px,
    4vw,
    48px
  ); /* shared gutter padding */
  --section-padding-block: clamp(
    32px,
    4vw,
    60px
  ); /* normalized section rhythm */
  --section-gap: clamp(20px, 4vw, 36px); /* consistent inter-column spacing */
  --focus-ring-color: rgba(219, 183, 105, 0.65); /* focus highlight tone */
  --focus-ring-shadow: 0 0 0 3px rgba(219, 183, 105, 0.35); /* soft focus halo */
  --header-height: clamp(
    60px,
    7vh,
    72px
  ); /* baseline header height reference */
}

.text-center {
  text-align: center;
}

/* ========= Utilities ========= */
.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding-inline: var(
    --container-padding-inline
  ); /* apply global side gutters */
}
.section {
  padding-block: var(
    --section-padding-block
  ); /* apply shared vertical spacing */
  position: relative;
}
.section--muted {
  background: var(--muted);
  color: var(--text-dark);
}
.section-head {
  display: grid; /* keep stacked headings and copy aligned */
  gap: 0.65rem;
  margin-bottom: clamp(20px, 4vw, 48px);
  max-width: 60ch;
}
.section-head.text-center {
  margin-inline: auto; /* center aligned head retains shared spacing */
}
.title-2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin: 0.25rem 0 1rem;
}
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.8;
}
.accent {
  color: var(--gold);
  font-family: "Playfair Display", serif;
}
.muted-text {
  opacity: 0.85;
}
.rounded {
  border-radius: var(--radius);
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.divider--small {
  width: 160px;
  margin: 1rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(219, 183, 105, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn--primary {
  background: var(--gold);
  color: var(--text-dark);
}
.btn--primary:hover {
  background: var(--gold-light);
}
/* ========= Header ========= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(35, 31, 32, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 183, 105, 0.2);
  min-height: var(
    --header-height
  ); /* align header height with spacing tokens */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(
    0.8rem,
    3vw,
    2.2rem
  ); /* widen breathing room between logo and nav */
  padding: 0.8rem 0;
}
.logo img {
  height: clamp(36px, 4.2vw, 44px); /* scale logo to balance nav weight */
  width: auto;
  max-width: clamp(
    132px,
    14vw,
    180px
  ); /* prevent overstretching at wide viewports */
}
.logo:focus,
.logo:focus-visible {
  outline: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem); /* equalize spacing between nav items */
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li:last-child {
  margin-left: clamp(0.75rem, 2.5vw, 2.5rem); /* separate CTA from text links */
}
.main-nav a {
  position: relative;
  transition: color 0.2s var(--ease); /* animate only text color now */
}
.main-nav a:not(.btn) {
  padding: 0.5rem 0.45rem; /* enlarge hit area for text links */
}
.main-nav a:focus,
.main-nav a:focus-visible,
.nav-toggle:focus,
.nav-toggle:focus-visible {
  outline: none; /* rely on custom navigation focus ring below */
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px; /* thicken underline for better visibility */
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.main-nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
  box-shadow: none; /* ensure clean default state before focus ring */
  position: relative;
  z-index: 70; /* keep toggle above mobile overlay */
}
.nav-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); /* animate burger bars */
}
.main-nav a:focus-visible,
.nav-toggle:focus-visible {
  box-shadow: var(
    --focus-ring-shadow
  ); /* apply consistent nav focus highlight */
}
.btn:focus-visible,
.arrow-link:focus-visible {
  box-shadow: var(--focus-ring-shadow); /* highlight primary calls to action */
}
.body-lock {
  overflow: hidden; /* prevent background scroll when mobile nav is open */
}
.nav-toggle.is-open .nav-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg); /* morph burger into close icon */
}
.nav-toggle.is-open .nav-bar:nth-child(2) {
  opacity: 0; /* hide middle bar on open */
}
.nav-toggle.is-open .nav-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg); /* complete close icon */
}
.btn--nav {
  flex-shrink: 0;
}

/* ========= Hero ========= */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--text);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}
.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
  transform: translate3d(0, var(--hero-parallax, 0px), 0) scale(1.08);
  will-change: transform;
  transition: transform 0.25s ease-out; /* smooth parallax response */
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 13, 13, 0.78) 0%,
    rgba(26, 22, 22, 0.55) 45%,
    rgba(20, 17, 17, 0.82) 100%
  ); /* refined gradient for legibility */
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-height) + clamp(48px, 12vw, 144px));
  padding-bottom: clamp(72px, 12vw, 160px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__safe {
  max-width: min(640px, 100%);
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
  text-align: center;
}
.hero__title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 6.2vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  margin: 0;
  font-size: clamp(1.04rem, 2.6vw, 1.24rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero__badges {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}
.hero__badges li {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(17, 15, 15, 0.25);
  backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch; /* balance media/text heights */
  }
  .about__media {
    min-height: 100%; /* allow figure to stretch with text */
  }
  .hero__safe {
    gap: clamp(1.25rem, 3vw, 2rem);
  }
  .hero__badges {
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    justify-content: flex-start;
  }
  .hero__safe {
    text-align: left;
    align-items: flex-start;
  }
  .hero__cta,
  .hero__badges {
    justify-content: flex-start;
  }
}

/* ========= Strip KPIs ========= */
.strip {
  background: #1c191a;
  color: var(--text);
  border-top: 1px solid rgba(219, 183, 105, 0.2);
  border-bottom: 1px solid rgba(219, 183, 105, 0.2);
}
.strip__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem); /* more generous spacing between metrics */
  padding-block: clamp(
    32px,
    6vw,
    56px
  ); /* align section rhythm with global tokens */
}
.strip__item {
  text-align: center;
  display: grid;
  gap: 0.35rem;
  min-width: clamp(160px, 26vw, 220px); /* equal footprint across breakpoints */
}
.kpi {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3rem); /* elevate numeric prominence */
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.strip__item p {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* ========= About ========= */
.about__grid {
  display: grid;
  gap: var(--section-gap); /* unify column spacing */
  grid-template-columns: 1fr;
  align-items: center;
}
.about__media {
  min-height: 320px;
  aspect-ratio: 4 / 5; /* keeps image proportions elegant */
  overflow: hidden;
}
.about__media .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensure image fills the frame */
}
.about__copy {
  max-width: 52ch; /* constrain measure for readability */
  display: grid;
  gap: clamp(0.85rem, 2.5vw, 1.35rem); /* even spacing between blocks */
  color: var(--text);
}
.about__copy p {
  margin: 0;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92); /* improve contrast on dark ground */
}
.about__copy .about__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.about__copy .about__bullets {
  color: var(--text);
}
.about__bullets li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text);
  line-height: 1.6;
}
.about__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--gold); /* use accent gold for chevron */
  border-right: none;
  border-top: none;
  transform: rotate(-45deg);
}
.card.muted {
  background: var(--muted);
  color: var(--text-dark);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(219, 183, 105, 0.35);
}

/* ========= Servicios (mosaico alternado) ========= */
.mosaic {
  display: grid;
  gap: var(--section-gap); /* reuse global spacing token */
}
.mosaic__item {
  display: grid;
  grid-template-columns: 1fr; /* stack image/text by default */
  align-items: stretch;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-dark);
  border: 1px solid rgba(219, 183, 105, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); /* subtle depth */
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  min-height: clamp(220px, 30vh, 320px); /* control pill height */
}
.mosaic__media {
  position: relative;
  min-height: clamp(200px, 32vh, 260px); /* ensure image presence on mobile */
  overflow: hidden;
}
.mosaic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.mosaic__copy {
  background: var(--muted);
  padding: clamp(20px, 3vw, 32px);
  border-inline-start: none;
  border-block-start: 1px solid rgba(219, 183, 105, 0.25); /* divider between media and copy on stacked layout */
  display: flex;
  align-items: center;
}
.mosaic__content {
  display: grid;
  gap: clamp(0.75rem, 2.4vw, 1.25rem);
  max-width: 52ch; /* keep copy within comfortable measure */
  margin-inline: 0;
}
.mosaic__copy h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.25;
}
.mosaic__copy p {
  margin: 0;
  font-size: clamp(0.98rem, 2.3vw, 1.08rem);
  line-height: 1.65;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 2px;
  width: fit-content;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.arrow-link:hover {
  transform: translateX(4px);
  border-color: var(--bg);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.mosaic__item:hover,
.mosaic__item:focus-within {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26); /* elevate card on interaction */
}
.mosaic__item:hover .mosaic__media img,
.mosaic__item:focus-within .mosaic__media img {
  transform: scale(1.03); /* subtle image lift */
}
.mosaic__item:hover .service-icon,
.mosaic__item:focus-within .service-icon {
  background: var(--gold); /* gold fill on interaction */
  color: var(--text-dark);
  border-color: var(--gold);
}

/* ========= Equipo ========= */
.team__group {
  display: grid;
  gap: clamp(16px, 4vw, 28px);
  margin-top: clamp(20px, 4vw, 36px);
}
.team__group-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}
.team__grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: 1fr;
}
.team__grid--lead {
  gap: clamp(18px, 3vw, 28px);
}
.team-card {
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius);
  border: 1px solid rgba(219, 183, 105, 0.35);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.team-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.team-card__body {
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: clamp(0.65rem, 2.2vw, 1.1rem);
}
.team-card__name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
}
.team-card__role {
  margin: 0;
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  font-weight: 600;
  color: rgba(35, 31, 32, 0.72);
}
.team-card__bio {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  color: rgba(35, 31, 32, 0.9);
}
.team__note {
  margin-top: clamp(16px, 3vw, 28px);
}

@media (min-width: 640px) {
  .team__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (min-width: 900px) {
  .team__grid--lead {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

/* ========= Contacto ========= */
.contact__grid {
  --contact-gap: clamp(
    24px,
    5vw,
    48px
  ); /* tighten distance between form and aside */
  align-items: start;
  gap: var(--contact-gap);
}
.contact .container {
  padding-inline: var(--container-padding-inline); /* inherit global gutter */
}
.contact .section-head {
  margin-bottom: clamp(20px, 4vw, 40px);
}
.contact .section-head p {
  max-width: 52ch; /* guideline: manage paragraph width via CSS */
  margin-inline: auto;
}
.contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(219, 183, 105, 0.35);
  padding: 1.25rem;
  border-radius: var(--radius);
}
form {
  width: 100%;
}
.form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field--full {
  grid-column: 1 / -1;
}
label {
  font-size: 0.9rem;
  opacity: 0.92;
}
.contact input,
.contact select,
.contact textarea {
  border: 1px solid rgba(219, 183, 105, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.contact input:is(:focus, :focus-visible),
.contact select:is(:focus, :focus-visible),
.contact textarea:is(:focus, :focus-visible) {
  border-color: var(--gold); /* guideline: consistent focus styling */
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 2px rgba(219, 183, 105, 0.55); /* 2px inset gold ring per guideline */
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.error {
  color: #ff8787; /* guideline: stronger error contrast */
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1em;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.form-note {
  opacity: 0.7;
  font-size: 0.85rem;
}
.form-feedback {
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

/* ===== Footer ===== */
.footer {
  background: #1c191a;
  color: var(--text);
}
.footer__wrap {
  padding-block: clamp(40px, 6vw, 60px);
}
.footer__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 56px);
  align-items: stretch;
}
.footer__grid {
  display: grid;
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: auto minmax(0, 1fr);
}
.footer__panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__panel--contact {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
  align-self: start;
}
.footer__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(219, 183, 105, 0.72);
  margin: 0;
}
.footer__brand {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-inline: 0;
  justify-self: start;
  align-self: start;
}
.footer__brand img {
  display: block;
  height: clamp(44px, 4.8vw, 78px);
  width: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s var(--ease);
}
.footer__brand:hover img,
.footer__brand:focus-visible img {
  transform: translateY(-4px);
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  border-radius: 6px;
}
.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: var(--gold);
  transform: translateY(-2px);
}
.footer__social-link:focus-visible {
  box-shadow: var(--focus-ring-shadow);
}

.footer__credits {
  font-size: 0.88rem;
  opacity: 0.72;
  text-align: center;
}

@media (max-width: 1023.98px) {
  .footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: clamp(24px, 8vw, 48px);
  }
  .footer__panel--contact {
    align-items: center;
    justify-self: center;
    text-align: center;
  }
  .footer__brand {
    padding-inline: 0;
    justify-self: center;
  }
  .footer__stack {
    gap: clamp(32px, 10vw, 64px);
    align-items: center;
  }
}

/* ========= Reveals ========= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.reveal--active {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.delay-1 {
  transition-delay: 0.12s;
}
.delay-2 {
  transition-delay: 0.22s;
}
.delay-3 {
  transition-delay: 0.32s;
}
.delay-4 {
  transition-delay: 0.42s;
}

/* ========= Responsive ========= */
.grid-2 {
  display: grid;
  gap: var(--section-gap); /* fallback gap token for simple grids */
  grid-template-columns: 1fr;
}

/* breakpoints */
@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1.05fr 1fr;
  }
  .grid-2 {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
  .team__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact__grid {
    grid-template-columns: minmax(420px, 1fr) minmax(340px, 0.9fr);
  }
  .team__row--planners .team-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 420px);
  }
  .mosaic__item {
    grid-template-columns: 1fr;
    min-height: auto; /* allow card height to adapt to content */
  }
}

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: 1fr; /* single column layout across larger screens */
  }
  .mosaic__item {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr); /* maintain horizontal split inside card */
  }
  .mosaic__media {
    min-height: 100%; /* stretch image column to card height */
  }
  .mosaic__copy {
    border-inline-start: 1px solid rgba(219, 183, 105, 0.25);
    border-block-start: none;
  }
}

@media (min-width: 1024px) {
  .mosaic {
    grid-template-columns: 1fr; /* maintain single-column stack */
  }
  .mosaic__item {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic__item,
  .mosaic__media img,
  .service-icon {
    transition: none; /* remove hover transitions for motion-sensitive users */
  }
}

@media (max-width: 767.98px) {
  .mosaic__copy {
    border-inline-start: none;
    border-inline-end: none;
    border-block-start: 1px solid rgba(219, 183, 105, 0.25); /* shift divider below when stacked */
  }
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(520px, 1fr) minmax(420px, 0.9fr);
  }
}

@media (min-width: 1200px) {
  .team__rows {
    padding-inline: clamp(40px, 6vw, 72px);
  }
  .team__row--founders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team__row--planners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team__row--planners .team-card:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-block;
  }
  .main-nav ul {
    position: fixed;
    inset: 0;
    background: rgba(
      35,
      31,
      32,
      0.96
    ); /* slightly lighter overlay for softer contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* start stack from top after padding offset */
    gap: clamp(1.4rem, 4vw, 2rem);
    padding-top: calc(
      var(--header-height, 64px) + clamp(24px, 6vh, 64px)
    ); /* ensure first link clears top edge */
    padding-inline: var(
      --container-padding-inline
    ); /* align with global gutters */
    padding-bottom: clamp(
      32px,
      6vh,
      80px
    ); /* keep CTA comfortably off viewport edge */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px); /* slightly lift when closed */
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); /* smooth fade/slide entrance */
    overflow: hidden; /* avoid internal scroll; rely on body scroll-lock */
    z-index: 60; /* overlay sits below toggle but above content */
    height: 100vh; /* lock dropdown to viewport height */
  }
  .main-nav ul.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0); /* animate dropdown reveal */
  }
  .main-nav li:last-child {
    margin-left: 0; /* stack CTA flush when menu is vertical */
  }
}
