/* ═══════════════════════════════════════════════════════════════════
   MAKENA BUILDING GROUP — Components
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  /* Spring press effect */
  transition:
    transform .18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow .18s ease,
    background .2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(168,137,94,.35);
}

.btn-primary:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.2) 50%,
    transparent 100%
  );
  transform: translateX(-110%);
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover::after {
  transform: translateX(110%);
}

/* Loading state for buttons */
.btn-primary.loading {
  pointer-events: none;
  opacity: .7;
}

.btn-primary.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(12,12,10,.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-right: .5rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .9rem 1.8rem;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s, color .2s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Header / Navigation ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: background .3s, box-shadow .3s;
}

.site-header.scrolled {
  background: rgba(12, 12, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,12,10,.6) 0%, transparent 100%);
  pointer-events: none;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logo { display: flex; align-items: center; gap: .75rem; }
.logo-img { height: 48px; width: auto; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0;
  line-height: 1;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--gold, #C9A86A);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Desktop Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--text);
  transition: color .2s;
  padding: .5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.has-dropdown {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
}

.nav-link:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.2rem;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--text);
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover {
  background: rgba(168, 137, 94, 0.08);
  color: var(--gold);
}

.nav-dropdown a:hover {
  background: var(--border);
  color: var(--gold);
}

.nav-dropdown a svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

/* CTA Button in Nav */
.btn-nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: .6rem 1.4rem;
  font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background .2s;
}

.btn-nav-cta:hover {
  background: var(--gold-l);
  color: var(--ink) !important;
}

.btn-nav-cta::after { display: none; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 48px;
  height: 48px;
  padding: 0 16px 0 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(245,240,232,.25);
  border-radius: 8px;
  cursor: pointer;
  z-index: 500;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background: rgba(168,137,94,.18);
  border-color: var(--gold, #A8895E);
  transform: scale(1.03);
}

.mobile-toggle:active {
  transform: scale(0.97);
}

.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(0.65, 0, 0.35, 1),
              opacity .25s ease,
              background .2s ease;
  transform-origin: center;
  position: absolute;
  left: 0;
}

.mobile-toggle .bar:nth-child(1) { top: 0; }
.mobile-toggle .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle .bar:nth-child(3) { bottom: 0; }

.mobile-toggle .toggle-label {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--white);
  transition: color .2s ease;
  line-height: 1;
}

.mobile-toggle.active .toggle-label {
  color: var(--gold, #A8895E);
}

.mobile-toggle.active .bar {
  background: var(--gold, #A8895E);
}

.mobile-toggle.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
.mobile-toggle.active .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink2);
  z-index: 400;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5rem;
  gap: 0.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.mobile-nav-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  width: 260px;
  text-align: center;
}

.mobile-nav-header .logo-name { color: var(--white); font-size: 1.6rem; font-weight: 500; }
.mobile-nav-header .logo-tag { color: var(--gold, #C9A86A); }

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--text);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  width: 260px;
  text-align: center;
  transition: color .2s, background .2s;
}
.mobile-nav a:hover { color: var(--gold); }

.mobile-nav a:hover { color: var(--gold); }

/* ─── Footer ─── */
.site-footer {
  background: var(--ink2);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand { max-width: 300px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img { height: 44px; width: auto; }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}

.footer-social a:hover {
  border-color: var(--gold);
  background: rgba(184,151,90,.1);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--text);
}

.footer-column h4 {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-links a {
  font-size: .85rem;
  color: var(--text);
  transition: color .2s;
}

.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item span {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 4rem auto 0;
  padding: 1.5rem 4rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--text);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--text);
  transition: color .2s;
}

.footer-legal a:hover { color: var(--gold); }

/* ─── Service Card ─── */
.svc {
  background: var(--panel);
  padding: 2.8rem 2.4rem;
  position: relative;
  overflow: hidden;
  transition:
    background .3s ease,
    transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow .3s ease;
  grid-column: span 6;
}

.svc:hover {
  background: #1E1E18;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.svc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold-d), var(--gold), var(--gold-l));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc:hover::before { transform: scaleX(1); }

.svc-num {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: var(--border);
  letter-spacing: .15em;
  margin-bottom: 2rem;
}

.svc-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: border-color .3s;
}

.svc:hover .svc-icon { border-color: var(--gold); }

.svc-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: .8rem;
  line-height: 1.2;
}

.svc-desc {
  font-family: var(--font-main);
  font-size: .82rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.svc-link {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
}

.svc:hover .svc-link { gap: .8rem; }

.svc-arrow {
  position: absolute;
  bottom: 2.4rem;
  right: 2.4rem;
  font-size: 1.2rem;
  color: var(--border);
  transition: color .3s, transform .3s;
}

.svc:hover .svc-arrow {
  color: var(--gold);
  transform: translate(4px, -4px);
}

/* ─── Portfolio Card ─── */
.port-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* Spring tilt on hover via JS */
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease;
}

