/* ==========================================================================
   Kumbachero – base styles
   Design tokens, reset, typography, buttons, header/nav and footer.
   Loaded on every page, before the page-specific stylesheet in /css.
   ========================================================================== */

:root {
  --orange: #f7933b;
  --orange-dark: #df7125;
  --brown: #51291d;
  --cream: #fff9f2;
  --sand: #f4e5d4;
  --white: #fff;
  --ink: #261a16;
  --muted: #78655d;
  --line: #eadfd7;
  --shadow: 0 20px 55px rgba(81, 41, 29, 0.12);

  --font-display: Georgia, serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --header-h: 82px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom chef-hat cursor on every page (hotspot at 8,8) */
html,
body {
  cursor: url('../assets/chef-hat-cursor.svg') 8 8, auto;
}

a,
button,
input,
select,
textarea,
label,
summary {
  cursor: url('../assets/chef-hat-cursor.svg') 8 8, pointer;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  max-width: 850px;
  margin: 18px 0 22px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  margin: 12px 0 18px;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 690px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--brown);
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-weight: 800;
  transition: 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(81, 41, 29, 0.15);
}

.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--brown);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
}

/* ---------- Header & navigation (markup injected by js/site.js) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 700;
}

.links .active {
  color: var(--orange-dark);
}

.nav-group {
  position: relative;
}

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chev {
  font-size: 1rem;
  transition: transform 0.2s;
}

.submenu {
  position: absolute;
  left: -18px;
  top: calc(100% + 18px);
  min-width: 205px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(81, 41, 29, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 30;
}

/* invisible bridge so the menu doesn't close while the cursor travels to it */
.submenu:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -19px;
  height: 19px;
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--brown);
  font-size: 0.87rem;
  white-space: nowrap;
}

.submenu a:hover {
  background: #fff3e8;
  color: var(--orange-dark);
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-group:hover .chev {
  transform: rotate(180deg);
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 42px 0;
  background: #21120d;
  color: #cdbbb3;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.foot img {
  width: 210px;
  background: #fff;
  padding: 7px;
  border-radius: 7px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu {
    display: block;
  }

  .links {
    display: none;
  }

  .links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(81, 41, 29, 0.18);
  }

  .links.open > a,
  .links.open .nav-trigger {
    padding: 10px 12px;
  }

  .links.open .btn {
    margin-top: 6px;
  }

  /* submenus are always expanded inside the mobile menu */
  .links.open .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: #fff8f2;
    margin: 2px 0 7px;
    padding: 6px;
  }

  .links.open .chev {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .logo {
    width: 180px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
