@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --slate-950: #1f2a36;
  --slate-900: #334a5e;
  --slate-800: #405a72;
  --slate-700: #526c84;
  --slate-200: #dbe3ea;
  --slate-100: #edf1f4;
  --gold: #d4af37;
  --gold-dark: #9b7816;
  --paper: #f7f6f1;
  --cream: #f7f6f1;
  --soft: #eef2f5;
  --surface: #ffffff;
  --ink: #334a5e;
  --charcoal: #334a5e;
  --muted: #68788a;
  --line: #d9e0e6;
  --stone: #d9e0e6;
  --white: #ffffff;
  --success: #287a5b;
  --warning: #9a6b00;
  --danger: #a83d3d;
  --nav-height: 80px;
  --shell: 1200px;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(31, 42, 54, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0 !important;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6,
.font-serif, .serif {
  font-family: "Playfair Display", Georgia, serif !important;
  letter-spacing: -.015em;
}
h1, h2, h3 { color: var(--slate-900); }
::selection { background: rgba(212,175,55,.28); color: var(--slate-950); }

/* Legacy utility palette normalization */
.bg-charcoal { background-color: var(--slate-900) !important; }
.text-charcoal { color: var(--slate-900) !important; }
.border-charcoal { border-color: var(--slate-900) !important; }
.bg-gold { background-color: var(--gold) !important; }
.text-gold { color: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }
.bg-black { background-color: var(--slate-950) !important; }
.text-black { color: var(--slate-950) !important; }
.bg-stone-100 { background-color: var(--slate-100) !important; }
.border-stone-200, .border-gray-100 { border-color: var(--line) !important; }

/* One header geometry across public, family, login and admin pages */
.chef-topbar {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  min-height: var(--nav-height) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 4px 18px rgba(31,42,54,.055) !important;
  backdrop-filter: blur(14px) !important;
}
.chef-topbar .nav-shell,
.chef-topbar .site-nav,
.chef-topbar .nav-inner,
.chef-topbar .nav-row,
.chef-topbar > .shell,
.chef-topbar > .container,
.chef-topbar > div:first-child {
  width: min(var(--shell), calc(100% - 2rem)) !important;
  max-width: var(--shell) !important;
  min-height: var(--nav-height) !important;
  margin-inline: auto !important;
}
.chef-topbar .h-20, .chef-topbar .nav-height { height: var(--nav-height) !important; }
.chef-topbar .brand,
.chef-topbar > a:first-of-type,
.chef-topbar > div > a:first-of-type,
.chef-topbar > div > div > a:first-of-type,
.chef-topbar .nav-shell > a:first-of-type,
.chef-topbar .site-nav > a:first-of-type,
.chef-topbar .nav-inner > a:first-of-type,
.chef-topbar .nav-row > a:first-of-type {
  color: var(--slate-900) !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  text-decoration: none !important;
  transform: none !important;
}
.chef-topbar .brand span,
.chef-topbar > a:first-of-type span,
.chef-topbar > div > a:first-of-type span,
.chef-topbar > div > div > a:first-of-type span { color: var(--gold) !important; }

.chef-topbar nav a,
.chef-topbar nav button,
.chef-topbar .site-menu a,
.chef-topbar .site-menu button,
.chef-topbar .nav-links a,
.chef-topbar .nav-links button,
.chef-topbar .tool-tab {
  color: var(--slate-700) !important;
  font-family: Inter, sans-serif !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .095em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 5px !important;
}
.chef-topbar nav a:hover,
.chef-topbar nav a:focus-visible,
.chef-topbar nav button:hover,
.chef-topbar nav button:focus-visible,
.chef-topbar .site-menu a:hover,
.chef-topbar .site-menu a:focus-visible,
.chef-topbar .tool-tab:hover,
.chef-topbar .tool-tab:focus-visible,
.chef-topbar [aria-current="page"] {
  color: var(--gold-dark) !important;
  outline-color: var(--gold) !important;
}
.chef-topbar .book-link,
.chef-topbar .nav-cta,
.chef-topbar a[href="#contact"],
.chef-topbar a[href="index.html#contact"] {
  background: var(--gold) !important;
  color: var(--slate-950) !important;
  border-color: var(--gold) !important;
}
.chef-topbar .portal-link,
.chef-topbar .logout,
.chef-topbar button[id*="logout" i],
.chef-topbar a[href="login.html"] {
  background: var(--slate-900) !important;
  color: #fff !important;
  border-color: var(--slate-900) !important;
}
.chef-topbar .portal-link:hover,
.chef-topbar .logout:hover,
.chef-topbar button[id*="logout" i]:hover,
.chef-topbar a[href="login.html"]:hover {
  background: var(--gold) !important;
  color: var(--slate-950) !important;
}
.chef-topbar .menu-toggle,
.chef-topbar .menu-button,
.chef-topbar [aria-controls*="menu" i] {
  color: var(--slate-900) !important;
  border-color: var(--line) !important;
}

/* Family tool tabs receive the same topbar treatment */
body[data-chef-shell="family"] > .tool-tabs-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: .55rem 1rem !important;
}
body[data-chef-shell="family"] .tool-tabs {
  width: min(var(--shell), 100%) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  flex-wrap: wrap !important;
}
body[data-chef-shell="family"] .tool-tab.active {
  background: var(--slate-900) !important;
  color: #fff !important;
}

