/* Zaheen's Cake — stylesheet
   Palette: raspberry icing, blush, cocoa, pistachio, butter. */

:root {
  --berry: #A8325A;
  --berry-deep: #7A1F3F;
  --blush: #FCEEF1;
  --blush-2: #F8DDE4;
  --paper: #FFFDFC;
  --cocoa: #3A221C;
  --cocoa-soft: #6B4F47;
  --pistachio: #7E9F6C;
  --butter: #F4CF7A;
  --line: #EED3DA;

  --display: "Gloock", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bangla: "Hind Siliguri", "Figtree", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--cocoa);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--berry); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cocoa); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .6em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  background: var(--berry); color: #fff;
  border: 2px solid var(--berry); border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--berry-deep); border-color: var(--berry-deep); }
.btn-ghost { background: transparent; color: var(--berry); }
.btn-ghost:hover { background: var(--berry); color: #fff; border-color: var(--berry); }
.btn-small { min-height: 40px; padding: 0 1.1em; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 252, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cocoa); font-family: var(--display); font-size: 1.45rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--cocoa); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--berry); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header-call { display: none; }
  .menu-btn {
    display: grid; gap: 5px; place-content: center;
    width: 46px; height: 46px; margin-left: auto;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { width: 24px; height: 2px; background: var(--cocoa); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .2s, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 1.15rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.active { border-bottom-color: var(--line); color: var(--berry); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blush); padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-bn { font-family: var(--bangla); font-weight: 600; color: var(--berry); font-size: 1.15rem; margin-bottom: .6em; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.01em; margin-bottom: .35em; max-width: 12ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--cocoa-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* The cake dome: an arched window that slow-crossfades between featured cakes */
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.dome {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  background: var(--blush-2);
  box-shadow: inset 0 0 0 10px #fff;
  isolation: isolate;
}
.dome img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease; z-index: -1;
}
.dome img.on { opacity: 1; }
.dome-plate {
  height: 22px; margin: -6px -6% 0; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: #fff; box-shadow: 0 10px 24px rgba(122, 31, 63, .14);
}

.frosting { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4vw, 60px); transform: scaleY(-1); }
.frosting path { fill: var(--paper); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(66%, 300px); order: -1; }
  .hero h1 { max-width: 14ch; }
}

/* ---------- What we bake ---------- */
.kinds { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.kinds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 40px); max-width: 960px; }
.kind { display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.kind-img {
  display: block; aspect-ratio: 1; border-radius: 50%;
  background: var(--blush) center / cover no-repeat;
  border: 6px solid #fff; box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 14px; transition: box-shadow .2s;
}
.kind:hover .kind-img, .kind:focus-visible .kind-img { box-shadow: 0 0 0 3px var(--berry); }
.kind-name { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); }
.kind-note { color: var(--cocoa-soft); font-size: .95rem; }
@media (max-width: 520px) { .kinds-grid { gap: 12px; } .kind-name { font-size: 1.05rem; } .kind-note { font-size: .82rem; } .kind-img { border-width: 4px; } }

/* ---------- Gallery ---------- */
.gallery-section { padding-block: clamp(32px, 5vw, 64px); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.gallery-head .section-title { margin-bottom: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; margin-inline: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); color: var(--cocoa);
  font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--berry); }
.chip.is-active { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }

.gallery { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: clamp(10px, 1.6vw, 18px); }
.gallery li { break-inside: avoid; margin-bottom: clamp(10px, 1.6vw, 18px); }
.gallery li[hidden] { display: none; }
.g-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 18px; overflow: hidden; background: var(--blush);
}
.g-item img { width: 100%; height: auto; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-cap {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255, 253, 252, .92); color: var(--cocoa);
  font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.gallery-empty, .gallery-more { color: var(--cocoa-soft); }
.gallery-more { margin-top: 12px; }
@media (max-width: 520px) { .gallery { columns: 2; } .g-cap { display: none; } }

/* ---------- How to order ---------- */
.order { padding-block: clamp(40px, 6vw, 80px); }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.5rem;
  background: var(--pistachio); color: #fff;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; left: 60px; right: -12px;
  border-top: 2px dotted var(--line);
}
.steps h3 { font-size: 1.35rem; margin-bottom: .35em; }
.steps p { color: var(--cocoa-soft); margin: 0; }
.order-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { padding: 0 0 0 64px; min-height: 48px; }
  .steps li::after { display: none; }
}

/* ---------- About ---------- */
.about { background: var(--blush); padding-block: clamp(48px, 7vw, 96px); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-img { aspect-ratio: 1; border-radius: 50%; background: var(--blush-2) center / cover no-repeat; border: 10px solid #fff; max-width: 440px; width: 100%; justify-self: center; }
.about-copy p { max-width: 58ch; }
.facts { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 28px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 3px #fff; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-img { max-width: 260px; } }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(48px, 7vw, 96px); text-align: center; }
.contact-lead { color: var(--cocoa-soft); max-width: 46ch; margin: 0 auto 32px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin-inline: auto; }
.contact-card {
  display: grid; justify-items: center; gap: 4px; padding: 28px 16px;
  border: 1.5px solid var(--line); border-radius: 24px; text-decoration: none; color: var(--cocoa);
  transition: border-color .2s, background .2s;
}
.contact-card:hover { border-color: var(--berry); background: var(--blush); }
.ci { width: 52px; height: 52px; border-radius: 50%; background: var(--berry); display: grid; place-items: center; margin-bottom: 8px; }
.ci svg { width: 24px; height: 24px; fill: #fff; }
.cl { font-weight: 600; }
.cv { color: var(--cocoa-soft); font-size: .95rem; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 16px; padding: 16px 20px; } .ci { grid-row: span 2; margin: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--cocoa); color: #F3E6E2; padding: 40px 0; }
.site-footer a { color: #fff; }
.footer-inner p { margin: 0 0 .4em; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; color: #fff; }
.small { font-size: .85rem; opacity: .75; }

/* ---------- Mobile order bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--cocoa); border-radius: 999px; padding: 6px;
    box-shadow: 0 10px 30px rgba(58, 34, 28, .3);
  }
  .mobile-bar a { color: #fff; text-decoration: none; text-align: center; font-weight: 600; padding: 12px 4px; border-radius: 999px; }
  .mobile-bar a:first-child { background: var(--berry); }
  body { padding-bottom: 84px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(32, 18, 15, .94);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); border-radius: 14px; object-fit: contain; }
.lb-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; color: #fff; }
.lb-close { position: absolute; top: 10px; right: 14px; width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; cursor: pointer; justify-self: center; }
.lb-nav:hover { background: rgba(255, 255, 255, .25); }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 56px 8px 16px; }
  .lb-nav { position: absolute; bottom: 18px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-figure figcaption { padding-inline: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Make casual saving harder (long-press / drag). The watermark is the real protection. */
.gallery img, .lightbox img, .dome img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