.port-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  z-index: 2;
}

.port-card:nth-child(1) { grid-row: span 2; aspect-ratio: 3/4; }
.port-card:not(:nth-child(1)) { aspect-ratio: 4/3; }

.port-img {
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}

.port-card:hover .port-img { transform: scale(1.07); }

.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,10,.9) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
}

.port-card:hover .port-overlay { opacity: 1; }

.port-num {
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: .4rem;
}

.port-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white);
}

.port-loc {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  color: var(--sand);
  margin-top: .2rem;
}

.port-expand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: white;
  opacity: 0;
  transition:
    opacity .3s ease,
    background .2s ease,
    transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.port-card:hover .port-expand {
  opacity: 1;
  background: var(--gold);
  transform: scale(1.1) rotate(5deg);
}

/* Loading skeleton for portfolio cards */
.port-card.loading .port-img {
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.port-card.loading .port-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245,240,232,.06) 50%, transparent 100%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* ─── Empty state for portfolio ─── */
.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  border: 1px dashed var(--border);
}

.portfolio-empty-icon {
  font-size: 2.5rem;
  color: var(--border);
  margin-bottom: 1rem;
  display: block;
}

.portfolio-empty h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: .5rem;
}

.portfolio-empty p {
  font-size: .85rem;
  color: var(--border);
}

/* Portfolio filter */
.portfolio-filter {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  width: fit-content;
}

.pf-btn {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .55rem 1.2rem;
  color: var(--text);
  border-right: 1px solid var(--border);
  transition: background .2s, color .2s;
}

.pf-btn:last-child { border-right: none; }
.pf-btn.active,
.pf-btn:hover { background: var(--gold); color: var(--ink); }

/* ─── Process Step ─── */
.proc-step {
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}

.proc-step.visible { opacity: 1; transform: translateY(0); }

.proc-num {
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  background: var(--ink);
  margin-bottom: 1.5rem;
  position: relative;
}

.proc-num::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(184,151,90,.2);
}

.proc-title {
  font-family: var(--font-main);
  font-size: .92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .5rem;
}

.proc-desc {
  font-family: var(--font-main);
  font-size: .78rem;
  color: var(--text);
  line-height: 1.65;
}

/* ─── Why Us Items ─── */
.why-list { display: flex; flex-direction: column; }

.why-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.8rem 0;
  border-bottom: 1px solid #D4C4A8;
  transition: padding-left .25s;
  cursor: default;
}

.why-item:first-child { border-top: 1px solid #D4C4A8; }
.why-item:hover { padding-left: .6rem; }

.why-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: #C8BA9E;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  transition: color .2s;
}

.why-item:hover .why-num { color: var(--gold-d); }

.why-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}

.why-desc {
  font-family: var(--font-main);
  font-size: .82rem;
  color: #6A5A4A;
  line-height: 1.7;
}

.why-quote {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  border-left: 3px solid var(--gold-d);
  padding-left: 1.8rem;
  margin-bottom: 3rem;
}

.cred-cards { display: flex; flex-direction: column; gap: .8rem; }

.cred-card {
  background: var(--ink);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
}

.cred-title {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}

.cred-desc {
  font-family: var(--font-main);
  font-size: .82rem;
  color: var(--text);
}

/* ─── WhatsApp Float ─── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s;
}

.wa-float:hover { transform: scale(1.1); }

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: white;
}

/* ─── Side Nav Dots ─── */
#side-nav {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.sn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  transition: background .2s, transform .2s, width .2s;
  position: relative;
}

.sn-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 6px;
  transform: scale(1.5);
}

.sn-dot:hover { background: var(--gold); border-color: var(--gold); }

.sn-label {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--ink2);
  padding: .25rem .6rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.sn-dot:hover .sn-label { opacity: 1; }

/* ─── Page Hero ─── */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .4;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 60%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 4rem 5rem;
  width: 100%;
}

.page-hero-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.page-hero-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.page-hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero-h1 em { font-style: italic; color: var(--gold); }

.page-hero-sub {
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--text);
  max-width: 500px;
  line-height: 1.7;
}

/* ─── Preloader ─── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: var(--z-preloader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .5s, visibility .5s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 70px;
  height: 70px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 1.5rem;
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white);
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  margin-top: 2rem;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 1.5s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Contact Info Cards ─── */
.contact-info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s;
}

.contact-info-card:hover { border-color: var(--gold); }

.contact-icon-box {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-info-card h4 {
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .3rem;
}

.contact-info-card p {
  font-size: .82rem;
  color: var(--text);
  margin: 0;
}

/* ─── Form Elements ─── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .6rem;
  transition: color .2s ease;
}

.form-group:focus-within .form-label {
  color: var(--gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-main);
  font-size: .9rem;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .15s ease;
  outline: none;
  border-radius: 0;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--gold-d);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168,137,94,.12), inset 0 0 0 1px var(--gold);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--border);
}

/* Error state */
.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #c45c5c;
  box-shadow: 0 0 0 3px rgba(196,92,92,.1);
}

