/*
Theme Name: Baked by Warda
Theme URI: https://bakedbywarda.com
Author: Baked by Warda
Description: A custom, mobile-first theme for Baked by Warda's halal custom desserts.
Version: 1.6.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: baked-by-warda
*/

:root {
  --bbw-ink: #2c2528;
  --bbw-muted: #6f6267;
  --bbw-rose: #a65f7f;
  --bbw-rose-dark: #7f3f5d;
  --bbw-blush: #f5dce7;
  --bbw-petal: #fbeef3;
  --bbw-cream: #fffaf7;
  --bbw-white: #ffffff;
  --bbw-gold: #b78b52;
  --bbw-border: rgba(91, 58, 72, .14);
  --bbw-shadow: 0 18px 55px rgba(71, 40, 54, .12);
  --bbw-radius: 28px;
  --bbw-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bbw-ink);
  background: var(--bbw-cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.bbw-shell { width: min(calc(100% - 40px), var(--bbw-width)); margin-inline: auto; }
.bbw-kicker {
  margin: 0 0 10px;
  color: var(--bbw-rose-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}
h1 { font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--bbw-border);
  background: rgba(255, 250, 247, .92);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 22px rgba(64, 34, 47, .13); }
.brand-copy { line-height: 1.15; }
.brand-copy strong { display: block; font-family: Georgia, serif; font-size: 1.28rem; font-weight: 500; }
.brand-copy span { color: var(--bbw-muted); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.primary-nav a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--bbw-rose-dark); }
.header-phone { padding: 12px 18px; border: 1px solid var(--bbw-rose); border-radius: 999px; color: var(--bbw-rose-dark); }
.menu-toggle { display:none; padding:10px 16px; border:1px solid var(--bbw-rose); border-radius:999px; background:#fff; color:var(--bbw-rose-dark); font:inherit; font-weight:800; }
.nav-secondary { display:none; }

.bbw-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bbw-rose-dark);
  color: var(--bbw-white);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.bbw-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(110, 53, 80, .2); }
.bbw-button.light { background: var(--bbw-white); color: var(--bbw-rose-dark); border-color: var(--bbw-border); }
.bbw-button.gold { background: var(--bbw-gold); }

.hero { position: relative; overflow: hidden; padding: 76px 0 86px; background: radial-gradient(circle at 7% 12%, #f2ccd9 0, transparent 29%), linear-gradient(135deg, #fffaf7 30%, #fae9ef 100%); }
.hero::after { content: ""; position: absolute; right: -9vw; bottom: -20vw; width: 43vw; height: 43vw; border: 80px solid rgba(255,255,255,.42); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(42px, 7vw, 90px); }
.hero-copy { max-width: 660px; }
.hero-copy h1 em { color: var(--bbw-rose-dark); font-style: italic; }
.hero-lede { max-width: 610px; margin-top: 24px; color: var(--bbw-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; color: var(--bbw-muted); font-size: .85rem; font-weight: 700; }
.hero-points span::before { content: "\2726"; margin-right: 8px; color: var(--bbw-gold); }
.hero-visual { position: relative; min-height: 650px; }
.hero-main { position: absolute; inset: 0 11% 5% 0; width: 89%; height: 95%; object-fit: cover; border-radius: 190px 190px 32px 32px; box-shadow: var(--bbw-shadow); }
.hero-float { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border: 9px solid var(--bbw-cream); border-radius: 50%; box-shadow: var(--bbw-shadow); }
.hero-badge { position: absolute; top: 9%; right: 1%; width: 122px; height: 122px; display: grid; place-items: center; padding: 16px; border-radius: 50%; background: var(--bbw-rose-dark); color: white; font-size: .72rem; font-weight: 900; letter-spacing: .12em; line-height: 1.45; text-align: center; text-transform: uppercase; transform: rotate(7deg); }

.section { padding: 110px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 48px; }
.section-heading > div { max-width: 720px; }
.section-heading p:last-child { max-width: 430px; color: var(--bbw-muted); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { position: relative; display:block; min-height: 500px; overflow: hidden; border-radius: var(--bbw-radius); box-shadow: var(--bbw-shadow); color:#fff; text-decoration:none; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.035); }
.category-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(28,18,22,.86)); }
.category-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 34px; color: white; }
.category-copy p { margin-top: 8px; color: rgba(255,255,255,.82); }

.menu-section { background: var(--bbw-petal); }
.menu-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(42px, 7vw, 90px); align-items: start; }
.menu-intro { position: sticky; top: 130px; }
.menu-intro p:not(.bbw-kicker) { margin-top: 22px; color: var(--bbw-muted); font-size: 1.06rem; }
.menu-note { margin-top: 28px; padding: 22px; border: 1px solid rgba(167,95,127,.25); border-radius: 20px; background: rgba(255,255,255,.58); }
.price-stack { display: grid; gap: 20px; }
.price-card { padding: clamp(28px, 4vw, 42px); border: 1px solid var(--bbw-border); border-radius: var(--bbw-radius); background: var(--bbw-white); }
.price-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--bbw-border); }
.price { color: var(--bbw-rose-dark); font-family: Georgia, serif; font-size: 2rem; white-space: nowrap; }
.flavor-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 24px; margin: 25px 0 0; padding: 0; list-style: none; }
.flavor-list li { position: relative; padding-left: 20px; font-weight: 700; }
.flavor-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--bbw-gold); }

