:root {
  --navy: #0c2236;
  --navy-2: #15344f;
  --graphite: #28323b;
  --white: #ffffff;
  --surface: #f4f6f7;
  --surface-2: #e9eef2;
  --gold: #d7a429;
  --gold-hover: #bd8d19;
  --whatsapp: #168c4a;
  --whatsapp-hover: #10743d;
  --muted: #65717c;
  --border: #d7dfe5;
  --shadow: 0 18px 50px rgba(12, 34, 54, 0.12);
  --radius: 18px;
  --container: 1200px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 8vw, 112px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

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

.button--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(215, 164, 41, 0.24);
}

.button--primary:hover {
  background: var(--gold-hover);
}

.button--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.button--whatsapp:hover {
  background: var(--whatsapp-hover);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(215, 223, 229, 0.8);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 900;
}

.brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.brand__name {
  max-width: 210px;
  font-size: 0.9rem;
  line-height: 1.1;
}

.site-nav__toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.site-nav__toggle span {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__panel {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  max-height: calc(100vh - var(--header-height));
  padding: 22px 20px 28px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-130%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms ease;
}

.site-nav__panel.is-open {
  transform: translateY(0);
  visibility: visible;
}

.site-nav__list {
  width: min(100%, 520px);
  margin: 0 auto 18px;
  padding: 0;
  display: grid;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 13px 8px;
  border-bottom: 1px solid var(--surface-2);
  color: var(--navy);
  font-weight: 700;
}

.site-nav__whatsapp {
  width: min(100%, 520px);
  margin: 0 auto;
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #071827 0%, var(--navy) 60%, #163b5c 100%);
  color: var(--white);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(215, 164, 41, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%);
  background-size: auto, 30px 30px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  padding-block: clamp(52px, 7vw, 90px);
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 740px;
  color: var(--white);
  font-size: clamp(2.65rem, 8vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__headline {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 850;
  line-height: 1.12;
}

.hero__lead {
  margin: 0;
  max-width: 650px;
  color: #dbe4eb;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero__contact {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.hero__contact span {
  color: #a9b8c5;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__contact a {
  color: var(--white);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 900;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius) + 6px);
  background: var(--navy-2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 10 / 9;
  object-fit: cover;
}

.hero__media-label {
  position: absolute;
  inset: auto 14px 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(7, 24, 39, 0.86);
  color: #e7edf1;
  font-size: 0.76rem;
  font-weight: 700;
}

/* Anchors reserved for future phases. No phase 3 content is rendered. */
.future-anchors {
  height: 1px;
  overflow: hidden;
  position: relative;
}
.future-anchors span {
  position: absolute;
  inset: 0;
}

/* Footer */
.site-footer {
  padding-top: 54px;
  background: #071827;
  color: #d6e0e7;
}

.site-footer__grid {
  display: grid;
  gap: 32px;
}

.site-footer__brand {
  margin: 0 0 8px;
  color: var(--white);
  font-weight: 900;
}

.site-footer__identity p:last-child {
  margin: 0;
  color: #aebdc8;
}

.site-footer__nav,
.site-footer__contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer__nav a,
.site-footer__contact a {
  width: fit-content;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--gold);
}

.site-footer__contact span {
  color: #aebdc8;
}

.site-footer__bottom {
  margin-top: 38px;
  padding-block: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a7b4;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 850;
  box-shadow: 0 14px 36px rgba(11, 56, 32, 0.28);
  transition: transform 180ms ease, background-color 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: var(--whatsapp-hover);
}

.whatsapp-float__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
}

