/* ==========================================================================
      GOLDEN LEAF EVENTS — Luxury Wedding Stage & Engagement Décor
   style.css
   --------------------------------------------------------------------------
   INDEX
   01. Design tokens (variables)
   02. Reset & base
   03. Typography & helpers
   04. Buttons
   05. Preloader
   06. Header + nav + drawer
   07. Hero
   08. Stats band
   09. Section shell
      10. Portfolio (filters + cards)
      11. Services
      12. About
   13. Contact + form
   14. Footer
   15. Floating action buttons
   16. Lightbox
   17. Reveal-on-scroll animation
   18. Responsive
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  --black: #000000;
  --coal-1: #0A0A0A;
  --coal-2: #0C0C0C;
  --coal-3: #131313;
  --coal-4: #181818;

  --gold: #D4AF7A;
  --gold-deep: #C9A961;
  --gold-soft: #F4EFE6;
  --gold-glow: rgba(212, 175, 122, .5);
  --gold-glow-sm: rgba(212, 175, 122, .35);

  --gray: #8A857C;
  --gray-dim: #55524B;

  --gold-grad: linear-gradient(120deg, #D4AF7A 0%, #F4EFE6 100%);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --fast: .35s var(--ease);
  --slow: .7s var(--ease);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --hairline: linear-gradient(90deg, transparent, var(--gold), transparent);
    --container: 1240px;
  --header-h: 96px;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--black);
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--fast); }

ul { list-style: none; }

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   03. TYPOGRAPHY & HELPERS
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--gold-soft);
}

.gold-grad-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 26px;
}

/* Section head (centered) */
.section-head { text-align: center; margin-bottom: 54px; }

/* ==========================================================================
   04. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform var(--fast), box-shadow var(--fast), background-color var(--fast), color var(--fast), border-color var(--fast);
  white-space: nowrap;
}

.btn--sm { padding: 12px 24px; font-size: 11px; }

.btn-gold {
  background: var(--gold-grad);
  color: #1a1508;
  font-weight: 500;
  box-shadow: 0 6px 26px var(--gold-glow-sm);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
}
.btn-ghost:hover {
  background: rgba(212, 175, 122, .08);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   05. PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }

.preloader__inner { text-align: center; }

.preloader__logo {
  width: 90px; height: 90px;
  margin: 0 auto 26px;
  object-fit: contain;
  animation: preloadPulse 2.2s ease-in-out infinite;
}

.preloader__line {
  width: 180px; height: 1px;
  margin: 0 auto 24px;
  background: rgba(212, 175, 122, .18);
  overflow: hidden;
  position: relative;
}
.preloader__line span {
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: translateX(-100%);
  animation: preloadLine 1.6s var(--ease) infinite;
}

.preloader__text {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: .5em;
}

@keyframes preloadLine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@keyframes preloadPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.04); }
}

/* ==========================================================================
   06. HEADER + NAV + DRAWER
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: transform .5s var(--ease), background-color .5s var(--ease), backdrop-filter .5s var(--ease);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header.scrolled {
  background: rgba(10, 10, 10, .82);
  border-bottom: 1px solid rgba(212, 175, 122, .14);
}
.header.hidden { transform: translateY(-100%); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__logo {
  width: 72px; height: 72px;
  object-fit: contain;
  display: block;
}
/* Footer logo — 50% larger than its previous 44px size */
.brand--footer .brand__logo { width: 66px; height: 66px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__line {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: .12em;
}
.brand__line--gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Desktop nav */
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__item { position: relative; }

.nav__link {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  position: relative;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--fast);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { width: 100%; }

.nav__caret { transition: transform var(--fast); }
.nav__item--has-drop:hover .nav__caret,
.nav__item--has-drop.open .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 210px;
  background: rgba(12, 12, 12, .96);
  border: 1px solid rgba(212, 175, 122, .18);
  border-radius: 3px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  z-index: 20;
}
.nav__item--has-drop:hover .nav__drop,
.nav__item--has-drop.open .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__drop li a {
  display: block;
  padding: 9px 22px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  font-family: var(--font-head);
}
.nav__drop li a:hover { color: var(--gold); background: rgba(212, 175, 122, .06); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  width: 26px; height: 1.5px;
  background: var(--gold);
  transition: transform var(--fast), opacity var(--fast);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity var(--fast);
}
.drawer-overlay.show { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 950;
  width: min(86vw, 360px);
  height: 100%;
  background: var(--coal-2);
  border-left: 1px solid rgba(212, 175, 122, .18);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer__close {
  align-self: flex-end;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 20px;
}
.drawer__list { display: flex; flex-direction: column; gap: 4px; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(212, 175, 122, .1);
}
.drawer__link:hover { color: var(--gold); }
.drawer__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
  padding-left: 16px;
}
.drawer__group.open .drawer__sub { max-height: 640px; }
.drawer__group.open .nav__caret { transform: rotate(180deg); }
.drawer__sub li a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gray);
}
.drawer__sub li a:hover { color: var(--gold); }
.drawer__cta { margin-top: 24px; width: 100%; }
.drawer__foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .06em;
}
.drawer__foot-link { color: var(--gold); }

