/* ============================================================
   Casa Julia Group — "Noir Atelier"
   Dark cinematic / luxury F&B consulting
   Charcoal canvas · muted gold accents · Playfair + Inter
   Hand-written, dependency-free. Ported from the original
   React source so it matches the live reference site.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #1A1A1A;   /* primary charcoal canvas */
  --bg-deep:   #0A0A0A;   /* near-black sections */
  --gold:      #C5A059;   /* muted gold accent */
  --gold-soft: rgba(197, 160, 89, 0.80);
  --cream:     #F5F0E8;   /* warm white text */
  --cream-70:  rgba(245, 240, 232, 0.72);
  --cream-50:  rgba(245, 240, 232, 0.50);
  --hair:      rgba(255, 255, 255, 0.08);
  --hair-2:    rgba(255, 255, 255, 0.10);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section--bordered { border-top: 1px solid var(--hair); }
.section--deep { background: var(--bg-deep); }

.center { text-align: center; }
.measure { max-width: 42rem; margin-left: auto; margin-right: auto; }
.measure-lg { max-width: 48rem; margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
.label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--cream); line-height: 1.08; }
.h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); color: var(--cream); line-height: 1.15; }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--cream); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--cream-70); line-height: 1.7; }
.body { color: var(--cream-70); font-size: 1rem; line-height: 1.75; }
.dim { color: var(--cream-50); }
.muted-head { color: rgba(245, 240, 232, 0.55); }   /* the "second half" of split headlines */
.gold-text { color: var(--gold); }
.mt-sm { margin-top: 0.75rem; } .mt { margin-top: 1.5rem; } .mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.75rem; } .mb { margin-bottom: 1.5rem; } .mb-lg { margin-bottom: 2.5rem; }
.block-head { margin-bottom: 4rem; }

.gold-line { height: 1px; width: 100%; background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), box-shadow 0.45s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--hair);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}
@media (min-width: 1024px) { .nav { padding: 1.4rem 2rem; } }
.nav__logo img { height: 28px; width: auto; transition: opacity 0.3s; }
@media (min-width: 640px) { .nav__logo img { height: 32px; } }
@media (min-width: 1024px) { .nav__logo img { height: 40px; } }

.nav__links { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .nav__links { gap: 1.25rem; } }
@media (min-width: 1024px) { .nav__links { gap: 2rem; } }
.nav__links a {
  color: var(--gold-soft);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s;
}
@media (min-width: 768px) { .nav__links a { font-size: 0.72rem; letter-spacing: 0.2em; } }
.nav__links a:hover { color: var(--gold); }
.nav__links a.active { color: var(--gold); font-weight: 600; }
.nav__links .full { display: none; } .nav__links .short { display: inline; }
@media (min-width: 768px) { .nav__links .full { display: inline; } .nav__links .short { display: none; } }

.nav__toggle { color: var(--gold); padding: 0.5rem; display: inline-flex; }
.nav__toggle svg { width: 24px; height: 24px; }

/* Full-screen menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__close { position: absolute; top: 1.1rem; right: 1.25rem; color: var(--gold); padding: 0.5rem; }
@media (min-width: 1024px) { .menu__close { right: 2rem; } }
.menu__close svg { width: 26px; height: 26px; }
.menu a.menu__link {
  font-family: var(--serif); font-size: 1.6rem; color: var(--cream);
  letter-spacing: 0.02em; transition: color 0.25s, transform 0.4s var(--ease);
  opacity: 0; transform: translateY(18px);
}
.menu.open a.menu__link { opacity: 1; transform: translateY(0); }
.menu a.menu__link:hover, .menu a.menu__link.active { color: var(--gold); }
.menu .menu__cta {
  margin-top: 1rem; padding: 0.85rem 2rem; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; transition: background 0.3s, color 0.3s;
}
.menu .menu__cta:hover { background: var(--gold); color: var(--bg); }
/* stagger menu links on open (nth-of-type so the close <button> doesn't shift the count) */
.menu.open a.menu__link:nth-of-type(1){ transition-delay: .04s; }
.menu.open a.menu__link:nth-of-type(2){ transition-delay: .10s; }
.menu.open a.menu__link:nth-of-type(3){ transition-delay: .16s; }
.menu.open a.menu__link:nth-of-type(4){ transition-delay: .22s; }
.menu.open a.menu__link:nth-of-type(5){ transition-delay: .28s; }
.menu.open a.menu__link:nth-of-type(6){ transition-delay: .34s; }
.menu.open a.menu__link:nth-of-type(7){ transition-delay: .40s; }
body.no-scroll { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 2rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: #d4b275; transform: translateY(-1px); }
.btn--outline { border-color: rgba(245,240,232,0.2); color: var(--cream); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-link {
  display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: gap 0.3s var(--ease);
}
.btn-link:hover { gap: 0.9rem; }
.btn-link svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero--short { min-height: 70vh; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,26,26,0.70), rgba(26,26,26,0.50) 45%, var(--bg)); }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 6rem 1.25rem 4rem; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero__logo { width: clamp(8rem, 14vw, 11rem); margin: 0 auto 2.5rem; filter: drop-shadow(0 0 30px rgba(197,160,89,0.30)); }
.hero__cta-row { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.scroll-cue { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); width: 1px; height: 4rem; background: linear-gradient(to bottom, var(--gold), transparent); z-index: 2; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
}

