/* ==========================================================================
   NA Associates — site styles
   Dark, minimal, gold accent. Mobile-first.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-header: #0a0a0a;
  --bg-section-alt: #18181b;
  --card: #111111;
  --card-2: #1c1c1c;
  --gold: #D4A03A;
  --gold-light: #e2b759;
  --text: #F5F1EA;
  --muted: #A1A1A6;
  --line: rgba(245, 241, 234, 0.12);
  --white-section: #FFFFFF;
  --dark-text: #111;
  --whatsapp: #0E9F6E;
  --danger: #e5484d;
  --success: #3fb950;

  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 10vw, 128px);
  --radius: 8px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; color: var(--text); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.section-flush-top { padding-top: 0; }
.section-alt { background: var(--bg-section-alt); }
.section-line { border-top: 1px solid var(--line); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1rem, 1.4vw, 1.125rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--dark-text); padding: 10px 16px; font-family: var(--font-sans); font-weight: 600; }
.skip-link:focus { top: 16px; color: var(--dark-text); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-wide { letter-spacing: 0.3em; }
.eyebrow-dark { color: var(--dark-text); }
.eyebrow-line { display: flex; align-items: center; gap: 14px; }
.eyebrow-line::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.accent { color: var(--gold); font-style: italic; font-weight: 600; }
.h2-sans { font-family: var(--font-sans); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.01em; }
.h2-serif { font-family: var(--font-serif); font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 400; line-height: 1.05; margin-bottom: 24px; }
.page-title { font-family: var(--font-serif); font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; max-width: 16ch; }
.page-sub { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 640px; margin-top: 24px; }
.page-sub-wide { max-width: 820px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 30px;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), filter .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--dark-text); }
.btn-gold:hover { color: var(--dark-text); filter: brightness(1.1); box-shadow: 0 10px 28px -10px rgba(212, 160, 58, .6); }
.btn-dark { background: #1a1a1a; color: #fff; border-color: rgba(255, 255, 255, .08); }
.btn-dark:hover { color: #fff; background: #262626; }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--dark-text); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(229, 72, 77, .5); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.72rem; }
.btn-icon { width: 38px; padding: 0; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-row-center { justify-content: center; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; color: var(--gold);
}
.text-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .65); background: rgba(10, 10, 10, .96); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 64px; width: auto; transition: height .3s var(--ease); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.main-nav a:not(.btn) {
  position: relative; display: inline-block; padding: 8px 0;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245, 241, 234, .78); white-space: nowrap;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--text); }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-drawer-cta { display: none; }
.header-cta { flex: none; }
.nav-toggle { display: none; }

@media (min-width: 1025px) {
  :root { --header-h: 120px; }
  .brand img { height: 100px; }
  .site-header.is-scrolled .brand img { height: 76px; }
}

@media (max-width: 1024px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 46px; height: 46px; padding: 0 11px;
    background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    display: flex; flex-direction: column; gap: 32px;
    padding: 32px var(--gutter) 48px; overflow-y: auto;
    background: var(--bg-header); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav a:not(.btn) { font-size: 1rem; padding: 12px 0; letter-spacing: 0.12em; }
  .nav-drawer-cta { display: inline-flex; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}
/* Without JavaScript the drawer cannot open, so show the menu inline instead. */
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 1024px) {
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .main-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; border: 0; width: 100%; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 72vh, 880px); display: flex; align-items: center;
  padding-block: 96px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.66) 38%, rgba(0,0,0,.25) 75%, rgba(0,0,0,.15) 100%),
    linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 35%);
}
.hero-title { font-family: var(--font-sans); font-size: clamp(2.6rem, 6.2vw, 4.75rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; max-width: 11ch; }
.hero-title .accent { display: inline-block; }
.hero-text { margin-top: 26px; max-width: 520px; color: rgba(245, 241, 234, .82); font-size: clamp(1rem, 1.5vw, 1.15rem); }

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1%, -1%); } }

/* Staggered entrance for hero / page-hero items */
.js .hero-item { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.js .hero-item:nth-child(2) { animation-delay: .12s; }
.js .hero-item:nth-child(3) { animation-delay: .24s; }
.js .hero-item:nth-child(4) { animation-delay: .36s; }
.js .hero-item:nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Fade/slide-up on scroll (class toggled by IntersectionObserver).
   Uses an animation on `translate` so it never fights hover transforms/transitions. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal .8s var(--ease) var(--delay, 0ms) both; }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Home: intro ---------- */