/* Responsive */
@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 64px), var(--container));
  }

  .hero__actions .button {
    min-width: 210px;
  }

  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 82px;
  }

  body.menu-open {
    overflow: auto;
  }

  .site-nav__toggle {
    display: none;
  }

  .site-nav__panel {
    position: static;
    max-height: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  .site-nav__list {
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-nav__link {
    padding: 10px 8px;
    border: 0;
    font-size: 0.82rem;
  }

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

  .site-nav__whatsapp {
    width: auto;
    margin: 0;
    padding-inline: 14px;
    font-size: 0.82rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
  }

  .hero__media {
    justify-self: end;
    width: min(100%, 520px);
  }
}

@media (min-width: 1180px) {
  .site-nav__link {
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  .site-nav__panel {
    gap: 18px;
  }
}

@media (max-width: 374px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand__name {
    display: none;
  }

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

  .hero__actions {
    display: grid;
  }

  .hero__actions .button {
    width: 100%;
  }

  .whatsapp-float__text {
    display: none;
  }

  .whatsapp-float {
    width: 54px;
    padding: 8px;
  }

  .whatsapp-float__icon {
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* Portada de referencia J&G: cabecera editorial, hero fotográfico y beneficios. */
.site-header {
  min-height: 74px;
  background: #fff;
  border-bottom: 1px solid #e7ebef;
  backdrop-filter: none;
}

.site-header__inner {
  min-height: 74px;
  gap: 18px;
}

.brand {
  gap: 11px;
  align-items: center;
  color: var(--navy);
}

.brand__logo {
  width: 112px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand__tagline {
  color: #516174;
  font-family: Georgia, serif;
  font-size: .78rem;
  font-style: italic;
  line-height: 1.08;
  white-space: nowrap;
}

.site-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  line-height: 1.05;
}

.site-nav__phone-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #13b85a;
  color: #fff;
  font-size: .9rem;
}

.site-nav__phone small,
.site-nav__phone strong,
.site-nav__phone em {
  display: block;
}

.site-nav__phone small {
  color: #4d5b6c;
  font-size: .64rem;
  font-weight: 700;
}

.site-nav__phone strong {
  font-size: .93rem;
}

.site-nav__phone em {
  color: #667383;
  font-size: .56rem;
  font-style: normal;
}

.site-nav__quote {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .76rem;
}

.hero {
  min-height: 0;
  display: block;
  background: #0b2033;
}

.hero__backdrop {
  position: absolute;
  inset: 0 0 54px;
  background-image: linear-gradient(90deg, rgba(4, 20, 33, .93) 0%, rgba(4, 20, 33, .72) 34%, rgba(4, 20, 33, .12) 70%), url('/public/images/catalogo/06-quincho-terraza.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__grid {
  min-height: 510px;
  padding-block: 76px 104px;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 610px;
}

.hero .eyebrow {
  margin-bottom: 18px;
  color: #fff;
  font-size: .75rem;
  letter-spacing: .1em;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .92;
  letter-spacing: -.045em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .2);
}

.hero h1 span {
  color: #f8bd19;
}

.hero__lead {
  max-width: 430px;
  color: #fff;
  font-size: 1.03rem;
  line-height: 1.35;
}

.hero__actions {
  margin-top: 28px;
  gap: 10px;
}

.hero__actions .button {
  min-height: 44px;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: .78rem;
}

.hero__actions .button--whatsapp {
  background: rgba(5, 25, 42, .94);
  border: 1px solid rgba(255, 255, 255, .55);
}

.hero__actions .button--whatsapp strong {
  margin-left: 5px;
}

.hero__signature {
  position: absolute;
  right: 2%;
  top: 34%;
  margin: 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-style: italic;
  line-height: 1.05;
  text-align: right;
  transform: rotate(-7deg);
}

.hero__signature span {
  display: block;
  width: 112px;
  height: 5px;
  margin: 10px 0 0 auto;
  border-bottom: 3px solid #f8bd19;
  border-radius: 50%;
  transform: rotate(-5deg);
}

.hero-benefits {
  position: relative;
  z-index: 2;
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
}

.hero-benefits > div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  align-content: center;
  column-gap: 8px;
  padding-inline: clamp(12px, 3vw, 42px);
  border-right: 1px solid #e2e8ed;
}

.hero-benefits > div:last-child { border-right: 0; }

.hero-benefits span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--navy);
  font-size: 1.8rem;
  text-align: center;
}

.hero-benefits strong,
.hero-benefits small {
  align-self: end;
  font-size: .76rem;
  line-height: 1.1;
}

.hero-benefits small {
  align-self: start;
  color: #506174;
  font-size: .7rem;
}

@media (min-width: 1024px) {
  .site-nav__panel { gap: 16px; }
  .site-nav__list { gap: 0; }
  .site-nav__link { padding-inline: 9px; font-size: .76rem; }
}

