/* Ja!pan Bakery — styles (converted 1:1 from the Claude Design export) */

:root {
  --cream: #FBF7EF; --beige: #F4ECDB; --card: #FFFDF8; --card-warm: #FFF8E9;
  --brown: #8B5A2B; --gold: #E8B862; --butter: #F6E7B0; --badge: #F4DD92; --tag: #A8835C;
  --ink: #4A3B30; --muted: #76675A; --line: #E8DCC6;
  --font-head: 'Quicksand', sans-serif; --font-body: 'Nunito', sans-serif; --font-jp: 'Zen Maru Gothic', sans-serif;
}
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--brown); text-decoration: none; border-bottom: 1px solid rgba(232,184,98,.7); transition: color .2s, border-color .2s; }
a:hover { color: #6E4520; border-bottom-color: var(--gold); }
::selection { background: var(--butter); }

/* Anchor targets sit below the sticky header */
section[id] { scroll-margin-top: 76px; }

.page { min-height: 100vh; background: var(--cream); }
.container { max-width: 1160px; margin: 0 auto; }

/* Shared: buttons styled as pills */
.btn {
  display: inline-block; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); letter-spacing: .22em;
  transition: background-color .25s, color .25s, transform .25s;
}
a.btn, a.btn:hover { border-bottom: none; }
.btn-dark { background: var(--brown); color: var(--cream); font-size: 13px; font-weight: 700; }
a.btn-dark:hover, .btn-dark:hover { background-color: #E8B862; color: #4A3B30; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1160px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand, .brand:hover { display: flex; align-items: center; gap: 12px; padding: 0; text-align: left; min-width: 0; border-bottom: none; }
.brand-logo { width: 56px; height: 56px; overflow: hidden; flex: none; }
.brand-logo img { width: 108px; height: 108px; margin: -26px 0 0 -26px; display: block; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--brown); line-height: 1.1; }
.brand-sub { font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: clamp(16px,3vw,36px); }

.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-link, .nav-link:hover {
  position: relative; padding: 10px 0; border-bottom: none;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: #76675A; transition: color .2s;
}
.nav-link:hover, .nav-link.is-active { color: #8B5A2B; }
.nav-link .bar { position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--gold); opacity: 0; transition: opacity .25s; }
.nav-link.is-active .bar { opacity: 1; }

.btn-order { padding: 12px 24px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; }
a.btn-order:hover { background-color: #8B5A2B; color: #FBF7EF; transform: translateY(-1px); }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; flex: none; padding: 0; }
.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--brown); }

