/* ═══════════════════════════════════════════════════════════════
   JMARTIN DESIGNS — Shared Stylesheet
   Brand colors: update --brand to match logo hex codes
   ═══════════════════════════════════════════════════════════════ */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,700;0,900;1,200&family=Outfit:wght@200;300;400;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --brand:       #C9A84C;   /* ← UPDATE to match your logo */
  --brand-lt:    #E2C47A;
  --bg:          #0C0C0C;
  --bg2:         #141414;
  --bg3:         #1E1E1E;
  --white:       #F2F0EC;
  --gray:        #888888;
  --lgray:       #C0BDB8;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Outfit', sans-serif;
  --max:         1300px;
  --pad:         80px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--font-body); font-weight: 300; line-height: 1.75; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { padding: 80px 0; }

/* ── Typography helpers ────────────────────────────────────── */
.label {
  font-size: 10px; letter-spacing: 0.44em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.ttl {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(36px, 5.5vw, 72px); line-height: 0.94;
  color: var(--white); margin-bottom: 32px;
}
.ttl-sm {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(28px, 3.5vw, 48px); line-height: 1;
  color: var(--white); margin-bottom: 24px;
}
.body-text { font-size: 17px; color: var(--lgray); line-height: 1.9; max-width: 660px; }
.rule { width: 52px; height: 2px; background: var(--brand); margin-bottom: 32px; }
.rule-c { margin-left: auto; margin-right: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--font-head);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 15px 34px; transition: all 0.3s; cursor: pointer;
}
.btn-gold { background: var(--brand); color: #000; }
.btn-gold:hover { background: var(--brand-lt); }
.btn-ol { border: 1px solid rgba(255,255,255,0.26); color: var(--white); }
.btn-ol:hover { border-color: var(--brand); color: var(--brand); }
.btn-ol-gold { border: 1px solid var(--brand); color: var(--brand); }
.btn-ol-gold:hover { background: var(--brand); color: #000; }

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, padding 0.3s;
}
.site-header.scrolled { background: rgba(10,10,10,0.97); padding: 14px var(--pad); }

.hdr-left a {
  color: var(--gray); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.3s;
}
.hdr-left a:hover { color: var(--brand); }

.hdr-logo {
  font-family: var(--font-head); font-weight: 900;
  font-size: 17px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--white);
  position: absolute; left: 50%; transform: translateX(-50%);
  transition: color 0.3s;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hdr-logo:hover { color: var(--brand); }
.hdr-logo-img {
  height: 22px; width: auto; display: block;
  filter: brightness(1); transition: filter 0.3s;
}
.hdr-logo:hover .hdr-logo-img { filter: brightness(1.15); }

.hdr-right { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--lgray); transition: background 0.3s; }
.hdr-right:hover .burger span { background: var(--brand); }
.burger-lbl { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lgray); }

