/*
Theme Name: Constru North
Theme URI: https://construnorth.cl
Author: Constru North
Author URI: https://construnorth.cl
Description: Tema de bloques para Constru North, empresa constructora chilena. Claridad modular: minimalismo arquitectónico, motivos diagonales tipo brújula, Space Grotesk + Inter Tight.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: constru-north
*/

:root {
  --header-height: 6.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ============ UTILITY BAR ============ */
.utility-bar {
  min-height: 2.4rem;
  gap: 1.6rem;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.utility-phone a,
.utility-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--stone);
  transition: color 0.3s ease;
}

.utility-phone a:hover,
.utility-social a:hover {
  color: var(--wp--preset--color--compass-red);
}

.icon-phone,
.icon-instagram {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  background-color: currentColor;
  flex-shrink: 0;
}

.icon-phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.icon-instagram {
  width: 1.15em;
  height: 1.15em;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ============ HEADER ============ */
.site-header-group {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Note: no backdrop-filter/transform/filter on this element — any of those
     would create a containing block for position:fixed descendants (like the
     mobile nav overlay below), capping it to the header's own height instead
     of the full viewport. The blur is applied via ::before instead. */
  box-shadow: 0 1px 0 rgba(31,31,31,0.07), 0 12px 24px -20px rgba(31,31,31,0.18);
  transition: box-shadow 0.4s ease;
}

.site-header-group::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 2rem;
}

.site-header-brand {
  flex: 0 0 auto;
}

/* ---- Transparent-over-photo header on the homepage hero ---- */
/* Lifted out of normal flow so it floats over the full-bleed hero photo
   instead of pushing it down; becomes sticky again once solid/scrolled. */
body.has-hero-header .site-header-group {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: none;
}

body.has-hero-header .site-header-group.is-scrolled {
  box-shadow: 0 1px 0 rgba(31,31,31,0.07), 0 12px 24px -20px rgba(31,31,31,0.18);
}

body.has-hero-header .site-header-group:not(.is-scrolled) {
  box-shadow: none;
}

body.has-hero-header .site-header-group:not(.is-scrolled)::before {
  opacity: 0;
}

body.has-hero-header .site-header-group:not(.is-scrolled) .utility-bar {
  opacity: 0.9;
}

body.has-hero-header .site-header-group:not(.is-scrolled) .utility-phone a,
body.has-hero-header .site-header-group:not(.is-scrolled) .utility-social a {
  color: rgba(255,255,255,0.85);
}

body.has-hero-header .site-header-group:not(.is-scrolled) .site-header-brand img {
  filter: none;
}

body.has-hero-header .site-header-group:not(.is-scrolled) .site-header-brand {
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

body.has-hero-header .site-header-group:not(.is-scrolled) .site-nav a.wp-block-navigation-item__content {
  color: var(--wp--preset--color--white);
}

body.has-hero-header .site-header-group:not(.is-scrolled) .site-nav a.wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--white);
  background-color: rgba(255,255,255,0.14);
}

body.has-hero-header .site-header-group:not(.is-scrolled) .header-cta .wp-block-button__link {
  background-color: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--wp--preset--color--white) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.has-hero-header .site-header-group.is-scrolled .utility-bar,
body.has-hero-header .site-header-group.is-scrolled .site-header-brand img,
body.has-hero-header .site-header-group.is-scrolled .site-nav a.wp-block-navigation-item__content,
body.has-hero-header .site-header-group.is-scrolled .header-cta .wp-block-button__link {
  transition: color 0.4s ease, filter 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
}

.site-header-brand img {
  height: 4.5rem !important;
  max-width: 250px;
  object-fit: contain;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.site-header-brand a:hover img {
  transform: scale(1.03);
}

.site-nav .wp-block-navigation__container {
  gap: 0.4rem;
}

.site-nav a.wp-block-navigation-item__content {
  position: relative;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--carbon);
  padding: 0.55rem 1.1rem;
  border-radius: 5px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.site-nav a.wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.32rem;
  height: 2px;
  background: var(--wp--preset--color--compass-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a.wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--compass-red);
  background-color: rgba(193, 39, 45, 0.06);
}

