/* ==========================================================================
   Punta Inglesa Group — site styles (template styles adapted to Elementor markup)
   Conventions:
   - Template classes live on Elementor elements (containers: css_classes, widgets: _css_classes).
   - Containers (.e-con) get the template layout rules; selectors are prefixed with .e-con to beat
     Elementor's container defaults.
   - Heading widgets: the template element is the inner .elementor-heading-title.
   - Text Editor widgets: the template element is the widget wrapper (it holds the <p>).
   - Buttons: the template .btn is the inner a.elementor-button.
   ========================================================================== */

:root {
  --navy-950: #021a2a;
  --navy-900: #04283d;
  --navy: #063f5a;
  --navy-700: #0d5577;
  --teal: #21aca9;
  --teal-ink: #11706e;
  --gold: #b49350;
  --gold-light: #e9c87b;
  --gold-gradient: linear-gradient(120deg, #a8843f 0%, #e9c87b 45%, #c9a45e 70%, #b49350 100%);
  --ivory: #f7f5ef;
  --paper: #fdfdfb;
  --sand: #ece6d8;
  --ink: #14232e;
  --muted: #4a5a66;
  --line: rgba(6, 63, 90, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --font-sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --fs-display: clamp(2.8rem, 1.6rem + 5.6vw, 6.4rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --section-y: clamp(5rem, 3.5rem + 7vw, 10rem);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.8s;
  --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
/* Template uses native scrolling; WordPress/Elementor defaults set html { scroll-behavior: smooth } */
:root { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-dark :focus-visible,
.site-header:not(.is-solid) :focus-visible { outline-color: var(--gold-light); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.svg-sprite, .svg-sprite-w { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Elementor neutralisation ---------- */
:where(.elementor-widget-heading) .elementor-heading-title { line-height: inherit; }
.elementor-widget-heading .elementor-heading-title > a { color: inherit; }
.elementor-widget-image { text-align: inherit; }
.elementor-widget-image img { display: block; }
.elementor-widget-html svg { display: block; }
.elementor-widget-text-editor p + p { margin-top: 0; }

/* ---------- Layout helpers ---------- */
.e-con.container,
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.e-con.section { padding-block: var(--section-y); position: relative; }
.e-con.section--paper { background: var(--paper); }
.e-con.section--sand { background: var(--sand); }
.e-con.section--navy { background: var(--navy-900); color: #fff; }
.on-dark { color: #fff; }

/* ---------- Typography ---------- */
.eyebrow .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow__num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow .elementor-heading-title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold-gradient);
}
.on-dark .eyebrow .elementor-heading-title,
.section--navy .eyebrow .elementor-heading-title { color: var(--gold-light); }

.heading .elementor-heading-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-top: 1.25rem;
}
.heading em { font-style: italic; color: var(--navy-700); }
.section--navy .heading .elementor-heading-title,
.on-dark .heading .elementor-heading-title { color: #fff; }
.section--navy .heading em,
.on-dark .heading em { color: var(--gold-light); }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--muted); }
.section--navy .lead { color: rgba(255, 255, 255, 0.82); }
.lead--spaced { margin-top: 1.5rem; }

.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--muted); }
.section--navy .prose p { color: rgba(255, 255, 255, 0.8); }

/* ---------- Buttons (Button widget: .btn on the wrapper, styles on a.elementor-button) ---------- */
/* Optimized markup: a.elementor-button is a direct child of the widget wrapper; the wrapper acts as the flex context so the button behaves like the template's flex-item .btn */
.elementor-widget.btn { display: flex; }
.btn .elementor-button,
.contact-form .elementor-field-type-submit .elementor-button {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-border: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.9rem 1.9rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btn-fg);
  fill: currentColor;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  text-align: start;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .elementor-button:hover,
.btn .elementor-button:focus,
.btn .elementor-button:visited,
.contact-form .elementor-field-type-submit .elementor-button:hover,
.contact-form .elementor-field-type-submit .elementor-button:focus { color: var(--btn-fg); }
.btn .elementor-button:hover,
.contact-form .elementor-field-type-submit .elementor-button:hover { --btn-bg: var(--navy-700); --btn-border: var(--navy-700); }
.btn .elementor-button-content-wrapper,
.contact-form .elementor-button > .elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: 0.75rem; }
.btn .elementor-button-content-wrapper,
.contact-form .elementor-button > .elementor-button-content-wrapper { justify-content: center; flex: 0 1 auto; }
.btn .elementor-button-text,
.contact-form .elementor-button-text { display: inline; flex: 0 1 auto; }

/* Arrow icon (template <svg><use href="#i-arrow"/></svg>), drawn with a mask so the button stays a native widget */
.btn--arrow .elementor-button-content-wrapper::after,
.link-arrow .elementor-button-content-wrapper::after,
.contact-form .elementor-field-type-submit .elementor-button-content-wrapper::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / contain no-repeat;
  mask: var(--arrow-mask) center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
.btn--arrow .elementor-button:hover .elementor-button-content-wrapper::after,
.contact-form .elementor-field-type-submit .elementor-button:hover .elementor-button-content-wrapper::after { transform: translateX(4px); }

.btn--gold .elementor-button {
  --btn-fg: var(--navy-950);
  --btn-border: transparent;
  background: var(--gold-gradient);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 0.6s var(--ease);
}
.btn--gold .elementor-button:hover { background-position: 100% 0; }

.btn--ghost .elementor-button { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.55); }
.btn--ghost .elementor-button:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-border: #fff; }

.btn--outline .elementor-button { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--navy); }
.btn--outline .elementor-button:hover { --btn-bg: var(--navy); --btn-fg: #fff; }

/* .link-arrow (Button widget) */
.elementor-widget.link-arrow { display: flex; }
.link-arrow .elementor-button {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  background: var(--gold-gradient) no-repeat 0 100% / 0 1px;
  transition: background-size 0.45s var(--ease);
}
.link-arrow .elementor-button:hover,
.link-arrow .elementor-button:focus,
.link-arrow .elementor-button:visited { color: var(--navy); }
.link-arrow .elementor-button:hover { background-size: 100% 1px; }
.link-arrow .elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: 0.6rem; justify-content: flex-start; }
.link-arrow .elementor-button-content-wrapper::after { width: 14px; height: 14px; transition: none; }

