/*
Theme Name: Golden Corral Price Guide Child
Theme URI: https://goldencorralprice.com/
Description: Child theme for GeneratePress (free parent theme). Carries the Golden Corral Price Guide design — gold / deep red / cream, price tables, price cards, FAQ accordion and the calculator tools — on top of GeneratePress. Parent theme GeneratePress must be installed first; do NOT use this child theme on its own.
Author: GoldenCorralPrice.com
Author URI: https://goldencorralprice.com/
Template: generatepress
Version: 7.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goldencorralprice
Tags: food, restaurant, prices, guide, responsive
*/

/* ============================================================
   Golden Corral Price Guide — GeneratePress child theme
   Colours: gold #c99700 / #b8860b, deep red #8b1e1e,
   cream #fff8ec, paper #fffdf7, dark #2b2118
   GeneratePress classes used: .site-header, .site-content,
   .inside-article, .entry-content, .main-navigation,
   .site-footer, .site-info, .separate-containers
   ============================================================ */

:root{
  --gold:#c99700; --gold2:#b8860b; --red:#8b1e1e; --red2:#a52a2a;
  --dark:#2b2118; --cream:#fff8ec; --paper:#fffdf7;
  --muted:#6b5d4f; --border:#e8dcc3; --green:#2e7d32;
}

body{ background:var(--cream); color:var(--dark); line-height:1.65; }
a{ color:var(--red); }
a:hover{ color:var(--red2); }
img{ max-width:100%; height:auto; border-radius:12px; }

