/* ===== Joy Bakers — styles ===== */

:root {
  --cream: #f6f1e8;
  --cream-2: #ede4d5;
  --paper: #fffcf7;
  --ink: #1d1a16;
  --cocoa: #2a231d;
  --muted: #6f675d;
  --line: rgba(29, 26, 22, .12);
  --berry: #9c3d55;
  --berry-soft: #f3dfe4;
  --gold: #c9a26a;
  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(42, 30, 18, .35);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --gutter: max(22px, calc((100% - 1240px) / 2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 100px; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--berry); }

.eyebrow, .kicker {
  font-size: 11px;
  letter-spacing: .26em;
  font-weight: 700;
  text-transform: uppercase;
}
.kicker { color: var(--berry); display: inline-flex; align-items: center; gap: 12px; }
.kicker.light { color: var(--gold); }

.inline-link { border-bottom: 1px solid currentColor; transition: color .2s; }
.inline-link:hover { color: var(--berry); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn.light { background: var(--paper); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(29, 26, 22, .7); }
.btn.dark:hover { background: var(--berry); }
.btn.glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .22); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

.round-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 18px;
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.round-btn:hover { background: var(--ink); color: #fff; transform: scale(1.06); }

/* ===== Floating nav ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1220px, calc(100% - 28px));
  padding: 10px 10px 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  background: rgba(255, 252, 247, .72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 50px -20px rgba(29, 20, 10, .35);
  z-index: 60;
  transition: transform .5s var(--ease), background .3s, box-shadow .3s, border-radius .3s;
}
.nav.scrolled { background: rgba(255, 252, 247, .9); box-shadow: 0 14px 40px -18px rgba(29, 20, 10, .3); }
.nav.nav-hidden { transform: translate(-50%, calc(-100% - 24px)); box-shadow: none; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px rgba(201, 162, 106, .75), 0 8px 16px -8px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
footer .brand-mark { width: 48px; height: 48px; border-radius: 14px; }
.brand-word { display: flex; flex-direction: column; gap: 1px; }
.brand-word strong { display: block; font: 600 20px/1 "Newsreader", Georgia, serif; letter-spacing: -.01em; }
.brand-word small { display: block; font-size: 11.5px; line-height: 1.2; color: var(--muted); }

.nav nav { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.nav nav > a { position: relative; padding: 9px 15px; border-radius: 999px; transition: background .25s, color .25s; }
.nav nav > a:hover { background: rgba(29, 26, 22, .06); }
.nav nav > a.active { color: var(--berry); background: var(--berry-soft); font-weight: 600; }
.nav-mobile-cta { display: none; }

.nav-cta { display: flex; gap: 6px; }
.pill {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.pill.solid { background: var(--berry); color: #fff; box-shadow: 0 8px 18px -10px rgba(156, 61, 85, .8); }
.pill.solid:hover { background: #82304a; transform: translateY(-1px); }
.pill.ghost { border: 1px solid rgba(29, 26, 22, .18); }
.pill.ghost:hover { border-color: var(--berry); color: var(--berry); }

.menu {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu span { width: 18px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.nav.open .menu span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.open .menu span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 0;
  height: 100svh;
  min-height: 640px;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.hero-image {
  position: absolute; inset: 0;
  background: #c9b9a6 url("https://images.unsplash.com/photo-1532635224-cf024e66d122?auto=format&fit=crop&w=2200&q=85") center / cover;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 15, 10, .78), rgba(20, 15, 10, .15) 70%),
    linear-gradient(0deg, rgba(20, 15, 10, .55), transparent 55%);
}
.hero-content { position: relative; padding: 0 6vw 8vh; max-width: 900px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 106, .25); }
.hero h1 { font-size: clamp(56px, 8.4vw, 124px); line-height: .92; margin: 26px 0 22px; }
.hero h1 em { color: var(--gold); }
.hero-copy { max-width: 520px; font-size: 17px; color: rgba(255, 255, 255, .85); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Ribbon ===== */
.ribbon { overflow: hidden; padding: 30px 0; border-bottom: 1px solid var(--line); }
.ribbon-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon-track span { font: italic 400 clamp(24px, 3vw, 38px) "Newsreader", Georgia, serif; white-space: nowrap; }
.ribbon-track i { color: var(--berry); font-style: normal; font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 100px var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; }
.section-head h2, .about h2, .join h2, .contact h2 { font-size: clamp(42px, 5.2vw, 74px); line-height: 1; }
.section-head > p { max-width: 380px; color: var(--muted); font-size: 16px; }
.section-head.center { justify-content: center; text-align: center; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-photo {
  height: 640px;
  border-radius: var(--radius-lg);
  background: #c9b9a6 url("images/pastries-bakes.jpg") center / cover;
}
.about-badge {
  position: absolute; right: -28px; bottom: 40px;
  background: var(--paper);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-badge strong { display: block; font: italic 500 24px "Newsreader", Georgia, serif; }
.about-badge span { font-size: 13px; color: var(--muted); }
.about-copy > p:not(.kicker) { color: var(--muted); margin-top: 22px; font-size: 16px; max-width: 540px; }
.kitchen-note {
  position: relative;
  margin-top: 44px;
  max-width: 520px;
  padding: 25px 34px 14px 58px;
  background-color: #fffdf8;
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(156, 61, 85, .28) 38px, rgba(156, 61, 85, .28) 39px, transparent 39px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80, 120, 160, .13) 31px 32px);
  background-position: 0 0, 0 22px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(42, 30, 18, .08), 0 22px 40px -24px rgba(42, 30, 18, .4);
  transform: rotate(-1.2deg);
}
.kitchen-note::before {
  content: "";
  position: absolute; top: -13px; left: 50%;
  width: 110px; height: 28px;
  background: rgba(214, 196, 160, .62);
  box-shadow: 0 1px 2px rgba(42, 30, 18, .08);
  transform: translateX(-50%) rotate(2.5deg);
}
.note-title { font: 700 30px/64px "Caveat", cursive; color: var(--berry); }
.promises { list-style: none; }
.promises li { display: flex; gap: 12px; align-items: flex-start; }
.tick { flex: none; width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: var(--berry); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.promises p { font-size: 15px; line-height: 32px; color: var(--muted); }
.promises strong { color: var(--ink); font-weight: 700; }
.note-sign { text-align: right; font: 600 26px/64px "Caveat", cursive; color: var(--ink); }
.note-sign::before { content: "\2014 "; }
@media (max-width: 700px) {
  .kitchen-note { padding: 25px 22px 14px 46px; background-image:
    linear-gradient(90deg, transparent 30px, rgba(156, 61, 85, .28) 30px, rgba(156, 61, 85, .28) 31px, transparent 31px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80, 120, 160, .13) 31px 32px); }
}

/* ===== Order section ===== */
.order { background: var(--cream-2); }
.order-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.order-info .section-head { margin-bottom: 40px; }
.order-image {
  height: 340px;
  border-radius: var(--radius);
  background: #c9b9a6 url("https://images.unsplash.com/photo-1628509633348-a39defbc44c4?auto=format&fit=crop&w=1400&q=85") center / cover;
}
.occasions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.occasions span { padding: 9px 15px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 500; border: 1px solid var(--line); }

.steps { list-style: none; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps b {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font: italic 500 15px "Newsreader", Georgia, serif;
}
.steps strong { font-size: 15px; }
.steps p { color: var(--muted); font-size: 14px; }
.steps.light b { background: var(--gold); color: var(--ink); }
.steps.light p { color: rgba(255, 255, 255, .6); }

/* ===== Form cards ===== */
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.form-card-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-card-head h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.form-card-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.form-card form { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: #4a443c; }
input, select, textarea {
  width: 100%;
  border: 1px solid transparent;
  background: #f4eee4;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  outline: none;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #a39a8d; }
input:focus, select:focus, textarea:focus { border-color: var(--berry); background: #fff; box-shadow: 0 0 0 4px rgba(156, 61, 85, .1); }
textarea { min-height: 110px; resize: vertical; }
.choice { border: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.choice legend { font-size: 13px; font-weight: 600; color: #4a443c; margin-bottom: 7px; float: left; width: 100%; }
.choice label {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #f4eee4;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.choice label:has(input:checked) { border-color: var(--berry); background: var(--berry-soft); }
.choice input { width: 16px; height: 16px; accent-color: var(--berry); padding: 0; }
.invalid { border-color: #b3261e !important; background: rgba(179, 38, 30, .05) !important; }
.form-error { color: #b3261e; font-size: 13px; }
.form-error:empty { display: none; }
.form-card .btn { justify-self: start; margin-top: 6px; }

/* ===== Classes — 3D tile carousel ===== */
.classes { overflow: hidden; }
.carousel { position: relative; }
.carousel-stage {
  position: relative;
  height: 560px;
  perspective: 1800px;
  touch-action: pan-y;
  user-select: none;
}
/* --x (% of tile width), --z (px) and --r (deg) are set per tile by script.js */
.tile {
  --x: 0;
  --z: 0;
  --r: 0;
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(250px, 24vw, 340px);
  height: 500px;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--x) * 1%))
    translateZ(calc(var(--z) * 1px))
    rotateY(calc(var(--r) * 1deg));
  transition: transform .9s var(--ease), opacity .6s;
  cursor: pointer;
}
.tile.is-active { cursor: default; }
.tile.is-hidden { opacity: 0; pointer-events: none; }
.tile-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.tile.flipped .tile-inner { transform: rotateY(180deg); }
/* The hidden face must not catch taps meant for the visible one */
.tile:not(.flipped) .tile-back, .tile.flipped .tile-front { pointer-events: none; }
.tile-face {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 40px 70px -35px rgba(29, 20, 10, .55);
}
.tile-front { color: #fff; }
.tile-img { position: absolute; inset: 0; background: #c9b9a6 center / cover; transition: transform 1.2s var(--ease); }
.tile.is-active:hover .tile-img { transform: scale(1.05); }
.tile-front::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 14, 9, .88));
}
.tile:not(.is-active) .tile-front::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: rgba(246, 241, 232, .35);
  transition: opacity .6s;
}
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; z-index: 1; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}
.tile h3 { font-size: 34px; line-height: 1.05; margin: 14px 0 10px; }
.tile-body p { font-size: 14px; color: rgba(255, 255, 255, .8); }
.flip-btn {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid currentColor;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: inherit;
}
.tile-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 162, 106, .25), transparent 45%),
    var(--cocoa);
  color: #fff;
  padding: 34px 30px;
  display: flex; flex-direction: column;
}
.tile-back .tag { align-self: flex-start; color: var(--gold); border-color: rgba(201, 162, 106, .4); background: transparent; }
.tile-back ul { list-style: none; margin: 10px 0 auto; display: grid; gap: 14px; }
.tile-back li { display: flex; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.tile-back li::before { content: "✦"; color: var(--gold); font-size: 12px; margin-top: 4px; }
.tile-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); }
.tile-actions .flip-btn { margin-top: 0; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(29, 26, 22, .2);
  transition: width .4s var(--ease), background .3s;
}
.carousel-dots button.on { width: 30px; background: var(--berry); }

/* ===== Join a class ===== */
.join {
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(156, 61, 85, .35), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(201, 162, 106, .2), transparent 45%),
    var(--cocoa);
}
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.join h2 em { color: var(--gold); }
.join-info > p:not(.kicker) { color: rgba(255, 255, 255, .7); font-size: 16px; margin: 24px 0 38px; max-width: 440px; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #c9b9a6;
  background-size: 0 0;
}
.gallery-item::before {
  content: ""; position: absolute; inset: 0;
  background-image: inherit;
  background-size: cover; background-position: center;
  transition: transform 1s var(--ease);
}
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 14, 9, .65)); }
.gallery-item:hover::before { transform: scale(1.07); }
.gallery-item span {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }
.gi1 { background-image: url("images/dessert-cups.jpg"); }
.gi2 { background-image: url("images/strawberry-cake.jpg"); }
.gi3 { background-image: url("images/savouries.jpg"); }
.gi4 { background-image: url("images/indian-spread.jpg"); }
.gi5 { background-image: url("images/sweets-platter.jpg"); }
.gi6 { background-image: url("images/chocolate-desserts.jpg"); }
.gi7 { background-image: url("images/pastries-bakes.jpg"); }
.gi8 { background-image: url("images/rice-dishes.jpg"); }

