/* ============================================================
   PATTIES BAKERS — warm, cozy, irresistible bakery landing
   ============================================================ */

:root {
  --cream:      #fdf6ec;
  --cream-2:    #f7ead6;
  --butter:     #f6c453;
  --butter-soft:#fae3a0;
  --caramel:    #c98a3c;
  --caramel-dk: #a9692a;
  --golden:     #e2a13b;
  --choc:       #4a2c1a;
  --choc-soft:  #6b4226;
  --ink:        #3a2418;
  --muted:      #8a6f5e;
  --white:      #fffaf3;
  --shadow:     0 18px 40px -18px rgba(74, 44, 26, .35);
  --shadow-sm:  0 10px 24px -12px rgba(74, 44, 26, .30);
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 16px;
  --maxw: 1180px;
  font-synthesis: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.25rem; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-pill { padding: .85rem 1.7rem; border-radius: 100px; }
.btn-primary { background: var(--choc); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(74,44,26,.55); background: var(--choc-soft); }
.btn-ghost { background: rgba(74,44,26,.06); color: var(--choc); }
.btn-ghost:hover { background: rgba(74,44,26,.12); transform: translateY(-2px); }
.btn-ghost-dark { background: rgba(255,250,243,.16); color: var(--cream); border: 1.5px solid rgba(255,250,243,.4); }
.btn-ghost-dark:hover { background: rgba(255,250,243,.28); transform: translateY(-2px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--caramel-dk); background: var(--cream-2);
  padding: .42rem 1rem; border-radius: 100px; margin-bottom: 1.1rem;
}
.eyebrow-light { background: rgba(255,250,243,.15); color: var(--butter-soft); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(253, 246, 236, .78);
  border-bottom: 1px solid rgba(201,138,60,.12);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(74,44,26,.4); background: rgba(253,246,236,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.brand-mark {
  font-size: 1.5rem; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--butter), var(--golden));
  box-shadow: var(--shadow-sm); transition: transform .4s ease;
}
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); }
.brand-text em { color: var(--caramel); font-style: normal; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 500; font-size: .96rem; color: var(--ink); position: relative; padding: .2rem 0; transition: color .2s; }
.nav a::after { content:""; position:absolute; left:0; bottom:-3px; width:0; height:2px; background: var(--caramel); border-radius:2px; transition: width .25s ease; }
.nav a:hover { color: var(--caramel-dk); }
.nav a:hover::after { width: 100%; }
.nav-privacy { color: var(--caramel-dk) !important; font-weight: 600 !important; }

.header-cta { padding: .65rem 1.4rem; font-size: .92rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--choc); border-radius: 3px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(3rem,7vw,6rem) 0 6rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(10px); z-index: 0; opacity: .55; }
.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle, var(--butter-soft), transparent 70%); top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: radial-gradient(circle, #f3d7b0, transparent 70%); bottom: -120px; left: -100px; }

.hero-copy .lead { font-size: 1.18rem; color: var(--muted); max-width: 30rem; margin: 1.2rem 0 2rem; }
.hl { color: var(--caramel); position: relative; white-space: nowrap; }
.hl::after { content:""; position:absolute; left:0; right:0; bottom:.06em; height:.32em; background: var(--butter-soft); z-index:-1; border-radius:4px; transform: rotate(-1deg); }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--choc); }
.hero-stats span { font-size: .82rem; color: var(--muted); }

