/*
Theme Name: Orders Central Takeaway Theme
Theme URI: https://orderscentral.com/
Author: Orders Central Ltd
Author URI: https://orderscentral.com/
Description: Reusable takeaway website theme with a single Restaurant Setup control centre.
Version: 2.0.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: orders-central-takeaway
*/

:root {
  --oc-primary: #d51a06;
  --oc-primary-dark: #a91404;
  --oc-ink: #171717;
  --oc-muted: #666;
  --oc-soft: #f6f6f6;
  --oc-border: #e7e7e7;
  --oc-white: #fff;
  --oc-radius: 18px;
  --oc-shadow: 0 12px 34px rgba(0,0,0,.08);
  --oc-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; color:var(--oc-ink); background:#fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height:1.6; }
a { color:inherit; }
img { max-width:100%; height:auto; }
.oc-container { width:min(calc(100% - 36px), var(--oc-container)); margin-inline:auto; }

.site-header { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom:1px solid rgba(0,0,0,.06); }
.admin-bar .site-header { top:32px; }
.site-header__inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-branding { display:flex; align-items:center; gap:14px; text-decoration:none; min-width:0; }
.site-branding img { max-height:54px; width:auto; display:block; }
.site-branding__name { font-weight:850; font-size:1.2rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header-actions { display:flex; align-items:center; gap:12px; }
.site-nav { display:flex; align-items:center; gap:22px; }
.site-nav a { text-decoration:none; font-weight:650; font-size:.96rem; }
.site-nav a:hover { color:var(--oc-primary); }

.oc-btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:999px; padding:12px 22px; min-height:48px; font-weight:800; text-decoration:none; border:2px solid transparent; transition:.18s ease; cursor:pointer; }
.oc-btn:hover { transform:translateY(-1px); }
.oc-btn--primary { background:var(--oc-primary); color:#fff; box-shadow:0 8px 24px color-mix(in srgb, var(--oc-primary) 25%, transparent); }
.oc-btn--primary:hover { background:var(--oc-primary-dark); color:#fff; }
.oc-btn--outline { border-color:var(--oc-primary); color:var(--oc-primary); background:#fff; }
.oc-btn--outline:hover { background:var(--oc-primary); color:#fff; }
.oc-btn--ghost { background:#fff; color:var(--oc-ink); border-color:#ddd; }

/* v2.0.0 — immersive, automatically generated / manually editable homepage hero */
.hero--immersive {
  position:relative;
  min-height:650px;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:#fff;
  background:#171717;
  background-image:var(--oc-hero-image, linear-gradient(135deg,#2a2a2a,#111));
  background-size:cover;
  background-position:center;
}
.hero__shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(8,8,8,.92) 0%,rgba(8,8,8,.78) 38%,rgba(8,8,8,.42) 68%,rgba(8,8,8,.30) 100%);
}
.hero--immersive .hero__inner { position:relative; z-index:1; width:100%; padding-top:86px; padding-bottom:86px; }
.hero--immersive .hero__content { max-width:720px; }
.hero--immersive .hero__eyebrow { display:block; margin:0 0 22px; color:var(--oc-primary); font-weight:900; font-size:.82rem; letter-spacing:.16em; text-transform:uppercase; }
.hero--immersive h1 { color:#fff; font-size:clamp(3rem,6vw,5.5rem); line-height:1.01; letter-spacing:-.045em; margin:0 0 24px; max-width:12ch; text-wrap:balance; }
.hero--immersive p { color:rgba(255,255,255,.82); font-size:clamp(1.04rem,1.8vw,1.2rem); max-width:650px; margin:0 0 30px; }
.hero__actions { display:flex; align-items:center; flex-wrap:wrap; gap:20px; }
.hero__phone { color:#fff; text-decoration:none; font-weight:700; }
.hero__phone:hover { color:var(--oc-primary); }
.hero__badges { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.hero__badge { display:inline-flex; align-items:center; gap:8px; min-height:32px; padding:5px 12px; border-radius:999px; border:1px solid color-mix(in srgb,var(--oc-primary) 70%,rgba(255,255,255,.35)); background:rgba(0,0,0,.26); color:#fff; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.02em; backdrop-filter:blur(3px); }
.hero__badge-icon { color:var(--oc-primary); font-weight:900; }
.hero__address { display:flex; align-items:center; gap:9px; margin-top:22px; color:rgba(255,255,255,.78); font-size:.94rem; }
.hero__address span { color:var(--oc-primary); font-weight:900; }

/* v2.0.1 — centre the immersive homepage hero on desktop as well as mobile */
.hero--immersive .hero__content {
  max-width:900px;
  margin-inline:auto;
  text-align:center;
}
.hero--immersive .hero__eyebrow,
.hero--immersive h1,
.hero--immersive p {
  margin-left:auto;
  margin-right:auto;
}
.hero--immersive h1 { max-width:15ch; }
.hero__actions,
.hero__badges,
.hero__address { justify-content:center; }

.oc-section { padding:82px 0; }
.oc-section--soft { background:var(--oc-soft); }
.oc-section__head { max-width:720px; margin:0 auto 40px; text-align:center; }
.oc-kicker { color:var(--oc-primary); text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; font-weight:900; }
.oc-section h2 { font-size:clamp(2rem,4vw,3rem); line-height:1.08; letter-spacing:-.035em; margin:8px 0 12px; }
.oc-section__head p { margin:0; color:var(--oc-muted); font-size:1.05rem; }

.popular-grid, .menu-grid, .delivery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.popular-card, .menu-card, .delivery-card { background:#fff; border:1px solid var(--oc-border); border-radius:var(--oc-radius); overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,.045); }
.popular-card { display:flex; flex-direction:column; }
.popular-card__image { aspect-ratio:16/10; background:#ececec; overflow:hidden; }
.popular-card__image img { width:100%; height:100%; object-fit:cover; }
.popular-card__body { padding:24px; display:flex; flex-direction:column; flex:1; text-align:center; align-items:center; }
.popular-card h3, .menu-card h3 { margin:0 0 8px; font-size:1.35rem; }
.popular-card p, .menu-card p { color:var(--oc-muted); margin:0; }
.popular-card__price { margin-top:16px; font-weight:900; color:var(--oc-primary); font-size:1.12rem; }
.popular-card__body .oc-btn { margin-top:20px; }
.menu-card { padding:26px; display:flex; flex-direction:column; text-align:center; align-items:center; min-height:235px; }
.menu-card p { flex:1; }
.menu-card .oc-btn { margin-top:22px; }

.section-actions { display:flex; justify-content:center; margin-top:34px; }
.delivery-card { padding:24px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.delivery-card__area { font-weight:800; }
.delivery-card__price { color:var(--oc-primary); font-weight:900; white-space:nowrap; }

.info-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.info-tile { border:1px solid var(--oc-border); border-radius:var(--oc-radius); padding:24px; background:#fff; text-align:center; }
.info-tile strong { display:block; font-size:1.05rem; margin-bottom:5px; }
.info-tile span, .info-tile a { color:var(--oc-muted); text-decoration:none; }

.contact-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:30px; align-items:start; }
.contact-panel { border:1px solid var(--oc-border); border-radius:var(--oc-radius); background:#fff; padding:30px; box-shadow:0 8px 24px rgba(0,0,0,.04); }
.contact-list { list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.contact-list li { padding-bottom:16px; border-bottom:1px solid var(--oc-border); }
.contact-list li:last-child { padding-bottom:0; border-bottom:0; }
.contact-list strong { display:block; margin-bottom:3px; }
.contact-list a { color:var(--oc-primary); font-weight:700; text-decoration:none; }
.hours-list { list-style:none; margin:18px 0 0; padding:0; }
.hours-list li { display:flex; justify-content:space-between; gap:20px; padding:9px 0; border-bottom:1px solid var(--oc-border); }
.hours-list li:last-child { border-bottom:0; }
.map-wrap { border-radius:var(--oc-radius); overflow:hidden; min-height:450px; background:#eee; }
.map-wrap iframe { width:100%; height:450px; border:0; display:block; }

.site-footer { background:#131313; color:#fff; padding:50px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.3fr .7fr .7fr; gap:34px; }
.footer-title { font-size:1.2rem; font-weight:850; margin-bottom:10px; }
.footer-muted { color:#bdbdbd; }
.footer-links { display:grid; gap:8px; }
.footer-links a { color:#ddd; text-decoration:none; }
.footer-links a:hover { color:#fff; }
.footer-bottom { border-top:1px solid #2a2a2a; margin-top:34px; padding-top:22px; color:#999; font-size:.9rem; }

.page-hero { padding:70px 0 42px; text-align:center; background:var(--oc-soft); }
.page-hero h1 { font-size:clamp(2.3rem,5vw,4rem); margin:0 0 10px; letter-spacing:-.04em; }
.page-hero p { color:var(--oc-muted); margin:0 auto; max-width:700px; }
.entry-content { padding:60px 0 80px; }
.entry-content > * { max-width:850px; margin-left:auto; margin-right:auto; }
.entry-content > .alignwide { max-width:var(--oc-container); }

@media (max-width:900px) {
  .admin-bar .site-header { top:46px; }
  .site-header__inner { min-height:72px; }
  .site-nav { display:none; }
  .contact-grid { grid-template-columns:1fr; }
  .hero--immersive { min-height:570px; }
  .hero--immersive .hero__inner { padding-top:70px; padding-bottom:70px; }
  .hero--immersive h1 { max-width:12ch; }
  .popular-grid, .menu-grid, .delivery-grid { grid-template-columns:1fr 1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width:620px) {
  .oc-container { width:min(calc(100% - 28px), var(--oc-container)); }
  .site-branding__name { display:none; }
  .header-actions .oc-btn { min-height:44px; padding:10px 16px; font-size:.91rem; }
  .hero--immersive { min-height:600px; background-position:center; }
  .hero__shade { background:linear-gradient(180deg,rgba(8,8,8,.76) 0%,rgba(8,8,8,.86) 72%,rgba(8,8,8,.92) 100%); }
  .hero--immersive .hero__inner { padding-top:58px; padding-bottom:58px; }
  .hero--immersive .hero__content { max-width:none; text-align:center; }
  .hero--immersive .hero__eyebrow { margin-left:auto; margin-right:auto; }
  .hero--immersive h1 { margin-left:auto; margin-right:auto; max-width:13ch; }
  .hero--immersive p { margin-left:auto; margin-right:auto; }
  .hero__actions { justify-content:center; flex-direction:column; gap:14px; }
  .hero__actions .oc-btn { width:100%; }
  .hero__badges { justify-content:center; }
  .hero__address { justify-content:center; }
  .oc-section { padding:62px 0; }
  .popular-grid, .menu-grid, .delivery-grid, .info-strip, .footer-grid { grid-template-columns:1fr; }
  .delivery-card { padding:20px; }
  .contact-panel { padding:22px; }
  .hours-list li { font-size:.93rem; }
}

.reviews-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.review-card { background:#fff; border:1px solid var(--oc-border); border-radius:var(--oc-radius); padding:28px; box-shadow:0 8px 24px rgba(0,0,0,.045); }
.review-stars { color:#f5a623; letter-spacing:.08em; font-size:1.12rem; margin-bottom:16px; }
.review-card blockquote { margin:0 0 22px; font-size:1.03rem; line-height:1.7; color:#333; }
.review-meta { display:flex; flex-direction:column; gap:2px; }
.review-meta span { color:var(--oc-muted); font-size:.9rem; }
.reviews-empty { max-width:720px; margin:0 auto; text-align:center; }
@media (max-width:900px) { .reviews-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:620px) { .reviews-grid { grid-template-columns:1fr; } }

.review-cta{margin:42px auto 0;max-width:760px;text-align:center;background:#fff;border:1px solid #e7e7e7;border-radius:18px;padding:34px 28px;box-shadow:0 12px 34px rgba(0,0,0,.06)}
.review-cta h2{margin:0 0 10px}.review-cta p{margin:0 auto 22px;max-width:580px;color:var(--oc-muted)}


/* v1.7.0 — delivery landing pages and navigation tidy-up */
.delivery-card--link { text-decoration:none; color:inherit; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.delivery-card--link:hover { transform:translateY(-2px); box-shadow:var(--oc-shadow); border-color:color-mix(in srgb,var(--oc-primary) 30%,var(--oc-border)); }
.delivery-page-hero p { max-width:780px; font-size:1.08rem; }
.delivery-page-hero .section-actions { margin-top:26px; }
.delivery-page-content { max-width:1000px; }
.delivery-page-summary { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:30px; background:var(--oc-soft); border-radius:var(--oc-radius); margin-bottom:64px; }
.delivery-page-summary h2 { margin:4px 0 0; }
.delivery-charge { text-align:right; }
.delivery-charge span { display:block; color:var(--oc-muted); font-size:.9rem; }
.delivery-charge strong { display:block; color:var(--oc-primary); font-size:1.7rem; }
.delivery-popular-head { margin-top:0; }
.delivery-final-cta { max-width:760px; margin:58px auto 0; padding:34px; text-align:center; border:1px solid var(--oc-border); border-radius:var(--oc-radius); background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.045); }
.delivery-final-cta h2 { margin:0 0 8px; }
.delivery-final-cta p { color:var(--oc-muted); margin:0 0 22px; }
@media(max-width:620px){.delivery-page-summary{align-items:flex-start;flex-direction:column}.delivery-charge{text-align:left}}


/* v1.8.0 — delivery-page polish, centred delivery areas, contact balance and mobile alignment */
.delivery-grid {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:22px;
}
.delivery-grid .delivery-card {
  flex:0 1 calc((100% - 44px) / 3);
  min-width:260px;
}

.contact-grid { align-items:stretch; }
.contact-panel { height:100%; }
.contact-map-column { display:flex; min-width:0; }
.contact-map-column .map-wrap { flex:1; min-height:100%; }
.contact-map-column .map-wrap iframe { height:100%; min-height:100%; }

.delivery-page-hero { padding:78px 0 64px; }
.delivery-page-hero .oc-container { max-width:900px; }
.delivery-page-hero .oc-kicker { display:block; margin-bottom:8px; }
.delivery-page-hero h1 { margin-bottom:14px; }
.delivery-page-hero p { max-width:760px; font-size:1.08rem; }
.delivery-hero-actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:18px; margin-top:28px; }
.delivery-phone-link { font-weight:750; text-decoration:none; }
.delivery-phone-link:hover { color:var(--oc-primary); }
.delivery-facts-section { padding:42px 0; background:#faf8f4; border-top:1px solid var(--oc-border); border-bottom:1px solid var(--oc-border); }
.delivery-facts-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.delivery-fact-card { background:#fff; border:1px solid var(--oc-border); border-radius:var(--oc-radius); padding:28px; box-shadow:0 6px 20px rgba(0,0,0,.035); }
.delivery-fact-icon { width:34px; height:34px; border-radius:50%; display:inline-grid; place-items:center; color:var(--oc-primary); background:color-mix(in srgb,var(--oc-primary) 8%,#fff); font-weight:900; margin-bottom:14px; }
.delivery-fact-card h2 { font-size:1.25rem; margin:0 0 6px; letter-spacing:-.02em; }
.delivery-fact-card p { color:var(--oc-muted); margin:0; }
.delivery-page-main { padding-top:68px; }
.delivery-area-copy { max-width:760px; margin:0 auto; text-align:center; }
.delivery-area-copy h2 { margin-top:8px; }
.delivery-area-copy p { color:var(--oc-muted); font-size:1.04rem; }

@media (max-width:900px) {
  .delivery-grid .delivery-card { flex-basis:calc((100% - 22px) / 2); }
  .contact-map-column .map-wrap { min-height:420px; }
  .contact-map-column .map-wrap iframe { min-height:420px; }
  .delivery-facts-grid { grid-template-columns:1fr; }
}

@media (max-width:620px) {
  .delivery-grid .delivery-card { flex-basis:100%; min-width:0; }
  .delivery-page-hero { padding:56px 0 48px; }
  .delivery-hero-actions { flex-direction:column; }
  .delivery-hero-actions .oc-btn { width:100%; }
  .delivery-facts-section { padding:28px 0; }
  .delivery-fact-card { text-align:center; padding:24px 20px; }
  .contact-map-column .map-wrap,
  .contact-map-column .map-wrap iframe { min-height:360px; }

  body.home .info-strip,
  body.home .site-footer { text-align:center; }
  body.home .section-actions { justify-content:center; }
  body.home .delivery-card { text-align:center; }
  body.home .footer-grid { text-align:center; }
  body.home .footer-links { justify-items:center; }
  body.home .footer-bottom { text-align:center; }
}


/* v1.9.0 — rollout-candidate footer and homepage tidy-up */
.footer-bottom strong { color:#bbb; font-weight:600; }
.footer-bottom span[aria-hidden="true"] { margin:0 .35em; }
