/* =========================================================
   Scoffy — shared stylesheet
   Warm artisan-bakery marketplace. Cream / brown / gold palette.
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root{
  /* palette */
  --cream-bg:      #FBF3E6;
  --cream:         #F7E6C9;
  --cream-mid:     #F0DCB8;
  --cream-pale:    #FFFBF3;
  --white:         #FFFFFF;
  --brown-dark:    #3F2A1B;
  --brown:         #5C3A22;
  --brown-mid:     #7A4B2E;
  --terracotta:    #B5652E;
  --terracotta-d:  #9A5325;
  --terracotta-l:  #D98B4F;
  --gold:          #C9973D;
  --gold-light:    #E8C77E;
  --sage:          #8FA07C;
  --berry:         #A63A50;
  --line:          #E6D6B8;

  --ink:           var(--brown-dark);
  --ink-soft:      #6B5644;
  --surface:       var(--white);
  --surface-alt:   var(--cream-bg);

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* radii + shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(63,42,27,0.08);
  --shadow-md: 0 10px 30px rgba(63,42,27,0.12);
  --shadow-lg: 0 20px 48px rgba(63,42,27,0.16);

  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input, select, textarea, button{ font-family:inherit; font-size:1rem; }
h1,h2,h3,h4,h5{ font-family: var(--font-display); color: var(--brown-dark); margin:0 0 .5em; line-height:1.15; font-weight:600; }
p{ margin:0 0 1em; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; border-radius:4px; }

/* ---------- Layout helpers ---------- */
.container{ width:100%; max-width: var(--container); margin-inline:auto; padding-inline: 24px; }
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--alt{ background: var(--cream); }
.section--brown{ background: var(--brown-dark); color: var(--cream-pale); }
.section--brown h2, .section--brown h3{ color: var(--cream-pale); }
.grid{ display:grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.flex{ display:flex; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.flex-wrap{ flex-wrap:wrap; }
.gap-sm{ gap:10px; } .gap-md{ gap:18px; } .gap-lg{ gap:32px; }
.text-center{ text-align:center; }
.muted{ color: var(--ink-soft); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body); font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  font-size:.78rem; color: var(--terracotta-d); margin-bottom: 14px;
}
.eyebrow::before{ content:""; width:22px; height:2px; background: var(--gold); display:inline-block; border-radius:2px; }
.section-head{ max-width: 640px; margin: 0 auto 48px; text-align:center; }
.section-head p{ color: var(--ink-soft); font-size:1.05rem; }
.section-head--left{ margin-left:0; text-align:left; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight:700; font-size:.98rem; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg, .btn img.icon{ width:18px; height:18px; }
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--terracotta); color: var(--cream-pale); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--terracotta-d); box-shadow: var(--shadow-md); }
.btn-gold{ background: var(--gold); color: var(--brown-dark); box-shadow: var(--shadow-sm); }
.btn-gold:hover{ background: var(--gold-light); }
.btn-outline{ background: transparent; border-color: var(--brown-dark); color: var(--brown-dark); }
.btn-outline:hover{ background: var(--brown-dark); color: var(--cream-pale); }

/* Attention-grabbing CTA — a soft pulsing glow so an easy-to-miss link reads as unmistakably clickable */
.btn-pulse{ animation: btn-pulse-glow 2.2s ease-in-out infinite; }
.btn-pulse:hover{ animation: none; }
@keyframes btn-pulse-glow{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(201,151,61,0.55); }
  50%{ box-shadow: 0 0 0 9px rgba(201,151,61,0); }
}
@media (prefers-reduced-motion: reduce){
  .btn-pulse{ animation: none; }
}
.btn-outline-light{ background: transparent; border-color: rgba(255,251,243,.55); color: var(--cream-pale); }
.btn-outline-light:hover{ background: rgba(255,251,243,.12); border-color:#fff; }
.btn-ghost{ background: var(--cream); color: var(--brown-dark); }
.btn-ghost:hover{ background: var(--cream-mid); }
.btn-sm{ padding: 9px 18px; font-size:.88rem; }
.btn-lg{ padding: 17px 34px; font-size:1.05rem; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }
.icon-btn{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--line);
  background: var(--white); display:inline-flex; align-items:center; justify-content:center;
}
.icon-btn svg{ width:19px; height:19px; }
.icon-btn:hover{ border-color: var(--terracotta); color:var(--terracotta); }

