/* Pelican Hill reference, adapted to MAREA. Owner direction: 15 Nov 2026.
   Classic Bembo/Proxima reference profile. Licensed web assets are required for publication. */
:root {
  --heading-h1-leading: 1.25;
  --heading-h2-leading: 1.25;
  --heading-h3-leading: 1.5;
  --heading-h4-leading: 1.5;
  --heading-h5-leading: 1.5;
  --heading-h1-tracking: .09em;
  --heading-h2-tracking: 0;
  --heading-h3-tracking: 0;
  --heading-h4-tracking: .15em;
  --heading-h5-tracking: .1em;
  --font-editorial: var(--serif);
  --font-interface: var(--sans);
  --label-tracking: .3em;
  --motion-button-frame: 200ms;
  --footer-wave-height: 330.24px;
  --footer-wave-opacity: .08;
}

body[data-editorial-style] #contenido h1 {
  font-weight: 400;
  line-height: var(--heading-h1-leading);
  letter-spacing: var(--heading-h1-tracking);
}
body[data-editorial-style] #contenido h2 {
  font-weight: 400;
  letter-spacing: var(--heading-h2-tracking);
}
body[data-editorial-style] #contenido :is(h3,h4) { font-weight: 400; }

/* The reference's editorial section uses serif reading copy as well as a
   serif heading. UI labels are a separate sans role, not small headings. */
body[data-editorial-style] #contenido [data-type-role="editorial"] {
  font-family: var(--font-editorial);
  font-size: var(--copy-body-size);
  font-style: normal;
  font-weight: 400;
  line-height: var(--copy-body-leading);
  letter-spacing: normal;
  text-transform: none;
}
body[data-editorial-style] #contenido [data-type-role="label"] {
  font-family: var(--font-interface);
  font-size: var(--copy-label-size);
  font-style: normal;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}
body[data-editorial-style] #contenido [data-type-role="interface"],
body[data-editorial-style] :is(form,nav,input,select,textarea) {
  font-family: var(--font-interface);
}
body[data-editorial-style] #contenido :is(h1,h2,h3,h4,p) em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
body[data-editorial-style] #contenido [data-type-role="editorial"] strong {
  font-weight: inherit;
}

/* The same expanding outer frame as the reference; transform/opacity keep
   interrupted hovers smooth without animating layout or moving the label. */
body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta) {
  position: relative;
  overflow: visible;
  border-radius: 0;
  font-family: var(--serif);
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
  min-height: 44px;
  padding: 12px 20px 10px;
  transition: transform var(--motion-press) var(--ease-out);
}
/* One type contract for the same CTA component across legacy templates,
   including submit and success/error actions inside forms. */
body[data-editorial-style] :is(#contenido.template-site,.site-header) :is(.button,.st-action,.header-cta)[data-type-role="cta"] {
  font-family: var(--serif);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
}
body[data-editorial-style] [data-type-role="cta"]>span:not([aria-hidden]) {
  font-size: inherit;
  line-height: inherit;
}
body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta)::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--button-frame, var(--ocean));
  pointer-events: none;
  opacity: 0;
  transform: scale(.97,.84);
  transition: transform var(--motion-button-frame) ease-in-out, opacity var(--motion-button-frame) ease-in-out;
}
body[data-editorial-style] :is(.hero--home,.cta-panel,.final-cta,.st-close,.sl-close) { --button-frame: var(--sand); }
body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta):focus-visible::after { opacity: 1; transform: none; transition: none; }
body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta):focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta):active { transform: scale(.98); }
@media (hover:hover) and (pointer:fine) {
  body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta):hover { transform: none; }
  body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta):hover::after { opacity: 1; transform: none; }
  body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta):hover > span { transform: none; }
}

.site-footer.site-footer--pelican {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: 54px clamp(24px,7.5vw,160px) 28px;
  background: var(--beige);
  color: var(--ocean);
  border-top: 0;
}
.footer-inner { position: relative; z-index: 1; max-width: 1760px; margin-inline: auto; }
/* Four continuously changing sine curves, measured from the NILS footer.
   Keep its 280-unit geometry and responsive height; use MAREA's ocean blue. */