.site-nav a.wp-block-navigation-item__content:hover::after {
  transform: scaleX(1);
}

/* Active page indicator */
.site-nav .current-menu-item > a.wp-block-navigation-item__content,
.site-nav a.wp-block-navigation-item__content.is-active {
  color: var(--wp--preset--color--compass-red);
}

.site-nav .current-menu-item > a.wp-block-navigation-item__content::after,
.site-nav a.wp-block-navigation-item__content.is-active::after {
  transform: scaleX(1);
}

/* ============ MOBILE NAV OVERLAY ============ */
.site-nav .wp-block-navigation__responsive-container-open {
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.site-nav .wp-block-navigation__responsive-container-open:hover {
  background-color: rgba(31,31,31,0.06);
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--wp--preset--color--carbon) !important;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding: 6.5rem 2rem 3rem;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  top: 1.5rem;
  right: 1.5rem;
  background-color: rgba(255,255,255,0.08);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
  background-color: var(--wp--preset--color--compass-red);
  transform: rotate(90deg);
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 0.3rem;
  align-items: flex-start;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  animation: mobile-link-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: 0.08s; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.16s; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.24s; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.32s; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.4s; }

@keyframes mobile-link-in {
  to { opacity: 1; transform: translateY(0); }
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 600;
  color: var(--wp--preset--color--white) !important;
  padding: 0.5rem 0;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content::after {
  display: none;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--compass-red) !important;
  background-color: transparent;
}

.header-cta a.wp-block-button__link {
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ============ BUTTON SYSTEM ============ */
.wp-block-button__link.wp-element-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem !important;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 2px 10px -4px rgba(31,31,31,0.28);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              background-color 0.35s ease,
              color 0.35s ease;
}

.wp-block-button__link.wp-element-button::after {
  content: '';
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 5 20 12 13 19'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 5 20 12 13 19'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-button__link.wp-element-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -12px rgba(31,31,31,0.4);
}

.wp-block-button__link.wp-element-button:hover::after {
  transform: translateX(4px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  box-shadow: none;
  border: 1.5px solid;
  background-color: transparent !important;
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.35s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  box-shadow: 0 16px 28px -14px rgba(31,31,31,0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link.has-carbon-color:hover {
  background-color: var(--wp--preset--color--carbon) !important;
  color: var(--wp--preset--color--white) !important;
  border-color: var(--wp--preset--color--carbon) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link.has-white-color:hover {
  background-color: var(--wp--preset--color--white) !important;
  color: var(--wp--preset--color--carbon) !important;
  border-color: var(--wp--preset--color--white) !important;
}

.hero-phone.wp-block-button .wp-block-button__link::after {
  display: none;
}

.hero-phone.wp-block-button .wp-block-button__link {
  box-shadow: none !important;
  padding: 0.4rem 0 !important;
}

.hero-phone.wp-block-button .wp-block-button__link:hover {
  transform: none;
}

/* ============ HERO — full-bleed cinematic ============ */
.hero-full {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 !important;
  margin-top: 0 !important;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-bg-media .hero-video,
.hero-bg-media .hero-video video {
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero-bg-media .hero-video video {
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-kenburns img {
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.13); }
}

.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,15,22,0.76) 0%, rgba(10,15,22,0.44) 48%, rgba(10,15,22,0.16) 78%), linear-gradient(180deg, rgba(8,12,18,0.34) 0%, rgba(8,12,18,0.12) 42%, rgba(8,12,18,0.78) 100%);
  pointer-events: none;
}

.hero-full-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 0 6.5rem;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-full .hero-headline {
  max-width: 920px;
  font-size: clamp(3rem, 6.2vw, 6.2rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em;
  text-wrap: balance;
  margin-block: 1.1rem 1.4rem;
}

@keyframes hero-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-full .hero-eyebrow {
  color: rgba(255,255,255,0.88) !important;
}

.hero-full .hero-headline {
  color: var(--wp--preset--color--white);
}

.hero-full .hero-headline .accent-word {
  font-family: var(--wp--preset--font-family--accent);
  font-style: italic;
  font-weight: 500;
}

.hero-full .hero-subtext {
  color: rgba(255,255,255,0.86) !important;
  max-width: 600px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 2rem;
  gap: 0.8rem;
}

.hero-actions .wp-block-button__link {
  min-width: 190px;
  text-align: center;
  padding: 1rem 1.5rem;
}

.hero-full .hero-actions .wp-block-button.is-style-outline .wp-block-button__link {
  border-radius: 999px;
  background-color: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.7);
  color: var(--wp--preset--color--white) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-full .hero-actions .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--white) !important;
  color: var(--wp--preset--color--carbon) !important;
}

.hero-full .hero-actions .wp-block-button__link.has-compass-red-background-color {
  border-radius: 999px;
}

.hero-full .hero-phone {
  color: rgba(255,255,255,0.86) !important;
  border-color: rgba(255,255,255,0.4);
}

.hero-full .hero-phone:hover {
  color: var(--wp--preset--color--white) !important;
  border-color: var(--wp--preset--color--white);
}

.hero-coords {
  position: absolute;
  z-index: 3;
  bottom: 1.75rem;
  right: 2rem;
  text-align: right;
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--white) !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  opacity: 0;
  animation: fade-in-late 1s ease-out 1.1s forwards;
  line-height: 1.5;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--stone) !important;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp--preset--color--compass-red);
  flex-shrink: 0;
  display: inline-block;
  animation: pulse-needle 2.6s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem 0 !important;
}

