/* ==========================================================
   New Raj Signature & Interior — Portfolio
   Design tokens
   ink      #17140f   deep warm charcoal — hero/footer/dark sections
   paper    #faf9f6   soft off-white — main background
   bronze   #a97c50   single accent — links, CTAs, eyebrows
   text     #2b2620   body text
   muted    #7d7468   secondary text
   line     #e6e1d8   hairline borders
   Display face: Cormorant Garamond (serif, editorial)
   Body face:    Poppins (clean, light-weight sans)
   Website & System by www.fathoni.co.uk
   ========================================================== */

:root {
  --ink: #17140f;
  --ink-soft: #241f18;
  --paper: #faf9f6;
  --paper-alt: #f2eee6;
  --bronze: #a97c50;
  --bronze-light: #c9a476;
  --text: #2b2620;
  --muted: #7d7468;
  --line: #e6e1d8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-weight: 300;
  background: var(--paper); color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0; transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.site-header.scrolled { background: rgba(250,249,246,.94); backdrop-filter: blur(10px); padding: 14px 0; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 700; color: #fff; letter-spacing: .3px; transition: color .4s; }
.brand-tag { font-size: 10.5px; color: var(--bronze-light); letter-spacing: 1.6px; text-transform: uppercase; margin-top: 2px; transition: color .4s; }
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.scrolled .brand-tag { color: var(--bronze); }

.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a { font-size: 13.5px; font-weight: 400; color: #fff; letter-spacing: .3px; position: relative; padding-bottom: 4px; transition: color .4s; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--bronze-light); transition: width .3s ease; }
.main-nav a:hover::after { width: 100%; }
.site-header.scrolled .main-nav a { color: var(--text); }
.site-header.scrolled .main-nav a::after { background: var(--bronze); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 1.5px; background: #fff; transition: background .4s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-bg-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,20,15,.55) 0%, rgba(23,20,15,.72) 55%, rgba(23,20,15,.92) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: 90px; }
.hero-eyebrow { display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 22px; }
.hero-title { font-size: clamp(38px, 6vw, 74px); line-height: 1.08; color: #fff; max-width: 780px; }
.hero-subtext { font-family: var(--sans); font-weight: 300; font-size: 16px; color: #e5e0d6; max-width: 520px; margin: 24px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-primary, .btn-hero-outline {
  display: inline-flex; align-items: center; padding: 14px 30px; border-radius: 2px; font-size: 13px;
  letter-spacing: .8px; text-transform: uppercase; transition: all .35s ease;
}
.btn-hero-primary { background: var(--bronze); color: #fff; }
.btn-hero-primary:hover { background: var(--bronze-light); transform: translateY(-2px); }
.btn-hero-outline { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, rgba(255,255,255,.9), transparent); animation: scrollcue 2s ease infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); transform-origin: top; opacity: 1; } 60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; } 100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; } }

/* ---------- Stats ---------- */
.stats-section { background: var(--paper-alt); padding: 60px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; text-align: center; }
.stat-item p { font-size: 12.5px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; margin: 8px 0 0; }
.stat-number { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--ink); }
.stat-suffix { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--bronze); }

/* ---------- Section heading ---------- */
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-eyebrow { display: block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--bronze); margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(28px, 4vw, 42px); }