/* Consistent hero rhythm */
.chef-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 270px;
  margin-top: 0 !important;
  padding: clamp(3.4rem, 6vw, 5rem) 1.25rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% -20%, rgba(212,175,55,.14), transparent 32%),
    radial-gradient(circle at 88% 130%, rgba(212,175,55,.11), transparent 34%),
    linear-gradient(135deg, var(--slate-950), var(--slate-900)) !important;
  color: #fff !important;
  text-align: center !important;
}
.chef-hero::before,
.chef-hero::after { border-color: rgba(212,175,55,.22) !important; }
.chef-hero h1 {
  max-width: 960px;
  margin: 0 auto .8rem !important;
  color: #fff !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(2.25rem, 5vw, 4.15rem) !important;
  line-height: 1.04 !important;
}
.chef-hero p,
.chef-hero .subtitle,
.chef-hero .hero-copy {
  max-width: 760px !important;
  margin-inline: auto !important;
  color: #dce4eb !important;
  font-size: clamp(.95rem, 1.6vw, 1.08rem) !important;
  line-height: 1.75 !important;
}
.chef-hero .eyebrow,
.chef-hero [class*="tracking-"] { color: var(--gold) !important; }
.chef-hero .hero-rule,
.chef-hero .hero-line,
.chef-hero .bg-gold { background: var(--gold) !important; }
body[data-chef-page="index"] .chef-hero {
  min-height: calc(100vh - var(--nav-height));
  padding-block: 5rem !important;
}

/* Surfaces, cards and content widths */
.shell, .container, .nav-shell, .nav-inner {
  max-width: var(--shell);
}
main { color: var(--ink); }
main article,
.card,
.tool-card,
.service-card,
.package-card,
.recipe-card,
.course-card,
.gallery-item,
[class*="rounded-sm"][class*="border"] {
  border-color: var(--line) !important;
  border-radius: var(--radius) !important;
}
.card, .tool-card, .service-card, .package-card, .recipe-card, .course-card {
  box-shadow: var(--shadow);
}
.bg-white { background-color: var(--surface) !important; }

/* Buttons */
button,
.button,
.btn,
a.button,
a.btn,
[class*="button"] {
  border-radius: 6px;
}
.button-primary,
.button.primary,
.btn-primary,
.primary-button,
button.bg-charcoal,
a.bg-charcoal {
  border-color: var(--slate-900) !important;
  background: var(--slate-900) !important;
  color: #fff !important;
}
.button-primary:hover,
.button.primary:hover,
.btn-primary:hover,
.primary-button:hover,
button.bg-charcoal:hover,
a.bg-charcoal:hover {
  border-color: var(--gold) !important;
  background: var(--gold) !important;
  color: var(--slate-950) !important;
}

/* Forms */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.control {
  border-color: #cbd5df !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--slate-950) !important;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.control:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(212,175,55,.18) !important;
}
label, .control-label { color: var(--slate-900); }

