/* =========================================================
   JJGM HOLDINGS — v1.1
   Palette sampled from JJGM dark-logo file:
     bg (stone):  #2d2925   — warm dark stone (logo background)
     ink soft:    #4d4640
     mark/linen:  #e9d5c7   — sampled from logo signature
   + hospitality accents:
     sage:        #8a9d8b   — primary green accent
     sage-deep:   #6b8170
     olive:       #4f5b48
   Type: Cormorant Garamond (display) · Inter (body)
   ========================================================= */

:root {
  /* warm earth foundation */
  --stone:        #2d2925;
  --stone-2:      #393430;
  --stone-3:      #4d4640;
  --ink:          #2d2925;
  --ink-soft:     #4d4640;

  /* light / paper */
  --linen:        #ece1cb;       /* primary section bg */
  --linen-2:      #e1d2b6;       /* deeper section bg */
  --paper:        #f1e7d4;       /* lightest, hero contrast */
  --paper-2:      #f6eedd;

  /* greens — hospitality accents */
  --sage:         #8a9d8b;
  --sage-2:       #6b8170;
  --olive:        #4f5b48;

  /* text + utility */
  --muted:        #6f6358;
  --rule:         #cfc1a3;

  --shadow:       0 30px 60px -28px rgba(45, 41, 37, 0.45);
  --radius:       4px;
  --maxw:         1180px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */
.section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em 0;
  color: var(--ink);
}
.section-title--light { color: var(--linen); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-2);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--sage); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(241, 231, 212, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--rule);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--linen);
  transition: color 280ms ease;
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav__brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--sage);
}
.nav.is-scrolled .nav__brand-mark { color: var(--sage-2); }
.nav__brand-word {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--linen);
  opacity: 0.85;
  transition: color 280ms ease, opacity 200ms ease;
  position: relative;
}
.nav.is-scrolled .nav__links a { color: var(--ink); opacity: 0.7; }
.nav__links a:hover { opacity: 1; color: var(--sage); }
.nav.is-scrolled .nav__links a:hover { color: var(--sage-2); }

@media (max-width: 600px) {
  .nav__brand-word { display: none; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 0.72rem; letter-spacing: 0.15em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--linen);
  overflow: hidden;
  padding: 80px 24px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 25%, rgba(138,157,139,0.16), transparent 60%),
    radial-gradient(100% 60% at 50% 100%, rgba(79,91,72,0.20), transparent 70%),
    linear-gradient(180deg, #211e1a 0%, #2d2925 55%, #25211d 100%);
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 22% 30%, rgba(236,225,203,0.18), transparent 50%),
    radial-gradient(1px 1px at 68% 60%, rgba(236,225,203,0.14), transparent 50%),
    radial-gradient(1px 1px at 42% 80%, rgba(236,225,203,0.10), transparent 50%),
    radial-gradient(1px 1px at 84% 22%, rgba(236,225,203,0.16), transparent 50%);
  opacity: 0.85;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__monogram {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--sage);
  opacity: 0.95;
  margin-bottom: 0.05em;
}
.hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.3em 0;
  color: var(--linen);
}
.hero__tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--sage);
  margin: 0 0 1.4em 0;
  letter-spacing: 0.01em;
}
.hero__sub {
  font-size: 0.98rem;
  color: rgba(236, 225, 203, 0.72);
  max-width: 480px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--linen);
  opacity: 0.7;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(236, 225, 203, 0.25);
  transition: opacity 200ms ease, color 200ms ease, border-color 200ms ease;
}
.hero__cue:hover { opacity: 1; color: var(--sage); border-color: var(--sage); }
.hero__cue svg { transition: transform 200ms ease; }
.hero__cue:hover svg { transform: translateY(2px); }

/* ---------- about ---------- */
.about {
  background: var(--paper);
  padding: clamp(80px, 12vw, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__head { position: sticky; top: 100px; }
.about__body p {
  margin: 0 0 1.2em 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}
.about__body p:last-child { margin-bottom: 0; }
.about__body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; gap: 24px; }
  .about__head { position: static; }
}

