/* ════════════════════════════════════════════════════════════════════
   URBANHUB Sub-brand micro-sites — shared styles
   ════════════════════════════════════════════════════════════════════ */
:root {
  --c-deep:    #2F1A12;
  --c-gold:    #C9A36B;
  --c-cream:   #F1E8D5;
  --c-cream-2: #E8DEC7;
  --c-mid:     #7B4F35;
  --c-paper:   #FBF7EE;
  --fg:        var(--c-deep);
  --fg-mute:   #6B4A36;
  --rule:      #D9C9A4;
  --rule-soft: rgba(47,26,18,0.10);
  --f-sans:    'Archivo', system-ui, sans-serif;
  --f-serif:   'Cormorant Garamond', Georgia, serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
  --tr-wide:   0.18em;
  --tr-tight:  -0.02em;
  --pad-x:     clamp(20px, 5vw, 88px);
  --gap:       clamp(20px, 2.5vw, 36px);
  --max:       1440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-cream);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--c-gold); color: var(--c-deep); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(64px, 9vw, 140px) 0; border-top: 1px solid var(--rule-soft); }
.section--alt { background: var(--c-cream-2); }
.section--paper { background: var(--c-paper); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-mute); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }

.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); align-items: end; margin-bottom: clamp(44px, 5.5vw, 80px); padding-bottom: 24px; border-bottom: 1px solid var(--rule-soft); }
.section-head .meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--tr-wide); text-transform: uppercase; opacity: .65; }
.section-head .num { color: var(--c-gold); }
.section-head h2 { margin: 0; font-size: clamp(36px, 5.5vw, 72px); line-height: 0.96; letter-spacing: var(--tr-tight); font-weight: 500; text-wrap: balance; }
.section-head h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-mid); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tr-wide); text-transform: uppercase; padding: 11px 18px; border: 1px solid var(--c-deep); color: var(--c-deep); background: transparent; transition: background .2s, color .2s; cursor: pointer; }
.btn:hover { background: var(--c-deep); color: var(--c-cream); }
.btn.primary { background: var(--c-deep); color: var(--c-cream); }
.btn.primary:hover { background: var(--c-mid); border-color: var(--c-mid); }
.btn.gold { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-deep); }
.btn.gold:hover { background: transparent; color: var(--c-gold); }