/* ---------- Brand ---------- */
.e-con.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  width: auto;
  color: #fff;
}
/* Official logo lockup (Image widgets, transparent PNGs): white on dark grounds, color on light grounds.
   Both images share one fixed box so swapping them never shifts the layout. */
.elementor-widget.brand__logo { flex: none; }
.brand__logo img {
  display: block;
  width: 109px;
  height: 46px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}
.elementor-widget.brand__logo--color { display: none; }
.site-header.is-solid .elementor-widget.brand__logo--white { display: none; }
.site-header.is-solid .elementor-widget.brand__logo--color { display: block; }
.site-footer .brand__logo img { width: 133px; height: 56px; }

/* ---------- Header ---------- */
.e-con.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #fff;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), height 0.45s var(--ease), color 0.45s var(--ease);
}
body.admin-bar .e-con.site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.e-con.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: linear-gradient(180deg, rgba(2, 26, 42, 0.55), rgba(2, 26, 42, 0));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}
.e-con.site-header.is-solid {
  --header-h: 72px;
  background: rgba(253, 253, 251, 0.97);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(2, 26, 42, 0.35);
}
.e-con.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid .e-con.brand { color: var(--navy); }

.e-con.site-header__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.e-con.nav { display: flex; flex-direction: row; align-items: center; gap: 2.25rem; width: auto; }
.nav__menu .elementor-menu-toggle,
.nav__menu .elementor-nav-menu--dropdown,
.footer__menu .elementor-menu-toggle,
.footer__menu .elementor-nav-menu--dropdown { display: none !important; }
body .nav__menu .elementor-nav-menu::before,
body .nav__menu .elementor-nav-menu::after,
body .footer__menu .elementor-nav-menu::before,
body .footer__menu .elementor-nav-menu::after { display: none; }
body .nav__menu .elementor-nav-menu {
  display: flex;
  flex-wrap: nowrap;
  line-height: inherit;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body .nav__menu .elementor-nav-menu > li { display: block; line-height: inherit; margin: 0; padding: 0; }
body .site-header .nav .nav__menu .elementor-nav-menu .elementor-item {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  white-space: normal;
  transition: none;
}
body .site-header .nav .nav__menu .elementor-nav-menu .elementor-item::before { display: none; }
body .site-header .nav .nav__menu .elementor-nav-menu .elementor-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; top: auto;
  width: auto;
  height: 1px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  opacity: 1 !important;
  display: block;
}
body .site-header .nav .nav__menu .elementor-nav-menu .elementor-item:hover::after,
body .site-header .nav .nav__menu .elementor-nav-menu .elementor-item.is-active::after { transform: scaleX(1); }

