/*
Theme Name: CookoutMenu
Theme URI: https://cookoutmennu.us
Author: CookoutMennu.us
Description: Custom WordPress theme rebuilding cookoutmennu.us's original Astro site design using Menu Item and Location custom post types.
Version: 1.0
Text Domain: cookoutmenu
*/

:root {
  --color-primary: #f3274c;
  --color-primary-dark: #d81340;
  --color-primary-deep: #0d0d0d;
  --color-accent: #ffd40d;
  --color-accent-soft: #fff8d6;

  --page-bg: #ffffff;
  --section-bg-alt: #f5f8fd;
  --surface: #ffffff;

  --text: #111111;
  --text-muted: #555555;
  --border: #e8e8ea;

  --tint-red-1: #fff1f4;
  --tint-red-2: #ffe3e8;

  --card-radius: 14px;
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 8px 34px rgba(0, 0, 0, 0.14);

  --font-body: 'Epilogue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fredoka One', 'Epilogue', system-ui, sans-serif;

  --container: 1200px;
  --pad-x: 16px;
}

@media (min-width: 768px) { :root { --pad-x: 24px; } }

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--page-bg); font-weight: 500; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-top: 1.2em; }
h3 { font-size: 1.3rem; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-family: var(--font-display); font-weight: 400; border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-primary-dark); }
.btn--secondary { background: var(--color-accent); color: #3a3200; }
.btn--secondary:hover { background: #ffe04a; }
.btn--outline { background: transparent; color: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn--outline:hover { background: var(--tint-red-1); }
.btn--white { background: #fff; color: var(--color-primary-dark); }
.btn--outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,0.14); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup:hover { text-decoration: none; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-primary); color: #fff; font-family: var(--font-display); font-size: 1.4rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .brand-name { font-size: 1.15rem; font-family: var(--font-display); color: var(--text); }
.brand-text .brand-sub { font-size: 0.72rem; color: var(--color-primary-dark); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-main { display: none; align-items: center; gap: 4px; }
.nav-main a, .nav-main .nav-drop-toggle { padding: 8px 12px; border-radius: 999px; font-weight: 700; color: var(--text); background: none; border: none; cursor: pointer; font-family: inherit; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 4px; }
.nav-main a:hover, .nav-main .nav-drop-toggle:hover { background: var(--tint-red-1); text-decoration: none; color: var(--color-primary-dark); }
@media (min-width: 1024px) { .nav-main { display: flex; } }

.nav-drop { position: relative; }
.nav-drop-menu { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--card-shadow); padding: 8px; min-width: 200px; z-index: 50; }
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 8px 12px; border-radius: 8px; }

.header-search { display: none; align-items: center; background: var(--section-bg-alt); border-radius: 999px; padding: 4px 4px 4px 14px; }
.header-search input { border: none; background: none; outline: none; font-family: inherit; font-size: 0.9rem; width: 160px; }
.header-search button { background: var(--color-primary); color: #fff; border: none; border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 1024px) { .header-search { display: flex; } }

.menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.header-strip { background: var(--color-primary-deep); overflow-x: auto; }
.header-strip-inner { display: flex; gap: 4px; padding: 10px var(--pad-x); white-space: nowrap; }
.header-strip-inner::-webkit-scrollbar { display: none; }
.header-strip a { color: #fff; font-size: 0.85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.header-strip a:hover { background: var(--color-primary-dark); text-decoration: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 85%; max-width: 340px; background: #fff; padding: 20px; overflow-y: auto; }
.drawer-close { background: none; border: none; cursor: pointer; margin-bottom: 16px; }
.drawer-search { display: flex; gap: 8px; margin-bottom: 20px; }
.drawer-search input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.drawer-group { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; margin: 16px 0 6px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 8px 0; border-bottom: 1px solid var(--border); font-weight: 700; }

/* Footer */
.site-footer { background: var(--color-primary-deep); color: rgba(255,255,255,0.85); margin-top: 60px; padding: 50px 0 20px; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom a { color: rgba(255,255,255,0.85); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* Hero / item hero */
.item-hero { padding: 28px 0 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.badge--price { background: var(--color-primary); color: #fff; font-size: 1rem; }
.badge--cal { background: var(--color-accent-soft); color: #6b5d00; border: 1px solid #f0e9a8; }
.badge--cat { background: var(--tint-red-1); color: var(--color-primary-dark); }
.badge--cat:hover { background: var(--tint-red-2); text-decoration: none; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nutrition grid */
.nutrition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .nutrition-grid { grid-template-columns: repeat(4, 1fr); } }
.nutrition-cell { background: var(--section-bg-alt); border-radius: 12px; padding: 16px; text-align: center; }
.nutrition-cell .val { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-primary); }
.nutrition-cell .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* Cards / pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--tint-red-1); color: var(--color-primary-dark); font-weight: 700; font-size: 0.9rem; }
.pill:hover { background: var(--tint-red-2); text-decoration: none; }
.pill-count { opacity: 0.6; font-weight: 500; }

.menu-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.menu-table th, .menu-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.menu-table th { font-family: var(--font-display); font-weight: 400; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }
.menu-table tr:hover { background: var(--section-bg-alt); }
.menu-table .price-cell { color: var(--color-primary-dark); font-weight: 700; }

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }

.location-card { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 20px; box-shadow: var(--card-shadow); }
.location-card:hover { box-shadow: var(--card-shadow-hover); }
.table-footnote { font-size: 0.8rem; color: var(--text-muted); }

.section { padding: 40px 0; }