/* ── Nav ────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 14px var(--pad-x); background: color-mix(in srgb, var(--c-cream) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule-soft); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: 0.04em; font-size: 14px; }
.nav-brand .word { display: inline-flex; align-items: baseline; gap: 8px; }
.nav-brand .word em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--c-mid); display: inline-flex; align-items: center; gap: 6px; }
.nav-brand .word em .g { width: 12px; height: 12px; color: var(--c-gold); }
.nav-links { display: flex; gap: 24px; justify-content: center; }
.nav-links a { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-mute); transition: color .15s; }
.nav-links a:hover { color: var(--c-gold); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-back { font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-mute); transition: color .15s; }
.nav-back:hover { color: var(--c-gold); }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-back span { display: none; }
  .nav { grid-template-columns: auto auto; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero { padding: clamp(60px, 9vw, 130px) var(--pad-x) clamp(60px, 8vw, 110px); display: grid; gap: clamp(32px, 4vw, 56px); background: var(--c-cream); }
.hero .wrap { display: grid; gap: clamp(28px, 3.5vw, 48px); }
.hero-lockup { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); flex-wrap: wrap; margin: 0; color: var(--c-deep); }
.hero-lockup .u-mark { width: clamp(70px, 8vw, 110px); color: var(--c-gold); flex-shrink: 0; }
.hero-lockup .word { font-size: clamp(48px, 9vw, 132px); line-height: 0.9; letter-spacing: -0.035em; font-weight: 500; align-self: center; }
.hero-lockup .divider { display: inline-block; width: 1px; align-self: stretch; background: currentColor; opacity: .25; margin: clamp(8px, 1.2vw, 18px) 0; }
.hero-lockup .suffix { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 7vw, 96px); color: var(--c-mid); display: inline-flex; align-items: center; gap: 14px; line-height: 0.95; align-self: center; }
.hero-lockup .suffix .glyph { width: 0.6em; height: 0.6em; color: var(--c-gold); }
.hero-subtitle { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.6vw, 32px); color: var(--c-mid); margin: 0; max-width: 38ch; }
.hero-lead { font-size: 17px; line-height: 1.65; color: var(--fg-mute); max-width: 56ch; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .arrow { transition: transform .25s; }
.hero-cta a:hover .arrow { transform: translateX(3px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(28px, 4vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule-soft); font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--tr-wide); text-transform: uppercase; opacity: .8; }
.hero-stats b { display: block; font-size: 22px; font-family: var(--f-sans); letter-spacing: -0.005em; text-transform: none; margin-bottom: 4px; color: var(--c-deep); font-weight: 500; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* ── Services in 6 grid (3 columns) ───────────────── */
.services-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); background: var(--c-paper); }
.svc-item { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 14px; min-height: 200px; transition: background .25s; }
.svc-item:hover { background: color-mix(in srgb, var(--c-gold) 9%, var(--c-paper)); }
.svc-item:nth-child(3n) { border-right: 0; }
.svc-item:nth-last-child(-n+3) { border-bottom: 0; }
.svc-item .n { font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tr-wide); color: var(--c-gold); }
.svc-item h4 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.18; }
.svc-item h4 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-mid); }
.svc-item p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-mute); }
@media (max-width: 900px) {
  .services-detail { grid-template-columns: repeat(2, 1fr); }
  .svc-item:nth-child(3n) { border-right: 1px solid var(--rule); }
  .svc-item:nth-child(2n) { border-right: 0; }
  .svc-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .svc-item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 540px) {
  .services-detail { grid-template-columns: 1fr; }
  .svc-item { border-right: 0; border-bottom: 1px solid var(--rule); }
  .svc-item:last-child { border-bottom: 0; }
}

