/*
Theme Name:  Jasper Lynn
Theme URI:   https://rosalynn.co
Description: Custom theme for Chef Jasper Lynn — unified with the Rosalynn design system. Dark editorial background, Cormorant Garamond + Jost typography, gold accents, full-bleed layout.
Author:      Chef Jasper Lynn
Version:     2.2.0
License:     GNU General Public License v2 or later
Text Domain: jasper-lynn
*/

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Tokens — Rosalynn design system ─── */
:root {
  --bg:     #0c0b0a;
  --bg-2:   #111110;
  --panel:  #191713;
  --text:   #f4efe6;          /* primary cream text */
  --cream:  #c9c1b2;          /* muted text */
  --faint:  #8f887b;
  --line:   rgba(214,197,160,0.18);
  --border: rgba(214,197,160,0.18);
  --gold:   #c8a45a;
  --gold-2: #e4c987;
  --sans:   'Jost', 'Helvetica Neue', Arial, sans-serif;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --nav-h:  84px;
  --ease:   cubic-bezier(.2,.7,.2,1);
}

/* ─── Base ─── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV — matches rosalynn.co .site-header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
}

.site-logo a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

/* WordPress nav menu output — right-aligned group with the CTA, like rosalynnhospitality.com */
.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav ul li a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 10px 14px;
  transition: color 0.3s;
}

.primary-nav ul li a:hover { color: var(--gold-2); }

.nav-reserve {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin-left: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-reserve:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1509;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 300;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 8, 7, 0.98);
  backdrop-filter: blur(14px);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--gold-2); }

.mobile-menu .mobile-reserve {
  margin-top: 16px;
  color: var(--gold-2);
  border: 1px solid var(--line);
  padding: 14px 28px;
  font-size: 0.85rem;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 81.47vh;
  min-height: 520px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,6,0.55) 0%, rgba(8,7,6,0.25) 40%, rgba(8,7,6,0.9) 100%);
}

.hero-text {
  position: absolute;
  bottom: 80px;
  left: 48px;
  right: 48px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.05;
}

/* ─── TEXT SECTIONS ─── */
.text-section {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.text-section.first { padding-top: 112px; }

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.08;
}

.sec-body p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 20px;
}

.sec-body p:last-of-type { margin-bottom: 0; }

.sec-link {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  padding: 14px 28px;
  transition: all 0.35s var(--ease);
}

.sec-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1509;
}

/* ─── IMAGE SECTIONS ─── */
.img-section { padding: 0 48px; }

.img-wide img {
  width: 100%;
  height: clamp(260px, 33vw, 580px);
  object-fit: cover;
}

.img-portrait img {
  width: 100%;
  height: clamp(360px, 50vw, 700px);
  object-fit: cover;
  object-position: center top;
}

.img-bleed { padding: 0; }

.img-bleed img {
  width: 100%;
  height: clamp(300px, 38vw, 640px);
  object-fit: cover;
}

/* ─── LOCATIONS GRID ─── */
.locations { padding: 80px 48px; }

.locations-header { margin-bottom: 48px; }

.locations-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.08;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.location-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.location-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.75);
}

.location-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.6);
}

.location-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.location-city {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.location-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
}

.location-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.location-card:hover .location-link {
  opacity: 1;
  transform: translateY(0);
}

/* ─── OUR CLIENTS WALL ─── */
.clients-wall {
  padding: 80px 48px;
  border-top: 1px solid var(--line);
}

.clients-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.clients-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 40px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.client-cell {
  background: var(--bg-2);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: background 0.3s;
}

.client-cell:hover { background: var(--panel); }

.client-cell span {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.3s;
}

.client-cell:hover span { color: var(--gold-2); }

/* ─── FOOTER ─── */
.site-footer {
  padding: 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}

.footer-nav ul li a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.2s;
}

.footer-nav ul li a:hover { color: var(--gold-2); }

.footer-logo {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-right { text-align: right; }

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-social a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--gold-2); }

.footer-copy {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.4;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ─── WORDPRESS CONTENT AREA (for page.php / posts) ─── */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 48px 80px;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.entry-content p { margin-bottom: 20px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .text-section { grid-template-columns: 1fr; gap: 32px; padding: 60px 32px; }
  .text-section.first { padding-top: 80px; }
  .img-section { padding: 0 32px; }
  .locations-grid { grid-template-columns: 1fr; }
  .location-card img { height: 280px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer-social { justify-content: center; }
  .footer-right { text-align: center; }
  .footer-nav ul { align-items: center; }
}

@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .primary-nav, .nav-reserve { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --nav-h: 80px; }
  .text-section { padding: 48px 20px; }
  .img-section { padding: 0 20px; }
  .hero-text { left: 24px; right: 24px; bottom: 60px; }
  .site-footer { padding: 40px 24px; }
  .locations { padding: 48px 20px; }
  .clients-wall { padding: 48px 20px; }
  .clients-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .entry-content { padding: 120px 24px 60px; }
}
