/* ═══════════════════════════════════════
   shared.css — Atelier Hospitality Co.
   Used by index.html + all category pages
═══════════════════════════════════════ */

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

:root {
  --ivory: #F5F0E8; --cream: #EDE8DC; --warm-white: #FAF8F4;
  --charcoal: #1C1C1A; --slate: #3A3A36; --mid: #6B6B64;
  --gold: #B8960C; --gold-light: #D4AC1A; --gold-pale: #F0E4A0;
  --border: rgba(28,28,26,0.12); --border-gold: rgba(184,150,12,0.3);
}

html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; font-weight: 300; background: var(--warm-white); color: var(--charcoal); letter-spacing: 0.01em; overflow-x: hidden; }

/* ── NAV ── */
nav#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: rgba(245,240,232,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav#site-nav.scrolled { box-shadow: 0 4px 32px rgba(28,28,26,0.08); }

.nav-logo-wrap { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.nav-logo-text { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.0rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal); line-height: 1; }
.nav-logo-name span { color: var(--gold); }
.nav-logo-tagline { font-size: 0.52rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--mid); line-height: 1; }

.nav-links { display: flex; gap: 2.4rem; list-style: none; align-items: center; }
.nav-links > li > a {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: var(--slate); transition: color 0.2s;
}
.nav-links > li > a:hover { color: var(--gold); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-drop-trigger { display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.caret { font-size: 0.55rem; transition: transform 0.25s; }
.dropdown-menu {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  background: var(--ivory); border: 1px solid var(--border-gold);
  min-width: 240px; list-style: none;
  box-shadow: 0 16px 48px rgba(28,28,26,0.12);
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.dropdown-menu.open { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu li a {
  display: block; padding: 0.9rem 1.4rem;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--slate);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--cream); color: var(--gold); padding-left: 1.8rem; }
.dropdown-divider { height: 1px; background: var(--border-gold); margin: 4px 0; }
.dropdown-divider + li a { color: var(--gold); }

.nav-cta {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 10px 22px; background: var(--charcoal); color: var(--ivory);
  text-decoration: none; transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--charcoal); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── FOOTER ── */
footer { background: var(--charcoal); padding: 4rem 8vw 2.5rem; color: rgba(245,240,232,0.6); }
.footer-logo-wrap { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; margin-bottom: 1.2rem; }
.footer-logo-text { display: flex; flex-direction: column; gap: 0.12rem; }
.footer-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.0rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); line-height: 1; }
.footer-logo-name span { color: var(--gold); }
.footer-logo-tagline { font-size: 0.5rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,240,232,0.4); line-height: 1; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { font-size: 0.8rem; line-height: 1.8; max-width: 240px; }
.footer-col h4 { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.8rem; text-decoration: none; color: rgba(245,240,232,0.55); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap; gap: 0.8rem; }
.footer-bottom span { font-size: 0.7rem; letter-spacing: 0.05em; }
.footer-bottom a { color: rgba(245,240,232,0.4); text-decoration: none; font-size: 0.7rem; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── COMMON UTILITIES ── */
.gold-divider { height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.section-label { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.section-label::after { content:''; flex:1; height:1px; background:var(--border-gold); max-width:80px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 300; line-height: 1.15; margin-bottom: 1.2rem; }
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 0.88rem; line-height: 1.8; color: var(--mid); max-width: 480px; }

.btn-primary { display: inline-block; padding: 14px 36px; background: var(--charcoal); color: var(--ivory); font-family: 'Jost', sans-serif; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; transition: background 0.25s, color 0.25s; }
.btn-primary:hover { background: var(--gold); color: var(--charcoal); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; color: var(--charcoal); padding-bottom: 2px; border-bottom: 1px solid var(--border); transition: color 0.2s, border-color 0.2s; }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold-light); }

/* ── CATEGORY PAGE SHARED ── */
.cat-hero {
  min-height: 52vh; display: flex; align-items: flex-end;
  padding: 0; position: relative; overflow: hidden;
  margin-top: 72px;
}
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.8); }
.cat-hero-content { position: relative; z-index: 2; padding: 4rem 8vw; width: 100%; }
.cat-hero-content .section-label { color: var(--gold-pale); }
.cat-hero-content .section-label::after { background: rgba(240,228,160,0.3); }
.cat-hero-content h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 300; color: var(--ivory); line-height: 1.1; margin-bottom: 1rem; }
.cat-hero-content h1 em { font-style: italic; color: var(--gold-light); }
.cat-hero-content p { font-size: 0.9rem; color: rgba(245,240,232,0.75); max-width: 500px; line-height: 1.75; }

.cat-products { padding: 5rem 8vw; background: var(--warm-white); }
.cat-products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1rem; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.cat-card { background: var(--charcoal); position: relative; overflow: hidden; }
.cat-card img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.6s ease, filter 0.4s; filter: brightness(0.9) saturate(0.85); }
.cat-card:hover img { transform: scale(1.04); filter: brightness(0.65) saturate(0.8); }
.cat-card-body { padding: 1.4rem 1.5rem 1.8rem; background: var(--cream); }
.cat-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--charcoal); margin-bottom: 0.4rem; }
.cat-card-desc { font-size: 0.78rem; line-height: 1.7; color: var(--mid); margin-bottom: 1rem; }
.cat-card-meta { display: flex; justify-content: space-between; align-items: center; }
.cat-card-price { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--gold); }
.cat-card-link { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--charcoal); border-bottom: 1px solid var(--border); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.cat-card-link:hover { color: var(--gold); border-color: var(--gold); }

.cat-cta { background: var(--charcoal); padding: 5rem 8vw; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cat-cta h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; color: var(--ivory); }
.cat-cta h2 em { font-style: italic; color: var(--gold-light); }
.cat-cta .btn-primary { background: var(--gold); color: var(--charcoal); }
.cat-cta .btn-primary:hover { background: var(--ivory); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--border); padding: 1rem 5vw 2rem; gap: 0; }
  .nav-links.mobile-open { display: flex; }
  .nav-links > li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
  .nav-hamburger { display: flex; }
  .dropdown-menu { position: static; transform: none; opacity: 1; pointer-events: all; box-shadow: none; border: none; background: var(--cream); min-width: auto; display: none; }
  .dropdown-menu.open { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cat-cta { flex-direction: column; align-items: flex-start; }
}
