/*
Theme Name: Panera Menu Guide
Theme URI: https://paneramenulist.us/
Author: Karachi Client SEO Program
Author URI: https://paneramenulist.us/
Description: A quiet bakery-cafe theme for a Panera Bread menu guide: Fraunces serif headings, warm cream pages, hairline rules instead of cards, an editorial list of guides and a deep-green footer. Original design.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: panera-menu
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, food-and-drink
*/

/* ---------- Design tokens ---------- */
:root{
  --green:#4C753F;
  --green-deep:#2F4A26;
  --green-dark:#22331B;
  --bg:#FAF6EF;
  --surface:#FFFFFF;
  --sage:#EFF3E8;
  --fg:#23281F;
  --muted:#6B7263;
  --line:#E3DDCE;
  --gold:#C08A2D;
  --radius:8px;
  --font-head:"Fraunces",Georgia,"Times New Roman",serif;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font:17px/1.75 var(--font-body);
  -webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--green-deep);text-decoration:underline;text-decoration-color:rgba(76,117,63,.4);text-underline-offset:3px}
a:hover{color:var(--green);text-decoration-color:var(--green)}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:600;line-height:1.2;letter-spacing:-.01em;color:var(--fg);margin:0 0 .6em}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
::selection{background:var(--sage)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.container{max-width:1160px;margin:0 auto;padding:0 24px}
.section{padding:3.4rem 0}
.section-sage{background:var(--sage)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(250,246,239,.95);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
/* Logged-in view: header kabhi admin bar se overlap NAHI hota. */
body.admin-bar .site-header{position:relative;top:auto}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:.95rem 0;position:relative}
.site-branding{display:flex;align-items:center;min-width:0}
.brand-link{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--fg)}
.brand-link:hover{color:var(--fg)}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;color:var(--green);flex:none}
.brand-mark-icon{width:30px;height:30px}
.site-title{font-family:var(--font-head);font-weight:600;font-size:1.5rem;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.custom-logo{max-height:52px;width:auto}
.main-navigation .menu{list-style:none;margin:0;padding:0;display:flex;gap:1.7rem;align-items:center}
.main-navigation a{color:var(--fg);text-decoration:none;font-size:.97rem;padding:.25rem 0;border-bottom:1px solid transparent}
.main-navigation a:hover{color:var(--green);border-bottom-color:var(--green)}
.main-navigation .current-menu-item>a{color:var(--green-deep);border-bottom-color:var(--green)}
.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:var(--radius);width:42px;height:38px;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:var(--surface)}
.menu-toggle .bar{display:block;width:18px;height:2px;background:var(--fg);border-radius:2px}

/* ---------- Section labels & titles ---------- */
.section-label{font-family:var(--font-head);font-style:italic;font-weight:500;color:var(--green);font-size:1.02rem;margin:0 0 .35rem}
.section-title{font-size:1.95rem;margin:0 0 1.4rem}
.section-more{margin:1.8rem 0 0;font-family:var(--font-head);font-size:1.05rem}
.section-more a{text-decoration:none}
.section-more a:hover{text-decoration:underline}

/* ---------- Hero (front page) ---------- */
.hero{padding:4.2rem 0 3.2rem;text-align:center}
.hero-inner{max-width:1160px}
.hero-label{font-family:var(--font-head);font-style:italic;font-weight:500;color:var(--green);font-size:1.12rem;margin:0 0 .9rem}
.hero h1{font-size:clamp(2.4rem,5vw,3.6rem);font-weight:600;max-width:820px;margin:0 auto .6em}
.hero-lede{max-width:640px;margin:0 auto;color:var(--muted);font-size:1.06rem}
.hero-search{display:flex;gap:.55rem;max-width:560px;margin:1.9rem auto 0}
.hero-search input[type="search"]{
  flex:1;min-width:0;padding:.72rem 1rem;font:inherit;font-size:1rem;color:var(--fg);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
}
.hero-search button{
  padding:.72rem 1.5rem;font:inherit;font-weight:600;font-size:1rem;cursor:pointer;
  color:#fff;background:var(--green);border:1px solid var(--green);border-radius:var(--radius);
}
.hero-search button:hover{background:var(--green-deep);border-color:var(--green-deep)}
.hero-strip{margin-top:3rem}
.hero-strip img{width:100%;height:380px;object-fit:cover;border-radius:var(--radius)}