.intro-grid { display: grid; gap: 40px; }
.intro-brand { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.intro-aside .muted { max-width: 300px; }
.intro-main .h2-sans { margin-bottom: 26px; max-width: 18ch; }
.intro-main .accent { display: block; }
.intro-main .lead { max-width: 560px; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; }
}

/* ---------- Home: Our Focus ---------- */
.focus-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 12px; }
.focus-item { display: flex; width: 132px; }
.focus-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px;
  width: 100%; min-height: 164px; padding: 34px 10px 36px; /* bottom room is reserved for the hint, so nothing moves on hover */
  background: var(--card-2); border: 1px solid transparent; border-radius: var(--radius);
  color: var(--text); font: inherit; cursor: pointer;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.focus-card:hover, .focus-card:focus-visible { transform: translateY(-4px); border-color: rgba(212, 160, 58, .55); box-shadow: 0 0 0 1px rgba(212, 160, 58, .15), 0 14px 40px -12px rgba(212, 160, 58, .45); }
.focus-card:focus-visible { outline-offset: 4px; }
.focus-num { position: absolute; top: 10px; left: 12px; font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; color: var(--gold); letter-spacing: .05em; }
.focus-icon { width: 34px; height: 34px; color: var(--text); transition: color .35s, transform .45s var(--ease); }
.focus-card:hover .focus-icon, .focus-card:focus-visible .focus-icon { color: var(--gold); transform: scale(1.08); }
.focus-label { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.1; text-align: center; color: var(--text); }
.focus-hint {
  position: absolute; left: 0; right: 0; bottom: 11px; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--font-sans); font-size: 0.6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.focus-hint .icon { width: 11px; height: 11px; transition: transform .35s var(--ease); }
.focus-card:hover .focus-hint, .focus-card:focus-visible .focus-hint { opacity: 1; transform: none; }
.focus-card:hover .focus-hint .icon { transform: translateX(2px); }
.hint-touch { display: none; }
/* Touch screens have no hover: show a quieter hint all the time. */
@media (hover: none) {
  .focus-hint { opacity: .6; transform: none; font-weight: 500; }
  .hint-pointer { display: none; }
  .hint-touch { display: inline; }
}
@media (max-width: 480px) {
  .focus-list { gap: 12px; }
  .focus-item { width: calc(50% - 6px); }
}