.img1 { background-image: url("images/strawberry-cake.jpg"); }
.img2 { background-image: url("images/rice-dishes.jpg"); }
.img3 { background-image: url("images/pastries-bakes.jpg"); }
.img4 { background-image: url("images/savouries.jpg"); }
.img5 { background-image: url("https://images.unsplash.com/photo-1743674453123-93356ade2891?auto=format&fit=crop&w=1000&q=80"); }
.img6 { background-image: url("https://images.unsplash.com/photo-1551326844-4df70f78d0e9?auto=format&fit=crop&w=1000&q=80"); }
.img7 { background-image: url("https://images.unsplash.com/photo-1563612116625-3012372fccce?auto=format&fit=crop&w=1000&q=80"); }
.img8 { background-image: url("images/indian-spread.jpg"); }
.img9 { background-image: url("images/dessert-cups.jpg"); }
.img10 { background-image: url("images/pastries-bakes.jpg"); }

/* Order form: cake details only show when "Cake" is chosen */
.cake-only[hidden] { display: none; }

/* ===== Reviews ===== */
.reviews { padding-top: 40px; }
.review-slider { max-width: 900px; margin: 0 auto; overflow: hidden; }
.review-track { display: flex; transition: transform .8s var(--ease); }
.review {
  flex: 0 0 100%;
  text-align: center;
  padding: 10px 4%;
}
.stars { color: var(--gold); letter-spacing: .3em; font-size: 16px; }
.review blockquote {
  font: 400 clamp(24px, 3.1vw, 40px)/1.3 "Newsreader", Georgia, serif;
  margin: 26px 0 34px;
}
.review figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--berry-soft); color: var(--berry);
  font: italic 500 20px "Newsreader", Georgia, serif;
}
.review strong { display: block; font-size: 15px; }
.review small { color: var(--muted); font-size: 13px; }
.reviews-more { text-align: center; color: var(--muted); margin-top: 34px; font-size: 14px; }