.site-header .btn .elementor-button { min-height: 44px; padding: 0.7rem 1.4rem; }

.nav-toggle-w { display: none; }
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: inherit;
}
.nav-toggle__bar {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle__bar:nth-child(2) { top: 17px; }
.nav-toggle__bar:nth-child(3) { top: 23px; }
.nav-toggle__bar:nth-child(4) { top: 29px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle-w { display: block; position: relative; z-index: 120; }
  .nav-toggle { display: inline-block; vertical-align: top; }
  .e-con.nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--navy-950);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .e-con.nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  body .nav__menu .elementor-nav-menu { flex-direction: column; gap: 1.25rem; }
  body .site-header .nav .nav__menu .elementor-nav-menu .elementor-item {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 1.4rem + 3vw, 2.8rem);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }
  .e-con.site-header.nav-open { color: #fff; }
  .site-header.nav-open .e-con.brand { color: #fff; position: relative; z-index: 120; }
  .site-header.is-solid.nav-open .elementor-widget.brand__logo--white { display: block; }
  .site-header.is-solid.nav-open .elementor-widget.brand__logo--color { display: none; }
  .e-con.site-header.is-solid.nav-open { background: transparent; box-shadow: none; }
}
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.e-con.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--navy-950);
}
.e-con.hero__media { position: absolute; inset: 0; width: auto; }
.hero__img { position: absolute; inset: 0; }
.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.e-con.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 26, 42, 0.35) 0%, rgba(2, 26, 42, 0.05) 35%, rgba(2, 26, 42, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 26, 42, 0.55) 0%, rgba(2, 26, 42, 0) 65%);
}
.e-con.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: 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='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.e-con.hero__content {
  position: relative;
  z-index: 2;
  display: block;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(5rem, 4rem + 6vw, 9rem);
}
.hero__title .elementor-heading-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 13ch;
  margin-top: 1.5rem;
  color: #fff;
}
.hero__title em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.elementor .e-con > .elementor-widget.hero__subtitle { max-width: 46ch; }
.hero__subtitle {
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.e-con.hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero .eyebrow .elementor-heading-title { color: #fff; }

.e-con.hero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 5.5rem;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.85);
}
.hero__scroll-text .elementor-heading-title { display: block; }
.e-con.hero__scroll .e-con.line {
  position: relative;
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.e-con.hero__scroll .e-con.line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--gold-light);
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue { to { top: 100%; } }

.e-con.hero__meta {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: 0;
  width: auto;
  border-top: 1px solid var(--line-light);
}
.hero__meta .e-con.container {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  padding-block: 1.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero__meta-item .elementor-heading-title { display: block; }

@media (max-width: 960px) {
  .e-con.hero__scroll { display: none; }
}
@media (max-width: 720px) {
  .hero__meta .e-con.container { gap: 1.25rem; flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn .elementor-button { flex: 1 1 100%; }
}

/* ---------- About ---------- */
.e-con.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 5rem) var(--gutter);
  align-items: start;
}
.e-con.about__text { grid-column: 1 / span 6; display: block; }
.e-con.about__media { grid-column: 8 / span 5; position: relative; display: block; }

.e-con .elementor-widget.about__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.3;
  font-style: italic;
  color: var(--navy);
  margin-block: 2rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
}