/* ---------- Featured guide ---------- */
.featured-guide{padding-bottom:2.2rem}
.featured-guide-media{display:block;margin-bottom:1.3rem}
.featured-guide-media img{width:100%;border-radius:var(--radius)}
.guide-cat-label{font-family:var(--font-head);font-style:italic;font-weight:500;color:var(--green);font-size:1rem;margin:0 0 .4rem}
.guide-cat-label a{color:var(--green);text-decoration:none}
.guide-cat-label a:hover{text-decoration:underline}
.featured-guide-title{font-size:2.05rem;margin:0 0 .45em;max-width:820px}
.featured-guide-title a{color:var(--fg);text-decoration:none}
.featured-guide-title a:hover{color:var(--green-deep)}
.featured-guide-excerpt{color:var(--muted);max-width:760px;margin:0 0 .7rem}

/* ---------- Editorial list ---------- */
.editorial-list{border-bottom:1px solid var(--line)}
.list-item{display:flex;gap:1.6rem;align-items:flex-start;padding:1.55rem 0;border-top:1px solid var(--line)}
.list-item-main{flex:1;min-width:0}
.list-item-title{font-size:1.42rem;margin:0 0 .35em}
.list-item-title a{color:var(--fg);text-decoration:none}
.list-item-title a:hover{color:var(--green-deep)}
.list-item-excerpt{color:var(--muted);margin:0 0 .55rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.list-item-meta{margin:0;font-size:.72rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.list-item-meta a{color:var(--green);text-decoration:none}
.list-item-meta a:hover{text-decoration:underline}
.meta-sep{margin:0 .45rem;color:var(--line)}
.list-item-thumb{flex:none;width:140px}
.list-item-thumb img{width:140px;height:105px;object-fit:cover;border-radius:6px}

/* ---------- Latest posts grid (front page) ---------- */
.posts-section{padding-top:0}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.4rem 2rem}
.post-grid-item{min-width:0}
.post-grid-media{display:block;margin-bottom:1rem;overflow:hidden;border-radius:var(--radius)}
.post-grid-media img{width:100%;aspect-ratio:900/560;object-fit:cover;transition:transform .45s ease}
.post-grid-item:hover .post-grid-media img{transform:scale(1.04)}
.post-grid-media--placeholder{background:var(--sage);aspect-ratio:900/560;display:flex;align-items:center;justify-content:center}
.post-grid-initial{font-family:var(--font-head);font-weight:600;font-size:3.4rem;line-height:1;color:var(--green)}
.post-grid-cat{margin:0 0 .35rem;font-size:.72rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--green)}
.post-grid-cat a{color:var(--green);text-decoration:none}
.post-grid-cat a:hover{text-decoration:underline}
.post-grid-title{font-size:1.28rem;margin:0 0 .35em}
.post-grid-title a{color:var(--fg);text-decoration:none}
.post-grid-item:hover .post-grid-title a{color:var(--green)}
.post-grid-excerpt{color:var(--muted);font-size:.96rem;margin:0 0 .55rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- Category index ---------- */
.cat-index{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;column-gap:3.5rem}
.cat-index li{border-bottom:1px solid var(--line)}
.cat-index-link{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.85rem 0;text-decoration:none;color:var(--fg)}
.cat-index-name{font-family:var(--font-head);font-weight:600;font-size:1.14rem}
.cat-index-link:hover .cat-index-name{color:var(--green)}
.cat-index-count{font-size:.8rem;color:var(--muted)}

/* ---------- List pages (index/archive/search) ---------- */
.list-head{text-align:center;padding-bottom:2.2rem}
.list-title{font-size:clamp(2rem,4vw,2.9rem);margin:0}
.list-lede{color:var(--muted);max-width:640px;margin:.6rem auto 0}
.empty-note{color:var(--muted);font-size:1.05rem;padding:1rem 0 2rem}

/* ---------- Article ---------- */
.article-wrap{max-width:720px}
.single-article{padding:2.6rem 0 3.4rem}
.breadcrumb{font-size:.86rem;color:var(--muted);margin-bottom:1.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.breadcrumb a{color:var(--muted);text-decoration:none}
.breadcrumb a:hover{color:var(--green);text-decoration:underline}
.crumb-sep{margin:0 .45rem;color:var(--line)}
.crumb-current{color:var(--fg)}
.article-title{font-size:clamp(2rem,4.4vw,2.85rem);font-weight:600;margin:0 0 .5em}
.article-meta{font-size:.86rem;color:var(--muted);margin:0 0 1.8rem}
.article-author{color:var(--fg);font-weight:600}
.article-figure{margin:0 0 2.2rem}
.article-figure img{width:100%;border-radius:var(--radius)}
.article-figure figcaption{font-size:.85rem;color:var(--muted);margin-top:.5rem;text-align:center}
.entry-content{font-size:1.03rem}
.entry-content p{margin:0 0 1.35em}
.entry-content h2{font-size:1.68rem;margin:2.4em 0 .55em}
.entry-content h3{font-size:1.32rem;margin:1.9em 0 .5em}
.entry-content h4{font-size:1.12rem;margin:1.6em 0 .45em}
.entry-content ul,.entry-content ol{margin:0 0 1.35em;padding-left:1.35rem}
.entry-content li{margin-bottom:.4em}
.entry-content a{font-weight:500}
.entry-content blockquote{
  margin:1.8em 0;padding:.2em 0 .2em 1.2rem;border-left:2px solid var(--green);
  font-family:var(--font-head);font-style:italic;font-size:1.15rem;color:var(--green-deep);
}
.entry-content blockquote p{margin:0 0 .6em}
.entry-content table{width:100%;border-collapse:collapse;margin:0 0 1.6em;font-size:.95rem;line-height:1.55}
.entry-content th{background:var(--sage);font-weight:600;text-align:left}
.entry-content th,.entry-content td{padding:.6rem .8rem;border-bottom:1px solid var(--line);vertical-align:top}
.entry-content img{border-radius:var(--radius);margin:.4em 0 1.2em}
.entry-content .wp-caption{max-width:100%}
.entry-content .wp-caption-text{font-size:.85rem;color:var(--muted);text-align:center}
.article-tags{margin:2.4rem 0 0;padding-top:1.3rem;border-top:1px solid var(--line);font-size:.92rem;color:var(--muted)}
.article-tags .tags-label{font-family:var(--font-head);font-style:italic;color:var(--green);margin-right:.5rem}
.page-links{margin:1.6rem 0;font-weight:600}
.page-links a,.page-links .post-page-numbers{margin-right:.5rem}

/* Related + post navigation */
.related-section{padding:3rem 0 3.4rem;background:var(--sage)}
.related-section .editorial-list{border-bottom-color:var(--line)}
.post-nav{border-top:1px solid var(--line);padding:1.4rem 0}
.post-nav-inner{display:flex;justify-content:space-between;gap:1rem}
.post-nav a{font-family:var(--font-head);font-weight:600;font-size:1.02rem;text-decoration:none;color:var(--green-deep)}
.post-nav a:hover{color:var(--green);text-decoration:underline}
.post-nav-next{margin-left:auto;text-align:right}

/* ---------- Comments ---------- */
.comments-area{margin-top:2.8rem;border-top:1px solid var(--line);padding-top:1.8rem}
.comments-title{font-size:1.4rem}
.comment-list{list-style:none;margin:0 0 1rem;padding:0}
.comment-list li{padding:1rem 0;border-bottom:1px solid var(--line)}
.comment-list .children{list-style:none;padding-left:1.6rem}
.comment-meta{font-size:.85rem;color:var(--muted)}
.comment-body p{margin:.4rem 0}
.comment-respond{margin-top:1.6rem}
.comment-form label{display:block;font-size:.9rem;font-weight:600;margin-bottom:.3rem}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{
  width:100%;padding:.6rem .8rem;font:inherit;font-size:.98rem;color:var(--fg);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
}
.comment-form .submit{
  padding:.65rem 1.4rem;font:inherit;font-weight:600;cursor:pointer;
  color:#fff;background:var(--green);border:1px solid var(--green);border-radius:var(--radius);
}
.comment-form .submit:hover{background:var(--green-deep)}
.no-comments{color:var(--muted)}

/* ---------- Search form (generic) + 404 ---------- */
.search-form{display:flex;gap:.55rem;max-width:520px}
.search-form input[type="search"]{
  flex:1;min-width:0;padding:.65rem .9rem;font:inherit;font-size:1rem;color:var(--fg);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
}
.search-form input[type="submit"],.search-form button{
  padding:.65rem 1.3rem;font:inherit;font-weight:600;cursor:pointer;
  color:#fff;background:var(--green);border:1px solid var(--green);border-radius:var(--radius);
}
.not-found{text-align:center}
.not-found .article-wrap{margin:0 auto}
.not-found-code{font-family:var(--font-head);font-weight:700;font-size:5.2rem;line-height:1;color:var(--green);margin:0 0 .5rem}
.not-found-title{font-size:2rem}
.not-found-text{color:var(--muted);max-width:520px;margin:0 auto 1.6rem}
.not-found .search-form{margin:0 auto}
.not-found .section-more a{color:var(--green-deep)}

/* ---------- Pagination ---------- */
.pagination{margin-top:2.4rem}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:.45rem}
.page-numbers{
  display:inline-block;padding:.42rem .85rem;font-size:.95rem;line-height:1.4;color:var(--fg);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;
}
.page-numbers.current{background:var(--green);border-color:var(--green);color:#fff}
a.page-numbers:hover{border-color:var(--green);color:var(--green-deep)}

/* ---------- Footer ---------- */
.site-footer{background:var(--green-dark);color:#E7EBDD;margin-top:0}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:2.6rem;padding:3.4rem 0 2.6rem}
.footer-brand-link{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;color:#fff}
.footer-brand-link:hover{color:#fff}
.brand-mark-light{color:#A9C29A}
.footer-site-name{font-family:var(--font-head);font-weight:600;font-size:1.55rem;color:#fff}
.footer-about{color:#BCC7AE;font-size:.95rem;line-height:1.7;margin:1rem 0 0;max-width:340px}
.footer-heading{font-family:var(--font-body);font-size:.74rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:#9DB18C;margin:0 0 1rem}
.footer-col .menu,.footer-list{list-style:none;margin:0;padding:0}
.footer-col .menu li,.footer-list li{margin-bottom:.55rem}
.footer-col a{color:#DDE5D0;text-decoration:none;font-size:.96rem}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.14);padding:1.15rem 0 1.35rem;
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  font-size:.84rem;color:#A5B496;
}
.footer-bottom p{margin:0}

/* ---------- Alignments / WP core ---------- */
.alignleft{float:left;margin:.3em 1.2em 1em 0}
.alignright{float:right;margin:.3em 0 1em 1.2em}
.aligncenter{margin-left:auto;margin-right:auto}
.wp-block-image img{border-radius:var(--radius)}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
  .post-grid{grid-template-columns:1fr 1fr;gap:2rem 1.6rem}
}
@media (max-width:860px){
  .menu-toggle{display:flex}
  .main-navigation{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--bg);border-bottom:1px solid var(--line);
    padding:.6rem 24px 1.1rem;
  }
  .main-navigation.open{display:block}
  .main-navigation .menu{flex-direction:column;align-items:flex-start;gap:0}
  .main-navigation .menu li{width:100%}
  .main-navigation a{display:block;padding:.6rem 0;border-bottom:1px solid var(--line)}
  .main-navigation .menu li:last-child a{border-bottom:0}
  .site-header .container{position:relative}
  .hero{padding:3rem 0 2.4rem}
  .hero-strip img{height:280px}
}
@media (max-width:700px){
  .list-item-thumb{display:none}
  .cat-index{grid-template-columns:1fr}
}
@media (max-width:560px){
  body{font-size:16px}
  .section{padding:2.5rem 0}
  .hero-search{flex-direction:column}
  .hero-search button{width:100%}
  .hero-strip img{height:210px}
  .footer-grid{grid-template-columns:1fr;padding:2.6rem 0 2rem}
  .footer-bottom{flex-direction:column;gap:.35rem}
  .post-nav-inner{flex-direction:column;gap:.6rem}
  .post-nav-next{margin-left:0;text-align:left}
  .post-grid{grid-template-columns:1fr;gap:1.9rem}
  .site-title{font-size:1.32rem}
  .breadcrumb{white-space:normal}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