/* ── Desktop Horizontal Nav ────────────────────────────────── */
.hdr-nav {
  display: none; /* shown only on desktop via media query */
  align-items: center; gap: 36px;
}
.hdr-nav a {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lgray); transition: color 0.3s; white-space: nowrap;
}
.hdr-nav a:hover, .hdr-nav a.active { color: var(--brand); }
.hdr-nav .nav-cta {
  border: 1px solid rgba(201,168,76,0.5); color: var(--brand);
  padding: 9px 22px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; font-family: var(--font-head);
  transition: all 0.3s;
}
.hdr-nav .nav-cta:hover { background: var(--brand); color: #000; border-color: var(--brand); }

/* Shared image utility for artwork fills */
.art-fill { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── OVERLAY ───────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.02); z-index: 500;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ── SLIDE-OUT MENU ────────────────────────────────────────── */
.site-menu {
  position: fixed; top: 0; right: 0;
  width: min(480px, 100%); height: 100vh;
  background: #000; z-index: 600;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77,0,0.175,1);
  padding: 88px 68px; display: flex; flex-direction: column; overflow-y: auto;
}
.site-menu.open { transform: translateX(0); }

.menu-x {
  position: absolute; top: 22px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #000; transition: transform 0.2s;
}
.menu-x:hover { transform: scale(0.9); }

.menu-nav { display: flex; flex-direction: column; gap: 36px; }
.menu-nav a {
  color: #E0E0E0; font-family: var(--font-head); font-weight: 500;
  font-size: 20px; letter-spacing: 0.03em; transition: color 0.3s;
}
.menu-nav a:hover, .menu-nav a.active { color: var(--brand); }
.menu-rule { width: 40px; height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.menu-nav a.ext { font-size: 13px; color: var(--gray); letter-spacing: 0.07em; }
.menu-nav a.ext:hover { color: var(--brand); }
.menu-foot { margin-top: auto; padding-top: 48px; color: var(--gray); font-size: 11px; letter-spacing: 0.08em; line-height: 1.9; }

/* ── PAGE HERO (inner pages) ───────────────────────────────── */
.page-hero {
  height: 52vh; min-height: 340px;
  display: flex; align-items: flex-end;
  padding-bottom: 64px; position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1008, #0c0c0c 60%, #080812);
  animation: zoomIn 2.5s ease-out forwards;
}
.page-hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(201,168,76,0.07) 0%, transparent 55%);
}
.page-hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .label { margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(48px, 7vw, 96px); line-height: 0.9;
  color: var(--white); letter-spacing: -0.02em;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: #000; padding: 68px 0 36px; }
.ft-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 56px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ft-logo { font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--white); letter-spacing: 0.1em; margin-bottom: 10px; }
.ft-tagline { font-size: 13px; color: var(--gray); line-height: 1.8; max-width: 220px; }
.ft-col h4 { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul li a { color: var(--gray); font-size: 13px; transition: color 0.3s; }
.ft-col ul li a:hover { color: var(--white); }
.ft-col ul li a.ext { color: rgba(201,168,76,0.55); font-size: 12px; }
.ft-col ul li a.ext:hover { color: var(--brand); }
.ft-email input {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--white); padding: 10px 0;
  font-family: var(--font-body); font-size: 13px;
  width: 100%; outline: none; transition: border-color 0.3s;
}
.ft-email input:focus { border-color: var(--brand); }
.ft-email input::placeholder { color: var(--gray); }
.ft-email p { font-size: 11px; color: var(--gray); margin-top: 10px; line-height: 1.7; }
.ft-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 12px; color: var(--gray);
}
.ft-soc { display: flex; gap: 20px; align-items: center; }
.ft-soc a { color: var(--gray); font-size: 18px; transition: color 0.3s; line-height: 1; }
.ft-soc a:hover { color: var(--brand); }
.ft-mantra { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.ft-mantra-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 18px; line-height: 1.4;
  color: rgba(201,168,76,0.75);
  font-style: italic; letter-spacing: 0.01em;
}
.ft-mantra-link {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gray); transition: color 0.3s;
}
.ft-mantra-link:hover { color: var(--brand); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes zoomIn { from { transform: scale(1.22); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim-up { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop: show horizontal nav, hide burger */
@media (min-width: 769px) {
  .hdr-nav { display: flex; }
  .hdr-left { display: none; }
  .hdr-right { display: none; }
  /* Logo shifts from absolute-center to left-anchored */
  .hdr-logo {
    position: relative; left: auto; transform: none;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  :root { --pad: 24px; }
  section { padding: 48px 0; }
  .site-header { padding: 16px var(--pad); }
  .site-header.scrolled { padding: 12px var(--pad); }
  .ft-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero h1 { font-size: 48px; }
  /* Mobile: hide desktop nav, show burger */
  .hdr-nav { display: none !important; }
  .hdr-right { display: flex; }
  /* Mobile logo — scale down to avoid crowding the burger */
  .hdr-logo { font-size: 13px; gap: 7px; letter-spacing: 0.18em; }
  .hdr-logo-img { height: 19px; }
}

/* Phones under 560px — show J mark only, hide wordmark to prevent overlap */
@media (max-width: 560px) {
  .hdr-logo-text { display: none; }
  .hdr-logo-img { height: 22px; }
}