.e-con.stack { position: relative; display: block; padding-bottom: 28%; }
.stack__main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.stack__main img, .stack__inset img { width: 100%; height: 100%; object-fit: cover; }
.e-con .elementor-widget.stack__inset {
  position: absolute;
  left: -22%;
  bottom: 0;
  width: 58%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 8px solid var(--ivory);
}
.e-con.stack__frame {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  width: 70%;
  height: 60%;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.e-con.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.e-con.fact { display: block; padding: 1.5rem 1.25rem 0 0; }
.e-con.fact + .e-con.fact { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.fact__label .elementor-heading-title {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact__value .elementor-heading-title {
  margin-top: 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
  line-height: 1.15;
  color: var(--navy);
}

@media (max-width: 900px) {
  .e-con.about__text, .e-con.about__media { grid-column: 1 / -1; }
  .e-con.about__media { max-width: 520px; margin-left: auto; width: 82%; }
}
@media (max-width: 520px) {
  .e-con.facts { grid-template-columns: 1fr; }
  .e-con.fact + .e-con.fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
  .e-con.fact { padding-block: 1rem; }
}

/* ---------- Mission / Vision ---------- */
.e-con.mv { position: relative; overflow: hidden; }
.e-con.mv__bg {
  position: absolute;
  inset: 0;
  width: auto;
  opacity: 0.16;
  filter: grayscale(0.3);
}
.e-con.mv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(33, 172, 169, 0.14), transparent 55%);
  pointer-events: none;
}
.mv > .e-con.container { position: relative; z-index: 1; display: block; }
.e-con.mv__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--line-light);
}
.e-con.mv__block {
  display: block;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(0rem, -1rem + 4vw, 3.5rem) 0 0;
}
.e-con.mv__block + .e-con.mv__block {
  border-left: 1px solid var(--line-light);
  padding-left: clamp(1.5rem, 0.5rem + 4vw, 3.5rem);
}
.mv__label .elementor-heading-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.mv__text {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}
@media (max-width: 800px) {
  .e-con.mv__grid { grid-template-columns: 1fr; }
  .e-con.mv__block { padding-right: 0; }
  .e-con.mv__block + .e-con.mv__block { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); margin-top: 2.5rem; }
}

/* ---------- Section header ---------- */
.e-con.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem var(--gutter);
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.e-con.section-head__title { display: block; }
.elementor .section-head > .elementor-widget.lead { max-width: 46ch; }
@media (max-width: 860px) {
  .e-con.section-head { grid-template-columns: 1fr; }
}

/* ---------- Values ---------- */
.e-con.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.e-con.value {
  position: relative;
  display: block;
  padding: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.e-con.value::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px;
  width: calc(100% + 2px);
  height: 2px;
  opacity: 1;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.e-con.value:hover { background: var(--paper); }
.e-con.value:hover::before { transform: scaleX(1); }
.e-con.value__top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.value__icon { width: 44px; height: 44px; color: var(--navy); }
.value__num .elementor-heading-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
}
.value__title .elementor-heading-title {
  margin-top: 2rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.value__text { margin-top: 0.8rem; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 960px) { .e-con.values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .e-con.values { grid-template-columns: 1fr; } }

/* ---------- Projects (Loop Grid + Loop Item templates) ---------- */
.elementor-widget.project-featured-loop .elementor-grid,
.elementor-widget.project-grid .elementor-grid { display: grid; }
.elementor-widget.project-featured-loop .elementor-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.elementor-widget.project-grid { margin-top: var(--gutter); }
.elementor-widget.project-grid .elementor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}
.project-grid .e-loop-item { display: flex; }
.project-grid .e-loop-item > .e-con { flex: 1 1 auto; }
/* Template: second card of each row reveals with --delay: .12s */
.project-grid .elementor-loop-container > .e-loop-item:nth-of-type(2n) > .reveal { --delay: 0.12s; }
.contact-form form[hidden] { display: none; }

.e-con.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.e-con.project-featured__media {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
}
.project-featured__img { position: absolute; inset: 0; }
.project-featured__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.project-featured:hover .project-featured__img img { transform: scale(1.04); }
.e-con.project-featured__body {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
}
.status .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(233, 200, 123, 0.5);
  color: var(--gold-light);
}
.status .elementor-heading-title::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(33, 172, 169, 0.2);
}
.status--muted .elementor-heading-title { border-color: var(--line); color: var(--muted); }
.status--muted .elementor-heading-title::before { background: var(--gold); box-shadow: none; }
/* In the featured card the status is a flex item (template: align-self: flex-start) */
.project-featured__body > .elementor-widget.status { align-self: flex-start; }
.project-featured__body > .status .elementor-heading-title { display: flex; }