.nav-mobile { display: none; flex-direction: column; padding: 4px 24px 16px; border-top: 1px solid var(--line); background: var(--cream); }
.nav-mobile a, .nav-mobile a:hover {
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 0;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #76675A;
}
.nav-mobile a.is-active { color: #8B5A2B; }
.nav-mobile .ja { font-family: var(--font-jp); font-size: 12px; letter-spacing: .12em; font-weight: 500; color: var(--muted); text-transform: none; }

@media (max-width: 879.98px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .site-header.menu-open .nav-mobile { display: flex; }
}

/* ---------- SECTION TYPE ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--brown); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.eyebrow .sep { color: var(--gold); }
.eyebrow .ja { font-family: var(--font-jp); font-weight: 500; letter-spacing: .2em; }
.section-title { margin: 24px 0 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(34px,4.4vw,52px); line-height: 1.15; color: var(--ink); }
.section-title.balance { text-wrap: balance; }
.lead { margin: 24px 0 0; max-width: 640px; font-size: 17px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.section { padding: clamp(72px,9vw,120px) 24px; }
.bg-cream { background: var(--cream); }
.bg-beige { background: var(--beige); }

/* ---------- HERO ---------- */
.hero { background: var(--cream); padding: clamp(56px,9vw,120px) 24px; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px,6vw,80px); }
.hero-copy { flex: 1 1 440px; min-width: 0; max-width: 580px; }
.hero h1 { margin: 28px 0 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(40px,5.6vw,66px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.highlight { color: var(--brown); background: linear-gradient(transparent 60%, #F6E7B0 60%, #F6E7B0 90%, transparent 90%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-p { margin: 32px 0 0; font-size: 17px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.hero-p + .hero-p { margin-top: 18px; }
.hero-cta { margin-top: 40px; padding: 18px 36px; }
a.hero-cta:hover { transform: translateY(-2px); }

.hero-media { flex: 1 1 420px; min-width: 0; }
.carousel { position: relative; aspect-ratio: 5/6; max-height: 640px; width: 100%; background: var(--beige); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.carousel-dots { position: absolute; top: 24px; right: 24px; display: flex; gap: 8px; z-index: 2; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1.5px solid var(--brown); background: transparent; cursor: pointer; transition: background-color .3s; }
.carousel-dots button.is-active { background: #8B5A2B; }
.slide { margin: 0; display: none; flex: 1; flex-direction: column; min-height: 0; }
.slide.is-active { display: flex; }
.slide-media { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 32px 0; min-height: 0; }
.slide-caption { padding: 28px 32px 32px; }
.slide-name { font-family: var(--font-head); font-size: 26px; font-weight: 600; color: var(--ink); }
.slide-desc { margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- PHOTO PLACEHOLDERS ----------
   The striped blob is the design's photo placeholder. To use a real photo,
   put an <img> inside the .ph element (see README) — it fills the same shape. */
.ph { position: relative; overflow: hidden; border-radius: 52% 48% 50% 50% / 55% 50% 50% 45%; background: repeating-linear-gradient(135deg,#F3E4C6 0 8px,#EEDCB8 8px 16px); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px #EFE2D2; }
.ph-label { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: #8F7A60; background: rgba(255,253,248,.85); padding: 4px 7px; border-radius: 4px; text-align: center; max-width: 160px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-hero { width: 72%; aspect-ratio: 1/0.9; border: 12px solid #FBF4EA; border-radius: 50% 48% 52% 50% / 52% 50% 50% 48%; background: repeating-linear-gradient(135deg,#EFDFC0 0 9px,#EAD7B2 9px 18px); box-shadow: 0 0 0 1px #EADCC6, 0 24px 40px -30px rgba(139,90,43,.5); }
.ph-hero .ph-label { font-size: 11px; padding: 5px 8px; max-width: none; }
.ph-card { width: 210px; height: 176px; border: 9px solid #F7EEE4; }
.ph-special { width: 250px; height: 200px; border: 10px solid #F7EEE4; }
.ph-special .ph-label { padding: 4px 7px; max-width: none; }

/* ---------- PRODUCT CARDS ---------- */
.tip { margin-top: 20px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 18px; background: var(--butter); font-size: 14px; line-height: 1.5; color: var(--ink); }
.tip strong { font-weight: 800; font-size: 11px; letter-spacing: .2em; color: var(--brown); flex: none; }
.card-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px rgba(139,90,43,.35); border-color: #E8B862; background-color: #FFF8E9; }
.card-media { position: relative; height: 270px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background: rgba(246,231,176,.18); }
.price-badge { position: absolute; right: 22px; bottom: -30px; z-index: 5; width: 76px; height: 76px; border-radius: 50%; background: var(--badge); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--brown); box-shadow: 0 6px 16px -10px rgba(139,90,43,.5); }
.prices-toggle { position: absolute; right: 18px; bottom: 14px; z-index: 5; background: transparent; border: none; cursor: pointer; padding: 6px 2px; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--brown); border-bottom: 1.5px solid var(--gold); }
.prices-panel { position: absolute; inset: 0; z-index: 4; background: rgba(255,250,238,.97); padding: 28px 28px 48px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.prices-panel[hidden] { display: none; }
.prices-title { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--brown); text-transform: uppercase; margin-bottom: 8px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-body); font-size: 15px; color: var(--ink); }
.price-row span:last-child { font-family: var(--font-head); font-weight: 600; color: var(--brown); }

.card-body { flex: 1; display: flex; flex-direction: column; padding: 28px 30px 32px; }
.card-body h3 { margin: 0; padding-right: 70px; font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.card-ja { margin-top: 6px; font-family: var(--font-jp); font-size: 13px; letter-spacing: .22em; color: var(--muted); }
.card-desc { margin: 16px 0 0; font-family: var(--font-body); font-size: 15.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.card-note { margin: 10px 0 0; font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--brown); }
.card-spacer { flex: 1; min-height: 20px; }
.card-rule { height: 1px; background: var(--line); margin: 4px 0 18px; }
.list-label { font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); }
.list-items { margin-top: 10px; font-family: var(--font-body); font-size: 13.5px; line-height: 1.7; letter-spacing: .03em; color: var(--muted); }

/* Monthly special */
.special { position: relative; margin-top: 56px; padding-top: 22px; }
.special-tag {
  position: absolute; top: 0; left: -6px; z-index: 6; transform: rotate(-5deg);
  background: var(--tag); color: #FFFDF8; padding: 12px 34px 14px 26px;
  font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: .01em;
  clip-path: polygon(0 8%, 6% 0, 14% 6%, 24% 1%, 35% 5%, 47% 0, 58% 6%, 70% 2%, 82% 7%, 92% 0, 100% 9%, 97% 30%, 100% 52%, 96% 74%, 100% 94%, 90% 100%, 78% 94%, 66% 100%, 54% 95%, 42% 100%, 30% 94%, 18% 100%, 8% 95%, 0 100%, 3% 76%, 0 54%, 4% 32%);
  box-shadow: 0 6px 14px -8px rgba(74,59,48,.4);
}
.special-card { display: flex; flex-wrap: wrap; background: var(--card); border: 1.5px solid var(--gold); border-radius: 16px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease; }
.special-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px rgba(139,90,43,.35); background-color: #FFF8E9; }
.special-media { position: relative; flex: 1 1 380px; min-height: 320px; display: flex; align-items: center; justify-content: center; background: rgba(246,231,176,.28); }
.special-media .price-badge { right: 28px; bottom: 28px; width: 84px; height: 84px; font-size: 21px; }
.special-body { flex: 1 1 380px; min-width: 0; padding: clamp(32px,4.5vw,56px); display: flex; flex-direction: column; justify-content: center; }
.special-body h3 { margin: 0; font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.special-body .card-ja { margin-top: 8px; font-size: 14px; }
.special-body p { margin: 18px 0 0; max-width: 440px; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.special-body .card-rule { margin: 28px 0 18px; max-width: 440px; }
.bread-footnote { margin: 32px 0 0; text-align: center; font-size: 15px; color: var(--muted); }

.cake-hint { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.cake-hint span { font-weight: 700; letter-spacing: .14em; color: var(--brown); font-size: 12px; }
.cake-footnote { margin: 24px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- ORDER ---------- */
.order-box { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.order-col { padding: clamp(32px,4.5vw,56px); }
.order-col:first-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.order-col h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 28px; color: var(--ink); }
.order-ja { margin-top: 6px; font-family: var(--font-jp); font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.order-intro { margin: 28px 0 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.pickup-dates { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pickup-dates li { padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: 30px; color: var(--brown); }
.order-notes { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.order-notes p { margin: 0; }
.order-notes .ink { color: var(--ink); }
.order-notes strong { color: var(--ink); font-weight: 700; }
.order-notes.cake { gap: 16px; }

/* ---------- CONTACT ---------- */
.contact-inner { display: flex; flex-wrap: wrap; gap: clamp(40px,6vw,88px); }
.contact-copy { flex: 1 1 380px; min-width: 0; }
.contact-copy .lead { max-width: 460px; }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-row span { font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--brown); }
.contact-row a { font-size: 16px; }
.contact-form-wrap { flex: 1 1 420px; min-width: 0; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px,4vw,44px); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--brown); }
.contact-form input, .contact-form textarea {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  font-family: var(--font-body); font-size: 16px; letter-spacing: 0; font-weight: 400; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { line-height: 1.6; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #E8B862; box-shadow: 0 0 0 3px #F6E7B0; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; padding: 16px 34px; transition: background-color .25s, color .25s; }
.contact-form .btn:disabled { opacity: .7; cursor: default; }
.contact-form .botcheck { display: none; }
.form-error { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--butter); font-size: 15px; line-height: 1.6; color: var(--ink); }
.form-error[hidden] { display: none; }
.form-thanks { padding: 40px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-thanks[hidden], .contact-form[hidden] { display: none; }
.thanks-ja { font-family: var(--font-jp); font-size: 14px; letter-spacing: .2em; color: var(--brown); }
.thanks-title { font-family: var(--font-head); font-weight: 600; font-size: 30px; color: var(--ink); }
.thanks-text { font-size: 16px; line-height: 1.7; color: var(--muted); }
.link-btn { margin-top: 12px; background: none; border: none; border-bottom: 1.5px solid var(--gold); padding: 4px 0; cursor: pointer; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--brown); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--beige); border-top: 1px solid var(--line); padding: 72px 24px 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo { width: 150px; height: 150px; overflow: hidden; }
.footer-logo img { width: 288px; height: 288px; margin: -69px 0 0 -69px; display: block; mix-blend-mode: multiply; }
.footer-tagline { font-family: var(--font-jp); font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 14px; min-width: 220px; }
.footer-links .label { font-size: 11px; font-weight: 800; letter-spacing: .24em; color: var(--brown); }
.footer-links a { align-self: flex-start; font-size: 16px; color: var(--muted); border-bottom-color: transparent; }
.footer-links a:hover { color: var(--muted); border-bottom-color: transparent; }
.footer-links a.footer-order { border-bottom: none; transition: none; }
.footer-links a.footer-order:hover { color: #8B5A2B; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
