/* ==========================================================================
   BBP PREMIER — Architecture Studio
   Dark / Luxury / Modern theme
   ========================================================================== */

:root {
  --bg: #0d0c0b;
  --bg-alt: #131211;
  --bg-card: #171614;
  --ink: #f3efe8;
  --ink-dim: #b9b3a8;
  --ink-faint: #7d766c;
  --gold: #c6a15b;
  --gold-soft: #ddc48f;
  --line: rgba(198, 161, 91, 0.18);
  --line-soft: rgba(243, 239, 232, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; color: var(--ink-dim); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--gold); color: #0d0c0b; transform: translateY(-2px); }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: rgba(13, 12, 11, 0.92);
  z-index: 200;
  padding: 26px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(13, 12, 11, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-color: var(--line-soft);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 42px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 1px; background: var(--ink); transition: 0.3s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 8s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,12,11,0.35) 0%, rgba(13,12,11,0.55) 55%, rgba(13,12,11,0.95) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: 100px;
}
.hero-content h1 {
  font-size: clamp(40px, 7vw, 88px);
  max-width: 900px;
  color: var(--ink);
  animation: fadeUp 1.1s var(--ease) both 0.2s;
}
.hero-content .eyebrow { animation: fadeUp 1.1s var(--ease) both 0s; }
.hero-content p {
  max-width: 520px;
  font-size: 17px;
  animation: fadeUp 1.1s var(--ease) both 0.4s;
}
.hero-content .hero-cta { animation: fadeUp 1.1s var(--ease) both 0.6s; margin-top: 12px; }

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 60px;
  background: linear-gradient(var(--gold), transparent);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute; top: -60px; left: 0;
  width: 1px; height: 60px;
  background: var(--ink);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop { 0% { top: -60px; } 100% { top: 60px; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.12s; }
.reveal-delay-2.in-view { transition-delay: 0.24s; }
.reveal-delay-3.in-view { transition-delay: 0.36s; }
.reveal-delay-4.in-view { transition-delay: 0.48s; }

/* ---------------- Section basics ---------------- */
section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-foot { margin-top: 56px; text-align: center; }

/* ---------------- Intro strip (Landing) ---------------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.intro-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s var(--ease); }
.intro-visual:hover img { transform: scale(1.08); }
.intro-visual::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.5;
  pointer-events: none;
}
.stat-row { display: flex; gap: 48px; margin-top: 40px; }
.stat-num { font-family: "Playfair Display", serif; font-size: 40px; color: var(--gold-soft); }
.stat-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------------- Portfolio grid ---------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.p-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
}
.p-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  filter: saturate(0.92) brightness(0.92);
}
.p-card:hover img { transform: scale(1.09); filter: saturate(1) brightness(1); }
.p-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(180deg, transparent 40%, rgba(13,12,11,0.92) 100%);
}
.p-card-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--ink);
  transform: translateY(14px);
  opacity: 0.85;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.p-card:hover .p-card-title { transform: translateY(0); opacity: 1; color: var(--gold-soft); }
.p-card-meta {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease);
}
.p-card:hover .p-card-meta { max-height: 30px; opacity: 1; margin-top: 6px; }

/* ---------------- Client marquee ---------------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 34px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--ink-faint);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.marquee-track span::after { content: "·"; margin-left: 60px; color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity 1.2s ease; }
}

/* ---------------- Footer ---------------- */
footer {
  padding: 70px 0 32px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p { max-width: 320px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--ink-dim); font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-soft); }
.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.social-row a:hover { border-color: var(--gold); background: rgba(198,161,91,0.1); transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; fill: var(--ink-dim); }
.social-row a:hover svg { fill: var(--gold-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--ink-faint);
}

/* ---------------- Page header (inner pages) ---------------- */
.page-header {
  padding: 200px 0 90px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.page-header h1 { font-size: clamp(36px, 5vw, 56px); }
.page-header .eyebrow { display: block; }

/* ---------------- Who We Are page ---------------- */
.wwa-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.wwa-block + .wwa-block { margin-top: 100px; }
.wwa-founder {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-faint);
}
.wwa-founder strong { color: var(--gold-soft); font-weight: 600; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.client-grid div {
  background: var(--bg);
  padding: 26px 24px;
  font-size: 14.5px;
  color: var(--ink-dim);
  transition: background 0.35s, color 0.35s;
}
.client-grid div:hover { background: var(--bg-card); color: var(--gold-soft); }

/* ---------------- Portfolio page ---------------- */
.filter-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #0d0c0b; }

.project-section { margin-bottom: 110px; }
.project-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 30px; gap: 20px; flex-wrap: wrap;
}
.project-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); text-transform: capitalize; }
.project-section-head .p-index { color: var(--ink-faint); font-size: 13px; letter-spacing: .12em; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  margin: 0; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1/1;
  border: 1px solid var(--line-soft);
  position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure::after {
  content: "+";
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  opacity: 0; transform: scale(0.7);
  transition: all 0.3s var(--ease);
}
.gallery-grid figure:hover::after { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(8,7,6,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw; max-height: 82vh;
  object-fit: contain;
  box-shadow: var(--shadow);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none; border: 1px solid var(--line);
  color: var(--ink);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-size: 18px;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--gold); background: rgba(198,161,91,0.1); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------------- Contact page ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
.contact-list { margin-top: 40px; }
.contact-item { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.contact-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 18px; height: 18px; fill: var(--gold); }
.contact-item h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.contact-item p, .contact-item a { color: var(--ink); font-size: 15.5px; margin: 0; }
.contact-item a:hover { color: var(--gold-soft); }
.map-frame {
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 460px;
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .intro, .wwa-block, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 90px 0; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: min(78vw, 320px);
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    border-left: 1px solid var(--line-soft);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .stat-row { gap: 30px; }
  .page-header { padding: 150px 0 60px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-close { top: 16px; right: 16px; }
}
