
@font-face {
    font-family: 'Elgraine';
    src: url('./fonts/Elgraine-Italic.eot');
    src: url('./fonts/Elgraine-Italic.eot?#iefix') format('embedded-opentype'),url('./fonts/Elgraine-Italic.woff2') format('woff2'),url('./fonts/Elgraine-Italic.woff') format('woff'),url('./fonts/Elgraine-Italic.ttf') format('truetype'),url('./fonts/Elgraine-Italic.svg#Elgraine-Italic') format('svg');
    font-weight: normal;
    font-style: italic;
    font-display: swap
}

@font-face {
    font-family: 'Linear Grotesk';
    src: url('./fonts/LinearGrotesk-Regular.eot');
    src: url('./fonts/LinearGrotesk-Regular.eot?#iefix') format('embedded-opentype'),url('./fonts/LinearGrotesk-Regular.woff2') format('woff2'),url('./fonts/LinearGrotesk-Regular.woff') format('woff'),url('./fonts/LinearGrotesk-Regular.ttf') format('truetype'),url('./fonts/LinearGrotesk-Regular.svg#LinearGrotesk-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap
}



:root {
  --white: #f7f7f7;
  --dark-green: #00312a;
  --green: #a3c77e;
  --light-green: #e7f1e0;
  --black: #1a1a1a;
  --gray: #121212;
  --gray-dark: #2a2a2a;
  --charcoal: #0d0d0d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark-green);
  color: var(--white);
  font-family: 'Linear Grotesk';
  font-size: 14px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
img { display: block; max-width: 100%; }
.section-wrap { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }

.pt-10 { padding-top: 10px !important;}
.site-header {
  min-height: 90px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--dark-green);
}
.logo {
  display: grid;
  place-items: center;
  width: 105px;
  min-width: 105px;
  height: 52px;
  transition: transform .25s ease, background .25s ease;
}
.logo:hover { transform: translateY(-2px);}
.main-nav { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; flex-wrap: wrap; justify-content: flex-end;}
.main-nav p { color: var(--light-green); font-size: 16px; font-weight: normal; margin: 0;}
.primary-button { background-color: #e7f1e0; color: #00312a; padding:8px 30px 8px 10px; border-top-right-radius: 40px; font-size: 15px; border: none; transition: background .25s, transform .25s; font-weight: bold; }
.primary-button:hover, .secundary-button:hover { background-color: #a3c77e !important; border:none !important; padding:8px 30px 8px 10px !important; transform: translateY(-2px); }

.secundary-button { background-color: #e7f1e0; color: #00312a; padding:8px 30px 8px 10px; border-bottom-right-radius: 40px; font-size: 15px; border: none; transition: background .25s, transform .25s; font-weight: bold; }



.hero {background-image: url("images/miravalles.webp"); background-size:cover; background-repeat: no-repeat; background-position: center;}
.hero-copy h1 { color: #fff; font-size: 30px; font-family: Elgraine !important; line-height: 30px; margin: 0;}
  .subtitle-home {font-weight: bold;}
   .subtitle-home span {font-family: Elgraine !important;}
.hero-description { margin-bottom: 10px; font-size: 16px; line-height: 1.3; margin-top: 340px;}
.hero-cta {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 37px;
  margin-top: 0;
  padding: 0 0 5px;
  border-radius: 0 48px 0 0;
  background: var(--black);
  color: white;
  transform: translateY(1px);
}
.hero-cta p { font-size: 18px !important; color: var(--white); margin: 20px 0 10px 0; padding-top: 10px;}
.hero-cta h2 { margin: 0 0 1px; font-size: 14px; line-height: 1.2; }
.hero-cta.text-hero-secundary { display: flex !important;}
.hero-cta.text-hero-secundary p { font-size: 10px !important; text-align: center; padding: 0 10px; border-left: 1px solid #fff; margin: 10px 0 !important;}
.hero-cta.text-hero-secundary.es-topic-nav p { font-size: 9px !important; text-align: center; padding: 0 7px; border-left: 1px solid #fff; margin: 10px 0 !important;}
.hero-cta.text-hero-secundary p:first-child{ padding-left: 0; border:none;}
.hero-cta.text-hero-secundary p:last-child{ padding-right: 0;}
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 20px; padding: 3px 9px; font-size: 11px; font-weight: 700; transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 5px 12px #0002; }
.button-light { background: #c5c5c5; color: #2b3937; }
.form{ margin-top: 30px;}
.intro { padding-top: 12px; padding-bottom: 0; background: var(--dark-green); }
.eyebrow { margin-bottom: 30px; font-size: 18px; }
.intro-heading { margin-bottom: 12px; font-size: 10px; }
.intro-heading span { font-weight: bold; color: var(--light-green); font-size: 19px;}
.intro-heading p { margin-top: 20px; color: var(--white); font-size: 19px; }
.feature-list { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 40px;}
.feature-link { display: block; margin-bottom: 8px; font-size: 19px; font-weight: bold; color: var(--light-green); text-transform: uppercase; }
.feature-link:hover { display: block; margin-bottom: 8px; font-size: 19px; font-weight: bold; color: var(--green); }
.feature-content { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; align-items: start; max-width: 280px;}
.feature-content p { margin: 0; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; width: 100px;}
.w-125 {width: 125px !important;}
.image-residences { display: grid; place-items: center; color: white; transition: transform .3s ease, box-shadow .3s ease; }
.image-residences:hover { transform: scale(1.065); }
.feature-image { width: 100%; aspect-ratio: 2.1 / 1; }

.cards-title { font-size: 24px; text-align: center; margin-top: 20px; color: var(--dark-green); padding-top: 40px;}
.cards-title span { font-feature-settings: 28px; font-family: Elgraine;}
.cards-panel {
  position: relative;
  margin: 22px calc(-1 * var(--page-gutter)) 0;
  padding: 18px var(--page-gutter) 24px;
  border-radius: 48% 48% 0 0 / 5% 5% 0 0;
  background: var(--green);
  color: white;
}
.cards-panel > h2 { margin-bottom: 26px; text-align: center; font-size: 9px; font-weight: 700; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 0 20px 20px;}
.info-card { min-width: 0; }
.card-image { width: 62%; max-width: 220px; aspect-ratio: 1; margin: 0 auto; }
.info-card h3 { margin-bottom: 12px; font-size: 29px; color: var(--dark-green); font-family: Elgraine; }
.info-card p { margin-bottom: 0; font-size: 15px; line-height: 1.25; color: var(--dark-green);}

.statement { background-image: linear-gradient(to bottom, #00312a 0%, transparent 100%), url("images/laguna-completa.jpg"); background-size: cover; background-repeat: no-repeat; background-position: top; padding-top: 40px;}
.statement-inner { min-height: 245px; margin-bottom: 200px;}
.statement-inner h2, .closing-inner h2 { max-width: 600px; margin: 0; font-size: 30px; line-height: 1.1; font-family: Elgraine !important;}
.subtitle-closing { font-weight: bold !important; margin-bottom: 0;}
.statement-inner p {font-size: 16px; margin-bottom: 0;}
.statement-inner span { font-size: 18px; color: var(--light-green); font-weight: bold; text-transform: uppercase;}
.topic-nav { position: relative; display: flex; width: fit-content; max-width: 100%; overflow: hidden; border-radius: 0 50px 0 0; background: var(--black); }
.topic-nav span { flex: 0 0 auto; padding: 8px 7px; border-right: 1px solid #ddd; font-size: 7px; }
.topic-nav span:last-child { border-right: 0; }

.details { padding-top: 12px; padding-bottom: 14px; background: var(--dark-green); }
.details-intro { max-width: 650px; margin-bottom: 10px; }
.details-intro span{ font-size: 18px; color: var(--light-green); font-weight: bold; margin: 0}
.details-grid span { font-size: 18px; color: var(--light-green); font-weight: bold; text-align: center; text-transform: uppercase;}
.details-intro p { font-size: 17px; color: var(--white); margin: 0}
.details-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 30px 0;}
.details-grid p { margin: 0; padding: 13px 26px; border-bottom: 1px solid #e1e1e1;  font-size: 17px; color: var(--white); text-align: center;}
.details-action { margin-top: 10px; }
.details-action p { margin-bottom: 5px; font-size: 11px; margin-bottom: 30px; }
.button-dark { width: 100%; max-width: 155px; background: #777575; color: white; }
.button-dark:hover { background: var(--charcoal); }
.closing-copy {background-image: linear-gradient(to bottom, #00312a 0%, transparent 100%), url("images/miravalles-tower.webp"); background-size: cover; background-repeat: no-repeat; background-position: top; padding-top: 40px; min-height: 330px;}
.closing-copy > p { max-width: 650px; margin-bottom: 35px; font-size: 10px; line-height: 1.3; }
.closing-actions { align-self: flex-end; align-items: stretch; gap: 16px; margin-top: auto; margin-bottom: 10px; }
.closing-banner { display: flex; align-items: center; min-height: 36px; width: 100%; padding: 0; border-radius: 0 45px 0 0; background: var(--black); font-size: 17px; font-weight: bold; color: var(--light-green); }
.button-outline { min-height: 28px; border: 1px solid #d5d5d5; background: #999; color: white; }
.button-outline:hover { background: white; color: #333; }
.closing-inner p { font-size: 17px; color: var(--light-green); }
/* Fixed right social sidebar */
.right-social {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9000;
  padding: 14px 10px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.right-social a {
  display: flex;
  opacity: 0.80;
  transition: opacity .2s, transform .2s;
}
.right-social a:hover { opacity: 1; transform: translateX(-3px); }
.right-social img { width: 26px; height: 26px; object-fit: contain; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }


.site-footer { background: var(--dark-green); margin-top: -1px;}
.footer-top { min-height: 42px; background: var(--gray-dark); }
.footer-banner { display: flex; align-items: center; width: 58%; min-height: 34px; padding: 0 22px; border-radius: 0 40px 0 0; background: var(--black); color: white; font-size: 9px; transition: width .3s ease; }
.footer-banner:hover { width: 64%; }
.footer-bottom { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 24px; border-top: 1px solid #333; font-size: 18px; color: var(--light-green); font-weight: bold; }
.footer-bottom p { margin: 0; }

/* galeria */
a.image-residences {
  display: block;
  cursor: pointer;
}

/* Entrada al viewport: mejora progresivamente en navegadores compatibles. */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (min-width: 601px) {
  :root { --page-gutter: 28px; }
  .site-header { min-height: 90px; padding: 10px 18px; }
  .logo { width: 68px; height: 32px; font-size: 14px; }
  .main-nav { gap: 12px; font-size: 12px; }
  .nav-button { padding: 4px 8px; }
  .hero { padding-top: 34px; }
  .hero-copy h1 { font-size: 36px; line-height: 36px;}
  .hero-subtitle { margin-bottom: 62px; font-size: 17px; }
  .hero-cta { width: 52%; min-height: 62px; padding: 0; }
  .button { font-size: 12px; }
  .intro { padding-top: 18px; }
  .intro-heading { margin-bottom: 20px; font-size: 12px; }
  .intro-heading h2 { font-size: 12px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .feature-content { grid-template-columns: minmax(0, 1fr) 55px; gap: 10px; }
  .feature-content p { font-size: 19px; }
  .cards-panel { margin-top: 32px; padding-top: 25px; padding-bottom: 35px; border-radius: 48% 48% 0 0 / 15% 15% 0 0;}
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0;}
  .card-image { width: 100%; max-width: none; margin-bottom: 16px; }
  .statement-inner h2, .closing-inner h2 { font-size: 33px; }
  .topic-nav span { padding: 10px 13px; font-size: 9px; }
  .details { padding-top: 20px; padding-bottom: 20px; }
  .details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .details-grid p { padding: 14px 20px; border-bottom: 0; border-right: 1px solid #e1e1e1;}
  .details-grid p:first-child { padding-left: 20px; }
  .details-grid p:last-child { border-right: 0; }
  .details-action { margin-top: 15px; }
  .closing-copy { min-height: 510px; padding-top: 25px; padding-bottom: 22px; }
  .closing-copy > p { font-size: 11px; }
  .closing-actions { gap: 30px; margin-bottom: -30px; }
  .closing-banner { width: 55%; min-height: 42px; }
  .button-outline { width: 32%; }
  .footer-top { min-height: 46px; }
  .footer-banner { width: 50%; min-height: 40px; }
  .footer-bottom { padding: 16px 30px; }
  .pt-md-30 { padding-top: 30px !important;}
}

@media (min-width: 985px) {
  .footer-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  body { font-size: 16px; }
  .logo { width: 68px; height: 34px; }
  .main-nav { gap: 10px; }
  .hero { padding-top: 34px; }
  .hero-copy h1 { font-size: 90px; line-height: 90px;}
  .subtitle-home {font-size: 30px;}
  .hero-subtitle { margin-bottom: 70px; }
  .hero-description { font-size: 21px; }
  .intro { padding-top: 18px; }
  .eyebrow { margin-bottom: 30px; }
  .intro-heading { margin-bottom: 22px; }
  .feature-list { gap: 7%; }
  .feature-content { grid-template-columns: minmax(0, 1fr) 62px; gap: 12px; max-width: 340px;}
  .cards-panel { margin-top: 32px; padding: 28px var(--page-gutter) 40px; border-radius: 48% 48% 0 0 / 40% 40% 0 0; }
  .cards-panel > h2 { margin-bottom: 34px; }
  .cards-grid { gap: 6%; width: calc(100% - 250px); margin: auto;}
  .card-image { width: 82%; margin: 0; }
  .statement-inner { margin-bottom: 380px; }
  .statement-inner h2, .closing-inner h2 { max-width: 580px; }
  .details { padding-top: 22px; padding-bottom: 20px; }
  .subtitle-closing { }
  .details-intro { max-width: 660px; }
  .details-grid p { padding: 18px 34px; }
  .details-action { margin-top: 10px; }
  .closing-copy { min-height: 520px; padding-top: 28px; padding-bottom: 24px; }
  .closing-copy > p { max-width: 670px; }
  .closing-actions { gap: 5%; margin-right: 200px; }
  .closing-banner { width: 50%; }
  .button-outline { width: 30%; }
  .footer-banner { width: 50%; }
  .footer-bottom { padding: 16px 5.2%; }
  .hero-cta.text-hero-secundary p {font-size: 14px !important;text-align: center;padding: 0 20px; margin: 20px 0 !important;}
  .hero-cta.text-hero-secundary.es-topic-nav p {font-size: 14px !important;text-align: center;padding: 0 15px; margin: 20px 0 !important;}
  .hero-cta.text-hero-secundary p:first-child{ padding-left: 0;}
  .hero-cta.text-hero-secundary p:last-child{ padding-right: 0;}
}

/* Alineación común: fondos a todo el ancho y contenido centrado en un máximo de 1080px. */
.container {
  width: calc(100% - 40px);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.site-header { padding-left: 0; padding-right: 0; }
.header-inner { min-height: inherit; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero { padding: 0; }
.hero-inner { padding-top: 25px; padding-bottom: 0; }
.intro { padding: 0; }
.intro-inner { padding-top: 12px; padding-bottom: 0; }
.cards-panel { width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; }
.statement-inner { padding-top: 0; padding-bottom: 0; }
.topic-nav-wrap { padding-left: 0; padding-right: 0; }
.details { padding: 0; }
.details-inner { padding-top: 12px; padding-bottom: 14px; }
.closing-copy { padding: 0; }
.closing-inner { min-height: inherit; padding-top: 20px; padding-bottom: 0; display: flex; flex-direction: column; }
.footer-top-inner { display: flex; align-items: flex-start; }
.footer-bottom { padding-left: 0; padding-right: 0; }

@media (min-width: 601px) {
  .container { width: calc(100% - 56px); }
  .header-inner { min-height: inherit; }
  .hero-inner { padding-top: 34px; }
  .intro-inner { padding-top: 18px; }
  .details-inner { padding-top: 20px; padding-bottom: 20px; }
  .closing-inner { padding-top: 25px; padding-bottom: 0; }
}

@media (min-width: 985px) {
  .container { width: calc(100% - 60px); }
  .header-inner { width: calc(100% - 60px); }
  .hero-inner { padding-top: 34px; }
  .intro-inner { padding-top: 18px; }
  .details-inner { padding-top: 22px; padding-bottom: 20px; }
  .closing-inner { padding-top: 28px; padding-bottom: 0 }
  .footer-bottom { width: calc(100% - 60px); }
}


/* Los tres bloques curvos extienden únicamente su fondo hasta el borde izquierdo
   del viewport; el texto conserva la alineación del contenedor de 1080px. */
.hero-cta,
.closing-banner,
.footer-banner {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.hero-cta::before,
.closing-banner::before,
.footer-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc((100% - 100vw) / 2);
  width: calc(100% + (100vw - 100%) / 2);
  background: var(--dark-green);
  border-radius: 0 48px 0 0;
  pointer-events: none;
}
.hero-cta { background: transparent; }
.closing-banner { background: transparent; }
.footer-banner { background: transparent; }








/* =========================================
   RESIDENCES GALLERY — MOBILE FIRST
   ========================================= */

/* Keep hidden elements hidden */
.gallery-modal[hidden],
.gallery-content[hidden],
.gallery-slide[hidden],
.gallery-arrow[hidden] {
  display: none !important;
}

/* Clickable residence images */
a.image-residences {
  display: block;
  cursor: pointer;
}

a.image-residences img {
  display: block;
  width: 100%;
  height: auto;
}

/* Modal overlay — mobile defaults */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  animation: galleryFadeIn 0.35s ease both;
}

@keyframes galleryZoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal window */
.gallery-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 94dvh;
  overflow-y: auto;
  padding: 24px 12px 18px;
  box-sizing: border-box;
  background: #fff;
  color: #222;
  border-radius: 4px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.35);
  animation: galleryZoomIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Gallery title */
.gallery-title {
  margin: 0 34px 16px 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 500;
  color: #222;
  text-align: center;
}

/* Image stage */
.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
}

/* Images */
.gallery-slide {
  display: block;
  width: 100%;
  height: 55dvh;
  min-height: 220px;
  max-height: 650px;
  object-fit: contain;
  margin: 0 auto;
}

/* Previous / next arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--dark-green);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
}

.gallery-prev {
  left: 8px;
}

.gallery-next {
  right: 8px;
}

/* Close button */
.gallery-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--dark-green);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.gallery-close:hover {
  opacity: 0.65;
}

/* Image counter */
.gallery-counter {
  margin: 12px 0 0;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Prevent background scrolling */
body.gallery-open {
  overflow: hidden;
}

/* =========================================
   TABLET — 600px AND UP
   ========================================= */

@media (min-width: 600px) {
  .gallery-modal {
    padding: 20px;
  }

  .gallery-dialog {
    width: min(100%, 600px);
    max-height: 92dvh;
    padding: 28px 24px 22px;
  }

  .gallery-title {
    margin: 0 42px 18px 0;
    font-size: 22px;
  }

  .gallery-slide {
    height: 65dvh;
    min-height: 280px;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }

  .gallery-close {
    top: 6px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 34px;
  }
}

/* =========================================
   DESKTOP — 1024px AND UP
   ========================================= */

/* =========================================
   FORM MODAL
   ========================================= */

.form-modal[hidden] { display: none !important; }

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.form-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.form-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--dark-green);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.form-dialog-header {
  position: relative;
  background: transparent;
  padding: 22px 52px 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.form-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--light-green);
}

.form-title {
  margin: 0;
  font-family: Elgraine, serif;
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
}

.form-body {
  padding: 24px;
}

.form-close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--light-green);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s;
}

.form-close:hover { opacity: .65; }

@media (min-width: 600px) {
  .form-dialog { max-height: 90dvh; }
  .form-dialog-header { padding: 26px 56px 20px 32px; }
  .form-title { font-size: 26px; }
  .form-body { padding: 28px 32px 32px; }
  .form-close { top: 10px; right: 14px; width: 40px; height: 40px; font-size: 34px; }
}

/* =========================================
   GALLERY MODAL — DESKTOP (1024px+)
   ========================================= */

@media (min-width: 1024px) {
  .gallery-modal {
    padding: 24px;
  }

  .gallery-dialog {
    width: min(100%, 800px);
    max-height: 90dvh;
    padding: 32px;
  }

  .gallery-title {
    margin-bottom: 20px;
    font-size: 24px;
  }

  .gallery-slide {
    height: 65dvh;
    max-height: 650px;
    min-height: 300px;
  }

  .gallery-arrow {
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  .gallery-prev {
    left: 16px;
  }

  .gallery-next {
    right: 16px;
  }

  .gallery-close {
    top: 8px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 36px;
  }
}

/* =========================================
   IMAGE LIGHTBOX
   ========================================= */

.lightbox-modal[hidden] { display: none !important; }

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1000px);
  max-height: 90dvh;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 88dvh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: lightbox-in .22s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* Card image gallery link */
.card-image {
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.card-image img { transition: transform .35s ease; }
.card-image:hover img { transform: scale(1.06); }
