/* ===========================================================================
   RHD Luxe Interiors - Raj Hirawat Designs
   Pure CSS design system. No frameworks, no build step.
   =========================================================================== */

:root {
  --ivory: #f7f2ea;
  --charcoal: #111111;
  --gold: #c6a66a;
  --gold-dark: #b8945a;
  --softblack: #1e1e1e;
  --muted: #77716a;
  --white: #ffffff;
  --brown: #6b4f3a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  /* Pin optical size + weight so every heading (hero or section) shares the
     same solid, elegant cut instead of going hairline-thin at large sizes. */
  font-variation-settings: "opsz" 34, "wght" 500, "SOFT" 0, "WONK" 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: var(--gold); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: #d8cdb8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-lg { padding: 128px 0; }
@media (max-width: 640px) { .section, .section-lg { padding: 72px 0; } .container { padding: 0 20px; } }

.bg-white { background: var(--white); }
.bg-charcoal { background: var(--charcoal); color: var(--ivory); }
.bg-softblack { background: var(--softblack); color: var(--ivory); }
.text-center { text-align: center; }

.eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

.gold-divider { width: 64px; height: 1px; background: var(--gold); }
.divider-line { width: 100%; height: 1px; background: rgba(17,17,17,0.1); }
.bg-charcoal .divider-line, .bg-softblack .divider-line { background: rgba(247,242,234,0.12); }

.muted { color: var(--muted); }
.lead { font-size: 1.02rem; font-weight: 300; line-height: 1.8; color: var(--muted); }
.bg-charcoal .lead { color: rgba(247,242,234,0.7); }

/* Section heading block */
.heading-eyebrow { margin-bottom: 16px; }
.heading-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.text-center .heading-title { margin-inline: auto; }
.bg-charcoal .heading-title, .bg-softblack .heading-title { color: var(--ivory); }
.heading-rule { height: 1px; width: 64px; background: var(--gold); margin-top: 24px; }
.text-center .heading-rule { margin-inline: auto; }
.heading-intro { margin-top: 24px; max-width: 46ch; }
.text-center .heading-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background-color 0.4s ease,
    color 0.4s ease, border-color 0.4s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--charcoal); color: var(--ivory); }
.btn-solid:hover { background: var(--brown); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: rgba(17,17,17,0.3); color: var(--charcoal); }
.btn-outline:hover { border-color: var(--gold); color: var(--brown); }
.btn-light { border-color: rgba(247,242,234,0.4); color: var(--ivory); }
.btn-light:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}
.header.scrolled {
  background: rgba(247,242,234,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(17,17,17,0.06);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
@media (max-width: 640px){ .header-inner { padding: 16px 20px; } }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  height: 42px; width: 42px; border-radius: 8px;
  overflow: hidden; border: 1px solid rgba(198,166,106,0.45);
  flex-shrink: 0; background: #100f0d;
}
.logo-mark img { height: 100%; width: 100%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: "Fraunces", serif; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ivory); transition: color 0.4s; }
.logo-sub { margin-top: 3px; font-size: 0.55rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(247,242,234,0.7); transition: color 0.4s; }
.header.scrolled .logo-name { color: var(--charcoal); }
.header.scrolled .logo-sub { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  position: relative;
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ivory); transition: color 0.4s;
}
.header.scrolled .nav-link { color: var(--charcoal); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { color: var(--brown); }

.nav-cta {
  padding: 12px 24px; font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  background: var(--ivory); color: var(--charcoal);
  transition: transform 0.4s var(--ease), background-color 0.4s, color 0.4s;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--gold); }
.header.scrolled .nav-cta { background: var(--charcoal); color: var(--ivory); }
.header.scrolled .nav-cta:hover { background: var(--brown); }