/* Our Focus popup (built in main.js with the shared modal) */
.focus-dialog {
  position: relative; width: min(680px, 100%); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto;
  padding: clamp(32px, 5vw, 52px); padding-top: clamp(40px, 5vw, 56px);
  background: var(--card-2); border: 1px solid rgba(212, 160, 58, .3); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  animation: dialog-in .35s var(--ease) both;
}
.focus-dialog .modal-close { top: 14px; right: 14px; }
.focus-dialog .h2-serif { margin-bottom: 18px; padding-right: 40px; }
.focus-dialog p:last-child { color: #d8d3ca; font-size: 1.02rem; line-height: 1.85; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-centered { padding: 40px 16px; }

/* ---------- Section head & project cards ---------- */
.section-head { margin-bottom: 48px; }
.project-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.project-grid-tight { gap: 16px; }
@media (min-width: 680px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
/* Listings: small fade-in stagger across each row (2 per row on tablet, 3 on desktop). */
@media (min-width: 680px) and (max-width: 999px) { .project-grid-tight > .project-card:nth-child(2n) { --delay: 100ms; } }
@media (min-width: 1000px) {
  .project-grid-tight > .project-card:nth-child(3n+2) { --delay: 100ms; }
  .project-grid-tight > .project-card:nth-child(3n) { --delay: 200ms; }
}

.projects-more { margin-top: 48px; text-align: center; }
.project-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(212, 160, 58, .18); }
.project-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.06); }
.project-card-body { display: flex; flex-direction: column; flex: 1; padding: 32px; }
.card-city { margin: 0 0 12px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.card-title { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 500; margin-bottom: 8px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--gold-light); }
.card-type { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 300; color: rgba(245, 241, 234, .85); margin-bottom: 16px; }
.card-text { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.project-card .text-link { margin-top: auto; }

/* ---------- CTA band ---------- */
/* Full-width interior photo (assets/img/cta-bg.jpg), muted by a dark overlay, with near-black text. */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: 420px; padding-block: 72px;
  background: #2b2118; color: #0a0a0a;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: #2b2118; background-size: cover; background-position: center; background-repeat: no-repeat;
  animation: cta-zoom 30s ease-in-out infinite alternate;
}
/* A lighter overlay keeps the black text readable; a darker one would lower its contrast. */
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .3); }
@keyframes cta-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.cta-inner { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.cta-band .eyebrow { color: #0a0a0a; font-weight: 700; margin-bottom: 20px; }
.cta-title { font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; color: #0a0a0a; max-width: 900px; }
.cta-text { margin-top: 22px; color: #0a0a0a; font-family: var(--font-body); font-size: 1rem; max-width: 420px; }
.cta-band .btn { padding: 18px 36px; border-radius: 0; }
.cta-band .btn:hover { filter: brightness(1.12); }
@media (min-width: 768px) {
  .cta-band { min-height: 520px; padding-block: 100px; }
  .cta-band::before { background: rgba(0, 0, 0, .25); }
  .cta-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .cta-inner .btn { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-bg { animation: none; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(72px, 11vw, 140px) clamp(48px, 7vw, 88px); }

/* ---------- About ---------- */
.leadership { background: var(--bg-section-alt); }
.leadership-grid { display: grid; gap: 48px; align-items: start; }
/* Portrait is shown complete, in its natural proportions (no cropping). */
.leader-photo { width: 100%; max-width: 460px; margin-inline: auto; border-radius: 24px; overflow: hidden; background: var(--card); }
.leader-photo img { display: block; width: 100%; height: auto; }
.leader-name { font-family: var(--font-sans); font-size: clamp(3rem, 8vw, 6.25rem); font-weight: 800; line-height: .95; letter-spacing: -0.02em; text-transform: uppercase; color: #fff; }
.leader-role { margin: 18px 0 32px; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.leader-copy p:not(.eyebrow):not(.leader-role) { color: #e6e1d8; line-height: 1.85; font-size: 1.02rem; }
@media (min-width: 900px) {
  .leadership-grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 6vw, 88px); }
  .leader-photo { max-width: none; margin-inline: 0; }
}
/* Sticky only when the screen is tall enough to show the whole photo
   (photo is at most ~752px tall + header + gap), otherwise its bottom would be hidden. */
@media (min-width: 900px) and (min-height: 960px) {
  .leader-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Mortgage ---------- */
.split { display: grid; gap: 32px; }
.split-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.quote {
  margin: 36px 0 0; padding: 6px 0 6px 24px; border-left: 2px solid var(--gold);
  font-family: var(--font-body); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--text);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.25fr; gap: 72px; }
  .split-center { align-items: center; grid-template-columns: 1fr 1fr; }
}
.certificate {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(212, 160, 58, .35); background: #fff; cursor: zoom-in;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.certificate:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(212, 160, 58, .45); }
.certificate-hint {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(0,0,0,.78); color: var(--text); border-radius: 2px;
  font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Project detail ---------- */
.project-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 12vw, 160px) clamp(48px, 7vw, 88px); }
.project-hero-media { position: absolute; inset: 0; z-index: -2; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.6) 60%, rgba(0,0,0,.4)), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 45%); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.back-link .icon { width: 16px; height: 16px; }
.back-link:hover { color: var(--gold); }
.project-detail-grid { display: grid; gap: 40px; align-items: start; }
.project-description p { color: var(--muted); line-height: 1.85; font-size: 1.02rem; }
.facts-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--text); }
.facts-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }
@media (min-width: 900px) { .project-detail-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; } }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--card); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); color: var(--gold); opacity: 0; transition: opacity .3s; }
.gallery-zoom .icon { width: 32px; height: 32px; }
.gallery a:hover .gallery-zoom, .gallery a:focus-visible .gallery-zoom { opacity: 1; }