.project-featured__title .elementor-heading-title {
  margin-top: 1.75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.05;
  color: #fff;
}
.project-featured__place .elementor-heading-title {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.project-featured__text { margin-top: 1.5rem; color: rgba(255, 255, 255, 0.8); }
.e-con.project-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding: 0; /* template: ul[role=list] { padding: 0 } wins over .project-specs padding */
  border-top: 1px solid var(--line-light);
}
.e-con.project-spec { display: block; }
.project-spec__value .elementor-heading-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1;
  color: #fff;
}
.project-spec__label .elementor-heading-title {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.project-featured__body > .elementor-widget.btn { margin-top: auto; align-self: flex-start; }

.e-con.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.e-con.project-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.35;
}
.e-con.project-card__content { display: block; }
.project-card__title .elementor-heading-title {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.project-card__text { margin-top: 0.75rem; color: var(--muted); }
.elementor .e-con > .elementor-widget.project-card__text { max-width: 40ch; }

@media (max-width: 960px) {
  .e-con.project-featured { grid-template-columns: 1fr; }
  .e-con.project-featured__media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .elementor-widget.project-grid .elementor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .e-con.project-specs { grid-template-columns: 1fr 1fr; }
}

/* ---------- Split (image + text) ---------- */
.e-con.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 5rem) var(--gutter);
  align-items: center;
}
.e-con.split__media { grid-column: 1 / span 7; position: relative; display: block; }
.e-con.split__body { grid-column: 9 / span 4; display: block; }
.split--reverse .e-con.split__media { grid-column: 6 / span 7; order: 2; }
.split--reverse .e-con.split__body { grid-column: 1 / span 4; order: 1; }
.split__media .frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.split__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split__caption .elementor-heading-title {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .e-con.split__media, .e-con.split__body,
  .split--reverse .e-con.split__media, .split--reverse .e-con.split__body { grid-column: 1 / -1; order: initial; }
}