/* ---------- Components ---------- */
/* stat / metric */
.stat { border-top: 1px solid var(--hair-2); padding-top: 1.5rem; }
.stat__num { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3rem); color: var(--gold); margin-bottom: 0.6rem; line-height: 1; }
.stat__text { color: var(--cream-70); font-size: 0.9rem; line-height: 1.6; }
.stat__text.italic { font-style: italic; }

/* card with gold top rule (framework paths / service categories) */
.card { border-top: 1px solid var(--hair-2); padding-top: 2rem; }
@media (min-width: 1024px) { .card { padding-top: 2.5rem; } }
.card__sub { color: var(--gold); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; }
.card__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--cream); margin-bottom: 1rem; }
.card__desc { color: var(--cream-70); font-size: 0.9rem; line-height: 1.7; margin-bottom: 2rem; }
.card ul li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--cream-70); font-size: 0.9rem; padding: 0.4rem 0; }
.card ul li::before { content: "▪"; color: var(--gold); font-size: 0.7rem; line-height: 1.6; }

/* feature/info tile (boxed) */
.tile { background: rgba(255,255,255,0.02); border: 1px solid var(--hair); padding: 2rem; transition: border-color 0.3s, transform 0.3s var(--ease); }
.tile:hover { border-color: rgba(197,160,89,0.4); transform: translateY(-3px); }
.tile__title { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin-bottom: 0.75rem; }
.tile__desc { color: var(--cream-70); font-size: 0.9rem; line-height: 1.7; }

/* portrait (grayscale → color) */
.portrait { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.7s var(--ease), transform 0.7s var(--ease); }
.portrait:hover img { filter: grayscale(0); transform: scale(1.02); }
.portrait__fade { position: absolute; inset: auto 0 0 0; height: 8rem; background: linear-gradient(to top, var(--bg), transparent); }
.portrait__cap { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; }
.portrait__cap .n { color: var(--cream); font-size: 0.9rem; font-weight: 600; }
.portrait__cap .r { color: var(--cream-50); font-size: 0.75rem; }

/* team member */
.member__quote { color: var(--cream-70); font-style: italic; font-size: 0.92rem; margin: 1rem 0; }
.member__creds { display: flex; flex-direction: column; gap: 0.35rem; }
.member__creds li { color: var(--cream-50); font-size: 0.8rem; letter-spacing: 0.02em; }

/* partner card (design page) */
.partner { border: 1px solid var(--hair); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color 0.3s, transform 0.3s var(--ease); }
.partner:hover { border-color: rgba(197,160,89,0.4); transform: translateY(-3px); }
.partner__logo { height: 44px; width: auto; object-fit: contain; opacity: 0.9; }
.partner__type { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.partner__name { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.partner__caps { color: var(--cream-70); font-size: 0.86rem; line-height: 1.7; }
.partner__link { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: auto; display: inline-flex; gap: 0.4rem; }

/* quote block */
.quote { border-left: 2px solid var(--gold); padding: 0.5rem 0 0.5rem 2rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: var(--cream); line-height: 1.5; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; text-align: left; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream-70); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--hair-2);
  color: var(--cream); font-family: var(--sans); font-size: 0.95rem; padding: 0.85rem 1rem;
  transition: border-color 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,240,232,0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.05); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23C5A059' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field select option { background: var(--bg-deep); color: var(--cream); }
.form .btn--gold { width: 100%; margin-top: 0.5rem; }
.form-note { font-size: 0.8rem; color: var(--cream-50); }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease) both; }
.form-success .check { width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); animation: pop 0.5s var(--ease) both; }
.form-success .check svg { width: 28px; height: 28px; }
.is-hidden { display: none !important; }
.spinner { width: 40px; height: 40px; margin: 0 auto; border: 3px solid rgba(197,160,89,0.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); background: var(--bg); }
.site-footer .container { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .site-footer .container { padding-top: 5rem; padding-bottom: 5rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { color: var(--cream-70); font-size: 0.9rem; line-height: 1.7; max-width: 28rem; }
.footer-brand .tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-top: 1.5rem; }
.footer-col h4 { font-family: var(--sans); color: var(--cream); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.5rem; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a, .footer-col li { color: var(--cream-70); font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { color: var(--cream-50); font-size: 0.75rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 0.12s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero load-in */
.hero__content > * { animation: fadeUp 1s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.3s; }
.hero__content > *:nth-child(3) { animation-delay: 0.55s; }