/* ---------- Videos (Instagram reels + MP4) ---------- */
.video-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.js .video-item.is-extra { display: none; }
.video-card { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.video-thumb { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: radial-gradient(120% 80% at 50% 0%, rgba(212, 160, 58, .22), rgba(212, 160, 58, 0) 60%), linear-gradient(160deg, #1c1c1c, #0b0b0b); border: 1px solid var(--line); transition: border-color .35s, transform .4s var(--ease), box-shadow .4s; }
.video-thumb > img, .video-inline { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.video-thumb > img { opacity: .85; }
.video-thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 50%); }
.video-thumb iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: #fff; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 24px 18px 28px; text-align: center; }
.video-placeholder-icon { position: absolute; top: 18px; left: 18px; width: 26px; height: 26px; color: var(--gold); }
.video-placeholder-title { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.15; color: var(--text); }
.video-open { position: absolute; inset: 0; z-index: 2; display: block; }
.video-play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--gold); color: var(--dark-text); box-shadow: 0 10px 30px -8px rgba(0,0,0,.7);
  transition: transform .35s var(--ease), filter .35s, opacity .35s;
}
.video-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video-card.is-playing .video-play { opacity: 0; }
.video-card.is-embedded .video-open { display: none; }
.video-control {
  position: absolute; right: 10px; bottom: 10px; z-index: 4; display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.65); border: 1px solid rgba(212, 160, 58, .6); color: var(--gold);
}
.video-control[hidden] { display: none; }
.video-control:hover { background: var(--gold); color: var(--dark-text); }
.video-control .icon { width: 18px; height: 18px; }
.video-card:hover .video-thumb { border-color: rgba(212, 160, 58, .5); transform: translateY(-4px); box-shadow: 0 20px 44px -20px rgba(212, 160, 58, .4); }
.video-card:hover .video-thumb > img { transform: scale(1.05); opacity: 1; }
.video-card:hover .video-play, .video-card.is-playing:hover .video-play { opacity: 1; transform: scale(1.08); filter: brightness(1.1); }
.video-title { margin: 0; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; line-height: 1.35; }
.load-more-wrap { margin-top: 48px; }
.empty-state { max-width: 560px; margin: 0 auto; padding: 56px 32px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 20px; color: var(--gold); }
.empty-state .btn { margin-top: 24px; }

