/*
Theme Name: Foundry Oven & Grill
Theme URI: https://foundry.pizza
Author: Foundry Oven & Grill
Author URI: https://foundry.pizza
Description: Bespoke WordPress theme for Foundry Oven & Grill — a Cape Town pizza & grill delivery service. Marketing site with menu, ordering CTA, and location, matched to the brand identity (navy, cream, copper).
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
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: foundry
Tags: restaurant, food, one-page, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ---------- 1. Design tokens ---------- */
:root{
  --navy:       #1A1A1A;
  --navy-800:   #212121;
  --navy-700:   #2A2A2A;
  --cream:      #F1E7D0;
  --cream-200:  #E4D9BF;
  --copper:     #B47548;
  --copper-600: #A0653C;
  --charcoal:   #0A0A0A;
  --ink:        #1a1a1a;
  --muted:      #7d7565;

  --f-display: 'Oswald', 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 20px 40px -20px rgba(0,0,0,.35);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
button{ font-family:inherit; }

.container{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--gutter);
}

/* ---------- 2. Typography ---------- */
h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  line-height:1.05;
  margin:0 0 .5em;
}
h1{ font-size:clamp(2.5rem, 6vw, 5rem); }
h2{ font-size:clamp(2rem, 4.5vw, 3.5rem); }
h3{ font-size:clamp(1.4rem, 2.5vw, 1.9rem); }
p{ margin:0 0 1em; }
.eyebrow{
  font-family:var(--f-display);
  font-size:.85rem;
  letter-spacing:.35em;
  text-transform:uppercase;
  color:var(--copper);
  margin-bottom:1rem;
}

/* ---------- 3. Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:14px 28px;
  font-family:var(--f-display);
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  text-decoration:none;
  border:2px solid transparent;
  border-radius:var(--radius);
  cursor:pointer;
  transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn--primary{ background:var(--copper); color:var(--cream); }
.btn--primary:hover{ background:var(--copper-600); }
.btn--ghost{ background:transparent; color:var(--cream); border-color:var(--cream); }
.btn--ghost:hover{ background:var(--cream); color:var(--navy); }
.btn--dark{ background:var(--navy); color:var(--cream); }
.btn--dark:hover{ background:var(--navy-700); }

/* ---------- 4. Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--navy);
  color:var(--cream);
  border-bottom:1px solid rgba(180,117,72,.35);
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px var(--gutter);
  max-width:var(--wrap); margin:0 auto;
}
.site-brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--cream); }
.site-brand__mark{
  height:44px; width:auto; max-width:220px;
  display:block; object-fit:contain;
}
.site-brand .custom-logo{ /* fallback for WP native custom_logo */
  height:44px; width:auto; max-width:220px;
  display:block; object-fit:contain;
}
.site-brand .custom-logo-link{ line-height:0; }
.site-brand__text{
  font-family:var(--f-display); font-weight:700; font-size:1.4rem;
  letter-spacing:.05em; text-transform:uppercase;
}
.main-nav{ display:flex; align-items:center; gap:28px; }
.main-nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap:24px;
}
.main-nav a{
  font-family:var(--f-display);
  text-transform:uppercase; letter-spacing:.15em;
  font-size:.85rem; font-weight:600;
  color:var(--cream); text-decoration:none;
  padding:6px 0; position:relative;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--copper); transform:scaleX(0); transform-origin:left;
  transition:transform .25s ease;
}
.main-nav a:hover::after{ transform:scaleX(1); }

.nav-toggle{
  display:none;
  background:transparent; border:0; color:var(--cream);
  padding:8px; cursor:pointer;
}
.nav-toggle svg{ width:26px; height:26px; }

@media (max-width:820px){
  .main-nav ul{
    display:none;
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; gap:0;
    background:var(--navy-800); padding:12px 0;
  }
  .main-nav.is-open ul{ display:flex; }
  .main-nav a{ padding:14px var(--gutter); border-bottom:1px solid rgba(255,255,255,.06); }
  .nav-toggle{ display:inline-flex; }
  .main-nav .btn{ margin:12px var(--gutter); }
}