.hero-headline em,
.hero-headline .accent-word {
  font-style: normal;
  color: var(--wp--preset--color--compass-red);
}

.hero-subtext {
  font-size: clamp(1rem, 1.15vw, 1.15rem) !important;
  line-height: 1.6;
  color: #4a4a47 !important;
  max-width: 460px;
}

.hero-actions .wp-block-button__link {
  padding: 1.05rem 2.1rem !important;
  transition: background 0.35s ease, transform 0.25s ease, box-shadow 0.35s ease;
}

.hero-actions .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(193, 39, 45, 0.5);
}

.hero-phone {
  font-size: 0.9rem !important;
  font-weight: 500;
  border-bottom: 1px solid var(--wp--preset--color--stone);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.hero-phone:hover {
  color: var(--wp--preset--color--compass-red) !important;
  border-color: var(--wp--preset--color--compass-red);
}

/* ============ ANIMATIONS FROM HERO ============ */
@keyframes fade-in-late {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-needle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

/* ============ GENERIC ENTRANCE / SCROLL ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 48px -24px rgba(31,31,31,0.38);
  border-color: rgba(31,31,31,0.02);
}

/* ============ SECTION TYPOGRAPHY RHYTHM ============ */
.section-heading {
  font-size: clamp(2rem, 3.4vw, 2.8rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em;
}

.section-lede {
  font-size: clamp(1.02rem, 1.2vw, 1.15rem) !important;
  line-height: 1.65;
  max-width: 620px;
}

/* ============ DIAGONAL SECTION DIVIDER ============ */
.angled-top {
  clip-path: polygon(0 2.4vw, 100% 0, 100% 100%, 0 100%);
  padding-top: 4.75rem !important;
}
.angled-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 2.4vw));
  padding-bottom: 4.75rem !important;
}
@media (max-width: 782px) {
  .angled-top,
  .angled-bottom {
    clip-path: none;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* ============ SERVICE MARKERS ============ */
.service-card {
  border: 1px solid rgba(31,31,31,0.1);
  border-radius: 10px;
  padding: 2.5rem 2rem !important;
  height: 100%;
  background: var(--wp--preset--color--white);
  position: relative;
  box-shadow: 0 1px 2px rgba(31,31,31,0.04);
}

.service-marker {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.85rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--compass-red) !important;
  border: 1px solid var(--wp--preset--color--compass-red);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.5rem 0 !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

.service-card.hover-lift:hover .service-marker {
  background-color: var(--wp--preset--color--compass-red);
  color: var(--wp--preset--color--white) !important;
}

/* ============ PROJECT GALLERY ============ */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.project-card figure {
  margin: 0;
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 100%, 0 100%);
}

.project-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,31,31,0) 40%, rgba(31,31,31,0.82) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover figure::after {
  opacity: 1;
}