.gallery-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; grid-template-rows: 310px 310px; gap: 16px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 22px; }
.gallery-grid figure:first-child { grid-row: 1 / 3; }
.gallery-grid figure:nth-child(4) { grid-column: 2 / 4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.03); }

.process { background: var(--bbw-ink); color: white; }
.process .bbw-kicker { color: #edbcd0; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.process-card { display:block; padding: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(255,255,255,.05); color:inherit; text-decoration:none; transition:transform .2s ease,background .2s ease; }
.process-card:hover,.process-card:focus-visible { transform:translateY(-4px); background:rgba(255,255,255,.1); }
.process-number { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 48px; border-radius: 50%; background: var(--bbw-blush); color: var(--bbw-rose-dark); font-weight: 900; }
.process-card p { margin-top: 12px; color: rgba(255,255,255,.69); }

.quote-wrap { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 82px); border-radius: 38px; background: linear-gradient(125deg, var(--bbw-rose-dark), #b9708f); color: white; box-shadow: var(--bbw-shadow); }
.quote-wrap::after { content: ""; position: absolute; right: -100px; top: -160px; width: 360px; height: 360px; border: 65px solid rgba(255,255,255,.12); border-radius: 50%; }
.quote-copy { position: relative; z-index: 1; max-width: 760px; }
.quote-copy p { margin-top: 20px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.quote-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.quote-actions .bbw-button:first-child { background: white; color: var(--bbw-rose-dark); }

.site-footer { padding: 70px 0 110px; border-top: 1px solid var(--bbw-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 48px; }
.footer-brand { max-width: 420px; }
.footer-brand img { width: 92px; height: 92px; border-radius: 50%; }
.footer-brand p { margin-top: 20px; color: var(--bbw-muted); }
.footer-col h3 { margin-bottom: 18px; font-size: 1.1rem; }
.footer-col a { display: block; margin: 9px 0; color: var(--bbw-muted); text-decoration: none; }
.footer-col a:hover { color: var(--bbw-rose-dark); }
.copyright { margin-top: 52px; padding-top: 25px; border-top: 1px solid var(--bbw-border); color: var(--bbw-muted); font-size: .82rem; }

.mobile-actions { display: none; }
.default-content { padding: 90px 0; }
.default-content > * { max-width: 780px; }
.default-content > article { max-width: none; }
.default-content > article > h1 { max-width: 900px; margin-bottom: 38px; }

@media (max-width: 980px) {
  .menu-toggle { display:inline-flex; }
  .primary-nav { display:none; position:absolute; top:calc(100% + 1px); right:14px; left:14px; flex-direction:column; align-items:stretch; gap:0; padding:12px; border:1px solid var(--bbw-border); border-radius:18px; background:var(--bbw-cream); box-shadow:var(--bbw-shadow); }
  .primary-nav.is-open { display:flex; }
  .primary-nav a { padding:12px 14px; border-radius:10px; }
  .primary-nav a:hover { background:var(--bbw-petal); }
  .primary-nav .nav-secondary { display:block; }
  .primary-nav .header-phone { margin-top:6px; text-align:center; }
  .hero-grid, .menu-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 600px; max-width: 680px; }
  .menu-intro { position: static; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:last-child { grid-column: 1 / -1; min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { padding-bottom: 72px; }
  .bbw-shell { width: min(calc(100% - 28px), var(--bbw-width)); }
  .site-header { position: relative; }
  .header-inner { min-height: 82px; }
  .brand img { width: 60px; height: 60px; }
  .brand-copy span { display: none; }
  .header-phone { display: none; }
  .hero { padding: 54px 0 62px; }
  .hero-visual { min-height: 470px; }
  .hero-main { inset-right: 5%; width: 95%; border-radius: 120px 120px 26px 26px; }
  .hero-badge { width: 94px; height: 94px; font-size: .58rem; }
  .hero-float { border-width: 6px; }
  .section { padding: 78px 0; }
  .section-heading { display: block; }
  .section-heading p:last-child { margin-top: 18px; }
  .category-grid, .process-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:last-child { grid-column: auto; min-height: 440px; }
  .flavor-list { grid-template-columns: 1fr; }
  .price-card-head { align-items: start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 210px 260px; }
  .gallery-grid figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .gallery-grid figure:nth-child(4) { grid-column: 1 / 3; }
  .quote-wrap { border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .mobile-actions { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 66px; background: var(--bbw-ink); box-shadow: 0 -10px 30px rgba(27,18,22,.18); }
  .mobile-actions a { display: grid; place-items: center; color: white; font-size: .73rem; font-weight: 900; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
  .mobile-actions a:nth-child(2) { background: var(--bbw-rose-dark); }
}