/* ---------- Modal / lightbox ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 24px; background: rgba(0, 0, 0, .92);
  opacity: 0; transition: opacity .25s;
}
.modal.is-open { opacity: 1; }
.modal-close, .modal-nav {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.modal-close:hover, .modal-nav:hover { background: var(--gold); color: var(--dark-text); }
.modal-close { top: 12px; right: 12px; }
.modal-close .icon, .modal-nav .icon { width: 22px; height: 22px; }
.modal-nav-prev { left: 12px; top: 50%; margin-top: -23px; }
.modal-nav-next { right: 12px; top: 50%; margin-top: -23px; }
.modal-figure { max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.modal-figure img { max-height: calc(100vh - 120px); width: auto; border-radius: 4px; background: #fff; }
.modal-figure figcaption { color: var(--muted); font-size: 0.85rem; }
.modal-video { width: min(420px, 100%, calc((100vh - 120px) * 9 / 16)); aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal-video iframe, .modal-video video { width: 100%; height: 100%; border: 0; display: block; }
.modal-player { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.modal-video-ig { position: relative; width: min(420px, calc(100vw - 32px)); height: min(85vh, 780px); aspect-ratio: auto; background: #fff; }
.modal-ig-link { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.modal-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px; text-align: center; background: var(--card); color: var(--text); }
.modal-fallback[hidden] { display: none; }
@media (max-width: 600px) {
  .modal-sm-full { padding: 56px 0 0; }
  .modal-sm-full .modal-player { width: 100%; height: 100%; gap: 0; }
  .modal-sm-full .modal-video-ig { width: 100%; height: auto; flex: 1; border-radius: 0; }
  .modal-sm-full .modal-ig-link { padding: 14px; }
}
.modal-title { position: absolute; left: 16px; right: 72px; top: 22px; margin: 0; font-family: var(--font-sans); font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.form-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 241, 234, .85); }
.field label span[aria-hidden] { color: var(--gold); }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.contact-form input:not([type="hidden"]):not([type="file"]), .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 14px; background: #0a0a0a; color: var(--text);
  border: 1px solid rgba(245, 241, 234, .18); border-radius: 2px;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input[type="file"] { width: 100%; color: var(--muted); font-size: 0.9rem; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #66666b; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 58, .25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; font-size: 0.82rem; color: #ff8a8d; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-status.is-success { color: #6fd08c; }
.form-status.is-error { color: #ff8a8d; }

.direct-contact { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color .3s, transform .3s var(--ease);
}
.contact-card:hover { color: var(--text); border-color: rgba(212, 160, 58, .5); transform: translateY(-3px); }
.contact-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(212, 160, 58, .5); color: var(--gold); }
.contact-icon .icon { width: 20px; height: 20px; }
.contact-label { display: block; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.contact-value { display: block; margin-top: 2px; word-break: break-word; }
a.contact-value { color: var(--text); }
a.contact-value:hover { color: var(--gold); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .page-title, .error-page .page-sub { margin-inline: auto; }
.error-code { font-family: var(--font-serif); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--gold); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 88px); }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { width: 210px; height: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); max-width: 380px; font-size: 0.95rem; }
.footer-copy { margin-top: 20px; font-size: 0.82rem !important; }
.footer-heading { margin-bottom: 18px; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text); font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(245,241,234,.4); }
.footer-col a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.footer-col nav a, .footer-col ul:not(.footer-contact) a { text-transform: uppercase; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--gold); }
.footer-contact a { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; word-break: break-word; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; gap: 56px; } }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.5);
  transition: transform .3s var(--ease), filter .3s;
}
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); z-index: -1; animation: pulse 2.8s ease-out infinite; }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); filter: brightness(1.1); }
.whatsapp-float .icon { width: 30px; height: 30px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Admin ---------- */
.admin-body { min-height: 100vh; }
.admin-bar { background: var(--bg-header); border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-weight: 600; color: var(--text); letter-spacing: .05em; }
.admin-brand img { width: 60px; height: auto; }
.admin-bar-actions { display: flex; align-items: center; gap: 20px; }
.admin-main { padding-block: 48px 96px; }
.admin-container .h2-serif { margin-bottom: 8px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; margin-top: -48px; }
.admin-login-card { width: 100%; max-width: 420px; padding: 40px 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-login-card > img { width: 120px; margin-bottom: 20px; }
.admin-back { margin-top: 24px; }
.notice { margin: 16px 0; padding: 14px 18px; border-radius: 2px; border: 1px solid; font-size: 0.92rem; }
.notice-success { color: #9be3b0; border-color: rgba(63, 185, 80, .4); background: rgba(63, 185, 80, .08); }
.notice-error { color: #ffb0b2; border-color: rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .08); }
.notice code { color: var(--gold); }
.admin-forms { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .admin-forms { grid-template-columns: 1fr 1fr; } }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.admin-card-title, .admin-section-title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.admin-section-title { margin-top: 56px; }
.admin-video-list { display: flex; flex-direction: column; gap: 10px; }
.admin-video { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-thumb { width: 54px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: #1c1c1c; display: grid; place-items: center; color: var(--gold); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-inline { display: flex; gap: 8px; }
.admin-inline input { flex: 1; min-width: 0; padding: 9px 12px; background: #0a0a0a; color: var(--text); border: 1px solid rgba(245,241,234,.18); border-radius: 2px; font: inherit; }
.admin-inline input:focus { outline: none; border-color: var(--gold); }
.admin-meta { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); word-break: break-all; }
.admin-meta .text-link { font-size: 0.8rem; }
.badge { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 2px; font-family: var(--font-sans); font-size: 0.65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge-instagram { background: rgba(212, 160, 58, .15); color: var(--gold); border: 1px solid rgba(212, 160, 58, .4); }
.badge-mp4 { background: rgba(245, 241, 234, .08); color: var(--text); border: 1px solid var(--line); }
.check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.9rem !important; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; background: transparent; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.toggle-track { position: relative; width: 30px; height: 16px; border-radius: 8px; background: #333; transition: background-color .2s; }
.toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #aaa; transition: transform .2s, background-color .2s; }
.toggle.is-on { color: var(--gold); border-color: rgba(212, 160, 58, .5); }
.toggle.is-on .toggle-track { background: rgba(212, 160, 58, .4); }
.toggle.is-on .toggle-track::after { transform: translateX(14px); background: var(--gold); }
.admin-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (min-width: 760px) {
  .admin-video { grid-template-columns: 54px 1fr auto; }
  .admin-actions { grid-column: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-media img, .project-hero-media img { animation: none; }
  .whatsapp-float::before { display: none; }
  .js .reveal, .js .hero-item { opacity: 1; transform: none; translate: none; animation: none; }
}
