/*
Theme Name: IHOP Menu Guide
Theme URI: https://ihopmenuupdate.us/
Author: Karachi Client SEO Program
Description: A modern American diner theme for an IHOP menu guide: IHOP blue and navy with red smile accents, Archivo headings, framed hero photo, feature cards, menu-row guide lists and a navy footer. An independent guide, not affiliated with IHOP.
Version: 1.0.0
Requires at least: 5.8
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: ihop-menu
*/

/* ============ Design tokens ============ */
:root{
  --blue:#005DAA;
  --navy:#003B6B;
  --navy-deep:#0A2A4A;
  --red:#E31837;
  --bg:#FFFFFF;
  --bg-alt:#F2F6FB;
  --fg:#16283C;
  --fg-soft:#3E546C;
  --muted:#64788E;
  --line:#D9E3EE;
  --line-soft:#E7EEF5;
  --radius:12px;
  --radius-sm:10px;
  --shadow:0 1px 2px rgba(10,42,74,.05),0 8px 22px -12px rgba(10,42,74,.18);
  --shadow-lift:0 2px 4px rgba(10,42,74,.06),0 20px 38px -18px rgba(10,42,74,.30);
  --font-head:'Archivo',Inter,ui-sans-serif,system-ui,sans-serif;
  --font-body:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}

/* ============ Base ============ */
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:clip}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font:16.5px/1.65 var(--font-body);
  -webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--font-head);color:var(--navy);line-height:1.15;margin:0 0 .6em;font-weight:800;letter-spacing:-.01em}