/* ---------- Icons ---------- */
.icon{ width:22px; height:22px; flex-shrink:0; }
.icon-sm{ width:16px; height:16px; }
.icon-lg{ width:30px; height:30px; }
.text-terracotta{ color: var(--terracotta); }
.text-gold{ color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(251,243,230,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height: 100px; gap: 20px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 72px; width:auto; }
.brand span{ display:none; }
.main-nav{ display:flex; align-items:center; gap: 6px; }
.main-nav a{
  padding: 10px 16px; border-radius: var(--radius-pill); font-weight:700; font-size:.96rem; color: var(--brown);
  transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.is-active{ background: var(--cream); color: var(--terracotta-d); }
.header-cta{ display:flex; align-items:center; gap: 10px; }
.auth-area{ display:flex; align-items:center; gap:8px; }
.auth-area-mobile{ display:flex; flex-direction:column; gap:10px; }
.status-pill.completed{ background: rgba(143,160,124,.25); color:#4c5c3c; }
.account-empty{ text-align:center; padding:70px 20px; color: var(--ink-soft); }
.account-empty img{ width:140px; margin:0 auto 20px; }
.field-error{ color: var(--berry); font-size:.85rem; margin-top:8px; }
.field-error:empty{ display:none; }
.nav-toggle{
  display:none; width:46px; height:46px; border-radius: 50%; border:1px solid var(--line); background: var(--white);
  align-items:center; justify-content:center;
}
.nav-toggle svg{ width:22px; height:22px; }

/* ---------- Search bar (hero "what / where / when") ---------- */
.search-bar{
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px; display:grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 6px; align-items:stretch;
  border: 1px solid var(--line);
}
.search-field{ display:flex; align-items:center; gap:14px; padding: 18px 22px; border-radius: var(--radius-md); position:relative; min-width:0; }
.search-field + .search-field{ border-left: 1px solid var(--line); }
.search-field svg{ width:26px; height:26px; color: var(--terracotta); flex-shrink:0; }
.search-field .field-col{ display:flex; flex-direction:column; gap:4px; width:100%; min-width:0; }
.search-field label{ font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color: var(--ink-soft); }
.search-field input, .search-field select{
  border:none; outline:none; background:transparent; font-weight:700; color: var(--brown-dark); padding:0; font-size:1.15rem; width:100%; min-width:0;
}
.search-bar .btn{ align-self:center; margin: 4px; padding: 22px 34px; font-size:1.05rem; }
.search-bar-compact{ padding: 8px; grid-template-columns: 1fr; gap:8px; }
.search-bar-compact .search-field{ padding: 12px 16px; }
.search-bar-compact .search-field svg{ width:20px; height:20px; }
.search-bar-compact .search-field input{ font-size:.98rem; }
.search-bar-compact .btn{ padding: 14px 26px; font-size:.98rem; }

@media (max-width: 900px){
  .search-bar{ grid-template-columns: 1fr; }
  .search-field + .search-field{ border-left:none; border-top:1px solid var(--line); }
  .search-bar .btn{ margin:6px 4px 4px; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background: radial-gradient(120% 140% at 85% -10%, var(--cream) 0%, var(--cream-bg) 55%);
  padding: 68px 0 110px;
}
.hero .container{ display:grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items:center; }
.hero h1{ font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
.hero h1 em{ font-style: italic; color: var(--terracotta); }
.hero p.lead{ font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-badges{ display:flex; gap: 22px; margin-top: 26px; flex-wrap:wrap; }

/* Homepage hero variant: centered text, a large search bar as the focal
   point, then a photo strip below it — search-first, like the request asked. */
.hero.hero--home .container{ display:block; max-width: 860px; margin: 0 auto; text-align:center; }
.hero--home p.lead{ margin: 0 auto; }
.hero--home .hero-badges{ justify-content:center; }
.hero--home .hero-search-wrap{ margin-top: 34px; max-width: 820px; margin-inline:auto; }
.hero-strip{
  display:grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px; margin-top: 56px;
}
.hero-strip img{
  width:100%; height:100%; aspect-ratio: 3/4; object-fit:cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
@media (max-width: 760px){
  .hero-strip{ grid-template-columns: repeat(3,1fr); gap:10px; margin-top:36px; }
  .hero-strip img{ aspect-ratio: 3/4; border-radius: var(--radius-md); }
}
.hero-badge{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:.92rem; color: var(--brown); }
.hero-badge svg{ width:20px; height:20px; color: var(--terracotta); }
.hero-visual{ position:relative; }
.hero-visual .blob{
  position:absolute; inset:0; background: var(--gold-light); opacity:.35; border-radius: 44% 56% 62% 38% / 45% 40% 60% 55%;
  filter: blur(2px);
}
.hero-visual .stack{ position:relative; display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.hero-visual .stack img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--cream); }
.hero-visual .stack .tall{ grid-row: span 2; }
.hero-search-wrap{ margin-top: 34px; }

/* ---------- Baker profile header ---------- */
.profile-head{ display:grid; grid-template-columns: 108px 1fr auto; gap:22px; align-items:center; }
.profile-head-actions{ flex-direction:column; min-width:200px; }
@media (max-width: 760px){
  .profile-head{ grid-template-columns: 1fr; text-align:center; justify-items:center; }
  .profile-head-actions{ min-width:0; width:100%; }
}

/* ---------- Sub hero (inner pages banner) ---------- */
.page-banner{ background: var(--cream); padding: 46px 0 40px; border-bottom:1px solid var(--line); }
.page-banner h1{ font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom:.3em; }
.breadcrumbs{ display:flex; gap:8px; align-items:center; font-size:.88rem; color: var(--ink-soft); font-weight:700; margin-bottom:14px; }
.breadcrumbs a:hover{ color: var(--terracotta-d); }
.breadcrumbs svg{ width:14px; height:14px; }

/* ---------- Cards ---------- */
.card{ background: var(--white); border-radius: var(--radius-lg); border:1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-pad{ padding: 26px; }

/* Baker shop/bake photo gallery */
.gallery-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap:10px; }
.gallery-thumb{ position:relative; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow:hidden; background: var(--cream); border:1px solid var(--line); }
.gallery-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-thumb .js-remove-photo{
  position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:50%; border:none;
  background: rgba(63,42,27,0.72); color:#fff; font-size:.9rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.gallery-thumb .js-remove-photo:hover{ background: var(--terracotta); }
.gallery-empty{ color: var(--ink-soft); font-size:.9rem; }

/* Product / featured card */
.product-card{
  background: var(--white); border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display:flex; flex-direction:column;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .thumb{ background: var(--cream); aspect-ratio: 1/1; display:flex; align-items:center; justify-content:center; padding: 18px; }
.product-card .thumb img{ width:100%; height:100%; object-fit:contain; }
.product-card .thumb.thumb--photo{ padding:0; }
.product-card .thumb--photo img{ object-fit:cover; }
.product-card .body{ padding: 18px 20px 22px; display:flex; flex-direction:column; gap:6px; flex:1; }
.product-card .cat{ font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color: var(--terracotta-d); }
.product-card h3{ font-size:1.1rem; margin:0; }
.product-card .baker-mini{ display:flex; align-items:center; gap:8px; margin-top:4px; }
.product-card .baker-mini img{ width:26px; height:26px; border-radius:50%; }
.product-card .baker-mini span{ font-size:.86rem; font-weight:700; color: var(--ink-soft); }
.product-card .meta-row{ display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.product-card .price{ font-weight:800; color: var(--brown-dark); font-size:1.05rem; }
.product-card .price small{ font-weight:600; color: var(--ink-soft); font-size:.78rem; }

/* Baker card (search results) */
.baker-card{
  display:grid; grid-template-columns: 220px 1fr; gap:0; background: var(--white); border:1px solid var(--line);
  border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease;
}
.baker-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.baker-card .media{ background: var(--cream); position:relative; }
.baker-card .media img.cover{ width:100%; height:100%; object-fit:cover; }
.baker-card .media .avatar{ position:absolute; left:14px; bottom:-22px; width:56px; height:56px; border-radius:50%; border:4px solid var(--white); box-shadow: var(--shadow-sm); }
.baker-card .content{ padding: 22px 24px 20px 34px; }
.baker-card .top-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.baker-card h3{ margin:0; font-size:1.25rem; }
.baker-card .loc{ display:flex; align-items:center; gap:6px; color: var(--ink-soft); font-size:.9rem; font-weight:700; margin-top:2px; }
.baker-card .loc svg{ width:15px; height:15px; }
.baker-card .rating{ display:flex; align-items:center; gap:6px; font-weight:800; color: var(--brown-dark); white-space:nowrap; }
.baker-card .rating svg{ width:16px; height:16px; color: var(--gold); }
.baker-card .rating .count{ color: var(--ink-soft); font-weight:600; font-size:.85rem; }
.baker-card .desc{ color: var(--ink-soft); margin: 10px 0 14px; font-size:.96rem; }
.baker-card .tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 14px; }
.baker-card .bottom-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.baker-card .from-price{ font-weight:800; }
.baker-card .from-price small{ font-weight:600; color: var(--ink-soft); }

@media (max-width: 760px){
  .baker-card{ grid-template-columns: 1fr; }
  .baker-card .media{ height:160px; }
  .baker-card .content{ padding: 26px 20px 20px; }
}

/* Chips / tags / badges */
.chip{
  display:inline-flex; align-items:center; gap:6px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--cream); color: var(--brown); font-size:.82rem; font-weight:700;
}
.chip svg{ width:14px; height:14px; }
.chip--gold{ background: rgba(201,151,61,.16); color: var(--terracotta-d); }
.chip--outline{ background:transparent; border:1px solid var(--line); }
.badge-row{ display:flex; flex-wrap:wrap; gap:10px; }
.trust-badge{
  display:flex; align-items:center; gap:10px; background: var(--cream); border-radius: var(--radius-md); padding: 12px 16px;
  border:1px solid var(--line);
}
.trust-badge svg{ width:22px; height:22px; color: var(--terracotta); flex-shrink:0; }
.trust-badge .t{ font-weight:800; font-size:.88rem; color: var(--brown-dark); display:block; }
.trust-badge .s{ font-size:.78rem; color: var(--ink-soft); }
.verified-pill{
  display:inline-flex; align-items:center; gap:6px; background: var(--brown-dark); color: var(--cream-pale);
  padding: 6px 14px 6px 10px; border-radius: var(--radius-pill); font-size:.8rem; font-weight:800;
}
.verified-pill svg{ width:15px; height:15px; color: var(--gold-light); }

/* Star rating */
.stars{ display:inline-flex; gap:2px; }
.stars svg{ width:16px; height:16px; color: var(--gold); }

/* ---------- How it works / steps ---------- */
.steps{ counter-reset: step; }
.step-card{ position:relative; padding: 30px 26px; background: var(--white); border-radius: var(--radius-lg); border:1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num{
  width:44px; height:44px; border-radius:50%; background: var(--terracotta); color:var(--cream-pale); font-family: var(--font-display);
  font-weight:700; font-size:1.15rem; display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.step-card h3{ font-size: 1.15rem; }
.step-card p{ color: var(--ink-soft); margin:0; font-size:.95rem; }

/* ---------- Testimonials ---------- */
.testimonial-card{ background: var(--white); border-radius: var(--radius-lg); border:1px solid var(--line); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.testimonial-card .quote-mark{ width:30px; height:30px; color: var(--gold); margin-bottom: 10px; }
.testimonial-card p.msg{ font-size:1.02rem; color: var(--brown); font-style:italic; }
.testimonial-card .person{ display:flex; align-items:center; gap:12px; margin-top:16px; }
.testimonial-card .person img{ width:46px; height:46px; border-radius:50%; }
.testimonial-card .person strong{ display:block; font-size:.95rem; }
.testimonial-card .person span{ font-size:.82rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom: 20px; }
.field label{ font-weight:800; font-size:.88rem; color: var(--brown-dark); }
.field .hint{ font-size:.8rem; color: var(--ink-soft); font-weight:500; }
.input, .select, .textarea{
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white);
  color: var(--brown-dark); font-weight:600; width:100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus{ border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(181,101,46,.12); outline:none; }
.textarea{ resize: vertical; min-height: 130px; }
.select{ appearance:none; background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.5 8.5L12 15l6.5-6.5" fill="none" stroke="%237A4B2E" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>'); background-repeat:no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-row, .radio-row{ display:flex; align-items:flex-start; gap:10px; font-size:.92rem; color: var(--brown); font-weight:600; }
.check-row input, .radio-row input{ margin-top:3px; width:18px; height:18px; accent-color: var(--terracotta); flex-shrink:0; }
fieldset{ border:none; padding:0; margin:0 0 20px; }
legend{ font-weight:800; font-size:.88rem; color: var(--brown-dark); margin-bottom:10px; padding:0; }
.option-card{
  display:flex; align-items:flex-start; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 16px;
  cursor:pointer; transition: border-color .15s ease, background-color .15s ease;
}
.option-card:hover{ border-color: var(--gold); }
.option-card input{ margin-top:3px; width:18px; height:18px; accent-color: var(--terracotta); }
.option-card.is-selected{ border-color: var(--terracotta); background: rgba(181,101,46,.05); }
.option-card .oc-title{ font-weight:800; }
.option-card .oc-desc{ font-size:.86rem; color: var(--ink-soft); }
.option-card svg{ width:22px; height:22px; color: var(--terracotta); flex-shrink:0; }

.stepper{ display:inline-flex; align-items:center; gap: 14px; border:1.5px solid var(--line); border-radius: var(--radius-pill); padding: 6px 8px; }
.stepper button{ width:34px; height:34px; border-radius:50%; border:none; background: var(--cream); display:flex; align-items:center; justify-content:center; color: var(--terracotta); }
.stepper button:hover{ background: var(--gold-light); }
.stepper button svg{ width:18px; height:18px; }
.stepper input{ width:36px; text-align:center; border:none; background:transparent; font-weight:800; font-size:1.05rem; }

.dropzone{
  border: 2px dashed var(--line); border-radius: var(--radius-md); padding: 30px; text-align:center; background: var(--cream-light,var(--cream));
  color: var(--ink-soft); font-weight:700;
}
.dropzone svg{ width:30px; height:30px; color: var(--terracotta); margin-bottom:10px; }

.form-card{ background: var(--white); border-radius: var(--radius-lg); border:1px solid var(--line); box-shadow: var(--shadow-md); padding: 36px; }
.form-success{
  display:none; align-items:flex-start; gap:14px; background: rgba(143,160,124,.15); border:1.5px solid var(--sage);
  border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 22px;
}
.form-success.is-visible{ display:flex; }
.form-success svg{ width:24px; height:24px; color: var(--sage); flex-shrink:0; }

@media (max-width: 700px){ .field-row{ grid-template-columns: 1fr; } }

/* ---------- Filter sidebar (search results) ---------- */
.filters{ background: var(--white); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position:sticky; top: 104px; }
.filters h3{ font-size:1rem; margin-bottom:16px; }
.filter-group{ padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-child{ border-top:none; padding-top:0; }
.filter-group .fg-title{ font-weight:800; font-size:.92rem; margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; }
.range-row{ display:flex; align-items:center; gap:10px; font-size:.85rem; color: var(--ink-soft); font-weight:700; }

/* ---------- Results toolbar ---------- */
.results-toolbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 22px; flex-wrap:wrap; gap:12px; }
.results-count{ font-weight:700; color: var(--ink-soft); }
.sort-row{ display:flex; align-items:center; gap:10px; }

/* ---------- Tabs (profile page) ---------- */
.tabs{ display:flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 30px; overflow-x:auto; }
.tab-btn{ padding: 14px 20px; font-weight:800; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom:-2px; white-space:nowrap; }
.tab-btn:hover{ color: var(--terracotta-d); }
.tab-btn.is-active{ color: var(--terracotta-d); border-color: var(--terracotta); }
.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; }

/* ---------- Availability calendar ---------- */
.calendar{ background: var(--white); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.calendar-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 16px; }
.calendar-head h4{ margin:0; font-size:1.05rem; }
.cal-grid{ display:grid; grid-template-columns: repeat(7,1fr); gap:6px; }
.cal-dow{ text-align:center; font-size:.72rem; font-weight:800; color: var(--ink-soft); text-transform:uppercase; padding-bottom:4px; }
.cal-day{
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; border-radius: 10px; font-weight:700; font-size:.9rem;
  background: var(--cream-light,var(--cream)); color: var(--brown-dark); cursor:default; border: 1.5px solid transparent;
}
.cal-day.is-muted{ background:transparent; color: transparent; cursor:default; }
.cal-day.is-available{ background: rgba(143,160,124,.22); color: var(--brown-dark); cursor:pointer; }
.cal-day.is-available:hover{ border-color: var(--sage); }
.cal-day.is-limited{ background: rgba(212,166,74,.28); cursor:pointer; }
.cal-day.is-booked{ background: rgba(166,58,80,.12); color: var(--ink-soft); text-decoration: line-through; }
.cal-day.is-selected{ background: var(--terracotta); color:var(--cream-pale); }
.cal-legend{ display:flex; gap:16px; margin-top:16px; flex-wrap:wrap; font-size:.8rem; color: var(--ink-soft); font-weight:700; }
.cal-legend span{ display:inline-flex; align-items:center; gap:6px; }
.cal-legend i{ width:12px; height:12px; border-radius:4px; display:inline-block; }

/* ---------- Order summary ---------- */
.summary-card{ background: var(--cream); border-radius: var(--radius-lg); padding: 26px; position:sticky; top: 104px; }
.summary-row{ display:flex; justify-content:space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight:700; }
.summary-row.total{ border-bottom:none; font-size:1.15rem; color: var(--brown-dark); padding-top:16px; }
.summary-row .label{ color: var(--ink-soft); font-weight:600; }

/* ---------- Reviews ---------- */
.review{ display:flex; gap:16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.review img{ width:48px; height:48px; border-radius:50%; flex-shrink:0; }
.review .rh{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:4px; }
.review .rh strong{ font-size:.98rem; }
.review .rdate{ color: var(--ink-soft); font-size:.82rem; }
.review p{ color: var(--brown); margin: 6px 0 0; }

/* ---------- Timeline (order confirmation / dashboard) ---------- */
.timeline{ position:relative; padding-left: 34px; }
.timeline::before{ content:""; position:absolute; left:13px; top:6px; bottom:6px; width:2px; background: var(--line); }
.t-item{ position:relative; padding-bottom: 28px; }
.t-item:last-child{ padding-bottom:0; }
.t-item::before{ content:""; position:absolute; left:-34px; top:2px; width:26px; height:26px; border-radius:50%; background: var(--cream); border:2px solid var(--line); }
.t-item.is-done::before{ background: var(--sage); border-color: var(--sage); }
.t-item.is-current::before{ background: var(--terracotta); border-color: var(--terracotta); box-shadow: 0 0 0 5px rgba(181,101,46,.15); }
.t-item h4{ margin:0 0 4px; font-size:1rem; }
.t-item p{ margin:0; color: var(--ink-soft); font-size:.92rem; }

/* ---------- Dashboard (baker order requests) ---------- */
.order-row{ display:grid; grid-template-columns: 1fr auto; gap:16px; align-items:center; padding: 18px 20px; border:1px solid var(--line); border-radius: var(--radius-md); background: var(--white); margin-bottom:14px; }
.order-row .oi{ display:flex; gap:14px; align-items:center; }
.order-row .oi img{ width:52px; height:52px; border-radius: 12px; background:var(--cream); }
.order-row h4{ margin:0; font-size:1rem; }
.order-row .om{ font-size:.85rem; color: var(--ink-soft); }
.status-pill{ padding: 5px 13px; border-radius: var(--radius-pill); font-size:.78rem; font-weight:800; }
.status-pill.pending{ background: rgba(212,166,74,.22); color:#8a6512; }
.status-pill.accepted{ background: rgba(143,160,124,.25); color:#4c5c3c; }
.status-pill.deposit{ background: rgba(181,101,46,.15); color: var(--terracotta-d); }
.status-pill.declined{ background: rgba(166,58,80,.12); color: var(--berry); }
.dash-stats{ display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 34px; }
.stat-card{ background: var(--white); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.stat-card .val{ font-family: var(--font-display); font-size:1.9rem; color: var(--brown-dark); }
.stat-card .lbl{ font-size:.82rem; color: var(--ink-soft); font-weight:700; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(135deg, var(--brown-dark), #2c1c11);
  border-radius: var(--radius-lg); padding: 56px; color: var(--cream-pale);
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-banner::after{ content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%; background: var(--gold); opacity:.18; }
.cta-banner h2{ color:#fff; margin-bottom:.2em; }
.cta-banner p{ color: rgba(255,251,243,.78); margin:0; max-width:46ch; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--brown-dark); color: rgba(255,251,243,.82); padding: 64px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.2fr .8fr .8fr 1.5fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,251,243,.14); }
.site-footer .brand img{ height:58px; margin-bottom:14px; }
.site-footer p.tag{ color: rgba(255,251,243,.65); max-width:34ch; }
.site-footer h5{ color:#fff; font-family: var(--font-body); font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.site-footer ul li{ margin-bottom:10px; }
.site-footer a:hover{ color: var(--gold-light); }
.footer-contact li{ display:flex; align-items:flex-start; gap:10px; font-size:.92rem; }
.footer-contact svg{ width:18px; height:18px; color: var(--gold-light); flex-shrink:0; margin-top:2px; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background: rgba(255,251,243,.1); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background: var(--terracotta); }
.social-row svg{ width:17px; height:17px; color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 24px; font-size:.84rem; color: rgba(255,251,243,.55); flex-wrap:wrap; gap:10px; }
.footer-bottom .legal-links{ display:flex; gap: 18px; }
.footer-newsletter{ display:flex; gap:8px; margin-top:14px; }
.footer-newsletter input{ flex:1; min-width:0; padding: 13px 18px; font-size:.92rem; border-radius: var(--radius-pill); border:1px solid rgba(255,251,243,.25); background: rgba(255,251,243,.08); color:#fff; }
.footer-newsletter input::placeholder{ color: rgba(255,251,243,.6); }
.footer-newsletter button{ width:46px; height:46px; border-radius:50%; background: var(--terracotta); border:none; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.footer-newsletter svg{ width:18px; height:18px; color:#fff; }

/* ---------- Misc content pages (become-a-baker etc.) ---------- */
.req-list{ display:flex; flex-direction:column; gap:14px; }
.req-item{ display:flex; gap:14px; align-items:flex-start; background: var(--white); border:1px solid var(--line); border-radius: var(--radius-md); padding:16px 18px; }
.req-item svg{ width:22px; height:22px; color: var(--terracotta); flex-shrink:0; margin-top:2px; }
.req-item h4{ margin:0 0 4px; font-size:.98rem; }
.req-item p{ margin:0; color: var(--ink-soft); font-size:.88rem; }

.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.split img, .split .img-frame{ border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.img-frame{ background: var(--cream); padding: 30px; display:flex; align-items:center; justify-content:center; aspect-ratio: 4/3.4; overflow:hidden; }
.img-frame img{ width:70%; }
.img-frame.img-frame--photo{ padding:0; }
.img-frame--photo img{ width:100%; height:100%; object-fit:cover; }

.pricing-table{ width:100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); }
.pricing-table th, .pricing-table td{ text-align:left; padding: 14px 20px; border-bottom:1px solid var(--line); }
.pricing-table th{ background: var(--cream); font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.pricing-table tr:last-child td{ border-bottom:none; }
.ingredient-tags{ display:flex; flex-wrap:wrap; gap:8px; }

.error-page{ text-align:center; padding: 100px 0 120px; }
.error-page img{ width: 220px; margin: 0 auto 30px; }

/* ---------- Utility spacing ---------- */
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.mt-sm{margin-top:12px} .mt-md{margin-top:24px} .mt-lg{margin-top:48px}
.mb-sm{margin-bottom:12px} .mb-md{margin-bottom:24px} .mb-lg{margin-bottom:48px}

/* =========================================================
   Responsive
   ========================================================= */
/* Sidebar layouts (results list + filters, tabs + quick facts, form + summary).
   Defined as classes (not inline styles) so the media queries below can
   collapse them to one column without fighting inline-style specificity. */
.layout-sidebar{ grid-template-columns: 1fr 320px; align-items:start; }
.layout-sidebar--wide{ grid-template-columns: 1fr 360px; align-items:start; }
.layout-sidebar--narrow{ grid-template-columns: 280px 1fr; align-items:start; }
/* Grid items default to min-width:auto, which lets wide content (like a
   non-wrapping tab row) force the whole column — and the page — wider than
   the viewport. min-width:0 lets these columns actually shrink to fit. */
.layout-sidebar > *, .layout-sidebar--wide > *, .layout-sidebar--narrow > *{ min-width: 0; }

@media (max-width: 1080px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .dash-stats{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px){
  .layout-sidebar, .layout-sidebar--wide, .layout-sidebar--narrow{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; max-width:480px; margin:0 auto; }
  .split{ grid-template-columns: 1fr; gap:30px; }
  .split.reverse .img-frame{ order:-1; }
}

@media (max-width: 760px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header-cta .btn-outline{ display:none; }
  .header-cta .auth-area{ display:none; }
  .site-header .container{ height:80px; }
  .brand img{ height:54px; }
  .section{ padding: 56px 0; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .cta-banner{ padding: 34px 26px; }
  .filters{ position:static; margin-bottom: 24px; }
  .dash-stats{ grid-template-columns: 1fr 1fr; }
  .order-row{ grid-template-columns: 1fr; align-items:flex-start; }
  .baker-card .top-row{ flex-direction:column; }
}

/* Mobile nav drawer */
.mobile-nav{
  position: fixed; inset:0; background: rgba(63,42,27,.5); z-index: 200; display:none;
}
.mobile-nav.is-open{ display:block; }
.mobile-nav .panel{
  position:absolute; top:0; right:0; height:100%; width: min(84vw, 340px); background: var(--cream-bg);
  padding: 26px 24px; box-shadow: var(--shadow-lg); display:flex; flex-direction:column; gap: 6px;
}
.mobile-nav .panel a{ padding: 14px 6px; font-weight:800; font-size:1.05rem; border-bottom:1px solid var(--line); }
.mobile-nav .close-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 14px; }
.mobile-nav .panel .btn{ margin-top: 16px; }