.project-caption {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.3rem;
  z-index: 2;
  font-size: 0.9rem !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--white) !important;
  margin: 0 !important;
  padding-left: 0.8rem !important;
  border-left: 2px solid var(--wp--preset--color--compass-red);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Masonry-style projects grid (proyectos page) */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-gallery-grid .project-card:nth-child(3n+1) figure img,
.project-gallery-grid .project-card:nth-child(3n+1) figure {
  height: 100%;
}
.project-gallery-grid .project-card:nth-child(3n+1) {
  grid-row: span 2;
}
.project-gallery-grid .project-card:nth-child(3n+1) img {
  height: 100%;
  min-height: 100%;
}
@media (max-width: 782px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-gallery-grid .project-card:nth-child(3n+1) {
    grid-row: auto;
  }
  .project-gallery-grid .project-card:nth-child(3n+1) img {
    height: 320px;
  }
}

/* ============ ABOUT SECTION ============ */
.about-section {
  position: relative;
}

.about-north-mark {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.85rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--compass-blue) !important;
}

/* ============ EDITORIAL ACCENT (serif italic) ============ */
.accent-serif,
.pull-quote {
  font-family: var(--wp--preset--font-family--accent);
  font-style: italic;
  font-weight: 500;
}

.pull-quote {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.005em;
}

.page-title-tagline {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important;
  line-height: 1.4;
  margin: 0.75rem 0 0 0 !important;
  color: var(--wp--preset--color--stone) !important;
}

/* ============ FULL-BLEED PHOTO STORY BAND ============ */
.story-band {
  position: relative;
  overflow: hidden;
  min-height: 68vh;
  display: flex;
  align-items: center;
  color: var(--wp--preset--color--white);
}

.story-band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.story-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
  transform: translateY(var(--parallax-y, 0)) scale(var(--parallax-scale, 1.06));
}

.story-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(15,15,15,0.86) 0%, rgba(15,15,15,0.62) 45%, rgba(15,15,15,0.4) 100%);
  pointer-events: none;
}

.story-band-content {
  position: relative;
  z-index: 2;
}

.story-band .about-north-mark {
  color: rgba(255,255,255,0.75) !important;
}

.story-band .pull-quote {
  color: var(--wp--preset--color--white);
}

/* ============ CONTACT ============ */
.contact-band {
  position: relative;
}

.contact-item-label {
  font-size: 0.78rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--stone) !important;
  margin-bottom: 0.4rem !important;
}

.contact-item-value {
  font-size: 1.15rem !important;
  font-weight: 600;
}

.contact-item-value a:hover {
  color: var(--wp--preset--color--compass-red);
}

/* Contact page: large CTA card + details card */
.contact-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 3.2rem !important;
}

.contact-cta-card::before {
  content: '';
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  pointer-events: none;
}

.contact-details-card {
  border: 1px solid rgba(31,31,31,0.1);
  border-radius: 12px;
  padding: 3.2rem !important;
  height: 100%;
}

.contact-details-row {
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(31,31,31,0.08);
}

.contact-details-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-details-row:first-child {
  padding-top: 0;
}

/* ============ CLOSING CTA / COMPASS BAND ============ */
.compass-band {
  position: relative;
  overflow: hidden;
}

.compass-band .wp-block-group__inner-container,
.compass-band > .wp-block-group {
  position: relative;
  z-index: 2;
}