/* ── Process ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 12px; right: 12px; height: 1px; background: var(--c-gold); opacity: .5; }
.step { padding: 0 18px 0 0; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.step:not(:first-child) { padding-left: 24px; border-left: 1px solid var(--rule-soft); }
.step .dot { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--c-deep); background: var(--c-cream); border-radius: 50%; font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--tr-wide); font-weight: 500; }
.section--alt .step .dot { background: var(--c-cream-2); }
.section--paper .step .dot { background: var(--c-paper); }
.step h4 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: var(--tr-tight); }
.step h4 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-mid); }
.step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-mute); }
.step .dur { font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--c-gold); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule-soft); }

.step .dot { position: relative; }
.step .dot::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--c-gold);
  opacity: 0;
  animation: pulseSeq 2s ease-out infinite;
}
.steps .step:nth-child(1) .dot::after { animation-delay: 0s; }
.steps .step:nth-child(2) .dot::after { animation-delay: 0.32s; }
.steps .step:nth-child(3) .dot::after { animation-delay: 0.64s; }
.steps .step:nth-child(4) .dot::after { animation-delay: 0.96s; }
@keyframes pulseSeq {
  0% { transform: scale(0.8); opacity: 1; }
  18% { opacity: 1; }
  32% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .steps::before { display: none; }
  .step { padding-left: 0 !important; border-left: 0 !important; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }


/* ── Gallery ──────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.5vw, 20px); }
.gallery .g-cell { position: relative; overflow: hidden; border: 1px solid var(--rule); background: var(--c-paper); }
.gallery .g-cell.wide { grid-column: span 2; }
.gallery .g-cell.tall { grid-row: span 2; }
.gallery image-slot, .gallery img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery .g-cell { aspect-ratio: 4/3; }
.gallery .g-cell.tall { aspect-ratio: 3/4; }
@media (max-width: 700px){ .gallery { grid-template-columns: repeat(2,1fr); } .gallery .g-cell.wide{grid-column:span 2;} .gallery .g-cell.tall{grid-row:auto;aspect-ratio:4/3;} }

.gallery--rect { grid-template-columns: repeat(4, 1fr); }
.gallery--rect .g-cell { aspect-ratio: 4/3; grid-column: auto !important; grid-row: auto !important; }
@media (max-width: 700px){ .gallery--rect { grid-template-columns: repeat(2,1fr); } }

.gallery--mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.gallery--mosaic .g-cell { aspect-ratio: auto; }
.gallery--mosaic .m-wide { grid-column: span 2; }
.gallery--mosaic .m-tall { grid-row: span 2; }
.gallery--mosaic { grid-auto-flow: dense; }
.gallery--mosaic .g-cell { min-height: 180px; }
@media (max-width: 700px){ .gallery--mosaic { grid-template-columns: repeat(2,1fr); } .gallery--mosaic .m-wide{grid-column:span 2;} .gallery--mosaic .m-tall{grid-row:auto;} }

/* ── Contact ──────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-info h3 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: var(--tr-tight); }
.contact-info h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-mid); }
.contact-info p { color: var(--fg-mute); max-width: 40ch; line-height: 1.6; margin: 0 0 18px; }
.contact-cards { margin-top: 24px; display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--c-paper); border: 1px solid var(--rule); transition: border-color .2s; }
.contact-card:hover { border-color: var(--c-gold); }
.contact-card .ic { width: 38px; height: 38px; display: grid; place-items: center; background: var(--c-cream); border: 1px solid var(--rule); flex-shrink: 0; }
.contact-card .ic svg { width: 18px; height: 18px; color: var(--c-gold); }
.contact-card .meta { display: flex; flex-direction: column; gap: 2px; font-family: var(--f-mono); font-size: 9px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-mute); }
.contact-card .meta b { font-family: var(--f-sans); font-size: 15px; letter-spacing: 0.005em; text-transform: none; color: var(--c-deep); font-weight: 500; }

.form { background: var(--c-paper); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); }
.form h3 { margin: 0 0 20px; font-size: clamp(20px, 2.3vw, 28px); font-weight: 500; letter-spacing: var(--tr-tight); }
.form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form label { font-family: var(--f-mono); font-size: 9px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-mute); }
.form input, .form textarea { font-family: var(--f-sans); font-size: 15px; color: var(--c-deep); background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: 8px 0; width: 100%; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--c-gold); }
.form textarea { resize: vertical; min-height: 70px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .submit { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form .submit .hint { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.show { display: block; }
.form-success .ok { width: 50px; height: 50px; margin: 0 auto 14px; border: 1.5px solid var(--c-gold); border-radius: 50%; display: grid; place-items: center; color: var(--c-gold); }
.form-success h4 { margin: 0 0 6px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 22px; color: var(--c-deep); }
.form-success p { margin: 0; color: var(--fg-mute); font-size: 13px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────── */
.foot { padding: clamp(48px, 6vw, 80px) var(--pad-x) 24px; background: var(--c-deep); color: rgba(241,232,213,0.72); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--gap); }
.foot .f-brand { display: flex; flex-direction: column; gap: 14px; }
.foot .f-brand h5 { margin: 12px 0 4px; font-size: 22px; color: var(--c-cream); font-weight: 500; letter-spacing: 0.04em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.foot .f-brand h5 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-gold); font-size: 22px; }
.foot .f-brand .tag { font-family: var(--f-serif); font-style: italic; color: var(--c-gold); font-size: 15px; }
.foot h6 { margin: 0 0 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--c-gold); font-weight: 500; }
.foot ul { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; }
.foot ul a:hover { color: var(--c-gold); }
.foot .f-meta { grid-column: 1 / -1; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(241,232,213,0.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: rgba(241,232,213,0.5); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot .f-brand { grid-column: span 2; } }

/* ── Float CTA ────────────────────────────────────── */
.float-cta { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-cta a { width: 54px; height: 54px; display: grid; place-items: center; background: var(--c-deep); color: var(--c-cream); border-radius: 50%; border: 1px solid var(--c-gold); transition: transform .2s, background .2s, color .2s; box-shadow: 0 12px 32px -10px rgba(47,26,18,0.4); }
.float-cta a:hover { transform: translateY(-2px); background: var(--c-gold); color: var(--c-deep); }
.float-cta a svg { width: 24px; height: 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