/* Status and badges */
.status, .source-chip, .viz-badge, [class*="status-chip"] {
  border-radius: 999px !important;
}

/* Footer continuity */
body > footer,
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.1) !important;
  background: var(--slate-950) !important;
  color: #b9c4ce !important;
  padding-block: 2rem !important;
}
body > footer h2,
.site-footer h2 { color: #fff !important; }
body > footer a:hover,
.site-footer a:hover { color: var(--gold) !important; }

/* Dialogs and overlays */
dialog,
[role="dialog"] > div,
.modal-content {
  border-radius: 10px !important;
  border-color: var(--line) !important;
}

/* Print remains clean */
@media print {
  .chef-topbar, .chef-hero.no-print { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
}

@media (max-width: 1199px) {
  .chef-topbar .site-menu,
  .chef-topbar .nav-links {
    border-color: var(--line) !important;
    background: rgba(255,255,255,.985) !important;
  }
}

@media (max-width: 640px) {
  :root { --nav-height: 72px; }
  .chef-topbar .nav-shell,
  .chef-topbar .site-nav,
  .chef-topbar .nav-inner,
  .chef-topbar .nav-row,
  .chef-topbar > .shell,
  .chef-topbar > .container,
  .chef-topbar > div:first-child {
    width: min(100% - 1.25rem, var(--shell)) !important;
  }
  .chef-topbar .brand,
  .chef-topbar > a:first-of-type,
  .chef-topbar > div > a:first-of-type,
  .chef-topbar > div > div > a:first-of-type { font-size: 1.25rem !important; }
  .chef-hero { min-height: 230px; padding: 3rem 1rem !important; }
  .chef-hero h1 { font-size: clamp(2rem, 10vw, 3rem) !important; }
  body[data-chef-page="index"] .chef-hero { min-height: calc(100svh - var(--nav-height)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body[data-chef-shell="family"] .family-nav-shell {
  width: min(var(--shell), calc(100% - 2rem));
  min-height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
body[data-chef-shell="family"] .family-brand { flex: 0 0 auto; }
body[data-chef-shell="family"] .family-nav-shell .tool-tabs {
  width: auto !important;
  margin: 0 !important;
  justify-content: flex-end !important;
}
@media (max-width: 720px) {
  body[data-chef-shell="family"] .family-nav-shell {
    width: min(100% - 1.25rem, var(--shell));
    min-height: var(--nav-height);
    align-items: center;
  }
  body[data-chef-shell="family"] .family-nav-shell .tool-tabs {
    justify-content: flex-end !important;
  }
  body[data-chef-shell="family"] .family-nav-shell .tool-tab {
    padding: .45rem .55rem !important;
    font-size: .62rem !important;
  }
}


/* Exact shared banner — one geometry on every page */
.chef-legacy-nav { display: none !important; }
.chef-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  height: 80px !important;
  min-height: 80px !important;
  border-bottom: 1px solid rgba(51,74,94,.16) !important;
  background: rgba(255,255,255,.975) !important;
  box-shadow: 0 5px 18px rgba(31,42,54,.065) !important;
  backdrop-filter: blur(16px) !important;
}
.chef-site-header .chef-header-shell {
  width: min(1440px, calc(100% - 2rem)) !important;
  height: 80px !important;
  min-height: 80px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 1.25rem !important;
}
.chef-site-header .chef-brand {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
  color: var(--slate-900) !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.48rem !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.chef-site-header .chef-brand span { color: var(--gold) !important; }
.chef-site-header .chef-desktop-nav {
  min-width: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(.38rem,.72vw,.78rem) !important;
}
.chef-site-header .chef-nav-link,
.chef-site-header .chef-mobile-link {
  color: var(--slate-700) !important;
  font-family: Inter, sans-serif !important;
  font-size: .675rem !important;
  font-weight: 700 !important;
  letter-spacing: .075em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border-radius: 5px !important;
}
.chef-site-header .chef-nav-link {
  padding: .62rem .22rem !important;
  border-bottom: 2px solid transparent !important;
}
.chef-site-header .chef-nav-link:hover,
.chef-site-header .chef-nav-link:focus-visible,
.chef-site-header .chef-nav-link[aria-current="page"] {
  color: var(--gold-dark) !important;
  border-bottom-color: var(--gold) !important;
}
.chef-site-header .chef-header-actions,
.chef-site-header .chef-desktop-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .55rem !important;
}
.chef-site-header .chef-desktop-actions { display: none !important; }
.chef-site-header .chef-book-entry,
.chef-site-header .chef-portal-entry,
.chef-site-header .chef-public-entry,
.chef-site-header .chef-logout-entry {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  padding: .65rem .85rem !important;
  font-family: Inter, sans-serif !important;
  font-size: .675rem !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
.chef-site-header .chef-book-entry {
  min-width: 94px !important;
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--slate-950) !important;
}
.chef-site-header .chef-portal-entry {
  min-width: 68px !important;
  background: transparent !important;
  border-color: rgba(212,175,55,.8) !important;
  color: var(--gold-dark) !important;
}
.chef-site-header .chef-portal-entry:hover,
.chef-site-header .chef-portal-entry:focus-visible,
.chef-site-header .chef-portal-entry[aria-current="page"] {
  background: var(--gold) !important;
  color: var(--slate-950) !important;
}
.chef-site-header .chef-public-entry {
  background: transparent !important;
  border-color: rgba(51,74,94,.28) !important;
  color: var(--slate-900) !important;
}
.chef-site-header .chef-logout-entry {
  background: var(--slate-900) !important;
  border-color: var(--slate-900) !important;
  color: #fff !important;
}
.chef-site-header .chef-book-entry:hover,
.chef-site-header .chef-public-entry:hover,
.chef-site-header .chef-logout-entry:hover { filter: brightness(.96); }
.chef-site-header .chef-menu-toggle {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--slate-900) !important;
  cursor: pointer !important;
}
.chef-site-header .chef-menu-toggle span {
  width: 19px !important;
  height: 2px !important;
  display: block !important;
  border-radius: 999px !important;
  background: currentColor !important;
  transition: transform .2s ease, opacity .2s ease !important;
}
.chef-site-header .chef-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
.chef-site-header .chef-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0 !important; }
.chef-site-header .chef-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
.chef-site-header .chef-mobile-panel {
  position: absolute !important;
  top: 80px !important;
  left: 0 !important;
  right: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(255,255,255,.99) !important;
  box-shadow: 0 16px 30px rgba(31,42,54,.12) !important;
}
.chef-site-header .chef-mobile-panel[hidden] { display: none !important; }
.chef-site-header .chef-mobile-nav {
  width: min(100% - 2rem, 720px) !important;
  margin: 0 auto !important;
  padding: .7rem 0 1rem !important;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: .15rem .7rem !important;
}
.chef-site-header .chef-mobile-link {
  padding: .82rem .55rem !important;
  border-bottom: 1px solid var(--slate-100) !important;
}
.chef-site-header .chef-mobile-link[aria-current="page"] { color: var(--gold-dark) !important; }
.chef-site-header .chef-mobile-actions {
  grid-column: 1 / -1 !important;
  margin-top: .65rem !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: .65rem !important;
}
body.chef-header-menu-open { overflow: hidden !important; }
body[data-chef-page="login"] main { padding-top: clamp(2.5rem,5vw,4rem) !important; }
@media (min-width: 1380px) {
  .chef-site-header .chef-desktop-nav { display: flex !important; }
  .chef-site-header .chef-desktop-actions { display: flex !important; }
  .chef-site-header .chef-menu-toggle { display: none !important; }
}
@media (max-width: 640px) {
  :root { --nav-height: 80px; }
  .chef-site-header,
  .chef-site-header .chef-header-shell { height: 80px !important; min-height: 80px !important; }
  .chef-site-header .chef-header-shell { width: min(100% - 1.15rem, 1440px) !important; gap: .7rem !important; }
  .chef-site-header .chef-brand { font-size: 1.3rem !important; }
  .chef-site-header .chef-mobile-nav { width: min(100% - 1.15rem,720px) !important; grid-template-columns: 1fr !important; }
  .chef-site-header .chef-mobile-actions { grid-column: 1 !important; }
}