/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 122, .16);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}
/* Slow infinite zoom — desktop only (see responsive section) */
@media (min-width: 1025px) {
  .hero__img { animation: heroZoom 22s ease-in-out infinite alternate; }
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Subtle film grain overlay (no blend modes) */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 100%);
}

/* Giant outlined word */
.hero__word {
  position: absolute;
  right: -2%;
  bottom: 4%;
  z-index: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 17rem);
  line-height: .8;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 122, .28);
  pointer-events: none;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--header-h);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid rgba(212, 175, 122, .32);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, .3);
  margin-bottom: 30px;
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pillPulse 2s ease-out infinite;
}
@keyframes pillPulse {
  0%   { box-shadow: 0 0 0 0 var(--gold-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(212,175,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,122,0); }
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.6vw, 6rem);
  line-height: .98;
  letter-spacing: .01em;
  margin-bottom: 26px;
}
.hero__title-line { display: block; }
.hero__title-italic { font-style: italic; font-weight: 500; }

.hero__sub {
  max-width: 540px;
  color: var(--gray);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 40px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__cue-text {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cueLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueLine {
  0%, 100% { transform: scaleY(.4); opacity: .4; }
  50%      { transform: scaleY(1);  opacity: 1; }
}

.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--black));
}

/* ==========================================================================
   08. STATS BAND
   ========================================================================== */
.stats {
  background: var(--coal-1);
  border-top: 1px solid rgba(212, 175, 122, .35);
  border-image: var(--hairline) 1;
  border-bottom: 1px solid rgba(212, 175, 122, .14);
}
.stats__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 54px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.stat__label {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ==========================================================================
   09. SECTION SHELL
   ========================================================================== */
.section {
  padding: 108px 0;
  position: relative;
}
.portfolio, .services { border-bottom: 1px solid rgba(212, 175, 122, .12); }
.portfolio { background: var(--black); }
.services  { background: var(--coal-1); }

/* ==========================================================================
   10. PORTFOLIO
   ========================================================================== */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 52px;
}
.filter {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 11px 22px;
  border: 1px solid rgba(212, 175, 122, .18);
  border-radius: 999px;
  transition: color var(--fast), border-color var(--fast), background-color var(--fast);
}
.filter:hover { color: var(--gold); border-color: rgba(212, 175, 122, .5); }
.filter.is-active {
  color: #1a1508;
  background: var(--gold-grad);
  border-color: transparent;
}

.grid { display: grid; gap: 26px; }
.grid--portfolio { grid-template-columns: repeat(4, 1fr); }
.grid--services { grid-template-columns: repeat(3, 1fr); }

/* Card */
.card {
  background: var(--coal-2);
  border: 1px solid rgba(212, 175, 122, .12);
  border-radius: 3px;
  overflow: hidden;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 122, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 122, .12);
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--slow), filter var(--slow);
  filter: saturate(.92) brightness(.92);
}
.card:hover .card__media img { transform: scale(1.07); filter: saturate(1) brightness(1); }
.card__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7));
  opacity: .8;
  transition: opacity var(--fast);
}
.card__body { padding: 22px 22px 26px; }
.card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.card__desc { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.card__more {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card__more span { transition: transform var(--fast); }
.card__more:hover span { transform: translateX(5px); }

/* Filtering states */
.card.is-hidden { display: none; }
.card.is-filtering {
  animation: cardIn .5s var(--ease) both;
  filter: blur(6px);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ==========================================================================
   11. SERVICES
   ========================================================================== */
.service {
  background: var(--coal-2);
  border: 1px solid rgba(212, 175, 122, .12);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 122, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.service__media { aspect-ratio: 10 / 7; overflow: hidden; }
.service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--slow);
  filter: saturate(.92) brightness(.9);
}
.service:hover .service__media img { transform: scale(1.06); }
.service__body { padding: 30px 28px 34px; display: flex; flex-direction: column; flex: 1; }
.service__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.service__list { margin-bottom: 26px; flex: 1; }
.service__list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 14.5px;
  color: var(--gray);
  border-bottom: 1px solid rgba(212, 175, 122, .07);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 6px; height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.service__body .btn { align-self: flex-start; }

/* ==========================================================================
   12. ABOUT
   ========================================================================== */
.about {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(212, 175, 122, .07), transparent 60%),
    var(--black);
  border-bottom: 1px solid rgba(212, 175, 122, .16);
}
.about__inner {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.about__text {
  max-width: 760px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.9;
  margin: 26px auto 30px;
}
.about__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  max-width: 720px;
}

/* ==========================================================================
   13. CONTACT
   ========================================================================== */
.contact { background: var(--coal-1); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Details */
.contact__h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--gold-soft);
  margin-bottom: 26px;
}
.contact__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(212, 175, 122, .12);
}
.contact__k {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
}
.contact__v { color: var(--gold-soft); font-size: 15.5px; }
.contact__link:hover { color: var(--gold); }
.contact__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Form */
.contact__form-wrap {
  background: var(--coal-3);
  border: 1px solid rgba(212, 175, 122, .16);
  border-radius: 3px;
  padding: 38px 34px;
}
.form__row { margin-bottom: 18px; }
.form__label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form__label span { color: var(--gold-deep); }
.form__input {
  width: 100%;
  background: var(--coal-1);
  border: 1px solid rgba(212, 175, 122, .2);
  border-radius: 2px;
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.form__input::placeholder { color: var(--gray-dim); }
.form__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 122, .12);
}
.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D4AF7A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}
.form__select option { background: var(--coal-2); color: var(--gold-soft); }
.form__textarea { resize: vertical; min-height: 110px; }
.form__submit { width: 100%; margin-top: 6px; }
.form__submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(212, 175, 122, .28);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 60px;
}
.footer__col--brand .brand { margin-bottom: 20px; }
.footer__tag { color: var(--gray); font-size: 14px; max-width: 300px; }
.footer__h {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__list li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--gray);
}
.footer__list li a:hover { color: var(--gold); }