.footer-waves { position: absolute; z-index: 0; width: 100%; bottom: calc(25% - 24px); left: 0; pointer-events: none; color: var(--ocean); }
.footer-waves canvas { display: block; width: 100%; height: var(--footer-wave-height); opacity: var(--footer-wave-opacity); }
@media(max-width:1920px) { :root { --footer-wave-height: 300px; } }
@media(max-width:1600px) { :root { --footer-wave-height: 270.24px; } }
@media(max-width:1366px) { :root { --footer-wave-height: 240px; } }
@media(max-width:1024px) { :root { --footer-wave-height: 300px; } }
@media(max-width:480px) { :root { --footer-wave-height: 288px; } }
@media(max-width:350px) { :root { --footer-wave-height: 240px; } }
.footer-utility { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 58px; }
.footer-project-cta { min-width: 0; text-align: center; }
.footer-social-icons { display: flex; align-items: center; gap: 22px; }
.footer-social-icons a { display: grid; place-items: center; width: 44px; height: 44px; }
.footer-social-icons a:hover { opacity: .7; }
.footer-social-icons svg { width: 23px; height: 23px; }
.footer-editorial-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 38px; padding: 18px 0; border-block: 1px solid var(--line); }
.footer-editorial-nav a { display: flex; align-items: center; min-height: 44px; font: italic 400 1.5rem/1.4 var(--serif); text-decoration: none; }
.footer-editorial-nav a:hover,.footer-editorial-nav a:focus-visible { text-decoration: underline; text-underline-offset: .3em; }
.footer-offices { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,1.15fr) minmax(0,1fr); align-items: center; gap: 48px; padding-block: 54px; }
.footer-office { min-width: 0; }
.footer-office--riviera { text-align: right; }
.footer-office__label { margin: 0 0 14px; font: 400 var(--heading-h5)/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.footer-office__city { margin: 0 0 16px; font: italic 400 1.875rem/1.2 var(--serif); }
.footer-office address { font: normal 400 1rem/1.65 var(--sans); color: var(--muted); }
.footer-office__contact { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.footer-office__contact a { width: fit-content; padding-block: 4px; font-size: 1rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.footer-office__contact a:hover,.footer-office__contact a:focus-visible { text-decoration: underline; }
.footer-office--riviera .footer-office__contact a { margin-left: auto; }
.footer-centered-brand { display: block; width: min(100%,330px); margin-inline: auto; padding: 24px 0; }
.footer-centered-brand img { display: block; width: 78%; height: auto; margin-inline: auto; }
.site-footer--pelican .footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.footer-legal p { margin: 0 0 10px; }
.footer-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
.footer-legal-links>a { display: inline-flex; align-items: center; min-height: 44px; text-transform: uppercase; letter-spacing: .025em; }
.site-footer--pelican .footer-language-links { display: flex; align-items: center; gap: 18px; }
.site-footer--pelican .footer-language-links a { min-height: 44px; }
.footer-partners { text-align: right; padding-top: 3px; margin-left: auto; }
.footer-partners p { margin: 0 0 11px; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-partners>div { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px 26px; }
.footer-partner { display: flex; align-items: center; justify-content: center; height: 41.6px; }
.footer-partner img { display: block; width: 100%; height: auto; max-height: 41.6px; object-fit: contain; }
.footer-partner--mls { width: 49.4px; }
.footer-partner--ampi { width: 40.3px; }
.footer-partner--inmobiliare { width: 96.2px; }
.footer-partner--highlevel { width: 92.3px; }
@media(max-width:1100px) {
  .site-footer.site-footer--pelican { padding-inline: 40px; }
  .footer-offices { gap: 24px; grid-template-columns: 1fr minmax(190px,.85fr) 1fr; }
  .site-footer--pelican .footer-bottom { flex-wrap: wrap; }
}
@media(max-width:700px) {
  :root { --heading-h1-tracking: .035em; }
  .site-footer.site-footer--pelican { padding: 40px 24px 28px; }
  .footer-utility { flex-direction: column; align-items: center; gap: 24px; padding-bottom: 32px; }
  body[data-editorial-style] .footer-project-cta { max-width: 100%; padding-inline: 15px; font-size: .8125rem; }
  .footer-social-icons { gap: 16px; }
  .footer-editorial-nav { flex-direction: column; align-items: center; gap: 0; padding-block: 18px; }
  .footer-editorial-nav a { font-size: 1.375rem; }
  .footer-offices { grid-template-columns: 1fr; gap: 38px; padding-block: 38px; text-align: center; }
  .footer-centered-brand { grid-row: 3; width: 245px; padding: 0; }
  .footer-office--riviera { text-align: center; }
  .footer-office__city { font-size: 1.75rem; }
  .footer-office__contact a,.footer-office--riviera .footer-office__contact a { margin-inline: auto; min-height: 44px; }
  .site-footer--pelican .footer-bottom { display: grid; justify-content: center; gap: 28px; text-align: center; }
  .footer-legal-links { justify-content: center; }
  .footer-partners { text-align: center; margin-left: 0; width: 100%; }
  .footer-partners>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-items: center; gap: 16px 22px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta),
  body[data-editorial-style] :is(.button,.st-action,.site-header .header-cta)::after { transition: none; transform: none; }
}