/* ===== Contact ===== */
.contact { padding: 0; }
.contact-inner {
  background: var(--ink);
  color: #fff;
  padding: 90px max(28px, calc((100% - 1240px) / 2)) 64px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
.contact h2 em { color: var(--gold); }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.contact-details p { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 6px; }
.contact-details a { font-size: 16px; transition: color .2s; }
.contact-details a:hover { color: var(--gold); }
.socials { display: flex; gap: 18px; }
.socials a { border-bottom: 1px solid rgba(255, 255, 255, .35); }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: #2e2a24; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* ===== Footer ===== */
.footer {
  background: var(--cream-2);
  color: var(--muted);
  padding: 0 var(--gutter);
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 44px 0 32px;
}
.footer .brand { color: var(--ink); }
.footer-brand p { max-width: 300px; margin-top: 14px; line-height: 1.6; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-col h4 {
  font: 700 10px "Manrope", system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 4px;
}
.footer-col a { transition: color .25s; }
.footer-col a:hover { color: var(--ink); }

.footer-social { display: flex; gap: 8px; margin-top: 6px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.footer-social a:hover { background: var(--berry); border-color: var(--berry); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 90px 18px 0; /* right padding keeps clear of the floating WhatsApp button */
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; transition: color .25s; }
.to-top span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s var(--ease); }
.to-top:hover { color: var(--berry); }
.to-top:hover span { transform: translateY(-2px); }

/* ===== Floating bits ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.toast {
  position: fixed; left: 22px; bottom: 22px; z-index: 100;
  max-width: calc(100% - 110px);
  background: var(--ink); color: #fff;
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 13px;
  transform: translateY(140px);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
}
.toast.show { transform: translateY(0); visibility: visible; }

/* ===== Reveal on scroll (only when JS + motion allowed) ===== */
.motion .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav nav > a { padding: 9px 11px; }
  .pill.ghost { display: none; }
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav { border-radius: 30px; padding: 9px 9px 9px 16px; }
  .nav nav, .nav-cta { display: none; }
  .menu { display: flex; }
  .nav.open nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 8px 4px 10px;
    font-size: 18px;
    animation: dropIn .4s var(--ease);
  }
  .nav.open nav > a { padding: 12px 14px; }
  .nav-mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .nav-mobile-cta .btn { padding: 14px 10px; }
  .nav-mobile-cta .btn.dark { background: var(--berry); }

  .about, .order-grid, .join-grid, .contact-inner { grid-template-columns: 1fr; }
  .about { gap: 56px; }
  .about-photo { height: 460px; }
  .about-badge { right: 16px; bottom: -24px; }
  .join-grid { gap: 44px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head.center { align-items: center; }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 700px) {
  .section { padding: 72px 20px; }
  .hero { height: 100svh; }
  .hero-content { padding: 0 22px 60px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-inner { padding: 70px 22px; }
  .two, .contact-details { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .carousel-stage { height: 500px; }
  .tile { width: 72vw; height: 470px; }
  .tile h3 { font-size: 28px; }
  .tile-body, .tile-back { padding: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 36px 0 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding-right: 76px; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .wide { grid-column: span 1; }
  .tall { grid-row: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