.form-group.error .form-label {
  color: #c45c5c;
}

.form-error-msg {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  color: #c45c5c;
  margin-top: .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.form-group.error .form-error-msg {
  opacity: 1;
  transform: translateY(0);
}

/* Loading state */
.form-group.loading .form-input {
  pointer-events: none;
  opacity: .6;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9080' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Success state */
.form-group.success .form-input {
  border-color: #4a9b6d;
  box-shadow: 0 0 0 3px rgba(74,155,109,.1);
}

.form-group.success .form-label {
  color: #4a9b6d;
}

/* ─── Image Visual Blocks (about visual grid) ─── */
.av1 { grid-row: 1/3; border-radius: 2px; overflow: hidden; position: relative; }
.av2 { border-radius: 2px; overflow: hidden; position: relative; }
.av3 { border-radius: 2px; overflow: hidden; position: relative; }

.av-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,10,.5) 0%, transparent 50%);
}

.av-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--border);
}

.img-ph-1 { background: linear-gradient(135deg,#2A2820,#1A1810); }
.img-ph-2 { background: linear-gradient(135deg,#1E1C18,#2A2820); }
.img-ph-3 { background: linear-gradient(135deg,#241E18,#1A1810); }
/* ══════════════════════════════════════════
   GALLERY LIGHTBOX
══════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.97);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  z-index: 10;
}

.lightbox-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
}

.lightbox-counter {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  flex: 1;
  text-align: right;
  padding-right: 16px;
}

.lightbox-close {
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
  transition: color 0.2s;
  padding: 0 4px;
}

.lightbox-close:hover { color: #fff; }

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 60px 80px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  pointer-events: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  z-index: 5;
}

.lightbox-nav:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
  color: #d4af37;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-thumbnails {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}

.lightbox-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.2s;
  flex: 0 0 auto;
}

.lightbox-thumb:hover { opacity: 0.8; }

.lightbox-thumb.active {
  opacity: 1;
  border-color: #d4af37;
}

@media (max-width: 768px) {
  .lightbox-content { padding: 50px 48px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-nav { padding: 10px 14px; font-size: 1.2rem; }
  .lightbox-thumb { width: 44px; height: 34px; }
}


.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}

/* === Brick pattern (brand "BUILDING" aesthetic) === */
.brick-pattern {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(0,0,0,0.18) 38px,
      rgba(0,0,0,0.18) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 113px,
      rgba(0,0,0,0.14) 113px,
      rgba(0,0,0,0.14) 115px
    ),
    repeating-linear-gradient(
      0deg,
      #a0522d,
      #8b4513 2px,
      #9b5523 4px,
      #7a3e10 40px
    );
  position: relative;
}
.brick-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.5) 100%);
  z-index: 1;
}

.brick-pattern-dark {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(0,0,0,0.3) 38px,
      rgba(0,0,0,0.3) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 113px,
      rgba(0,0,0,0.25) 113px,
      rgba(0,0,0,0.25) 115px
    ),
    repeating-linear-gradient(
      0deg,
      #5a2e1a,
      #3d1e10 2px,
      #4a2616 4px,
      #2c160c 40px
    );
  position: relative;
}
.brick-pattern-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.6) 100%);
  z-index: 1;
}



/* === Page hero with brick pattern + photo accent === */
.page-hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 100%);
}
.page-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 40%);
}

.page-hero-content {
  position: relative;
  z-index: 3;
  padding: 0 4rem 5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-hero-photo {
    width: 100%;
    opacity: 0.35;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .page-hero-photo::after {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 100%);
  }
  .page-hero-content {
    padding: 0 1.5rem 4rem;
  }
}

/* === Brick band (brand rhythm element) === */
.brick-band {
  position: relative;
  height: 60px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(0,0,0,0.2) 24px,
      rgba(0,0,0,0.2) 26px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 72px,
      rgba(0,0,0,0.18) 72px,
      rgba(0,0,0,0.18) 74px
    ),
    repeating-linear-gradient(
      0deg,
      #8b4513,
      #6d3410 1px,
      #7a3e10 3px,
      #5a2e0a 26px
    );
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(201,168,106,.2);
  border-bottom: 1px solid rgba(201,168,106,.2);
}
.brick-band-inner {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: brickScroll 30s linear infinite;
  align-items: center;
}
.brick-band-text {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(245,240,232,.85);
}
.brick-band-text::before {
  content: '✦';
  color: var(--gold, #C9A86A);
  margin-right: 1rem;
  font-size: .5rem;
  vertical-align: middle;
}
@keyframes brickScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .brick-band { height: 48px; }
  .brick-band-inner { gap: 2rem; }
  .brick-band-text { font-size: .65rem; letter-spacing: .15em; }
}