@media (max-width: 1023px) {
  .brand__tagline { display: none; }
  .hero__signature { right: 5%; top: 22%; }
  .hero-benefits { grid-template-columns: repeat(2, 1fr); }
  .hero-benefits > div:nth-child(2) { border-right: 0; }
  .hero-benefits > div:nth-child(-n + 2) { border-bottom: 1px solid #e2e8ed; }
}

@media (max-width: 600px) {
  .brand__logo { width: 96px; }
  .hero__backdrop { inset: 0 0 112px 0; }
  .hero__grid { min-height: 560px; padding-block: 58px 94px; }
  .hero__signature { top: 12%; right: 7%; font-size: 1.25rem; }
  .hero__content { padding-top: 38px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero__actions { display: grid; }
  .hero__actions .button { width: fit-content; }
  .hero-benefits { grid-template-columns: 1fr 1fr; }
  .hero-benefits > div { padding-inline: 8px; grid-template-columns: 26px 1fr; }
  .hero-benefits span { font-size: 1.35rem; }
  .hero-benefits strong, .hero-benefits small { font-size: .62rem; }
}

/* Adaptación móvil: conserva márgenes, lectura y controles sin desbordamiento. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  max-width: 100%;
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
  }

  .section {
    padding-block: 22px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__logo {
    width: 78px;
    height: 58px;
  }

  .site-nav__panel {
    padding-inline: 16px;
  }

  .site-nav__phone {
    width: min(100%, 520px);
    margin: 0 auto 12px;
    justify-content: center;
  }

  .site-nav__quote {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .hero__grid {
    width: min(calc(100% - 32px), var(--container));
    padding-block: 50px 86px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero-benefits > div {
    min-width: 0;
  }

  .hero-benefits strong,
  .hero-benefits small {
    overflow-wrap: anywhere;
  }

  .about__content,
  .quote-layout,
  .coverage__grid,
  .emergency__panel {
    width: 100%;
  }

  .about__modules {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    padding: 17px;
  }

  .info-card p {
    font-size: .9rem;
    line-height: 1.5;
  }

  .quote-form,
  .quote-photos {
    padding: 14px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .site-footer__grid {
    gap: 22px;
  }
}

/* Cuerpo compacto inspirado en la portada de referencia. */
.services,
.solutions,
.projects,
.emergency,
.coverage,
.quote-section {
  padding-block: 24px;
}

.services .section-heading,
.solutions .section-heading,
.projects .section-heading {
  margin-bottom: 12px;
}

.services .section-title,
.solutions .section-title,
.projects .section-title {
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
}

.services .section-intro,
.solutions .section-intro,
.projects .section-intro {
  max-width: 720px;
  margin-top: 5px;
  font-size: .78rem;
  line-height: 1.35;
}

.service-card,
.solution-card,
.project-card {
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(12, 34, 54, .08);
}

.service-card__body,
.solution-card__body {
  padding: 9px 10px 11px;
}

.service-card__body p,
.solution-card__body > p:not(.solution-card__category) {
  display: none;
}

.service-card h3,
.solution-card h3 {
  font-size: .68rem;
  line-height: 1.15;
  text-align: center;
}

.service-card__media img,
.solution-card__media img {
  aspect-ratio: 1.3 / 1;
}

.solution-card__category {
  margin-bottom: 4px;
  font-size: .55rem;
  text-align: center;
}

.solution-card__cta {
  min-height: 30px;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: .64rem;
}

.project-card__header {
  padding: 10px 11px 8px;
}

.project-card__category {
  margin-bottom: 4px;
  font-size: .55rem;
}

.project-card h3 {
  font-size: .78rem;
}

.project-card__placeholder-status {
  display: none;
}

.project-card__stages {
  grid-template-columns: repeat(3, 1fr);
}

.project-stage__media img {
  aspect-ratio: 1.35 / 1;
}

.project-stage__label {
  left: 4px;
  bottom: 4px;
  padding: 3px 5px;
  font-size: .52rem;
}

.project-card__meta {
  padding: 9px 11px 11px;
}

.project-card__meta p {
  font-size: .67rem;
  line-height: 1.25;
}

.emergency {
  background: var(--white);
}

.emergency__panel {
  min-height: 150px;
  padding: 18px 22px;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgba(4, 20, 33, .96), rgba(4, 20, 33, .72)), url('/public/images/catalogo/19-reparaciones-urgentes.jpg');
  background-position: center;
  background-size: cover;
}

.emergency .section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.emergency .section-intro,
.emergency__action p {
  font-size: .75rem;
  line-height: 1.3;
}

.emergency__categories {
  margin-top: 10px;
  gap: 5px;
}

.emergency-chip {
  padding: 5px 8px;
  font-size: .58rem;
}

.emergency__action {
  padding: 12px;
  border-radius: 7px;
}

.emergency__cta {
  min-height: 34px;
  padding: 8px 10px;
  font-size: .68rem;
}

.coverage {
  background: var(--surface);
}

.coverage__grid {
  gap: 12px;
}

.coverage__content .section-title {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.coverage__content .section-intro {
  font-size: .75rem;
  line-height: 1.35;
}

.coverage__map-placeholder {
  position: relative;
  min-height: 180px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  text-align: left;
}

.coverage__map-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  object-fit: cover;
}

.coverage__map-overlay {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: linear-gradient(90deg, rgba(12, 34, 54, .88), rgba(12, 34, 54, .12));
  color: #fff;
}

.coverage__map-overlay strong {
  font-size: 1rem;
  line-height: 1.2;
}

.coverage__map-overlay ul {
  margin: 8px 0 0;
  padding-left: 16px;
  font-size: .65rem;
  line-height: 1.4;
}

.quote-layout {
  gap: 22px;
}

.quote-section .section-title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.quote-section .section-intro {
  font-size: .78rem;
}

.quote-form {
  padding: 18px;
  border-radius: 8px;
}

.site-footer {
  padding-top: 22px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-block: 12px 16px;
  font-size: .68rem;
}

.site-footer__developer {
  color: #d7a429;
  text-align: right;
}

@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
  .solutions__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .projects__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .quote-layout { grid-template-columns: minmax(240px, .75fr) minmax(0, 2.25fr); }
  .coverage__grid { grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr); }
}