/* ---------- Reasons list ---------- */
.e-con.reasons { display: block; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.e-con.reason {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.e-con.reason__body { display: block; }
.reason__num .elementor-heading-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.5;
}
.reason__title .elementor-heading-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.reason__text { margin-top: 0.35rem; color: var(--muted); font-size: 0.97rem; }

.e-con.access-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.e-con.access-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
}
.e-con.access-item + .e-con.access-item { border-left: 1px solid var(--line); }
.access-item__icon { flex: none; }
.access-item__icon svg { width: 32px; height: 32px; color: var(--navy); flex: none; }
.e-con.access-item__body { display: block; width: auto; }
.access-item__value .elementor-heading-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--navy);
}
.access-item__label .elementor-heading-title {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .e-con.access-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-con.access-band > .e-con.access-item:nth-child(3) { border-left: 0; }
  .e-con.access-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .e-con.access-band { grid-template-columns: 1fr; }
  .e-con.access-item + .e-con.access-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Invest ---------- */
.e-con.invest { position: relative; overflow: hidden; }
.e-con.invest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.e-con.invest__main { display: block; }
.e-con.invest__cards { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.e-con.invest-card { display: block; padding: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); background: var(--navy-900); }
.e-con.invest-card__head { display: flex; flex-direction: row; align-items: center; gap: 1rem; }
.invest-card__icon { flex: none; }
.invest-card__icon svg { width: 36px; height: 36px; color: var(--gold-light); flex: none; }
.invest-card__title .elementor-heading-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
.invest-card__list .elementor-icon-list-items { margin-top: 1.25rem; padding: 0; list-style: none; }
.elementor-widget.invest-card__list .elementor-icon-list-item {
  position: relative;
  display: block;
  padding: 0.55rem 0 0.55rem 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
}
.invest-card__list .elementor-icon-list-text { color: inherit; padding: 0; }
.elementor-widget.invest-card__list .elementor-icon-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 10px;
  height: 1px;
  background: var(--gold-light);
}
.invest__quote {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.35;
  color: var(--gold-light);
}
.e-con.invest__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .e-con.invest__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.e-con.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.e-con.contact__info { display: block; }
.e-con .elementor-widget.contact__logo { margin-bottom: 2.25rem; }
.contact__logo img { width: 220px; height: auto; aspect-ratio: 600 / 266; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.e-con.contact-list { display: block; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.e-con.contact-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-item__icon svg { width: 22px; height: 22px; color: var(--navy); }
.e-con.contact-item__body { display: block; }
.contact-item__label .elementor-heading-title {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item__value .elementor-heading-title,
.contact-item__value .elementor-heading-title a { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.contact-item__value .elementor-heading-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.e-con.socials { display: flex; flex-direction: row; gap: 0.75rem; margin-top: 2rem; }
.e-con.socials__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--navy);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.e-con.socials__link:hover { background: var(--navy); color: #fff; }
.socials__icon svg { width: 18px; height: 18px; }

.e-con.form {
  position: relative;
  display: block;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
}
.e-con.form::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  width: auto;
  height: 2px;
  opacity: 1;
  background: var(--gold-gradient);
}

/* PRO Elements Form widget, styled as the template form */
.contact-form .elementor-form-fields-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.5rem;
  margin: 0;
}
.contact-form .elementor-form-fields-wrapper > .elementor-field-group {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
.contact-form .elementor-field-group.elementor-col-100,
.contact-form .form__footer { grid-column: 1 / -1; }
.contact-form .elementor-field-group .elementor-field-label {
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: default;
}
.contact-form .elementor-mark-required .elementor-field-label::after { content: "*"; color: var(--muted); padding: 0; }
.contact-form .elementor-field-group .elementor-field-textual,
.contact-form .elementor-field-group .elementor-select-wrapper select {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid rgba(6, 63, 90, 0.35);
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  transition: border-color 0.3s var(--ease);
}
.contact-form .elementor-select-wrapper { display: block; width: 100%; }
.contact-form .elementor-select-wrapper .select-caret-down-wrapper { display: none; }
.contact-form .elementor-field-group .elementor-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23063f5a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.75rem;
}
.contact-form .elementor-field-group textarea.elementor-field-textual { min-height: 120px; resize: vertical; }
.contact-form .elementor-field-group .elementor-field-textual:focus,
.contact-form .elementor-field-group .elementor-select-wrapper select:focus {
  outline: none;
  border-bottom-color: var(--navy);
  box-shadow: 0 1px 0 0 var(--gold);
}
.contact-form .elementor-field-group .elementor-field-textual:focus-visible,
.contact-form .elementor-field-group .elementor-select-wrapper select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.contact-form .elementor-field-group.has-error .elementor-field-textual { border-bottom-color: #b42318; }
.contact-form .field__error { min-height: 1.2em; font-size: 0.8rem; color: #b42318; }
.contact-form .elementor-field-group > .elementor-message { display: none; }
.contact-form .form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.contact-form .form__footer > .elementor-field-group {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}
.contact-form .elementor-field-type-html {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 36ch;
}
.contact-form .form__footer > .elementor-field-type-html { max-width: 36ch; }
.contact-form .elementor-field-type-submit .elementor-button { width: auto; flex-basis: auto; }
.contact-form .elementor-field-type-submit .elementor-button[disabled] { cursor: progress; }
.contact-form .elementor-message-success { display: none !important; }
.contact-form .elementor-message {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #b42318;
}
.contact-form .elementor-message::before { display: none; }

.e-con.form-success { display: block; text-align: left; }
.e-con.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon { width: 56px; height: 56px; color: var(--teal-ink); }
.form-success__title .elementor-heading-title {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.form-success__text { margin-top: 0.75rem; color: var(--muted); }
.form-success .elementor-widget.btn { display: block; }
.form-success .btn .elementor-button { margin-top: 1.75rem; }

@media (max-width: 900px) { .e-con.contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form .elementor-form-fields-wrapper { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.e-con.site-footer {
  position: relative;
  display: block;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
}
.site-footer > .e-con.container { display: block; }
.e-con.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem var(--gutter);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.e-con.footer__brand, .e-con.footer__col { display: block; }
.footer__slogan .elementor-heading-title {
  margin-top: 1.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  line-height: 1.2;
  color: #fff;
  max-width: 16ch;
}
.footer__title .elementor-heading-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
}
body .footer__menu .elementor-nav-menu,
.footer__links .elementor-icon-list-items {
  display: block;
  line-height: inherit;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
body .footer__menu .elementor-nav-menu > li,
.elementor-widget.footer__links .elementor-icon-list-item {
  display: block;
  line-height: inherit;
  margin: 0;
  padding: 0;
}
body .footer__menu .elementor-nav-menu > li + li,
.elementor-widget.footer__links .elementor-icon-list-item + .elementor-icon-list-item { margin-top: 0.7rem; }
body .site-footer .footer__menu .elementor-nav-menu .elementor-item,
.elementor-widget.footer__links .elementor-icon-list-item > a {
  display: inline;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  white-space: normal;
  transition: color 0.3s var(--ease);
}
body .site-footer .footer__menu .elementor-nav-menu .elementor-item::before,
body .site-footer .footer__menu .elementor-nav-menu .elementor-item::after { display: none; }
.footer__links .elementor-icon-list-text { color: inherit; padding: 0; transition: none; }
body .site-footer .footer__menu .elementor-nav-menu .elementor-item:hover,
.elementor-widget.footer__links .elementor-icon-list-item > a:hover { color: var(--gold-light); }
.e-con.footer__bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer__bottom .elementor-widget-text-editor { flex: 0 1 auto; width: auto; }
@media (max-width: 860px) {
  .e-con.footer__top { grid-template-columns: 1fr 1fr; }
  .e-con.footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .e-con.footer__top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.e-con.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(2, 26, 42, 0.6);
  border: 1px solid rgba(233, 200, 123, 0.6);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.e-con.whatsapp-fab:hover { transform: translateY(-3px); background: var(--navy-700); }
.whatsapp-fab__icon svg { width: 26px; height: 26px; }

/* ---------- Reveal animations ---------- */
.reveal--d08 { --delay: 0.08s; }
.reveal--d10 { --delay: 0.1s; }
.reveal--d12 { --delay: 0.12s; }
.reveal--d15 { --delay: 0.15s; }
.reveal--d16 { --delay: 0.16s; }
.reveal--d20 { --delay: 0.2s; }
.reveal--d30 { --delay: 0.3s; }
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
html.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }

/* Elementor editor: never hide content while editing */
body.elementor-editor-active .reveal,
body.elementor-editor-active .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
body.elementor-editor-active .e-con.form-success[hidden] { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal, html.js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .hero__img img { transform: none; }
}

/* ==========================================================================
   Project detail page: single `proyecto` Theme Builder template + tipología loop item.
   Breadcrumb, stats, legend, master plan, gallery and lightbox markup come from the
   [pi_migas], [pi_cifras], [pi_lista], [pi_plano] and [pi_galeria] shortcodes (template markup),
   so their template rules apply unchanged. Widget-based parts are adapted to Elementor markup.
   ========================================================================== */
/* Template inline styles */
.pi-mt-2 .elementor-heading-title { margin-top: 2rem; }
/* Template sections are block flow: margins between the section head and the band below collapse */
.elementor-location-single > .e-con.section > .e-con.container:not(.split) { display: block; }
.elementor-widget.pi-mt-15 { margin-top: 1.5rem; }
.eyebrow--flex .elementor-heading-title { display: flex; }

/* Page hero */
.e-con.hero--page { min-height: 88vh; min-height: 88svh; }
/* Aerial imagery is busy: deepen the overlay behind the copy. */
.hero--page .e-con.hero__media::after {
  background:
    linear-gradient(180deg, rgba(2, 26, 42, 0.45) 0%, rgba(2, 26, 42, 0.25) 30%, rgba(2, 26, 42, 0.85) 100%),
    linear-gradient(90deg, rgba(2, 26, 42, 0.75) 0%, rgba(2, 26, 42, 0.2) 70%);
}
.hero--page .breadcrumb,
.hero--page .eyebrow .elementor-heading-title { text-shadow: 0 1px 12px rgba(2, 26, 42, 0.6); }
.hero--page .hero__title .elementor-heading-title { max-width: 14ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span[aria-hidden] { color: var(--gold-light); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.stat { padding: 2rem 1.25rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__value sup { font-size: 0.45em; top: -0.9em; }
.stat__label {
  margin-top: 0.75rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.legend {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  columns: 2;
  column-gap: 2rem;
}
.legend li {
  break-inside: avoid;
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--ink);
}
.legend li span {
  font-family: var(--font-serif);
  color: var(--gold);
  min-width: 1.6rem;
}
.section--navy .legend li { color: rgba(255, 255, 255, 0.88); border-color: var(--line-light); }
.section--navy .legend li span { color: var(--gold-light); }
@media (max-width: 520px) { .legend { columns: 1; } }

.masterplan-figure {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
}
.masterplan-figure button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.masterplan-figure figcaption {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Tipologías: Loop Grid (query pi_tipologias) + loop item "Tipología · tarjeta" */
.elementor-widget.houses .elementor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.houses .e-loop-item { display: flex; }
.houses .e-loop-item > .e-con.house { flex: 1 1 auto; }
.houses .elementor-loop-container > .e-loop-item:nth-of-type(3n + 2) > .reveal { --delay: 0.1s; }
.houses .elementor-loop-container > .e-loop-item:nth-of-type(3n) > .reveal { --delay: 0.2s; }
.e-con.house {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.e-con.house:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -35px rgba(2, 26, 42, 0.45); }
.e-con.house__media { position: relative; display: block; flex: none; aspect-ratio: 4 / 3; overflow: hidden; }
.house__media > .house__img { height: 100%; }
.house__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.house:hover .house__img img { transform: scale(1.05); }
.house__media > .elementor-widget.house__tag { position: absolute; top: 1rem; left: 1rem; width: auto; }
.house__tag .elementor-heading-title {
  display: block;
  padding: 0.4rem 0.75rem;
  background: var(--navy-950);
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.e-con.house__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.house__title .elementor-heading-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.e-con.house__area {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.house__area > .elementor-widget { width: auto; }
.house__area-value .elementor-heading-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--navy);
}
.house__area-label .elementor-heading-title {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.house__features {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}
.house__features li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.93rem;
  color: var(--muted);
}
.house__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
@media (max-width: 1000px) { .elementor-widget.houses .elementor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .elementor-widget.houses .elementor-grid { grid-template-columns: 1fr; } }

/* Beach Club caption on navy (template inline style) */
.section--navy .split__caption .elementor-heading-title { color: rgba(255, 255, 255, 0.75); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 10vw + 60px, 260px);
  gap: clamp(0.5rem, 0.3rem + 0.8vw, 1rem);
  list-style: none;
  padding: 0;
}
.gallery li { grid-column: span 4; position: relative; }
.gallery li:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery li:nth-child(2) { grid-column: span 5; }
.gallery li:nth-child(3) { grid-column: span 5; }
.gallery li:nth-child(7) { grid-column: span 6; }
.gallery li:nth-child(8) { grid-column: span 6; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--navy-900);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.05); opacity: 0.88; }
.gallery__btn::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(233, 200, 123, 0);
  transition: border-color 0.5s var(--ease);
}
.gallery__btn:hover::after,
.gallery__btn:focus-visible::after { border-color: rgba(233, 200, 123, 0.8); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .gallery li, .gallery li:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 0.5rem + 3vw, 4rem);
  background: rgba(2, 26, 42, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.lightbox__figure { margin: 0; max-width: min(1400px, 100%); text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  margin-inline: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__caption {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(2, 26, 42, 0.6);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox__btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  top: 1.6rem;
  left: 1.25rem;
  font-family: var(--font-serif);
  color: var(--gold-light);
}
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}

/* CTA band (on-dark) */
.e-con.cta-band {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
  text-align: center;
}
.e-con.cta-band__bg { position: absolute; inset: 0; width: auto; display: block; }
.cta-band__bg > .cta-band__img { height: 100%; }
.cta-band__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.e-con.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(2, 26, 42, 0.75) 0%, rgba(2, 26, 42, 0.35) 70%);
}
.cta-band .eyebrow .elementor-heading-title { justify-content: center; }
.cta-band > .e-con.container { position: relative; z-index: 2; display: block; }
.cta-band .heading .elementor-heading-title { margin-inline: auto; max-width: 18ch; }
.elementor .cta-band .elementor-widget.lead { margin: 1.5rem auto 0; max-width: 52ch; color: rgba(255, 255, 255, 0.85); }
.cta-band .e-con.hero__actions { justify-content: center; }

/* T6 QA: Elementor loop items set word-break:break-word on all descendants; template keeps normal breaking (1024px: 'Tipologias' and house area values wrapped). */
body .e-loop-item * { word-break: normal; }
.e-con.house__area > .elementor-widget { min-width: auto; }