.footer__bar { border-top: 1px solid rgba(212, 175, 122, .14); }
.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
  color: var(--gray);
}
.footer__bar-sub { letter-spacing: .1em; }

/* ==========================================================================
   15. FLOATING ACTION BUTTONS
   ========================================================================== */
.fabs {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  transition: transform var(--fast), box-shadow var(--fast);
  animation: fabIn .6s var(--ease) both;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(0, 0, 0, .6); }
.fab--call { background: var(--gold-grad); color: #1a1508; animation-delay: .1s; }
.fab--wa { background: #25D366; animation-delay: .2s; }
@keyframes fabIn {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   16. LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fast), visibility var(--fast);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(212, 175, 122, .3);
  border-radius: 3px;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
}

/* ==========================================================================
   17. REVEAL-ON-SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Backdrop blur — desktop only (performance). */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .header.scrolled { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nav__drop { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .contact__form-wrap { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */

/* Tablet — portfolio 4 → 3, services 3 → 2 */
@media (max-width: 1100px) {
    .grid--portfolio { grid-template-columns: repeat(3, 1fr); }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Disable hero zoom on ≤1024px / touch devices */
@media (max-width: 1024px) {
  .hero__img { animation: none !important; }
}

/* Nav collapses to drawer at ≤900px */
@media (max-width: 900px) {
    :root { --header-h: 84px; }

  .nav { display: none; }
  .burger { display: flex; }

  /* hero word smaller */
  .hero__word { font-size: clamp(4rem, 22vw, 9rem); right: -4%; bottom: 8%; opacity: .55; }

  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
}

/* Portfolio 3 → 2, services → 1 on small tablets */
@media (max-width: 760px) {
  .container, .hero__content, .header__inner, .stats__inner { padding-left: 22px; padding-right: 22px; }
  .section { padding: 80px 0; }

    .grid--portfolio { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .grid--services { grid-template-columns: 1fr; }
    .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }

  .about__inner { min-height: 0; }
  .contact__form-wrap { padding: 30px 22px; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .contact__k { padding-top: 0; }

  .hero__sub { font-size: 15.5px; }
  .hero__cue { display: none; }
}

/* Phones */
@media (max-width: 520px) {
  .grid--portfolio { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; text-align: center; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

    .brand__line { font-size: 15px; }
  .brand__logo { width: 63px; height: 63px; }

  .fabs { right: 16px; bottom: 16px; }
  .fab { width: 50px; height: 50px; }
}

/* Reduced motion — disable all animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
    .reveal { opacity: 1; transform: none; }
  .hero__img { animation: none !important; }
}

/* ==========================================================================
   19. PORTFOLIO PREVIEW + PREVIEW CTA + GALLERY PAGE TWEAKS
   ========================================================================== */
.portfolio-preview { background: var(--black); border-bottom: 1px solid rgba(212, 175, 122, .12); }
.portfolio-preview .grid--portfolio { grid-template-columns: repeat(4, 1fr); }
.preview-cta { text-align: center; margin-top: 56px; }

/* Gallery page uses the standard portfolio section; give it the right spacing */
.page-gallery .portfolio { padding-top: calc(var(--header-h) + 60px); }

@media (max-width: 1100px) {
  .portfolio-preview .grid--portfolio { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .portfolio-preview .grid--portfolio { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 520px) {
  .portfolio-preview .grid--portfolio { grid-template-columns: 1fr; }
}