/* ==========================================================================
   Construções Monte Verde — concept site
   Modern editorial · steel blue + copper accent · serif/sans pairing
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blue: #1C3D5A;
  --blue-dark: #142C42;
  --blue-deep: #0E1F30;
  --blue-night: #0A1622;
  --ink: #1E2530;
  --ink-soft: #525D6B;
  --paper: #FFFFFF;
  --cream: #F7F4EF;
  --line: #E5E1D9;
  --line-strong: #C9C4B8;

  --accent: #C7742C;          /* copper — accents on dark */
  --accent-ink: #A85C15;      /* copper for text on light backgrounds */
  --accent-bright: #EFA75C;   /* copper on deep blue */
  --accent-soft: #FCF2E4;     /* tinted surface */

  --wa: #25A05A;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --size-body: 1.0625rem;   /* 17px — comfortable for older readers */
  --lh-body: 1.65;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 2px rgba(20, 44, 66, .05), 0 10px 30px rgba(20, 44, 66, .08);
  --shadow-pop: 0 14px 44px rgba(14, 31, 48, .18);

  --ease: cubic-bezier(.25, .6, .3, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 640;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h3, h4 {
  font-family: var(--font);
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--blue); }

::selection { background: #F3DCB9; color: var(--blue-deep); }

.container {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section[id] { scroll-margin-top: 72px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--blue); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Eyebrow (section kicker) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  margin: 0 0 1.1rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; flex: none;
  width: 2.1rem; height: 2px;
  background: var(--accent);
}
.section-blue .eyebrow { color: var(--accent-bright); }
.section-blue .eyebrow::before { background: var(--accent-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .72rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.075rem; }
.btn-full { width: 100%; }

.btn-solid {
  background: linear-gradient(180deg, #26527C 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 18px rgba(28, 61, 90, .25);
}
.btn-solid:hover {
  background: linear-gradient(180deg, #2A5B88 0%, var(--blue-dark) 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 9px 24px rgba(28, 61, 90, .3);
}
.btn-solid:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(28, 61, 90, .2); }

.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: rgba(28, 61, 90, .07); }

.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .8); background: rgba(14, 31, 48, .35); backdrop-filter: blur(4px); }
.hero .btn-outline:hover { background: rgba(14, 31, 48, .55); }

/* On the dark hero the primary CTA inverts: white button, navy text */
.hero .btn-solid {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(10, 22, 34, .45);
}
.hero .btn-solid:hover {
  background: var(--cream);
  box-shadow: 0 9px 26px rgba(10, 22, 34, .5);
}

.btn-outline.btn-lg { border-width: 2px; }

.btn-ghost { color: var(--blue); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { color: var(--blue-dark); }

.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 5px 16px rgba(30, 138, 77, .24); }
.btn-whatsapp:hover { background: #1E8A4D; transform: translateY(-1px); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: inset 0 -1px 0 var(--line), 0 10px 32px rgba(14, 31, 48, .09); }

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
  transition: min-height .25s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
  font-size: 1.05rem; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand strong { color: var(--blue); font-weight: 800; }
.brand-mark { width: 36px; height: 36px; flex: none; }

.site-nav {
  display: flex; gap: 1.6rem;
  margin-inline: auto;
}
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .98rem;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--blue); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }

.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--blue);
  text-decoration: none; font-size: 1rem;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; text-underline-offset: 3px; }

.lang-toggle {
  font: inherit; font-size: .85rem; font-weight: 700;
  color: var(--blue); background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: .28rem .7rem;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--blue); background: rgba(28, 61, 90, .06); }

.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem;
}
.nav-burger-box { display: block; width: 24px; }
.nav-burger-box span {
  display: block; height: 2.5px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: grid; gap: .25rem;
  padding: .75rem var(--pad) 1.25rem;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  padding: .65rem .25rem;
  text-decoration: none; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: .6rem; }

@media (max-width: 920px) {
  .site-nav, .header-phone span { display: none; }
  .nav-burger { display: block; }
  .lang-toggle { margin-left: auto; }
}

@media (max-width: 600px) {
  .header-phone, .header-actions .btn { display: none; }
  .brand { font-size: .98rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  background: var(--blue-night);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform;
  animation: hero-settle 1.6s var(--ease) backwards;   /* no fill-forward so the scroll parallax can take over */
}
@keyframes hero-settle {
  from { transform: scale(1.06); opacity: .6; }
  to   { transform: scale(1); opacity: 1; }
}

.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    var(--noise),
    linear-gradient(78deg, rgba(10, 22, 34, .94) 0%, rgba(10, 22, 34, .6) 42%, rgba(10, 22, 34, .1) 80%),
    linear-gradient(to top, rgba(10, 22, 34, .9), transparent 48%);
}

.hero-inner {
  flex: 1;
  position: relative; z-index: 1;
  display: flex; align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 8vw, 6rem);
  width: 100%;
}

.hero-content { max-width: 44rem; }