.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: none; border: none; cursor: pointer; z-index: 60; }
.burger span { height: 1px; width: 24px; background: var(--ivory); transition: all 0.3s ease; }
.header.scrolled .burger span, .menu-open .burger span { background: var(--charcoal); }
.menu-open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2){ opacity: 0; }
.menu-open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ivory);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; padding: 112px 32px 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a.m-link { font-family: "Fraunces", serif; font-size: 2rem; color: var(--charcoal); margin: 12px 0; }
.mobile-menu a.m-link.active { color: var(--gold); }
.mobile-extra { margin-top: 40px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { height: 100%; width: 100%; object-fit: cover; animation: slowZoom 16s var(--ease) forwards; }
.hero-overlay { position: absolute; inset: 0; background: rgba(17,17,17,0.55); }
.hero-overlay-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,0.7), transparent 50%, rgba(17,17,17,0.3)); }
.hero-content { position: relative; z-index: 2; max-width: 880px; padding: 0 24px; text-align: center; color: var(--ivory); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-top: 24px; }
.hero-sub { margin: 28px auto 0; max-width: 620px; font-size: 1.05rem; color: rgba(247,242,234,0.82); }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(247,242,234,0.6); }
.scroll-hint i { display: block; height: 40px; width: 1px; background: rgba(247,242,234,0.4); animation: bob 2.2s ease-in-out infinite; }

@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Page hero (inner pages) */
.page-hero { position: relative; height: 62vh; min-height: 440px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-hero .hero-bg img { animation: slowZoom 16s var(--ease) forwards; }
.page-hero .hero-overlay { background: rgba(17,17,17,0.6); }
.page-hero-content { position: relative; z-index: 2; text-align: center; color: var(--ivory); padding: 80px 24px 0; max-width: 760px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 20px; }
.page-hero p { margin: 24px auto 0; max-width: 540px; color: rgba(247,242,234,0.8); font-weight: 300; }
.page-hero .gold-divider { margin: 28px auto 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 980px){ .split { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Image reveal ---------- */
.media { position: relative; overflow: hidden; }
.media img { height: 100%; width: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ratio-45 { aspect-ratio: 4/5; }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-11 { aspect-ratio: 1/1; }
.ratio-1610 { aspect-ratio: 16/10; }
.ratio-1611 { aspect-ratio: 16/11; }
.ratio-54 { aspect-ratio: 5/4; }
.media::after {
  content: ""; position: absolute; inset: 0; background: var(--ivory);
  transform-origin: right; transform: scaleX(1); transition: transform 1s cubic-bezier(0.77,0,0.18,1);
}
.media.in::after { transform: scaleX(0); }
.hover-zoom:hover .media img, .media.hover-zoom:hover img { transform: scale(1.08); }

/* ---------- Walkthrough video ---------- */
.video-frame {
  max-width: 340px; margin: 0 auto; aspect-ratio: 9/16; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(198,166,106,0.35);
  box-shadow: 0 30px 60px rgba(17,17,17,0.18); background: #100f0d;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Cards ---------- */
.card { background: var(--white); display: flex; flex-direction: column; height: 100%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(17,17,17,0.1); }
.card-body { padding: 32px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.5rem; margin-top: 4px; }
.card p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); flex: 1; }
.card .more { margin-top: 24px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--brown); display: inline-flex; gap: 8px; transition: color 0.4s; }
.card:hover .more { color: var(--gold); }
.card .more i { transition: transform 0.5s var(--ease); font-style: normal; }
.card:hover .more i { transform: translateX(4px); }

/* About stat badge */
.stat-badge { position: absolute; bottom: -32px; right: -16px; width: 176px; background: var(--charcoal); color: var(--ivory); padding: 24px; }
.stat-badge .num { font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--gold); }
.stat-badge p { margin-top: 8px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(247,242,234,0.7); }
@media (max-width: 640px){ .stat-badge { display: none; } }

/* ---------- Process / feature tiles ---------- */
.tiles { display: grid; gap: 1px; border: 1px solid rgba(247,242,234,0.1); }
.tiles.light { border-color: rgba(17,17,17,0.1); }
.tiles.cols-3 { grid-template-columns: repeat(3,1fr); }
.tiles.cols-4 { grid-template-columns: repeat(4,1fr); }
.tiles.cols-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 980px){ .tiles.cols-3, .tiles.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .tiles.cols-2, .tiles.cols-3, .tiles.cols-4 { grid-template-columns: 1fr; } }
.tile { background: var(--charcoal); padding: 36px; transition: background-color 0.5s ease; }
.tile:hover { background: var(--softblack); }
.tiles.light .tile { background: var(--ivory); }
.tiles.light .tile:hover { background: var(--white); }
.tile .num { font-family: "Fraunces", serif; font-size: 2.4rem; color: rgba(198,166,106,0.75); transition: color 0.4s; }
.tile:hover .num { color: var(--gold); }
.tile h3 { margin-top: 16px; font-size: 1.4rem; color: var(--ivory); }
.tiles.light .tile h3 { color: var(--charcoal); }
.tile p { margin-top: 12px; font-size: 0.88rem; color: rgba(247,242,234,0.6); }
.tiles.light .tile p { color: var(--muted); }
.tile .badge { display: inline-flex; height: 36px; width: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(198,166,106,0.5); color: var(--gold); font-size: 0.75rem; }