/* ---------- portfolio ---------- */
.portfolio {
  background: var(--linen);
  padding: clamp(80px, 12vw, 140px) 0;
}
.portfolio__head {
  text-align: left;
  max-width: 720px;
  margin: 0 0 clamp(48px, 7vw, 80px) 0;
}
.portfolio__lede {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0;
  max-width: 540px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 44px);
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; gap: 36px; } }

.card {
  display: flex;
  flex-direction: column;
  transition: transform 320ms ease;
}
.card:hover { transform: translateY(-3px); }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2,0.6,0.2,1);
}
.card__media:hover img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(236, 225, 203, 0.94);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge--current {
  background: var(--sage-2);
  color: var(--paper);
}
.badge--past {
  background: rgba(45, 41, 37, 0.88);
  color: var(--linen);
}

.card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.card__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.card__loc {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-2);
  font-weight: 500;
}
.card__copy {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.card__links {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex; gap: 10px;
  align-items: center;
}
.card__links a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.card__links a:hover { color: var(--sage-2); border-bottom-color: var(--sage-2); }
.card__links span { color: var(--muted); }

/* ---------- gallery ---------- */
.gallery {
  background: var(--linen-2);
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--rule);
}
.gallery__head {
  text-align: left;
  max-width: 720px;
  margin: 0 0 clamp(40px, 6vw, 64px) 0;
}
.gallery__lede {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0;
  max-width: 540px;
}
.gallery__group {
  margin-bottom: clamp(48px, 7vw, 80px);
}
.gallery__group:last-child { margin-bottom: 0; }
.gallery__group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.gallery__venue {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.gallery__loc {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-2);
  font-weight: 500;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
@media (max-width: 900px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery__grid { grid-template-columns: 1fr; gap: 14px; } }

.gallery__tile {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  background: var(--linen-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 16px 30px -20px rgba(45, 41, 37, 0.4);
  transition: transform 320ms ease, box-shadow 320ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.gallery__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -22px rgba(45, 41, 37, 0.55);
}
.gallery__tile:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
.gallery__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 800ms cubic-bezier(0.2,0.6,0.2,1), opacity 200ms ease;
}
.gallery__tile:hover img { transform: scale(1.04); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 16, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__stage {
  position: relative;
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 225, 203, 0.7);
  font-weight: 500;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(236, 225, 203, 0.08);
  border: 1px solid rgba(236, 225, 203, 0.18);
  color: var(--linen);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  z-index: 1;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(138, 157, 139, 0.22);
  border-color: var(--sage);
  color: var(--sage);
}
.lightbox__close {
  top: 20px;
  right: 24px;
}
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.04); }

@media (max-width: 600px) {
  .lightbox { padding: 50px 12px; }
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__img { max-height: 75vh; }
}

body.has-lightbox-open { overflow: hidden; }

/* ---------- contact ---------- */
.contact {
  background: var(--stone);
  color: var(--linen);
  padding: clamp(80px, 12vw, 140px) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: end;
}
.contact__lede {
  color: rgba(236, 225, 203, 0.72);
  margin: 0;
  font-size: 1.06rem;
  max-width: 420px;
}
.contact__lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(236,225,203,0.14);
  border-top: 1px solid rgba(236,225,203,0.20);
  border-bottom: 1px solid rgba(236,225,203,0.20);
}
.contact__line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  background: var(--stone);
  transition: padding 200ms ease, color 200ms ease;
}
.contact__line:hover { padding-left: 12px; }
.contact__line:hover .contact__value { color: var(--sage); }
.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.contact__value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--linen);
  transition: color 220ms ease;
  word-break: break-word;
}

@media (max-width: 800px) {
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__line { grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 4px; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--stone);
  color: rgba(236, 225, 203, 0.55);
  border-top: 1px solid rgba(236, 225, 203, 0.14);
  padding: 28px 0;
  font-size: 0.78rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--linen);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.6,0.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