/* One orchestrated entrance: kicker → title → sub → CTAs */
.hero-content > * {
  animation: hero-rise .8s var(--ease) backwards;
}
.hero-content > *:nth-child(1) { animation-delay: .15s; }
.hero-content > *:nth-child(2) { animation-delay: .28s; }
.hero-content > *:nth-child(3) { animation-delay: .41s; }
.hero-content > *:nth-child(4) { animation-delay: .54s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.2rem;
}
.hero-kicker::before {
  content: ""; flex: none;
  width: 2.1rem; height: 2px;
  background: var(--accent-bright);
}

.hero-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.2rem;
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-size: clamp(2.9rem, 6vw, 5.2rem);
}
.serif-em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent-bright);
}

.hero-sub {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: #DCE5EE;
  max-width: 34rem;
  margin-bottom: 2.1rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Stat strip */
.hero-strip {
  position: relative; z-index: 1;
  background: rgba(10, 22, 34, .55);
  border-top: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}
.hero-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1.1rem 2rem;
  padding-block: 1.35rem 1.45rem;
}
.stat { display: flex; align-items: baseline; gap: .65rem; }
.stat-num {
  font-family: var(--font-serif);
  font-weight: 600; font-style: italic;
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
  line-height: 1; letter-spacing: -0.01em;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.stat > span:last-child {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: #C7D5E2;
}

@media (max-width: 640px) {
  .hero-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
  .stat { align-items: baseline; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--cream); }

.section-blue {
  position: relative;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #D8E2EC;
  isolation: isolate;
  overflow: hidden;
}
.section-blue::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--noise);
  opacity: .6;
  pointer-events: none;
}
.section-blue h2, .section-blue h3 { color: #fff; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: .75rem 3.5rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head-title h2 { margin-bottom: 0; }
.section-head > h2:last-child, .section-head-title:last-child h2 { margin-bottom: 0; }
.section-lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 0; }
.section-blue .section-lead { color: #C3D2E0; }

@media (max-width: 780px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.service-media { position: relative; overflow: hidden; }
.service-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .55s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.06); }

.service-num {
  position: absolute; top: .9rem; left: .95rem;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: 1rem; line-height: 1;
  color: #fff;
  background: rgba(10, 22, 34, .55);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px);
  padding: .28rem .6rem .2rem;
  border-radius: 999px;
}

.service-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.35rem 1.5rem 1.45rem;
}
.service-body p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; flex: 1; }

.service-more {
  margin-top: 1.05rem;
  display: inline-flex; align-items: center; gap: .45rem;
  align-self: flex-start;
  font-weight: 700; font-size: .92rem;
  letter-spacing: .02em;
  color: var(--accent-ink);
  text-decoration: none;
}
.service-more::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.service-more:hover { color: var(--accent); }
.service-card:hover .service-more::after,
.service-more:hover::after { transform: translateX(5px); }

.section-cta {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding: 1.7rem 1.9rem;
  background: var(--accent-soft);
  border: 1px solid #EFDCC3;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 2rem;
}
.section-cta p { margin: 0; flex: 1 1 22rem; font-weight: 500; color: var(--ink); }
.section-cta .btn-outline { border-color: var(--accent); color: var(--accent-ink); }
.section-cta .btn-outline:hover { background: rgba(199, 116, 44, .12); }

/* ---------- Sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .sobre-grid { grid-template-columns: 1fr; } }

.sobre-media { position: relative; }

.sobre-media > img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(20, 44, 66, .14);
}

.sobre-badge {
  position: absolute; top: -2.1rem; right: 1.4rem; z-index: 2;
  width: 112px; height: 112px;
  color: var(--accent-ink);
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-pop);
}
.sobre-badge svg { display: block; width: 100%; height: 100%; padding: 6px; }
.badge-ring {
  fill: currentColor;
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  transform-origin: 60px 60px;
  animation: badge-spin 26s linear infinite;
}
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .sobre-badge { display: none; } }

.sobre-secondary {
  margin: 0;
  width: min(62%, 340px);
  margin-top: -18%;
  margin-left: auto;
  padding: 8px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
@media (max-width: 880px) {
  .sobre-secondary { display: none; }
}

.sobre-secondary img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.sobre-text .checklist {
  list-style: none;
  margin: 1.4rem 0 1.5rem;
  padding: 0;
  display: grid; gap: .65rem;
}
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .12em;
  width: 1.35em; height: 1.35em;
  background: var(--accent) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5.5 12.5 4 4 9-9" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 62% no-repeat;
  border-radius: 50%;
}

.sobre-legal {
  font-size: .88rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line-strong);
  padding-left: .9rem;
}

.sobre-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.4rem; }

/* ---------- Obras ---------- */
.obras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 255px;
  gap: 1.25rem;
}
@media (min-width: 981px) {
  .obra-featured { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 980px) {
  .obras-grid { grid-template-columns: repeat(2, 1fr); }
  .obra-featured, .obra:last-of-type { grid-column: span 2; }
}
@media (max-width: 600px) {
  .obras-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .obra-featured, .obra:last-of-type { grid-column: auto; }
}

.obra {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-deep);
}

.obra img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.obra:hover img { transform: scale(1.05); }