/* ---------- Benefits list ---------- */
.benefits { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; font-weight: 300; }
.benefits li::before { content: ""; margin-top: 9px; height: 6px; width: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.filter-btn {
  padding: 10px 20px; font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  border: 1px solid rgba(17,17,17,0.15); background: transparent; color: var(--muted); cursor: pointer;
  transition: all 0.4s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--brown); transform: translateY(-2px); }
.filter-btn.active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

.masonry { margin-top: 56px; column-count: 3; column-gap: 24px; }
@media (max-width: 980px){ .masonry { column-count: 2; } }
@media (max-width: 640px){ .masonry { column-count: 1; } }
.masonry-item { break-inside: avoid; margin-bottom: 24px; position: relative; overflow: hidden; cursor: pointer; background: #ece4d4; }
.masonry-item img { width: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.masonry-item:hover img { transform: scale(1.08); }
.masonry-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(17,17,17,0.78), rgba(17,17,17,0.05) 55%, transparent);
  opacity: 0; transition: opacity 0.5s ease;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-caption { padding: 24px; color: var(--ivory); }
.masonry-caption h3 { font-size: 1.5rem; margin-top: 4px; }
.masonry-caption .loc { font-size: 0.75rem; color: rgba(247,242,234,0.7); }

/* ---------- Portfolio projects (named, no filters) ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
@media (max-width: 760px){ .projects-grid { grid-template-columns: 1fr; gap: 36px; } }
.project-card { cursor: pointer; }
.project-cover { aspect-ratio: 4/3; overflow: hidden; background: #ece4d4; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover .project-cover img { transform: scale(1.05); }
.project-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 18px; }
.project-meta h3 { font-size: 1.55rem; margin-top: 4px; transition: color 0.4s; }
.project-card:hover .project-meta h3 { color: var(--brown); }
.project-count { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); white-space: nowrap; }

.project-modal { position: fixed; inset: 0; z-index: 80; display: none; overflow-y: auto;
  background: rgba(17,17,17,0.97); backdrop-filter: blur(6px); padding: 80px 24px 60px; }
.project-modal.open { display: block; }
.project-modal-inner { max-width: 1040px; margin: 0 auto; }
.project-modal-head { text-align: center; color: var(--ivory); margin-bottom: 44px; }
.project-modal-head h2 { font-size: clamp(1.8rem,4vw,2.6rem); margin-top: 8px; }
.project-modal-head .heading-rule { margin: 20px auto 0; }
.project-gallery { columns: 2; column-gap: 18px; }
@media (max-width: 700px){ .project-gallery { columns: 1; } }
.project-shot { break-inside: avoid; margin-bottom: 18px; overflow: hidden; }
.project-shot img { width: 100%; display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  background: rgba(17,17,17,0.9); backdrop-filter: blur(4px); padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-inner { background: var(--ivory); max-width: 920px; max-height: 86vh; overflow: hidden;
  animation: popIn 0.45s var(--ease); }
.lightbox-inner img { max-height: 70vh; width: 100%; object-fit: cover; }
.lightbox-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px 28px; }
.lightbox-meta h3 { font-size: 1.5rem; color: var(--charcoal); margin-top: 4px; }
.lightbox-meta .loc { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.lightbox-close { position: absolute; top: 24px; right: 28px; font-size: 2rem; color: rgba(247,242,234,0.8); background: none; border: none; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--gold); }
@keyframes popIn { from { opacity: 0; transform: scale(0.94) translateY(20px);} to { opacity: 1; transform: none; } }

/* Featured projects grid (Home) - links to Portfolio */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
@media (max-width: 920px){ .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .feature-grid { grid-template-columns: 1fr; } }
.feat-card { display: block; }
.feat-cover { aspect-ratio: 4/3; overflow: hidden; background: #ece4d4; }
.feat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feat-card:hover .feat-cover img { transform: scale(1.05); }
.feat-meta { padding-top: 16px; }
.feat-meta h3 { font-size: 1.5rem; margin-top: 4px; transition: color 0.4s; }
.feat-card:hover .feat-meta h3 { color: var(--brown); }
.feat-meta .more { margin-top: 12px; display: inline-flex; gap: 8px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brown); }
.feat-card:hover .feat-meta .more { color: var(--gold); }
.feat-meta .more i { font-style: normal; transition: transform 0.5s var(--ease); }
.feat-card:hover .feat-meta .more i { transform: translateX(4px); }

/* Featured portfolio editorial grid */
.featured-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; margin-top: 64px; }
.featured-grid .col-7 { grid-column: span 7; }
.featured-grid .col-5 { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 980px){ .featured-grid { grid-template-columns: 1fr; } .featured-grid .col-7, .featured-grid .col-5 { grid-column: auto; } }
.feat-tile { position: relative; overflow: hidden; cursor: pointer; background: #ece4d4; }
.feat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feat-tile:hover img { transform: scale(1.08); }
.feat-tile .masonry-overlay { opacity: 0; }
.feat-tile:hover .masonry-overlay { opacity: 1; }

/* ---------- Testimonials ---------- */
.quote-mark { font-family: "Fraunces", serif; font-size: 4rem; line-height: 1; color: rgba(198,166,106,0.6); }
.testimonial { min-height: 200px; }
.testimonial blockquote p { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 400; font-variation-settings: "opsz" 34, "wght" 400; line-height: 1.5; color: var(--ivory); }
.testimonial .t-name { margin-top: 28px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); }
.testimonial .t-detail { margin-top: 6px; font-size: 0.78rem; color: rgba(247,242,234,0.5); }
.t-controls { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.t-arrow { background: none; border: none; color: rgba(247,242,234,0.5); cursor: pointer; font-size: 1.1rem; transition: color 0.3s; }
.t-arrow:hover { color: var(--gold); }
.t-dots { display: flex; gap: 8px; }
.t-dot { height: 6px; width: 6px; border-radius: 999px; background: rgba(247,242,234,0.3); border: none; cursor: pointer; transition: all 0.5s var(--ease); }
.t-dot.active { width: 24px; background: var(--gold); }

/* ---------- Instagram ---------- */
.insta-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
@media (max-width: 980px){ .insta-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px){ .insta-grid { grid-template-columns: repeat(2,1fr); } }
.insta-item { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #ece4d4; }
.insta-item img { height: 100%; width: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.insta-item:hover img { transform: scale(1.08); }
.insta-item span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(17,17,17,0.4); opacity: 0; transition: opacity 0.5s; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ivory); }
.insta-item:hover span { opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .hero-bg img { animation: none; }
.cta-band .hero-overlay { background: rgba(17,17,17,0.75); }
.cta-content { position: relative; z-index: 2; text-align: center; color: var(--ivory); max-width: 760px; margin: 0 auto; padding: 112px 24px; }
.cta-content h2 { font-size: clamp(1.9rem,4vw,3rem); margin-top: 20px; }
.cta-content p { margin: 24px auto 0; max-width: 540px; color: rgba(247,242,234,0.75); }
.cta-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { margin-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 640px){ .form-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid rgba(17,17,17,0.2);
  background: transparent; padding: 12px 0; font-family: inherit; font-size: 0.9rem; font-weight: 300;
  color: var(--charcoal); outline: none; transition: border-color 0.4s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: none; }
.field select { cursor: pointer; }
.form-actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }

.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 80px; }
@media (max-width: 980px){ .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.studio-card { background: var(--charcoal); color: var(--ivory); padding: 36px; }
.studio-card h3 { font-size: 1.5rem; }
.studio-card dl { margin-top: 28px; display: flex; flex-direction: column; gap: 24px; }
.studio-card dt { color: var(--gold); }
.studio-card dd { margin-top: 4px; color: rgba(247,242,234,0.8); font-size: 0.9rem; }
.form-success { margin-top: 40px; border: 1px solid rgba(198,166,106,0.4); background: var(--white); padding: 40px; text-align: center; }

/* ---------- Blog ---------- */
.post-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px){ .post-feature { grid-template-columns: 1fr; gap: 32px; } }
.post-meta { display: flex; align-items: center; gap: 16px; }
.post-meta .date { font-size: 0.75rem; color: var(--muted); }
.post-card h3 { font-size: 1.5rem; margin-top: 12px; line-height: 1.3; }
.post-card p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.post-card .date { margin-top: 16px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(119,113,106,0.8); }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: var(--ivory); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
@media (max-width: 980px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .footer-grid { grid-template-columns: 1fr; } }
.footer p.brand-desc { margin-top: 20px; font-size: 0.9rem; color: rgba(247,242,234,0.65); max-width: 38ch; }
.footer h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--gold); font-family: "Jost", sans-serif; font-weight: 500; }
.footer ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.footer ul a, .footer .studio-list li { font-size: 0.9rem; color: rgba(247,242,234,0.7); transition: color 0.3s; }
.footer ul a:hover { color: var(--ivory); }
.footer-social { margin-top: 24px; display: flex; gap: 16px; }
.footer-social a { position: relative; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(247,242,234,0.8); }
.footer-social a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; }
.footer-copy { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-copy p { font-size: 0.72rem; color: rgba(247,242,234,0.5); }

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  background: rgba(17,17,17,0.95); color: var(--ivory);
  padding: 12px 20px 12px 12px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float .wa-icon { height: 36px; width: 36px; border-radius: 50%; background: var(--gold); color: var(--charcoal); display: flex; align-items: center; justify-content: center; }
.wa-float .wa-label { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; }
@media (max-width: 640px){ .wa-float .wa-label { display: none; } .wa-float { padding: 12px; } }

/* ---------- Image placeholder (for missing images) ---------- */
.img-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #ece4d4; color: var(--brown); min-height: 100%; padding: 24px;
}
.img-placeholder .ph-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.img-placeholder .ph-rule { height: 1px; width: 40px; background: var(--gold); }
.img-placeholder .ph-title { font-family: "Fraunces", serif; font-size: 1.25rem; color: rgba(107,79,58,0.75); }
.img-placeholder .ph-sub { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Full-bleed hero / CTA backgrounds with no image: render as an elegant dark
   tone instead of showing the "image coming soon" label. */
.hero-bg .img-placeholder {
  background: linear-gradient(135deg, #2b2620 0%, #1b1814 55%, #100e0b 100%);
}
.hero-bg .img-placeholder .ph-inner { display: none; }

/* Logo circle without a logo file yet: show a clean RHD monogram. */
.logo-mark .img-placeholder { background: var(--charcoal); }
.logo-mark .img-placeholder .ph-inner { display: none; }
.logo-mark .img-placeholder::after {
  content: "RHD"; font-family: "Fraunces", serif; font-size: 0.6rem;
  letter-spacing: 0.04em; color: var(--gold);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero stagger */
.stagger > * { opacity: 0; transform: translateY(28px); animation: fadeUp 0.9s var(--ease) forwards; }
.stagger > *:nth-child(1){ animation-delay: 0.3s; }
.stagger > *:nth-child(2){ animation-delay: 0.45s; }
.stagger > *:nth-child(3){ animation-delay: 0.6s; }
.stagger > *:nth-child(4){ animation-delay: 0.75s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Page transition fade */
body { opacity: 0; transition: opacity 0.5s ease; }
body.loaded { opacity: 1; }
body.leaving { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  body { opacity: 1; }
}

.mt-0 { margin-top: 0; }
.mt-6 { margin-top: 24px; }
.mt-9 { margin-top: 36px; }
.flex-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.relative { position: relative; }