/* ---------- 5. Hero ---------- */
.hero{
  background:
    linear-gradient(180deg, rgba(26,26,26,.85) 0%, rgba(26,26,26,.92) 100%),
    radial-gradient(circle at 20% 20%, rgba(180,117,72,.25), transparent 60%),
    var(--navy);
  color:var(--cream);
  padding:clamp(80px, 12vw, 160px) 0;
  text-align:center;
  position:relative;
  overflow:hidden;
}
/* When a hero background image is set, style handles the cover behaviour */
.hero--image{
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}
.hero--image::before{ opacity:.4; } /* dim the grid overlay so the photo shows through */
.hero::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size:40px 40px;
  pointer-events:none;
}
.hero__inner{ position:relative; z-index:1; }
.hero__logo{
  margin:0 auto 32px;
  max-width:min(560px, 80%);
}
.hero__logo img{
  width:100%; height:auto; display:block; margin:0 auto;
}
.hero__mark{ height:120px; margin:0 auto 24px; }
.hero__title{
  font-size:clamp(3rem, 9vw, 7rem);
  color:var(--cream);
  margin:0 0 .2em;
}
.hero__tagline{
  font-family:var(--f-display);
  font-size:clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing:.5em;
  text-transform:uppercase;
  color:var(--copper);
  margin-bottom:1.5em;
}
.hero__tagline span{ display:inline-block; padding:0 .3em; }
.hero__sub{
  max-width:640px; margin:0 auto 2em;
  font-size:1.1rem; color:var(--cream-200); opacity:.9;
}
.hero__cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero__strip{
  margin-top:60px; padding-top:24px;
  border-top:1px solid rgba(241,231,208,.15);
  display:flex; justify-content:center; gap:40px; flex-wrap:wrap;
  font-family:var(--f-display); text-transform:uppercase; letter-spacing:.2em;
  font-size:.8rem; color:var(--cream-200);
}
.hero__strip span{ display:inline-flex; align-items:center; gap:8px; }
.hero__strip span::before{ content:""; width:6px; height:6px; background:var(--copper); border-radius:50%; }

/* ---------- 6. Section base ---------- */
.section{ padding:clamp(72px, 10vw, 120px) 0; }
.section--navy{ background:var(--navy); color:var(--cream); }
.section--cream{ background:var(--cream); color:var(--ink); }
.section--charcoal{ background:var(--charcoal); color:var(--cream); }
.section__header{ text-align:center; max-width:640px; margin:0 auto 60px; }
.section__title{ margin-bottom:.4em; }
.section--navy .section__title, .section--charcoal .section__title{ color:var(--cream); }
.section__intro{ font-size:1.05rem; opacity:.85; }