/* hero art */
.hero-art { position: relative; height: 480px; }
.hero-photo { position: absolute; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); }
.hero-photo-main { width: 78%; height: 78%; top: 0; right: 0; z-index: 2; animation: floaty 6s ease-in-out infinite; }
.hero-photo-sm { width: 46%; height: 46%; z-index: 3; }
.hero-photo-2 { bottom: 0; left: 0; animation: floaty 7s ease-in-out infinite .8s; }
.hero-photo-3 { width: 38%; height: 38%; bottom: -10px; right: 12%; z-index: 4; animation: floaty 5.5s ease-in-out infinite .4s; }
.hero-badge {
  position: absolute; top: 6%; left: -4%; z-index: 5;
  background: var(--white); color: var(--caramel-dk); font-weight: 600; font-size: .85rem;
  padding: .5rem 1rem; border-radius: 100px; box-shadow: var(--shadow-sm);
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: var(--choc);
  -webkit-mask: radial-gradient(28px at 50% 0, transparent 98%, #000) repeat-x; mask: radial-gradient(28px at 50% 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 56px 70px; mask-size: 56px 70px; display:none; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--choc); color: var(--cream); overflow: hidden; padding: .9rem 0; }
.marquee-track { display: flex; gap: 1.6rem; white-space: nowrap; width: max-content; animation: scroll 26s linear infinite; }
.marquee-track span { font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.marquee-track span:nth-child(even) { color: var(--butter); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS (general)
   ============================================================ */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-cream { background: var(--cream-2); }
.section-choc { background: var(--choc); color: var(--cream); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.2rem; }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.06rem; }
.section-choc .section-sub, .section-choc .section-head h2 { color: var(--cream); }
.section-choc .section-sub { color: #e6d3bf; }

/* ---------- image fallback (no broken placeholders) ---------- */
.photo-fallback {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--butter-soft), var(--golden));
  font-size: 3rem; width: 100%; height: 100%;
}

/* ============================================================
   SIGNATURE PATTIES
   ============================================================ */
.patty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.patty-card {
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.patty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.patty-card.feature { grid-row: span 1; }
.patty-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.patty-photo img { transition: transform .6s ease; }
.patty-card:hover .patty-photo img { transform: scale(1.08); }
.patty-body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.patty-body p { font-size: .92rem; color: var(--muted); flex: 1; }
.price { font-weight: 700; color: var(--caramel-dk); font-size: 1.05rem; }

.tag { position: absolute; top: .9rem; left: .9rem; font-size: .72rem; font-weight: 700; padding: .32rem .8rem; border-radius: 100px; letter-spacing: .03em; }
.tag-hot { background: var(--choc); color: var(--butter); }
.tag-light { background: rgba(255,250,243,.92); color: var(--caramel-dk); }

/* ============================================================
   BAKERY SELECTION
   ============================================================ */
.bakery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.bakery-card {
  background: var(--white); border-radius: var(--r-md); padding: .8rem .8rem 1.4rem;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s ease;
}
.bakery-card:hover { transform: translateY(-6px) rotate(-.4deg); }
.bakery-photo { aspect-ratio: 16/10; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 1rem; }
.bakery-photo img { transition: transform .6s ease; }
.bakery-card:hover .bakery-photo img { transform: scale(1.07); }
.bakery-card h3 { margin-bottom: .3rem; }
.bakery-card p { font-size: .9rem; color: var(--muted); }

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1.4rem; }
.feature-tile { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.feature-tile img { transition: transform .7s ease; }
.feature-tile:hover img { transform: scale(1.07); }
.feature-tile.big { grid-column: span 2; grid-row: span 2; }
.feature-tile.wide { grid-column: span 2; }
.feature-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; gap: .35rem; color: var(--cream);
  background: linear-gradient(to top, rgba(40,22,12,.85) 0%, rgba(40,22,12,.25) 45%, transparent 75%); }
.feature-overlay h3 { font-size: 1.2rem; }
.feature-overlay p { font-size: .88rem; opacity: .92; }
.feature-tile .tag-light { position: static; align-self: flex-start; margin-bottom: .2rem; }

/* ============================================================
   INGREDIENTS / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-art { position: relative; height: 460px; }
.ingredient-photo { position: absolute; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); }
.ing-1 { width: 72%; height: 80%; top: 0; left: 0; }
.ing-2 { width: 50%; height: 50%; bottom: 0; right: 0; z-index: 2; animation: floaty 6s ease-in-out infinite; }
.split-copy p { color: #e6d3bf; margin: 1rem 0 1.8rem; max-width: 30rem; }

.quality-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.quality-list li { display: flex; gap: 1rem; align-items: flex-start; }
.quality-list span { font-size: 1.4rem; flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,250,243,.12); border-radius: 14px; }
.quality-list strong { color: var(--cream); }
.quality-list div { font-size: .95rem; color: #d9c3ad; }

/* ============================================================
   BAKING PROCESS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.step-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
  position: relative; padding-bottom: 1.4rem; transition: transform .35s ease; }
.step-card:hover { transform: translateY(-7px); }
.step-photo { aspect-ratio: 4/3; overflow: hidden; }
.step-photo img { transition: transform .6s ease; }
.step-card:hover .step-photo img { transform: scale(1.08); }
.step-num { position: absolute; top: calc(75% - 26px); right: 1.1rem; font-size: 1rem; font-weight: 800;
  background: var(--butter); color: var(--choc); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); border: 3px solid var(--white); }
.step-card h3 { margin: 1.1rem 1.3rem .4rem; }
.step-card p { margin: 0 1.3rem; font-size: .9rem; color: var(--muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testi-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s ease; display: flex; flex-direction: column; }
.testi-card:hover { transform: translateY(-7px); }
.testi-photo { aspect-ratio: 16/9; overflow: hidden; }
.testi-photo img { transition: transform .6s ease; }
.testi-card:hover .testi-photo img { transform: scale(1.07); }
.testi-card .stars { color: var(--golden); font-size: 1.05rem; letter-spacing: .12em; margin: 1.2rem 1.4rem .3rem; }
.testi-card p { margin: 0 1.4rem; font-size: .96rem; color: var(--ink); flex: 1; }
.testi-name { margin: 1rem 1.4rem 1.5rem; font-weight: 600; color: var(--caramel-dk); }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: var(--choc); color: var(--cream); }
.contact-copy h2 { color: var(--cream); }
.contact-copy > p { color: #e6d3bf; margin: 1rem 0 2rem; max-width: 28rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 2.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.ci { font-size: 1.3rem; width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(255,250,243,.12); border-radius: 16px; }
.contact-list small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--butter); }
.contact-list a, .contact-list address, .contact-list span:not(.ci) { font-style: normal; font-size: 1.12rem; font-weight: 600; color: var(--cream); }
.contact-list a:hover { color: var(--butter); }
.contact-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.contact-art { position: relative; height: 420px; }
.contact-photo { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); }
.contact-badge { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: var(--butter); color: var(--choc); font-weight: 700; font-size: .9rem; white-space: nowrap;
  padding: .6rem 1.3rem; border-radius: 100px; box-shadow: var(--shadow-sm); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #2b190f; color: #d9c3ad; padding: 3.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2.2rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,250,243,.1); }
.brand-footer { color: var(--cream); margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 22rem; }
.footer-col h4 { color: var(--cream); margin-bottom: 1rem; font-size: 1rem; }
.footer-col a, .footer-col span { display: block; font-size: .92rem; margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: var(--butter); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .86rem; flex-wrap: wrap; gap: .6rem; }
.footer-bottom a { color: var(--butter); font-weight: 600; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.policy-hero { background: var(--choc); color: var(--cream); padding: clamp(3rem,6vw,5rem) 0; text-align: center; }
.policy-hero h1 { font-size: clamp(2rem,4.5vw,3.2rem); }
.policy-hero p { color: #e6d3bf; margin-top: .8rem; }
.policy-body { padding: clamp(3rem,6vw,5rem) 0; }
.policy-body .container { max-width: 820px; }
.policy-body h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; color: var(--choc); }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: #4f3a2c; font-size: 1rem; margin-bottom: .7rem; }
.policy-body ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.policy-body a { color: var(--caramel-dk); font-weight: 600; text-decoration: underline; }
.policy-updated { display: inline-block; background: var(--cream-2); color: var(--caramel-dk); font-weight: 600;
  padding: .4rem 1rem; border-radius: 100px; font-size: .85rem; margin-bottom: 2rem; }
.back-home { display: inline-block; margin-top: 2.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .patty-grid { grid-template-columns: repeat(2, 1fr); }
  .bakery-grid, .process-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .feature-tile.big, .feature-tile.wide { grid-column: span 2; }
  .feature-tile.big { grid-row: span 1; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78%, 320px); flex-direction: column; align-items: flex-start;
    background: var(--cream); padding: 5rem 2rem; gap: 1.4rem; transform: translateX(105%); transition: transform .35s ease;
    box-shadow: -20px 0 50px -20px rgba(74,44,26,.4); z-index: 90; }
  .nav.open { transform: none; }
  .nav-toggle { display: flex; z-index: 95; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-cta { display: none; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-art { height: 400px; margin-top: 1rem; }
  .split-art { height: 380px; order: -1; }
}
@media (max-width: 620px) {
  .patty-grid, .bakery-grid, .process-grid, .testi-grid, .featured-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-auto-rows: 240px; }
  .feature-tile.big, .feature-tile.wide { grid-column: span 1; }
  .hero-stats { gap: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .hero-art { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
