/* HoppyBuns — shared design system */

:root {
  --bg: #fbf7ee;
  --bg-warm: #fdf6ec;
  --card: #ffffff;
  --border: #e8e0cd;
  --border-soft: #efe8d8;
  --text: #23261d;
  --text-muted: #6b6a5c;
  --text-faint: #96947f;

  --sage-50: #eef2e5;
  --sage-100: #e3e9d5;
  --sage-500: #7c8f5e;
  --sage-600: #55693c;
  --sage-700: #414f31;
  --sage-900: #2c3520;

  --orange-500: #e07a34;
  --orange-600: #cc6a26;
  --orange-50: #fbe9db;

  --pink-100: #f7e3e0;
  --pink-600: #c65a4a;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(35, 38, 29, 0.05);
  --shadow-md: 0 2px 6px rgba(35, 38, 29, 0.06), 0 8px 24px rgba(35, 38, 29, 0.05);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; color: var(--text); }
p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary {
  background: var(--orange-500);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-600); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--sage-500); background: var(--sage-50); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}
.logo .mark { width: 34px; height: 34px; color: var(--text); flex-shrink: 0; }
.logo .custom-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo .custom-logo-link img.custom-logo { width: 34px; height: 34px; object-fit: contain; }
.logo .lockup-link { display: flex; }
.logo .lockup { display: flex; flex-direction: column; line-height: 1.1; }
.logo .name { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text); }
.logo .tagline { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-item > button {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; font-size: 15px; font-weight: 500;
  color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm);
}
.nav-item > button .icon { width: 14px; height: 14px; color: var(--text-faint); }
.nav-item:hover > button, .nav-item.active > button { background: var(--sage-50); }
.nav-item.active > button { color: var(--sage-700); font-weight: 600; }
.nav-drop {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 8px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.nav-item:hover .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); }
.nav-drop a:hover { background: var(--sage-50); color: var(--sage-700); }

.header-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 9px 16px; color: var(--text-faint); background: var(--card);
  width: 220px;
}
.header-search .icon { width: 16px; height: 16px; }
.header-search input { border: none; outline: none; background: none; font-size: 14px; width: 100%; color: var(--text); font-family: inherit; }
.header-search input::placeholder { color: var(--text-faint); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .main-nav, .header-search { display: none; }
  .nav-toggle { display: block; }
  .main-nav.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--border-soft); padding: 8px 16px 16px; box-shadow: var(--shadow-md);
  }
  .main-nav.mobile-open .nav-item { width: 100%; }
  .main-nav.mobile-open .nav-item > button { width: 100%; justify-content: space-between; }
  .main-nav.mobile-open .nav-drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; }
  .main-nav.mobile-open .nav-item:hover .nav-drop { display: block; }
  .header-search.mobile-open { display: flex; width: 100%; margin-top: 10px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-900); color: #dfe4d3; margin-top: 96px; }
.site-footer .wrap { padding: 64px 32px 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .logo .name, .footer-brand .logo .tagline { color: #f4f1e6; }
.footer-brand .logo .mark { color: #f4f1e6; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #b7bdA6; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: #f4f1e6; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #c3c8b3; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #9aa08a; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.footer-social .icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb a:hover { color: var(--sage-700); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--sage-600); display: inline-flex; align-items: center; gap: 6px;
}
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--sage-700); background: var(--sage-50); padding: 4px 10px; border-radius: var(--radius-sm);
  display: inline-block;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.section-panel {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---------- Ratings ---------- */
.rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.rating .stars { color: var(--orange-500); display: flex; gap: 1px; }
.rating .stars .icon { width: 13px; height: 13px; }

/* ---------- Generic layout helpers ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2col { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Hero sections and a few one-off layouts set grid-template-columns inline
   (page-specific ratios like 1.3fr 1fr) with no responsive fallback in the
   original design. Force them to a single column on narrow viewports rather
   than squeezing 2-3 columns into a phone screen. */
@media (max-width: 980px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

section.page-section { padding: 56px 0; }
section.page-section.tight { padding: 32px 0; }

/* ---------- Accessibility helpers (WordPress) ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  width: auto; height: auto;
  clip: auto;
  z-index: 999999;
  background: var(--sage-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
