/* ============================================================
   AVENOIR — Integrated AV
   Palette sampled from the master logo
   ============================================================ */

:root {
  --black:        #000000;
  --panel:        #0a0a0a;
  --panel-2:      #111010;
  --line:         #22201b;

  --gold-hi:      #FEE977;  /* brightest sheen   */
  --gold:         #D4A94F;  /* primary accent    */
  --gold-warm:    #C99A3C;  /* warm mid-gold     */
  --gold-deep:    #7F4901;  /* shadow / edges    */

  --text:         #E8E4DC;  /* warm off-white    */
  --text-dim:     #9A958C;  /* muted secondary   */

  --gold-gradient: linear-gradient(180deg, #FEE977 0%, #E8B84B 38%, #C99A3C 68%, #7F4901 100%);

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Type ---------- */
.display {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.14em;
}

h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 500; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gold);
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled {
  background: rgba(0,0,0,0.9);
  border-bottom: 1px solid var(--line);
}
.nav__logo img { height: 46px; width: auto; }

.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  align-items: center;
  list-style: none;
}
.nav__links a {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--gold-hi); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--gold);
  transition: .3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 38%, rgba(212,169,79,0.10), transparent 70%),
    var(--black);
}
.hero__logo {
  width: min(440px, 74vw);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1.2s var(--ease) 0.15s forwards;
}
.hero__tagline {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.1em;
  line-height: 1.5;
  max-width: 720px;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1.2s var(--ease) 0.5s forwards;
}
.hero__cta {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1.2s var(--ease) 0.8s forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fade 1s ease 1.4s forwards;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 34px;
  margin: 12px auto 0;
  background: linear-gradient(var(--gold), transparent);
}

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 16px 42px;
  border: 1px solid var(--gold-warm);
  color: var(--gold-hi);
  background: transparent;
  cursor: pointer;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--black); border-color: var(--gold-hi); }
.btn:hover::before { opacity: 1; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 56px); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head .eyebrow { display: block; margin-bottom: 16px; }
.section__title {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.section__sub {
  margin-top: 18px;
  color: var(--text-dim);
  max-width: 620px;
  margin-left: auto; margin-right: auto;
  font-size: 1.02rem;
}

.divider {
  width: 60px; height: 2px;
  background: var(--gold-gradient);
  margin: 22px auto 0;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  transition: border-color .45s var(--ease), transform .45s var(--ease);
}
.tile__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease), filter .6s var(--ease);
  filter: saturate(0.85) brightness(0.7);
}
.tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.9) 100%);
  transition: background .5s var(--ease);
}
.tile__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.18rem);
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--text);
  z-index: 2;
  transition: color .4s var(--ease);
}
.tile__plus {
  position: absolute;
  top: 16px; right: 18px;
  width: 30px; height: 30px;
  border: 1px solid var(--gold-warm);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.7);
  transition: all .45s var(--ease);
  z-index: 2;
}
.tile:hover { border-color: var(--gold-warm); transform: translateY(-4px); }
.tile:hover .tile__bg { transform: scale(1.08); filter: saturate(1) brightness(0.85); }
.tile:hover .tile__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%); }
.tile:hover .tile__label { color: var(--gold-hi); }
.tile:hover .tile__plus { opacity: 1; transform: scale(1); }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 940px;
  width: 100%;
  max-height: 86vh;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transform: translateY(24px) scale(0.98);
  transition: transform .45s var(--ease);
  overflow: hidden;
}
.modal.open .modal__card { transform: translateY(0) scale(1); }
.modal__img {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
.modal__body {
  padding: clamp(30px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.modal__rule { width: 54px; height: 2px; background: var(--gold-gradient); margin-bottom: 26px; }
.modal__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  line-height: 1.2;
}
.modal__text { color: var(--text-dim); font-size: 1.02rem; }
.modal__text p { margin-bottom: 14px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.modal__close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.about__text p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.05rem; }
.about__mark { text-align: center; }
.about__mark img { width: min(260px, 60%); margin: 0 auto; opacity: 0.92; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212,169,79,0.10), transparent 70%),
    var(--black);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: 0.08em; margin-bottom: 20px; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px clamp(20px, 5vw, 56px) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__logo img { height: 60px; margin: 0 auto 24px; }
.footer__meta { color: var(--text-dim); font-size: 0.9rem; line-height: 1.9; }
.footer__meta a:hover { color: var(--gold-hi); }
.footer__links {
  display: flex; gap: 24px; justify-content: center;
  margin: 24px 0;
  list-style: none;
  flex-wrap: wrap;
}
.footer__links a {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.74rem; color: var(--text);
  transition: color .3s var(--ease);
}
.footer__links a:hover { color: var(--gold-hi); }
.footer__fine { margin-top: 28px; font-size: 0.76rem; color: #55524b; letter-spacing: 0.08em; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.page-hero {
  padding: 160px 20px 60px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(212,169,79,0.08), transparent 70%), var(--black);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: 0.12em; }

.gallery-section { margin-bottom: clamp(50px, 7vw, 90px); }
.gallery-section__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.gallery-section__head h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.gallery-section__head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-warm), transparent);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3833;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  cursor: pointer;
}
.gallery-item:hover { border-color: var(--gold-warm); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .modal__card { grid-template-columns: 1fr; max-height: 90vh; }
  .modal__img { min-height: 200px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__mark { order: -1; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 74%;
    max-width: 320px;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; z-index: 101; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero__logo, .hero__tagline, .hero__cta, .hero__scroll { opacity: 1; transform: none; }
}
