/* ============================================================
   Cakes by Keon — warm, appetizing custom-cake site
   ============================================================ */
:root {
  --cream: #fbf6ef;
  --cream-2: #f4ebdf;
  --ink: #3a2922;
  --muted: #897a70;
  --berry: #c8456b;
  --berry-dark: #aa3358;
  --gold: #c2954a;
  --line: #e9ddcd;
  --radius: 18px;
  --shadow: 0 26px 50px -28px rgba(58, 41, 34, 0.45);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--cream { background: var(--cream-2); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
h1 em, h2 em, .brand em { font-style: italic; color: var(--berry); }
.eyebrow { font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--berry); margin-bottom: 14px; }
.eyebrow--light { color: #ffd9c9; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 600; font-family: var(--body);
  padding: .85em 1.5em; border-radius: 100px; border: 1.5px solid transparent; cursor: pointer; transition: .25s var(--ease); white-space: nowrap; }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--solid { background: var(--berry); color: #fff; }
.btn--solid:hover { background: var(--berry-dark); transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(200, 69, 107, .6); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--berry); color: var(--berry); transform: translateY(-2px); }

/* brand / nav */
.brand { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.brand--light { color: var(--cream); font-size: 1.6rem; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,246,239,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; gap: 30px; font-weight: 500; }
.nav__links a { color: var(--ink); position: relative; }
.nav__links a:hover { color: var(--berry); }
@media (max-width: 720px) { .nav__links { display: none; } }

/* hero */
.hero { padding: clamp(40px, 6vw, 70px) 0 clamp(30px, 5vw, 50px); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 22px; }
.rating { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 16px; font-size: .95rem; margin-bottom: 20px; box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 1px; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 44ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; }
.hero__art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; border-radius: 140px 140px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero__badge { position: absolute; bottom: 18px; left: -14px; background: var(--berry); color: #fff; font-family: var(--display);
  font-style: italic; font-size: 1.05rem; line-height: 1.1; text-align: center; padding: 16px 20px; border-radius: 50%;
  width: 110px; height: 110px; display: grid; place-items: center; box-shadow: var(--shadow); transform: rotate(-8deg); }
@media (max-width: 760px) { .hero__in { grid-template-columns: 1fr; } .hero__art { max-width: 380px; margin: 0 auto; } }

/* ribbon */
.ribbon { background: var(--berry); color: #fff; overflow: hidden; padding: 13px 0; }
.ribbon__track { display: flex; align-items: center; gap: 26px; width: max-content; white-space: nowrap;
  font-family: var(--display); font-style: italic; font-size: 1.25rem; animation: scroll 32s linear infinite; }
.ribbon i { color: #ffd9c9; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* section heads */
.head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.head__sub { color: var(--muted); margin-top: 10px; }

/* gallery (masonry) */
.masonry { column-count: 4; column-gap: 16px; }
.tile { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 16px; background: none; cursor: pointer;
  border-radius: 14px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow); }
.tile img { width: 100%; transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .masonry { column-count: 3; } }
@media (max-width: 640px) { .masonry { column-count: 2; column-gap: 12px; } .tile { margin-bottom: 12px; } }

/* about */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.about__copy p { color: var(--muted); margin-bottom: 14px; }
.link { color: var(--berry); font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about__art { max-width: 360px; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: .3s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* order */
.section--berry { background: linear-gradient(160deg, #c8456b, #9c2e54); color: #fff; }
.order { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.order h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 26px; }
.steps { list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; }
.steps span { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.order__call { margin-top: 26px; color: #ffd9c9; }
.order__call a { color: #fff; border-bottom: 1px solid; }
.order__form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--body); font-size: 1rem; background: var(--cream); color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(200,69,107,.15); }
.form__note { margin-top: 14px; text-align: center; font-weight: 600; min-height: 1.2em; }
.form__note.ok { color: var(--berry); }
@media (max-width: 760px) { .order { grid-template-columns: 1fr; } }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.visit h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 24px; }
.info { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.info b { min-width: 88px; font-family: var(--display); }
.info--hours { align-items: flex-start; }
.hours { list-style: none; padding: 0; display: grid; gap: 6px; flex: 1; }
.hours li { display: flex; justify-content: space-between; color: var(--muted); max-width: 280px; }
.visit__map { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.visit__map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* footer */
.footer { background: var(--ink); color: var(--cream); text-align: center; padding: 48px 0; }
.footer__in p { margin-top: 10px; color: #cbb8ac; }
.footer__in a { color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.3); }
.footer__by { font-size: .9rem; margin-top: 18px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(40,25,20,.92); display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* reveals */
.js .section .head, .js .about, .js .cards, .js .order, .js .visit, .js .masonry { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .in { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [class] { opacity: 1 !important; transform: none !important; }
}