@media (max-width: 600px) {
  .project-card__stages { grid-template-columns: repeat(3, 1fr); }
  .site-footer__bottom { display: grid; }
  .site-footer__developer { text-align: left; }
}


/* FASE 3 — Corporate content */
.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.about {
  background: var(--white);
}

.about__content {
  display: grid;
  gap: 34px;
}

.about__copy {
  max-width: 820px;
}

.about__copy p {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.85;
}

.about__copy p + p {
  margin-top: 18px;
}

.about__modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.info-card p,
.service-card p,
.why-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.services {
  background: var(--surface);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(12, 34, 54, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card__media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.service-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.placeholder-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(7, 24, 39, .88);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
}

.service-card__body {
  padding: 22px;
}

.coverage {
  background: var(--white);
}

.coverage__grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.coverage__areas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coverage__areas span {
  padding: 10px 14px;
  border: 1px solid #e2cc91;
  border-radius: 999px;
  background: #fff8e6;
  color: var(--navy);
  font-weight: 800;
}

.coverage__map-placeholder {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed #9aabb8;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(12,34,54,.04) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(315deg, rgba(12,34,54,.04) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--surface);
  color: var(--navy);
  text-align: center;
}

.coverage__map-placeholder span {
  font-size: 1.15rem;
  font-weight: 900;
}

.coverage__map-placeholder small {
  color: var(--muted);
}

.why-us {
  background: var(--navy);
}

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

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.why-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
}

.why-card__number {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.why-card h3 {
  color: var(--white);
}

.why-card p {
  color: #c7d2da;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-5px);
    border-color: #c8b16b;
    box-shadow: 0 16px 38px rgba(12, 34, 54, .12);
  }
}

@media (min-width: 768px) {
  .about__modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-us__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about__content {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
    align-items: start;
  }

  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coverage__grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
  }

  .why-us__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* FASE 4 — Solutions and Emergency */
.button--outline {
  border: 1px solid #c8d2d9;
  background: var(--white);
  color: var(--navy);
}

.button--outline:hover {
  border-color: var(--gold);
  background: #fff9e9;
}

.solutions {
  background: var(--white);
}