h1{font-size:clamp(2rem,4.6vw,3.1rem);font-weight:900}
h2{font-size:clamp(1.5rem,3vw,2.05rem)}
h3{font-size:1.22rem}
::selection{background:var(--blue);color:#fff}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.container{max-width:1160px;margin:0 auto;padding:0 1.25rem}
.container-narrow{max-width:820px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dot-sep{width:5px;height:5px;border-radius:50%;background:var(--blue);display:inline-block;flex:none}
.badge{
  display:inline-block;background:var(--blue);color:#fff;
  font:700 .72rem/1 var(--font-head);letter-spacing:.08em;text-transform:uppercase;
  padding:.42rem .7rem;border-radius:6px;
}
.badge:hover{background:var(--navy);text-decoration:none}

/* ============ Top strip ============ */
.topstrip{background:var(--bg-alt);border-bottom:1px solid var(--line-soft);font-size:.82rem;color:var(--fg-soft)}
.topstrip-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.42rem 1.25rem}
.topstrip-tagline{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topstrip-links{display:flex;gap:1.15rem;flex:none}
.topstrip-links a{color:var(--navy);font-weight:600}
.topstrip-links a:hover{color:var(--blue)}

/* ============ Header ============ */
.site-header{
  position:sticky;top:0;z-index:100;background:var(--bg);
  box-shadow:0 4px 18px -12px rgba(10,42,74,.22);
}
/* Logged-in view: admin bar ke sath header sticky nahi rehta, overlap kabhi nahi. */
body.admin-bar .site-header{position:relative;top:auto}
.header-inner{display:flex;align-items:center;gap:1.2rem;padding:.8rem 0;position:relative}
.site-branding{display:flex;align-items:center;min-width:0}
.brand-link{display:flex;align-items:center;gap:.65rem;color:var(--navy);min-width:0}
.brand-link:hover{text-decoration:none}
.brand-mark{
  width:44px;height:44px;flex:none;display:grid;place-items:center;
  background:var(--blue);color:#fff;border-radius:10px;
}
.brand-mark-icon{width:26px;height:26px}
.site-title{
  font:800 1.42rem/1.1 var(--font-head);color:var(--navy);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.custom-logo{max-height:48px;width:auto}
.header-cta{
  margin-left:auto;flex:none;background:var(--red);color:#fff;
  font:700 .92rem var(--font-head);padding:.62rem 1.25rem;border-radius:999px;
  box-shadow:0 6px 14px -8px rgba(227,24,55,.7);
}
.header-cta:hover{background:#C41430;text-decoration:none}
.header-stripe{height:3px;background:var(--red)}

/* Nav */
.main-navigation{margin-left:auto}
.main-navigation .menu{list-style:none;margin:0;padding:0;display:flex;gap:1.5rem;align-items:center}
.main-navigation li{position:relative}
.main-navigation a{
  color:var(--navy);font-weight:600;font-size:.98rem;display:block;padding:.35rem 0;
  border-bottom:3px solid transparent;
}
.main-navigation a:hover{color:var(--blue);text-decoration:none;border-bottom-color:var(--blue)}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a{color:var(--blue);border-bottom-color:var(--red)}
.main-navigation .sub-menu{
  list-style:none;margin:0;padding:.5rem;position:absolute;top:calc(100% + 6px);left:-.5rem;min-width:210px;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lift);
  display:none;z-index:120;
}
.main-navigation li:hover > .sub-menu,.main-navigation li:focus-within > .sub-menu{display:block}
.main-navigation .sub-menu a{padding:.45rem .6rem;border-bottom:0;border-radius:6px}
.main-navigation .sub-menu a:hover{background:var(--bg-alt)}
.header-cta + .main-navigation{margin-left:0}
.site-branding + .main-navigation{margin-left:auto}
.site-branding + .header-cta{margin-left:auto}
.menu-toggle{
  display:none;margin-left:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);
  width:44px;height:44px;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.menu-toggle .bar{display:block;width:20px;height:2px;background:var(--navy);border-radius:2px}

/* ============ Hero ============ */
.hero{background:linear-gradient(180deg,var(--bg-alt),#fff 78%);border-bottom:1px solid var(--line-soft);padding:3.2rem 0 1.6rem}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:2.6rem;align-items:center}
.hero-eyebrow{
  font:700 .78rem var(--font-head);letter-spacing:.16em;text-transform:uppercase;color:var(--red);margin:0 0 .7rem;
}
.hero h1{margin-bottom:1rem}
.hero-strip{display:block;width:74px;height:5px;border-radius:3px;background:var(--red);margin:0 0 1.1rem}
.hero-lede{font-size:1.1rem;color:var(--fg-soft);margin:0 0 1.5rem;max-width:34rem}
.hero-search{
  display:flex;background:#fff;border:1.5px solid var(--line);border-radius:var(--radius-sm);
  padding:.3rem;max-width:32rem;box-shadow:var(--shadow);
}
.hero-search input{
  flex:1;border:0;background:transparent;padding:.6rem .8rem;font:inherit;font-size:1rem;color:var(--fg);min-width:0;
}
.hero-search input:focus{outline:none}
.hero-search:focus-within{border-color:var(--blue)}
.hero-search button{
  background:var(--blue);color:#fff;border:0;border-radius:8px;cursor:pointer;
  font:700 .95rem var(--font-head);padding:.6rem 1.3rem;
}
.hero-search button:hover{background:var(--navy)}
.page-search{margin:0 0 1.8rem}
.hero-frame{
  border:2px solid var(--navy);border-radius:var(--radius);
  outline:2px solid var(--red);outline-offset:5px;
  overflow:hidden;box-shadow:var(--shadow-lift);background:#fff;
}
.hero-frame img{width:100%;height:100%;object-fit:cover}
.cat-pills{
  display:flex;gap:.55rem;overflow-x:auto;padding:1.4rem .1rem .4rem;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.cat-pills::-webkit-scrollbar{display:none}
.cat-pill{
  flex:none;background:#fff;border:1.5px solid var(--blue);color:var(--navy);
  font:600 .9rem var(--font-body);padding:.45rem 1rem;border-radius:999px;
}
.cat-pill:hover{background:var(--blue);color:#fff;text-decoration:none}

/* ============ Sections ============ */
.section{padding:2.8rem 0}
.section-alt{background:var(--bg-alt)}
.section-head{margin-bottom:1.7rem}
.section-head-page{padding-top:2.4rem}
.section-kicker{
  font:700 .74rem var(--font-head);letter-spacing:.16em;text-transform:uppercase;color:var(--red);margin:0 0 .4rem;
}
.section-head h2,.section-head h1{margin-bottom:.55rem}
.head-arc{
  display:block;width:52px;height:12px;
  border-bottom:4px solid var(--red);border-radius:0 0 52px 52px;
}

/* ============ Feature cards ============ */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.feature-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;
  transition:transform .18s ease,box-shadow .18s ease;
}
.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.feature-card-media{display:block;aspect-ratio:8/5;overflow:hidden;background:var(--bg-alt)}
.feature-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.feature-card:hover .feature-card-media img{transform:scale(1.05)}
.feature-card-fallback{display:grid;place-items:center;height:100%;color:var(--blue)}
.fallback-icon{width:52px;height:52px;opacity:.55}
.feature-card-body{padding:1.05rem 1.15rem 1.15rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.feature-card-title{font-size:1.16rem;margin:0}
.feature-card-title a{color:var(--navy)}
.feature-card-title a:hover{color:var(--blue);text-decoration:none}
.feature-card-excerpt{margin:0;color:var(--fg-soft);font-size:.95rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.feature-card-meta{
  margin-top:auto;padding-top:.7rem;border-top:1px solid var(--line-soft);
  display:flex;align-items:center;gap:.55rem;color:var(--muted);font-size:.85rem;
}

/* ============ Menu rows ============ */
.menu-rows{display:flex;flex-direction:column}
.menu-row{
  display:flex;align-items:center;gap:1.1rem;padding:.95rem .4rem;
  border-bottom:1px solid var(--line);
}
.menu-row:last-child{border-bottom:0}
.menu-row-thumb{flex:none;width:110px;height:82px;border-radius:8px;overflow:hidden;background:var(--bg-alt);display:block}
.menu-row-thumb img{width:100%;height:100%;object-fit:cover}
.menu-row-fallback{display:grid;place-items:center;height:100%;color:var(--blue)}
.menu-row-fallback .fallback-icon{width:34px;height:34px}
.menu-row-main{flex:1;min-width:0}
.menu-row-title{font-size:1.06rem;margin:0 0 .2rem}
.menu-row-title a{color:var(--navy)}
.menu-row-title a:hover{color:var(--blue);text-decoration:none}
.menu-row-excerpt{
  margin:0;color:var(--fg-soft);font-size:.92rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.menu-row-side{flex:none;display:flex;align-items:center;gap:.9rem}
.menu-row-side time{color:var(--muted);font-size:.85rem;white-space:nowrap}
.menu-row-arrow{
  width:36px;height:36px;border-radius:50%;border:1.5px solid var(--blue);color:var(--blue);
  display:grid;place-items:center;font-size:1.05rem;line-height:1;
}
.menu-row-arrow:hover{background:var(--blue);color:#fff;text-decoration:none}

/* ============ Category list ============ */
.cat-list{
  list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 3rem;
}
.cat-list li{
  display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  padding:.75rem .1rem;border-bottom:1px solid var(--line);
}
.cat-list a{color:var(--navy);font-weight:600}
.cat-list a:hover{color:var(--blue);text-decoration:none}
.cat-count{color:var(--muted);font-size:.9rem;font-variant-numeric:tabular-nums}

/* ============ Article ============ */
.breadcrumb{
  padding:1.5rem 0 .4rem;font:600 .76rem var(--font-head);
  letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--blue)}
.breadcrumb .sep{margin:0 .45rem;color:var(--line)}
.article-header{margin-bottom:1.3rem}
.article-header .badge{margin-bottom:.8rem}
.article-header h1{margin-bottom:.7rem}
.meta-line{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;color:var(--muted);font-size:.92rem}
.article-media{margin:0 0 1.7rem}
.article-media img{border-radius:var(--radius);box-shadow:var(--shadow);width:100%}
.entry-content{font-size:1.04rem;color:var(--fg)}
.entry-content p{margin:0 0 1.15rem}
.entry-content h2{
  margin:1.9rem 0 .8rem;padding-bottom:.45rem;
  border-bottom:3px solid var(--red);
}
.entry-content h3{margin:1.5rem 0 .6rem}
.entry-content ul,.entry-content ol{margin:0 0 1.15rem;padding-left:1.4rem}
.entry-content li{margin-bottom:.4rem}
.entry-content blockquote{
  margin:1.4rem 0;padding:.4rem 0 .4rem 1.1rem;
  border-left:4px solid var(--blue);color:var(--fg-soft);font-style:italic;
}
.entry-content img{border-radius:var(--radius-sm)}
.entry-content .wp-caption{max-width:100%}
.table-wrap,.entry-content table{margin:0 0 1.4rem}
.entry-content table{
  width:100%;border-collapse:collapse;font-size:.97rem;display:block;overflow-x:auto;
  border:1px solid var(--line);border-radius:var(--radius-sm);
}
.entry-content thead th{
  background:var(--blue);color:#fff;text-align:left;padding:.65rem .85rem;
  font-family:var(--font-head);font-size:.88rem;letter-spacing:.03em;white-space:nowrap;
}
.entry-content td{padding:.6rem .85rem;border-top:1px solid var(--line-soft)}
.entry-content tbody tr:nth-child(even){background:var(--bg-alt)}
.tags{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.6rem 0}
.tags a{
  background:var(--bg-alt);border:1px solid var(--line);color:var(--navy);
  padding:.3rem .8rem;border-radius:999px;font-size:.85rem;font-weight:600;
}
.tags a:hover{border-color:var(--blue);color:var(--blue);text-decoration:none}
.page-links{margin:1.2rem 0;font-weight:600}
.post-nav{
  display:flex;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;
  border-top:1px solid var(--line);margin-top:2rem;padding-top:1.1rem;
}
.post-nav-link{font-weight:600;color:var(--navy);max-width:46%}
.post-nav-link.next{margin-left:auto;text-align:right}
.post-nav-link:hover{color:var(--blue)}
.related{margin:3rem 0 1rem}

/* ============ Pagination ============ */
.pagination{margin:2.2rem 0 3rem}
.pagination .nav-links{display:flex;gap:.45rem;flex-wrap:wrap}
.pagination .page-numbers{
  padding:.5rem .9rem;border:1px solid var(--line);border-radius:var(--radius-sm);
  color:var(--navy);font-weight:600;background:#fff;
}
.pagination .page-numbers.current{background:var(--blue);border-color:var(--blue);color:#fff}
.pagination a.page-numbers:hover{border-color:var(--blue);color:var(--blue);text-decoration:none}

/* ============ 404 ============ */
.not-found{padding:3rem 1.25rem 2rem;text-align:left}
.not-found-code{font:900 5.2rem/1 var(--font-head);color:var(--blue);margin:0 0 .4rem}
.not-found-latest{margin-top:2rem;text-align:left}

/* ============ Comments ============ */
.comments-area{margin:2.6rem 0}
.comment-list{list-style:none;margin:1.2rem 0;padding:0}
.comment-list li{border-bottom:1px solid var(--line-soft);padding:1rem 0}
.comment-list .children{list-style:none;padding-left:1.6rem}
.comment-form input[type="text"],.comment-form input[type="email"],
.comment-form input[type="url"],.comment-form textarea{
  width:100%;border:1.5px solid var(--line);border-radius:var(--radius-sm);
  padding:.6rem .8rem;font:inherit;margin-top:.3rem;background:#fff;color:var(--fg);
}
.comment-form input:focus,.comment-form textarea:focus{border-color:var(--blue);outline:none}
.comment-form .submit{
  background:var(--blue);color:#fff;border:0;border-radius:8px;cursor:pointer;
  font:700 .95rem var(--font-head);padding:.65rem 1.4rem;
}
.comment-form .submit:hover{background:var(--navy)}

/* ============ Footer ============ */
.site-footer{
  background:linear-gradient(180deg,var(--navy),var(--navy-deep));
  color:#C7D6E6;margin-top:3.5rem;
  border-top:3px solid var(--red);
}
.footer-grid{
  display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:2.2rem;
  padding:2.8rem 0 2.2rem;
}
.footer-branding{display:flex;align-items:center;gap:.65rem;margin-bottom:.9rem}
.brand-mark-footer{background:#fff;color:var(--blue)}
.footer-title{font:800 1.25rem var(--font-head);color:#fff}
.footer-about{margin:0;font-size:.94rem;line-height:1.6;color:#A9BCD2}
.footer-heading{
  color:#fff;font-size:.95rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:1rem;
}
.footer-list{list-style:none;margin:0;padding:0}
.footer-list li{margin-bottom:.55rem}
.footer-list a{color:#C7D6E6;font-size:.95rem}
.footer-list a:hover{color:#fff}
.footer-list .post-count,.footer-list li .children{display:none}
.footer-popular{list-style:none;margin:0;padding:0}
.footer-popular li{margin-bottom:.85rem}
.footer-popular a{display:flex;align-items:center;gap:.75rem;color:#C7D6E6}
.footer-popular a:hover{color:#fff;text-decoration:none}
.footer-thumb{width:52px;height:40px;object-fit:cover;border-radius:6px;flex:none}
.footer-popular-title{font-size:.92rem;font-weight:600;line-height:1.35}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.16);
  padding:1.1rem 0 1.3rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  font-size:.86rem;color:#8FA9C4;
}
.footer-bottom p{margin:0}

/* ============ Responsive ============ */
@media (max-width:1020px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .hero-inner{grid-template-columns:1fr;gap:1.8rem}
  .hero{padding:2.4rem 0 1.2rem}
  .header-cta{display:none}
  .menu-toggle{display:flex}
  .main-navigation{
    display:none;position:absolute;top:100%;left:0;right:0;margin-left:0;
    background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow-lift);
    max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);overflow-y:auto;z-index:110;
  }
  .site-header .container{position:relative}
  .main-navigation.open{display:block}
  .main-navigation .menu{flex-direction:column;align-items:stretch;gap:0;padding:.5rem 1.25rem 1rem}
  .main-navigation a{padding:.65rem 0;border-bottom:1px solid var(--line-soft)}
  .main-navigation .sub-menu{position:static;display:block;box-shadow:none;border:0;padding:0 0 0 1rem}
  .cat-list{grid-template-columns:1fr}
}
@media (max-width:560px){
  body{font-size:16px}
  .feature-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;padding:2.2rem 0 1.6rem}
  .topstrip-links{display:none}
  .topstrip-tagline{text-align:center;width:100%}
  .menu-row{flex-wrap:wrap;gap:.7rem}
  .menu-row-thumb{width:84px;height:64px}
  .menu-row-side{width:100%;justify-content:space-between}
  .menu-row-excerpt{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .site-title{font-size:1.18rem}
  .brand-mark{width:38px;height:38px}
  .hero-search{flex-direction:row}
  .not-found-code{font-size:3.6rem}
  .post-nav-link{max-width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
}