.obra-tag {
  position: absolute; top: .85rem; left: .95rem; z-index: 2;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: .95rem; line-height: 1;
  color: #fff;
  background: rgba(10, 22, 34, .55);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px);
  padding: .26rem .58rem .18rem;
  border-radius: 999px;
}

.obra figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 3.2rem 1.25rem 1.15rem;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 22, 34, .92), rgba(10, 22, 34, 0));
  display: grid; gap: .15rem;
  transform: translateY(6px);
  transition: transform .45s var(--ease);
}
.obra:hover figcaption { transform: none; }
.obra figcaption::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--accent-bright);
  margin-bottom: .55rem;
  border-radius: 2px;
  transform: scaleX(.35);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.obra:hover figcaption::before { transform: none; }
.obra figcaption strong { font-size: 1.04rem; }
.obra figcaption span { font-size: .88rem; color: #C9D6E2; }

/* ---------- Porque escolher ---------- */
.points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.75rem;
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}
@media (max-width: 980px) { .points-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .points-grid { grid-template-columns: 1fr; } }

.point {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1.15rem;
}

.point-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: 1.9rem; line-height: 1;
  color: var(--accent-bright);
  margin-bottom: .7rem;
}

.point h3 { font-size: 1.1rem; }
.point p { font-size: .96rem; color: #C3D2E0; margin-bottom: 0; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
  position: relative;
  margin: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 2.35rem 1.6rem 1.4rem;
  backdrop-filter: blur(4px);
}
.testimonial::before {
  content: "“";
  position: absolute; top: .5rem; left: 1.15rem;
  font-family: var(--font-serif);
  font-size: 3.6rem; line-height: 1;
  color: var(--accent-bright);
}
.testimonial p {
  font-size: 1rem;
  line-height: 1.6;
  color: #E4ECF3;
}
.testimonial footer { display: grid; gap: .1rem; }
.testimonial footer strong { color: #fff; }
.testimonial footer span { font-size: .88rem; color: #A9BDCE; }

/* ---------- Contactos ---------- */
#contactos { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-phone {
  display: inline-block;
  margin: .4rem 0 1.1rem;
  text-decoration: none;
}
.contact-phone-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .2rem;
}
.contact-phone-number {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  color: var(--blue);
  line-height: 1.15;
}
.contact-phone:hover .contact-phone-number { text-decoration: underline; text-underline-offset: 5px; }

.btn-whatsapp { margin-bottom: 1.6rem; }

.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 1.1rem;
}
.contact-list strong {
  display: block;
  font-size: .88rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.contact-list a { font-weight: 500; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.35rem);
  box-shadow: var(--shadow-pop);
}
.contact-form h3 { font-family: var(--font-serif); font-weight: 640; font-size: 1.5rem; margin-bottom: 1.25rem; }

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

.form-row label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .35rem;
}
.optional { color: var(--ink-soft); font-weight: 400; font-size: .88rem; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FBFAF7;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.form-row textarea { resize: vertical; min-height: 6.5rem; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 116, 44, .18);
}

.form-note { font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; }

.form-success {
  margin-top: 1.1rem;
  background: #E8F4EC;
  border: 1.5px solid var(--wa);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: grid; gap: .2rem;
}
.form-success[hidden] { display: none; }
.form-success strong { color: #14572F; }
.form-success span { font-size: .95rem; color: #2B6B47; }

/* ---------- Áreas marquee ---------- */
.areas-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 2.7rem 2.9rem;
}
.areas-head { text-align: center; margin-bottom: 1.7rem; }
.areas-head h2 { font-size: 1.3rem; margin: 0; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.areas-list {
  list-style: none;
  margin: 0;
  padding: 0 2.75rem 0 0;
  display: flex;
  gap: 2.75rem;
}
.areas-list li {
  display: flex; align-items: center; gap: 2.75rem;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink-soft);
}
.areas-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--blue-night);
  color: #B9C8D6;
  padding-top: clamp(2.75rem, 6vw, 4rem);
  isolation: isolate;
  overflow: hidden;
}
.site-footer::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--noise);
  opacity: .5;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; } }

.footer-brand .brand-mark { width: 40px; height: 40px; margin-bottom: .8rem; }
.footer-name { color: #fff; font-size: 1.05rem; margin-bottom: .3rem; }
.footer-legal { font-size: .88rem; margin-bottom: .3rem; }
.footer-credit { font-size: .85rem; margin: 0; }
.footer-credit a { color: #DCE5EE; }

.footer-nav { display: grid; gap: .45rem; align-content: start; }
.footer-nav a {
  color: #D3DEE8;
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-contacts { display: grid; gap: .45rem; align-content: start; }
.footer-contacts a { color: #D3DEE8; text-decoration: none; font-weight: 500; }
.footer-contacts a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .4rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.2rem;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-demo { color: #8FA3B5; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .hero-content > * { animation: none; }
  .badge-ring { animation: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .service-media img, .obra img, .obra figcaption, .btn { transition: none; }
  .btn-solid:hover, .btn-whatsapp:hover, .service-card:hover { transform: none; }
}

@media print {
  .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
  .marquee-track { animation: none; }
}
