/* ==========================================================================
   CRIB Ingeniería y Construcción
   Plain CSS, no framework. Change brand values in :root.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0e3a6b;
  --navy-deep: #0a2a4f;
  --amber: #f2a900;
  --amber-dark: #d99700;
  --ink: #1b1f24;
  --muted: #5a6472;
  --line: #e2e6ec;
  --surface: #f5f6f8;
  --white: #fff;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 8px 24px rgb(16 24 40 / 0.08);
  --shadow-lg: 0 2px 4px rgb(16 24 40 / 0.06), 0 20px 40px rgb(16 24 40 / 0.14);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; overflow-wrap: anywhere; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 300;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button svg {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary { background: var(--amber); color: var(--ink); }
.button--primary:hover { background: var(--amber-dark); color: var(--ink); }

.button--navy { background: var(--navy); color: var(--white); }
.button--navy:hover { background: var(--navy-deep); color: var(--white); }

.button--ghost { border-color: rgb(255 255 255 / 0.7); color: var(--white); }
.button--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font: 700 1rem var(--font-display);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.85);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgb(16 24 40 / 0.06);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.site-header__logo img { width: clamp(140px, 16vw, 180px); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul a {
  position: relative;
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  font: 600 1rem var(--font-display);
  text-decoration: none;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.15rem;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.site-nav ul a:hover { color: var(--navy); }
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--navy); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgb(16 24 40 / 0.1);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 0.8rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { left: 0; right: auto; width: 32px; bottom: -2px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 820px);
  padding-block: 5rem;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 42 79 / 0.92) 0%, rgb(10 42 79 / 0.7) 45%, rgb(10 42 79 / 0.15) 100%),
    linear-gradient(0deg, rgb(10 42 79 / 0.5), transparent 40%);
}
.hero__content { max-width: 680px; }
.hero h1 { margin-bottom: 0.35em; }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: rgb(255 255 255 / 0.88); margin-bottom: 2rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font: 700 0.85rem var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--amber); }
.hero .eyebrow, .section--dark .eyebrow, .cta .eyebrow { color: var(--amber); }

.hero--page { min-height: clamp(340px, 46vh, 460px); }
.hero--page h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero--page .hero__lead { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark a:not(.button) { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.section--dark .section-head p { color: rgb(255 255 255 / 0.8); }
.section-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section-head__row > div { max-width: 720px; }

/* ---------- Split (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.split__media {
  position: relative;
  isolation: isolate;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split__media::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 45%;
  height: 45%;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--amber);
}
.split__text p { color: var(--muted); font-size: 1.1rem; }
.split__text .button-row, .split__text .link-arrow { margin-top: 1.5rem; }

.checklist { display: grid; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 0.7rem; align-items: start; font-weight: 500; }
.checklist li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
}

/* ---------- Service cards (home) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card {
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card p { color: var(--muted); }
.service-card a { text-decoration: none; color: inherit; }
.service-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: rgb(242 169 0 / 0.14);
  color: var(--navy);
}
.icon-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Service rows (servicios page) ---------- */
.service-list { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-row__num {
  display: block;
  margin-bottom: 0.4rem;
  font: 800 0.95rem var(--font-display);
  color: var(--amber-dark);
  letter-spacing: 0.1em;
}
.service-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.service-row p { color: var(--muted); font-size: 1.1rem; }
.service-row .icon-badge { margin-bottom: 1rem; }

@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-grid > li[hidden] { display: none; }

/* Home "Trabajos recientes": 4 cards so every row is full –
   2 columns show all 4; 3 columns (and 1 column) show the first 3. */
.project-grid--featured { grid-template-columns: 1fr; }
.project-grid--featured > li:nth-child(n + 4) { display: none; }
@media (min-width: 640px) {
  .project-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .project-grid--featured > li:nth-child(4) { display: block; }
}
@media (min-width: 1024px) {
  .project-grid--featured { grid-template-columns: repeat(3, 1fr); }
  .project-grid--featured > li:nth-child(4) { display: none; }
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.project-card__media { position: relative; overflow: hidden; }
.project-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__count {
  position: absolute;
  right: 0.75rem; bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(10 42 79 / 0.8);
  color: var(--white);
  font: 600 0.85rem var(--font-body);
}
.project-card__count svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.project-card__body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.project-card__body h3 { margin: 0; }
.project-card__body p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tag {
  align-self: start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgb(14 58 107 / 0.08);
  color: var(--navy);
  font: 700 0.75rem var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 0.95rem var(--font-display);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Lightbox (native <dialog>) ---------- */
.lightbox {
  width: min(100% - 2rem, 1200px);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(5 15 30 / 0.85); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop 0.3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }
.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.lightbox__head h2 { margin: 0; font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
.lightbox__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
  cursor: pointer;
}
.lightbox__close:hover { background: rgb(255 255 255 / 0.2); }
.lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

/* ---------- Carousel (used inside the lightbox) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; background: #000; }
.carousel__slide img {
  width: 100%;
  height: min(72dvh, 680px);
  object-fit: contain;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.carousel__btn:hover { transform: scale(1.06); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }
.carousel__status {
  padding: 0.85rem 1.25rem;
  font: 600 0.95rem var(--font-body);
  color: rgb(255 255 255 / 0.75);
  text-align: center;
}
.carousel:not(.is-ready) .carousel__btn { display: none; }

@media (max-width: 600px) {
  .carousel__slide img { height: auto; aspect-ratio: 4 / 3.4; }
  .carousel__btn { width: 40px; height: 40px; }
  .carousel__btn--prev { left: 0.5rem; }
  .carousel__btn--next { right: 0.5rem; }
}

/* ---------- Clients ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients li { flex: 0 1 150px; }
.clients img {
  width: 100%;
  filter: grayscale(1);
  opacity: 0.65;
  mix-blend-mode: multiply;
  transition: filter 0.3s, opacity 0.3s;
}
.clients img:hover { filter: none; opacity: 1; }

/* ---------- Values (empresa) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}
.value-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}
.value-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.value-card p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  list-style: none;
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.contact-card .icon-badge { margin-bottom: 1rem; }
.contact-card__label { font: 700 0.8rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font: 700 1.15rem var(--font-display); overflow-wrap: anywhere; }

.map {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.map iframe { width: 100%; height: clamp(340px, 50vh, 460px); border: 0; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--navy);
  color: var(--white);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 90% 120%, rgb(242 169 0 / 0.35), transparent 70%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.03) 0 2px, transparent 2px 22px);
}
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { margin: 0; color: rgb(255 255 255 / 0.82); font-size: 1.125rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  background: var(--navy-deep);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.98rem;
}
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
}
.site-footer__brand img {
  width: 170px;
  margin-bottom: 1.25rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.site-footer h2 {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  transition: background-color 0.2s;
}
.social a:hover { background: rgb(255 255 255 / 0.18); }
.social svg { width: 22px; height: 22px; color: var(--white); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp (phones) ---------- */
.wa-float {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 90;
  display: none;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}
.wa-float svg { width: 34px; height: 34px; color: var(--white); }
@media (max-width: 960px) { .wa-float { display: grid; } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Footer hours / 404 ---------- */
.site-footer__hours { margin-top: 1rem; font-size: 0.9rem; color: rgb(255 255 255 / 0.6); }
.not-found { display: grid; align-items: center; min-height: 60vh; }
.not-found p { max-width: 560px; margin-bottom: 2rem; color: var(--muted); font-size: 1.125rem; }