/* ---------- 7. Menu board ---------- */
.menu-board{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:32px;
}
.menu-panel{
  background:var(--navy);
  color:var(--cream);
  padding:32px 32px 24px;
  border:1px solid rgba(180,117,72,.4);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.menu-panel__title{
  font-family:var(--f-display); font-weight:700; text-transform:uppercase;
  font-size:1.4rem; letter-spacing:.15em;
  color:var(--cream);
  padding-bottom:14px; margin-bottom:20px;
  border-bottom:1px solid rgba(241,231,208,.2);
}
.menu-item{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:16px; padding:10px 0;
  font-family:var(--f-display);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.menu-item__name{ font-weight:600; font-size:1.05rem; }
.menu-item__dots{
  flex:1; border-bottom:1px dotted rgba(241,231,208,.3);
  transform:translateY(-4px);
}
.menu-item__price{ font-weight:700; color:var(--copper); font-size:1.05rem; }
.menu-item__desc{
  display:block; width:100%;
  font-family:var(--f-body); text-transform:none; letter-spacing:0;
  font-size:.85rem; color:var(--cream-200); opacity:.75; margin-top:2px;
}
.menu-note{
  text-align:center; margin-top:32px; font-size:.9rem; opacity:.7;
}

/* ---------- 8. About / Story ---------- */
.story{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
}
@media (max-width:820px){ .story{ grid-template-columns:1fr; } }
.story__title{ color:var(--cream); }
.story__lede{ font-size:1.15rem; margin-bottom:1.5em; color:var(--cream-200); }
.story__stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  margin-top:32px; padding-top:32px;
  border-top:1px solid rgba(180,117,72,.4);
}
.stat__num{
  font-family:var(--f-display); font-weight:700;
  font-size:2.4rem; color:var(--copper); line-height:1;
}
.stat__label{
  font-family:var(--f-display); text-transform:uppercase;
  letter-spacing:.15em; font-size:.75rem;
  color:var(--cream-200); margin-top:6px;
}
.story__visual{
  aspect-ratio:4/5; background:var(--navy-700);
  border:1px solid rgba(180,117,72,.35);
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.story__visual img{ width:100%; height:100%; object-fit:cover; }
.story__visual__mark{ width:60%; opacity:.9; }

/* ---------- 9. Order / delivery CTA ---------- */
.order-cta{
  background:var(--copper);
  color:var(--cream);
  padding:clamp(56px, 8vw, 100px) 0;
  text-align:center;
}
.order-cta h2{ color:var(--cream); margin-bottom:.3em; }
.order-cta p{ max-width:560px; margin:0 auto 1.5em; opacity:.95; }
.order-cta .btn--dark{ background:var(--navy); }
.order-cta .btn--dark:hover{ background:var(--charcoal); }
.zones{
  margin-top:32px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
  font-family:var(--f-display); text-transform:uppercase; letter-spacing:.15em; font-size:.75rem;
}
.zones span{
  padding:6px 14px; border:1px solid rgba(241,231,208,.5); border-radius:99px;
}

/* ---------- 10. Location grid ---------- */
.location{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  align-items:stretch;
}
@media (max-width:820px){ .location{ grid-template-columns:1fr; } }
.location__panel{ padding:clamp(40px, 6vw, 80px); background:var(--navy); color:var(--cream); }
.location__panel h2{ color:var(--cream); }
.location__meta{ margin-top:24px; }
.location__meta dt{
  font-family:var(--f-display); text-transform:uppercase;
  letter-spacing:.2em; font-size:.75rem; color:var(--copper);
  margin-top:20px;
}
.location__meta dd{ margin:6px 0 0; font-size:1.05rem; }
.location__map{
  background:var(--navy-700);
  min-height:360px;
  background-image:
    linear-gradient(135deg, rgba(180,117,72,.15) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 40px);
  position:relative;
}
.location__map::after{
  content:""; position:absolute; left:50%; top:50%;
  width:18px; height:18px; background:var(--copper);
  border:3px solid var(--cream); border-radius:50%;
  transform:translate(-50%, -50%);
  box-shadow:0 0 0 8px rgba(180,117,72,.25);
}

/* ---------- 11. Footer ---------- */
.site-footer{
  background:var(--charcoal); color:var(--cream-200);
  padding:60px 0 30px;
}
.site-footer__grid{
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px;
  margin-bottom:40px;
}
@media (max-width:820px){ .site-footer__grid{ grid-template-columns:1fr 1fr; } }
.site-footer h4{
  font-size:.9rem; letter-spacing:.25em; color:var(--copper);
  margin-bottom:14px;
}
.site-footer a{ color:var(--cream-200); text-decoration:none; }
.site-footer a:hover{ color:var(--copper); }
.site-footer ul{ list-style:none; padding:0; margin:0; }
.site-footer li{ margin-bottom:8px; font-size:.95rem; }
.socials{ display:flex; gap:12px; margin-top:16px; }
.socials a{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(241,231,208,.25);
  display:inline-flex; align-items:center; justify-content:center;
  transition:background .2s ease, border-color .2s ease;
}
.socials a:hover{ background:var(--copper); border-color:var(--copper); color:var(--cream); }
.socials svg{ width:16px; height:16px; }
.site-footer__base{
  border-top:1px solid rgba(241,231,208,.1);
  padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap;
  gap:12px; font-size:.8rem; opacity:.7;
}

/* ---------- 12. Generic page/post ---------- */
.content-wrap{ padding:80px 0; max-width:800px; margin:0 auto; }
.content-wrap h1{ margin-bottom:.5em; }
.content-wrap a{ color:var(--copper); }
.entry-meta{
  font-family:var(--f-display); text-transform:uppercase; letter-spacing:.2em;
  font-size:.8rem; color:var(--muted); margin-bottom:24px;
}

/* ---------- 13. Utilities ---------- */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