/* --- Sticky header (GeneratePress) --- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:#fff; border-bottom:3px solid var(--gold);
  box-shadow:0 2px 12px rgba(0,0,0,.08);
}
.site-header .site-title a{ color:var(--red); font-weight:800; letter-spacing:.3px; }
.site-header .site-description{ color:var(--muted); font-weight:600; letter-spacing:1.5px; text-transform:uppercase; font-size:.68rem; }

/* --- Primary navigation (GeneratePress .main-navigation) --- */
.main-navigation{ background:#fff; }
.main-navigation .main-nav ul li a{
  color:var(--dark); font-weight:600; font-size:.92rem;
  padding:8px 10px; border-radius:8px; line-height:1.4;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a{
  background:#fdf0c8; color:var(--red);
}
.main-navigation .menu-toggle{ color:var(--red); font-weight:700; }

/* --- Content containers (GeneratePress separate-containers) --- */
.site-content{ max-width:1400px; }
.separate-containers .inside-article,
.one-container .site-content{
  background:var(--paper); border:1px solid var(--border);
  border-radius:14px; padding:24px;
}
.entry-title{ color:var(--red); font-size:2rem; line-height:1.2; }
.entry-content h2{
  color:var(--red); border-bottom:2px solid var(--gold); padding-bottom:6px;
}
.entry-content h3{ color:#5a3a00; }
.entry-content .lead{ font-size:1.08rem; }
.entry-content figure{ margin:0 0 16px; }
.entry-content figcaption{ font-size:.85rem; color:var(--muted); margin-top:6px; }

/* --- Hero badge / buttons --- */
.badge{
  display:inline-block; background:var(--red); color:#fff;
  padding:4px 10px; border-radius:999px; font-size:.8rem; font-weight:700;
}
.btn, .entry-content a.btn, a.wp-block-button__link{
  display:inline-block; background:var(--red); color:#fff;
  padding:11px 18px; border-radius:10px; font-weight:700; border:0; cursor:pointer;
  text-decoration:none;
}
.btn:hover, a.wp-block-button__link:hover{ background:var(--red2); color:#fff; text-decoration:none; }
.btn.gold{ background:var(--gold); color:#fff; }
.btn.ghost{ background:#fff; color:var(--red); border:2px solid var(--red); }

/* --- Cards, tables, callouts --- */
.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin:20px 0; }
.card{
  background:var(--paper); border:1px solid var(--border); border-radius:14px;
  padding:18px; box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.card h3{ margin-top:0; color:var(--red); }
.price{ font-size:1.7rem; font-weight:800; color:var(--red); }
.price small{ font-size:.85rem; color:var(--muted); font-weight:600; }

.entry-content table{ width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; margin:14px 0; }
.entry-content table th{ background:var(--red); color:#fff; text-align:left; padding:11px 12px; }
.entry-content table td{ padding:10px 12px; border-bottom:1px solid #eee; }
.entry-content table tr:nth-child(even) td{ background:#fffaf0; }

.callout{ background:#fff3cd; border-left:5px solid var(--gold); padding:14px 16px; border-radius:8px; margin:16px 0; }
.note{ background:#fdecea; border-left:5px solid var(--red); padding:14px 16px; border-radius:8px; margin:16px 0; }
.chip{ display:inline-block; background:#fdf0c8; border:1px solid var(--gold); border-radius:999px; padding:5px 12px; margin:4px; font-size:.9rem; }

/* --- Calculator / tools (same IDs as js/app.js: calc-*, plate-*, nut-*) --- */
.calc label{ display:block; font-weight:600; margin:10px 0 4px; }
.calc input, .calc select{
  width:100%; padding:10px; border:2px solid var(--border); border-radius:8px; font-size:1rem;
}
.calc .grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.result{
  background:#e8f5e9; border:2px solid var(--green); border-radius:12px;
  padding:16px; margin-top:14px; font-size:1.1rem;
}
.result b{ font-size:1.4rem; color:var(--green); }
.item-btn{
  margin:4px; padding:9px 12px; border:2px solid var(--border); background:#fff;
  border-radius:999px; cursor:pointer; font-weight:600; color:var(--dark);
}
.item-btn.sel{ background:var(--red); color:#fff; border-color:var(--red); }
#loc-search, #site-search{
  width:100%; padding:10px 14px; border:2px solid var(--border);
  border-radius:999px; font-size:1rem; background:#fff;
}

/* --- FAQ accordion (same classes as js/app.js) --- */
.faq-item{ border:1px solid var(--border); border-radius:10px; margin:10px 0; background:#fff; overflow:hidden; }
.faq-q{
  width:100%; text-align:left; background:none; border:0; padding:15px 16px;
  font-size:1rem; font-weight:700; cursor:pointer;
  display:flex; justify-content:space-between; gap:10px; color:var(--dark);
}
.faq-a{ display:none; padding:0 16px 16px; }
.faq-item.open .faq-a{ display:block; }

/* --- Footer (GeneratePress .site-footer) --- */
.site-footer{ background:#241a12; color:#f5e9d0; margin-top:30px; }
.site-footer a{ color:#ffd97a; }
.site-footer h4, .site-footer .widget-title{ color:#fff; margin-top:0; }
.site-footer .site-info{ color:#f5e9d0; }
.site-footer .site-info a{ color:#ffd97a; }

/* --- WordPress basics --- */
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); }
.aligncenter{ display:block; margin-left:auto; margin-right:auto; }
.wp-caption-text{ font-size:.85rem; color:var(--muted); }

@media (max-width:760px){
  .entry-title{ font-size:1.55rem; }
  .separate-containers .inside-article{ padding:16px; }
  .main-navigation .main-nav ul li a{ font-size:.85rem; padding:6px 7px; }
}

/* --- v2: LIGHTWEIGHT — system font stack only, no webfonts --- */
body, button, input, select, textarea{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
/* --- v2: FULL-WIDTH HOMEPAGE (v3 overrides this to all pages, below) --- */
body.home .site-content, body.home .grid-container{ max-width:1400px; }
body.home .content-area{ width:100%; float:none; margin:0 auto; }
body.home .separate-containers .inside-article{ padding:32px; }
/* --- v6: homepage "What's on the Buffet?" — fixed 3 columns x 2 rows on desktop --- */
body.home .entry-content .cards{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ body.home .entry-content .cards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ body.home .entry-content .cards{ grid-template-columns:1fr; } }
/* --- v6: buffet card photos (16:9 crop, top of card) --- */
.card img.buffet-img{ display:block; width:calc(100% + 36px); margin:-18px -18px 14px; aspect-ratio:16/9; object-fit:cover; border-radius:14px 14px 0 0; background:#f1f5f9; }
body.home .hero-wide{ max-width:1400px; margin:0 auto; }
@media (max-width:760px){ body.home .separate-containers .inside-article{ padding:18px; } }
/* --- v2: footer disclaimer --- */
.footer-disclaimer{ font-size:.85rem; color:#e8dcc3; border-top:1px solid #4a3a28; padding-top:12px; margin-top:12px; }

/* --- v7: 3-column footer --- */
.gc-footer{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; padding:28px 0 8px; }
.gc-footer-col h4{ color:#c99700; font-size:1.05rem; margin:0 0 12px; }
.gc-footer-col p{ font-size:.92rem; color:#f5e9d0; margin:0 0 10px; line-height:1.6; }
.gc-footer-col ul{ list-style:none; margin:0; padding:0; }
.gc-footer-col ul li{ margin:0 0 7px; }
.gc-footer-col ul li a{ color:#ffd97a; text-decoration:none; font-size:.92rem; }
.gc-footer-col ul li a:hover{ color:#fff; text-decoration:underline; }
.copyright-bar{ border-top:1px solid #4a3a28; padding:14px 0 4px; margin-top:16px; font-size:.85rem; color:#e8dcc3; text-align:center; }
@media (max-width:700px){ .gc-footer{ grid-template-columns:1fr; gap:24px; } }

/* --- V3: ALL pages full-width, no sidebar --- */
/* --- V4.2: Nutrition Calculator JS moved to js/nutrition-v4.js (enqueued only on nutrition-calculator) --- */
.site-content,.grid-container{max-width:1400px !important;}
.content-area{width:100% !important;}
.separate-containers .inside-article{max-width:1400px;}
.nut-card table{width:100%;border-collapse:collapse}
.nut-card th,.nut-card td{border:1px solid #e8dcc3;padding:8px;text-align:left}
.item-btn.sel{background:#8b1e1e;color:#fff}