/* ---------- Portfolio section ---------- */
.portfolio-section { padding: 90px 24px 40px; }
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.pill { padding: 9px 20px; border: 1px solid var(--line); border-radius: 30px; font-size: 12.5px; color: var(--muted); transition: all .3s ease; }
.pill span { opacity: .6; font-size: 11px; }
.pill:hover { border-color: var(--bronze); color: var(--bronze); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.search-mini { max-width: 420px; margin: 0 auto 50px; display: flex; gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.search-mini input { flex: 1; border: none; background: none; font-size: 14px; font-family: var(--sans); padding: 6px 4px; outline: none; color: var(--text); }
.search-mini button { border: none; background: none; color: var(--bronze); font-size: 13px; cursor: pointer; letter-spacing: .5px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 34px 30px; padding-bottom: 40px; }
.portfolio-card { display: block; }
.portfolio-thumb { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-alt); border-radius: 3px; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,.8,.3,1); }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.08); }
.thumb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 44px; opacity: .3; }
.featured-badge { position: absolute; top: 14px; left: 14px; background: var(--bronze); color: #fff; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; z-index: 2; }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23,20,15,.82) 100%);
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px;
  opacity: 0; transition: opacity .4s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.overlay-view { color: #fff; font-size: 13px; letter-spacing: .5px; transform: translateY(8px); transition: transform .4s ease; }
.portfolio-card:hover .overlay-view { transform: translateY(0); }
.portfolio-info { padding: 18px 2px 0; }
.portfolio-cat { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.portfolio-cat.light { color: var(--bronze-light); }
.portfolio-info h3 { font-size: 21px; margin: 6px 0 6px; }
.portfolio-meta { font-size: 12.5px; color: var(--muted); margin: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Project hero (detail page) ---------- */
.project-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.project-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.project-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,20,15,.35) 0%, rgba(23,20,15,.9) 100%); }
.project-hero-inner { position: relative; z-index: 2; padding: 140px 24px 56px; }
.back-link { display: inline-block; font-size: 12.5px; color: #e5e0d6; margin-bottom: 26px; letter-spacing: .3px; }
.back-link:hover { color: var(--bronze-light); }
.project-hero-inner h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); max-width: 780px; margin-top: 10px; }
.project-hero-meta { color: #d9d3c6; font-size: 13.5px; margin-top: 14px; }

/* ---------- Info bar ---------- */
.info-bar { display: flex; flex-wrap: wrap; gap: 0; margin-top: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item { flex: 1 1 160px; padding: 24px 20px; border-right: 1px solid var(--line); }
.info-item:last-child { border-right: none; }
.info-label { display: block; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-val { font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 600; }

/* ---------- Description / scope ---------- */
.project-description, .scope-section { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.project-description .lead { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 500; line-height: 1.5; margin-bottom: 20px; }
.rich-text { color: var(--text); font-size: 15px; line-height: 1.9; }
.scope-section h2 { font-size: 26px; margin-bottom: 16px; }

/* ---------- Gallery (masonry) ---------- */
.gallery-section { padding: 70px 24px; }
.gallery-section h2 { text-align: center; font-size: 30px; margin-bottom: 34px; }
.masonry-gallery { columns: 3 260px; column-gap: 20px; }
.masonry-item {
  break-inside: avoid; margin-bottom: 20px; position: relative; border-radius: 3px; overflow: hidden;
  cursor: pointer; background: var(--paper-alt);
}
.masonry-item img { width: 100%; height: auto; display: block; transition: transform .8s cubic-bezier(.16,.8,.3,1); }
.masonry-item.tall img { aspect-ratio: 3/4; object-fit: cover; }
.masonry-item:hover img { transform: scale(1.06); }
.video-thumb-wrap { position: relative; aspect-ratio: 16/9; }
.video-thumb-wrap iframe { width: 100%; height: 100%; border: none; pointer-events: none; }
.masonry-zoom-icon {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(23,20,15,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; opacity: 0; transition: opacity .3s ease;
}
.masonry-item:hover .masonry-zoom-icon { opacity: 1; }
.masonry-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 12.5px; color: #fff;
  background: linear-gradient(0deg, rgba(23,20,15,.8), transparent); opacity: 0; transition: opacity .3s ease;
}
.masonry-item:hover .masonry-caption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,13,10,.96); z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox.open { display: flex; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { max-width: 1100px; max-height: 86vh; width: 100%; }
.lightbox-content img { width: 100%; height: 100%; max-height: 86vh; object-fit: contain; margin: 0 auto; }
.lightbox-content iframe { width: 100%; aspect-ratio: 16/9; border: none; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; opacity: .8; transition: opacity .3s;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- CTA (WhatsApp) ---------- */
.project-cta { text-align: center; padding: 20px 24px 80px; }
.btn-wa-large { display: inline-flex; align-items: center; gap: 8px; background: #1e1a16; color: #fff; padding: 18px 40px; border-radius: 2px; font-size: 14px; letter-spacing: .5px; transition: all .35s ease; }
.btn-wa-large:hover { background: var(--bronze); transform: translateY(-2px); }

/* ---------- Related ---------- */
.related-section { padding: 20px 24px 80px; }
.related-section h2 { text-align: center; font-size: 28px; margin-bottom: 30px; }

/* ---------- CTA section (footer contact) ---------- */
.cta-section { background: var(--ink); padding: 100px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(169,124,80,.18), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); max-width: 640px; margin: 0 auto; }
.cta-section p { color: #cfc8ba; font-size: 15px; max-width: 460px; margin: 18px auto 34px; font-weight: 300; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--bronze); color: #fff; padding: 16px 38px; border-radius: 2px; font-size: 13.5px; letter-spacing: .6px; text-transform: uppercase; transition: all .35s ease; }
.btn-cta:hover { background: var(--bronze-light); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-soft); color: #cfc8ba; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px; padding: 60px 24px 34px; }
.footer-grid h3 { color: #fff; font-size: 16px; margin: 0 0 14px; font-weight: 600; }
.footer-grid p { font-size: 13.5px; margin: 0 0 9px; }
.footer-grid a:hover { color: var(--bronze-light); }
.footer-bottom { border-top: 1px solid #33291f; padding: 18px 24px; font-size: 12px; text-align: center; color: #a89f8f; }
.footer-credit { display: block; margin-top: 4px; }
.footer-credit a { color: var(--bronze-light); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .masonry-gallery { columns: 2 200px; }
  .info-item { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; right: -280px; height: 100vh; width: 260px; background: var(--ink);
    flex-direction: column; align-items: flex-start; padding: 100px 30px; gap: 22px; transition: right .4s ease; }
  .main-nav.open { right: 0; }
  .main-nav a { color: #fff; font-size: 15px; }
  .masonry-gallery { columns: 1 100%; }
  .info-bar { flex-direction: column; }
  .info-item { border-right: none; border-bottom: 1px solid var(--line); }
}