.solutions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.solution-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(12, 34, 54, .055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.solution-card__media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.solution-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.solution-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.solution-card__category {
  margin: 0 0 8px;
  color: var(--gold-hover);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.solution-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.solution-card__body > p:not(.solution-card__category) {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.solution-card__cta {
  width: 100%;
  margin-top: auto;
}

.emergency {
  padding-block: clamp(60px, 7vw, 92px);
  background: var(--surface);
}

.emergency__panel {
  display: grid;
  gap: 26px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at top right, rgba(215, 164, 41, .17), transparent 34%),
    linear-gradient(145deg, #081b2a 0%, var(--navy) 100%);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(12, 34, 54, .18);
}

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

.emergency .section-intro {
  color: #cbd6de;
}

.emergency__categories {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.emergency-chip {
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: .9rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.emergency__action {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}

.emergency__action p {
  margin: 0 0 18px;
  color: #d9e2e8;
  line-height: 1.65;
}

.emergency__cta {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .solution-card:hover {
    transform: translateY(-5px);
    border-color: #c8b16b;
    box-shadow: 0 16px 38px rgba(12, 34, 54, .11);
  }
}

@media (min-width: 768px) {
  .solutions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emergency__panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .solutions__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* FASE 5 — Projects */
.projects {
  background: var(--surface);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(12, 34, 54, .07);
}

.project-card__header {
  padding: 22px 22px 18px;
}

.project-card__category {
  margin: 0 0 7px;
  color: var(--gold-hover);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.project-card__placeholder-status {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f5f6;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}

.project-card__stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}

.project-stage {
  margin: 0;
  min-width: 0;
  background: var(--white);
}

.project-stage__media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.project-stage__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-stage__label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 24, 39, .88);
  color: var(--white);
  font-size: .72rem;
  font-weight: 900;
}

.project-card__meta {
  padding: 20px 22px 22px;
}

.project-card__meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-card__meta p + p {
  margin-top: 8px;
}

.project-card__meta strong {
  color: var(--graphite);
}

@media (min-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card__stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-stage__media img {
    aspect-ratio: 1 / 1;
  }
}


/* FASE 6 — Quote form */
.quote-section {
  background: var(--white);
}

.quote-layout {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.quote-intro {
  min-width: 0;
}

.quote-selected {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #fff8e6;
  color: var(--navy);
  line-height: 1.55;
}

.quote-selected strong,
.quote-selected span {
  display: block;
}

.quote-selected span {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.quote-form {
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(12, 34, 54, .08);
}

.quote-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.field {
  min-width: 0;
}

.field label,
.quote-photos legend {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 850;
}

.field-optional {
  color: var(--muted);
  font-size: .82em;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #bac7d0;
  border-radius: 11px;
  background: var(--white);
  color: var(--graphite);
  font: inherit;
}

.field input,
.field select {
  min-height: 50px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 150px;
  padding: 13px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.quote-photos__input:focus-visible + * {
  outline: 3px solid rgba(215, 164, 41, .32);
  border-color: var(--gold-hover);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: #a83232;
}

.field small,
.quote-photos small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.field-error {
  display: block;
  min-height: 1.25em;
  margin-top: 6px;
  color: #8d2424;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
}

.quote-photos {
  min-width: 0;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid #cbd5dc;
  border-radius: var(--radius);
  background: var(--white);
}

.quote-photos p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.quote-photos__picker {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.quote-photos__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.quote-photos__preview {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.quote-photo {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.quote-photo img {
  width: 70px;
  height: 70px;
  border-radius: 9px;
  object-fit: cover;
}

.quote-photo__info {
  min-width: 0;
}

.quote-photo__info strong,
.quote-photo__info span,
.quote-photo__info small {
  display: block;
}

.quote-photo__info span {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.quote-photo__info small {
  margin-top: 3px;
  color: var(--muted);
}

.quote-photo__remove {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: transparent;
  color: #8d2424;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.quote-form__actions {
  margin-top: 26px;
}

.quote-form__actions .button {
  width: 100%;
}

.quote-form__status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.quote-form__status[data-state="validation-error"] {
  border: 1px solid #e0b5b5;
  background: #fff1f1;
  color: #762020;
}

.quote-form__status[data-state="development-success"] {
  border: 1px solid #d9c27f;
  background: #fff8e6;
  color: var(--navy);
}

@media (min-width: 768px) {
  .quote-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--wide {
    grid-column: 1 / -1;
  }

  .quote-photos__preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-photo {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .quote-layout {
    grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
  }

  .quote-intro {
    position: sticky;
    top: calc(var(--header-height) + 28px);
  }
}


/* FASE 7 — Quote backend states */
.quote-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.quote-form__status[data-state="loading"] {
  border: 1px solid #c8d2d9;
  background: #eef3f6;
  color: var(--navy);
}

.quote-form__status[data-state="success"] {
  border: 1px solid #b9c99d;
  background: #f2f7eb;
  color: #294119;
}

.quote-form__status[data-state="error"] {
  border: 1px solid #e0b5b5;
  background: #fff1f1;
  color: #762020;
}

.quote-form button[disabled] {
  cursor: wait;
  opacity: .68;
}