.compass-band::before {
  content: '';
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.compass-band::after {
  content: '';
  position: absolute;
  right: 2.2rem;
  top: calc(50% - 11rem);
  width: 1px;
  height: 22rem;
  background: rgba(255,255,255,0.12);
  z-index: 1;
  pointer-events: none;
}

/* ============ CARD LAYOUTS ============ */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* ============ FOOTER ============ */
.site-footer-group {
  position: relative;
  border-top: 1px solid rgba(31,31,31,0.1);
}

.site-footer-group::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 6rem;
  height: 2px;
  background: var(--wp--preset--color--compass-red);
}

.footer-brand img {
  height: 2rem;
  width: auto;
}

.footer-link {
  position: relative;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--wp--preset--color--compass-red) !important;
}

/* ============ PAGE TITLE (page.html) ============ */
.page-title-band {
  position: relative;
  border-bottom: 1px solid rgba(31,31,31,0.08);
  overflow: hidden;
}

.page-title-band::after {
  content: '';
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(31,31,31,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.page-title-band .wp-block-post-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
}

.page-title-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--stone) !important;
}

.page-title-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp--preset--color--compass-red);
  display: inline-block;
  flex-shrink: 0;
}

/* ============ LIGHTBOX (Proyectos gallery) ============ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,15,15,0.94);
  padding: 2rem;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--wp--preset--color--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2rem;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--wp--preset--color--compass-red);
  border-color: var(--wp--preset--color--compass-red);
}

@media (max-width: 782px) {
  .lightbox-prev, .lightbox-next {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.5rem;
  }
  .lightbox-close {
    width: 2.4rem;
    height: 2.4rem;
    top: 1rem;
    right: 1rem;
  }
}

/* ============ FLOATING WHATSAPP BUTTON ============ */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25D366;
  color: var(--wp--preset--color--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 782px) {
  :root { --header-height: 5.2rem; }
  .site-header-group { padding-inline: 1rem !important; }
  .utility-bar { display: none !important; }
  .site-header-inner { min-height: var(--header-height); gap: 0.75rem; }
  .site-header-brand img { height: 3.2rem !important; max-width: 175px; }
  .header-cta { display: none !important; }
  .hero-full {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero-bg-media .hero-video video {
    object-position: 58% center;
  }
  .hero-full-content {
    padding: 7rem 0 6rem;
  }
  .hero-full .hero-headline {
    font-size: clamp(2.65rem, 13vw, 4.3rem) !important;
    line-height: 1 !important;
  }
  .hero-full .hero-subtext {
    font-size: 1rem !important;
    max-width: 34rem;
  }
  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }
  .hero-coords {
    left: 1.5rem;
    right: auto;
    text-align: left;
    bottom: 1.25rem;
  }
  .story-band {
    min-height: 56vh;
  }
  .compass-band::before,
  .compass-band::after {
    display: none;
  }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
  }
  .utility-bar {
    justify-content: center !important;
    flex-wrap: wrap;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-full-content,
  .hero-coords,
  .animate-on-scroll,
  .fade-up,
  .fade-in,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
  }
  .hero-eyebrow-dot {
    animation: none !important;
  }
  .hero-kenburns img {
    animation: none !important;
    transform: none !important;
  }
  .story-band-media img,
  .hero-parallax img,
  .parallax-img {
    transform: none !important;
  }
  .project-caption {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ============ EDITOR VISIBILITY ============ */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > *,
.editor-styles-wrapper .hero-full-content,
.editor-styles-wrapper .hero-coords,
.editor-styles-wrapper .project-caption,
.editor-styles-wrapper .wp-block-navigation-item {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  clip-path: inset(0 0 0 0) !important;
}

.editor-styles-wrapper .hero-kenburns img {
  animation: none !important;
  transform: none !important;
}

.editor-styles-wrapper .angled-top,
.editor-styles-wrapper .angled-bottom {
  clip-path: none !important;
}

.editor-styles-wrapper .whatsapp-float {
  display: none !important;
}
