/* ═══════════════════════════════════════════════════════════════════
   ZALAWADIA FAMILY  ·  ઝાલાવાડિયા પરિવાર
   main.css — design tokens, reset, layout, navbar, footer, components
   ═══════════════════════════════════════════════════════════════════ */

/* ═══ 1. DESIGN TOKENS ══════════════════════════════════════════════ */
:root {
  /* Warm heritage palette */
  --ink:          #150A02;
  --dark-brown:   #3D1A06;
  --brown:        #6B2E0A;
  --gold:         #C9922A;
  --gold-bright:  #E8BE6A;
  --gold-deep:    #9C6F17;
  --light-gold:   #F5DEB3;
  --cream:        #FDF6EE;
  --card:         #FFFBF4;
  --warm-gray:    #8B7355;
  --text:         #2C1A08;
  --text-soft:    #6E543A;
  --divider:      #E8D3AE;

  /* Event type colours */
  --c-birthday:   #C2557A;
  --c-anniversary:#C9922A;
  --c-festival:   #D2691E;
  --c-gathering:  #5F8A4E;

  /* Gradients */
  --grad-gold:    linear-gradient(135deg, #E8BE6A 0%, #C9922A 48%, #9C6F17 100%);
  --grad-dark:    linear-gradient(160deg, #3D1A06 0%, #150A02 100%);

  /* Type */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-gu:      "Noto Sans Gujarati", "Hind Vadodara", "Shruti", sans-serif;

  /* Elevation */
  --shadow-sm:    0 2px 8px rgba(61, 26, 6, .07);
  --shadow-card:  0 6px 24px rgba(61, 26, 6, .09);
  --shadow-hover: 0 18px 46px rgba(61, 26, 6, .18);
  --shadow-gold:  0 10px 34px rgba(201, 146, 42, .32);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Motion */
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --ease-out-back: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: .18s var(--ease);
  --t:      .32s var(--ease);
  --t-slow: .6s  var(--ease);

  /* Layout */
  --wrap: 1240px;
  --nav-h: 76px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
}

/* ═══ 2. RESET ══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Warm scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #F3E6D4; }
::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: var(--r-pill);
  border: 3px solid #F3E6D4;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══ 3. TYPOGRAPHY ═════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--dark-brown);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.gu { font-family: var(--font-gu); font-weight: 500; }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-soft);
  max-width: 62ch;
}

/* ═══ 4. LAYOUT ═════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: linear-gradient(180deg, #FBF0E1 0%, var(--cream) 100%); }

.section-header { text-align: center; margin-bottom: clamp(38px, 5vw, 64px); }

.section-eyebrow {
  font-family: var(--font-gu);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gold);
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--gold);
  font-size: .8rem;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: clamp(36px, 9vw, 84px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

.section-note {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: .98rem;
}

/* ═══ 5. BUTTONS ════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:not(:disabled):hover { transform: translateY(-3px); }
.btn:not(:disabled):active { transform: translateY(-1px); }

.btn--primary {
  background: var(--grad-gold);
  color: #2A1400;
  box-shadow: 0 6px 20px rgba(201, 146, 42, .3);
}
.btn--primary:not(:disabled):hover { box-shadow: var(--shadow-gold); }

/* light sweep on hover */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease);
}
.btn--primary:hover::after { left: 120%; }

.btn--ghost {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--ghost:hover { background: var(--gold); color: #2A1400; }

.btn--onDark { border-color: rgba(245,222,179,.6); color: var(--light-gold); }
.btn--onDark:hover { background: var(--light-gold); color: var(--dark-brown); border-color: var(--light-gold); }

.btn--sm { padding: 9px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ═══ 6. CARD BASE ══════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
  }
}
@media (hover: none) {
  .card:active { transform: scale(.99); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.pill--gold { background: var(--grad-gold); color: #2A1400; }
.pill--soft { background: #F6E7CE; color: var(--brown); border: 1px solid var(--divider); }

/* ═══ 7. NAVBAR ═════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease),
              border-color .45s var(--ease), height .35s var(--ease), box-shadow .45s var(--ease);
}
.navbar.is-scrolled {
  height: 66px;
  background: rgba(21, 10, 2, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(201, 146, 42, .28);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform var(--t-slow);
}
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .16em;
  color: #fff;
  line-height: 1.2;
}
.brand-gu {
  font-family: var(--font-gu);
  font-size: .76rem;
  color: var(--gold-bright);
  letter-spacing: .02em;
  line-height: 1.4;
}

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, .84);
  font-size: .93rem;
  font-weight: 400;
  letter-spacing: .04em;
  padding-block: 6px;
  transition: color var(--t);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--gold-bright); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Account chip */
.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(245, 222, 179, .32);
  border-radius: var(--r-pill);
  color: var(--light-gold);
  font-size: .85rem;
  transition: border-color var(--t), background var(--t);
}
.account-chip:hover { border-color: var(--gold); background: rgba(201, 146, 42, .14); }
.account-chip img, .account-chip .avatar-fallback {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--grad-gold);
  display: grid; place-items: center;
  color: #2A1400; font-weight: 700; font-size: .8rem;
}
.account-chip__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 1.3rem;
  place-items: center;
  transition: background var(--t);
}
.hamburger:hover { background: rgba(201, 146, 42, .16); }

/* ═══ 8. MOBILE MENU ════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--grad-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity .38s var(--ease), visibility .38s;
    z-index: 190;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links a {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--light-gold);
    padding: 12px 24px;
    opacity: 0;
    transform: translateY(18px);
  }
  .nav-links.is-open a {
    animation: menuIn .5s var(--ease) forwards;
  }
  .nav-links.is-open a:nth-child(1) { animation-delay: .07s; }
  .nav-links.is-open a:nth-child(2) { animation-delay: .13s; }
  .nav-links.is-open a:nth-child(3) { animation-delay: .19s; }
  .nav-links.is-open a:nth-child(4) { animation-delay: .25s; }
  .nav-links.is-open a:nth-child(5) { animation-delay: .31s; }
  .nav-links.is-open a:nth-child(6) { animation-delay: .37s; }
  .nav-links a::after { left: 24px; right: 24px; }

  .hamburger { display: grid; position: relative; z-index: 210; }
  .account-chip__name { display: none; }
  .brand-name { font-size: .92rem; letter-spacing: .1em; }
}
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }

body.no-scroll { overflow: hidden; }

/* While the menu is open the navbar must not paint its own bar across
   the top of it. The menu deliberately sits BELOW the navbar so the
   close button stays tappable, so the navbar goes see-through instead
   of moving either one. */
body.menu-open .navbar,
body.menu-open .navbar.is-scrolled {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
  height: var(--nav-h);
}

/* ═══ 9. PAGE HEADER (inner pages) ══════════════════════════════════ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(52px, 7vw, 88px);
  background: var(--grad-dark);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(201,146,42,.26), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C9922A' stroke-width='.7' opacity='.5'%3E%3Ccircle cx='60' cy='60' r='26'/%3E%3Ccircle cx='60' cy='60' r='42'/%3E%3Cpath d='M60 4v112M4 60h112M20 20l80 80M100 20l-80 80'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 150px 150px;
  opacity: .5;
  z-index: -1;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero h1 em { color: var(--gold-bright); font-style: italic; }
.page-hero .page-gu {
  font-family: var(--font-gu);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--gold-bright);
  margin-bottom: 14px;
}
.page-hero .lead { color: rgba(253, 246, 238, .8); margin-inline: auto; }
.page-hero .ornament { color: var(--gold-bright); }

/* ═══ 10. SCROLL REVEAL ═════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ═══ 11. STATES: empty / loading / error ═══════════════════════════ */
.state {
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 24px;
  color: var(--text-soft);
  grid-column: 1 / -1;
}
.state__mark { font-size: 2.2rem; color: var(--gold); margin-bottom: 14px; }
.state h3 { color: var(--brown); margin-bottom: 8px; }
.state p { max-width: 46ch; margin-inline: auto; }

.skeleton {
  background: linear-gradient(90deg, #F1E2CC 25%, #F9EEDD 50%, #F1E2CC 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r-md);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ═══ 12. MODAL ═════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(21, 10, 2, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__panel {
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
  transform: translateY(26px) scale(.97);
  transition: transform .38s var(--ease-out-back);
  position: relative;
}
.modal.is-open .modal__panel { transform: none; }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--warm-gray);
  font-size: 1.1rem;
  transition: background var(--t), color var(--t);
}
.modal__close:hover { background: #F3E4CC; color: var(--brown); }

.modal__title { text-align: center; margin-bottom: 6px; }
.modal__sub { text-align: center; color: var(--text-soft); font-size: .95rem; margin-bottom: 26px; }

/* ═══ 13. FORMS ═════════════════════════════════════════════════════ */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 7px;
}
.field .hint { font-size: .82rem; color: var(--warm-gray); margin-top: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 15px;
  background: #fff;
  border: 1.5px solid var(--divider);
  border-radius: var(--r-sm);
  font-size: .97rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 146, 42, .16);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.7; font-family: var(--font-body); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238B7355' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

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

/* Drop zone */
.dropzone {
  border: 2px dashed var(--divider);
  border-radius: var(--r-md);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: #FEF9F1;
  transition: border-color var(--t), background var(--t);
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--gold); background: #FBF1DF; }
.dropzone__icon { font-size: 1.9rem; color: var(--gold); margin-bottom: 10px; }
.dropzone__text { font-weight: 700; color: var(--brown); }
.dropzone__hint { font-size: .84rem; color: var(--warm-gray); margin-top: 5px; }
.dropzone input[type="file"] { display: none; }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 14px; }
.preview-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--divider); }

/* Progress */
.progress { height: 7px; background: #F0E0C8; border-radius: var(--r-pill); overflow: hidden; margin-top: 16px; }
.progress__bar { height: 100%; width: 0; background: var(--grad-gold); border-radius: var(--r-pill); transition: width .3s var(--ease); }

/* Inline notices */
.notice {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 18px;
  border: 1px solid;
}
.notice i { margin-top: 3px; }
.notice--info    { background: #FBF1DF; border-color: var(--divider); color: var(--brown); }
.notice--warn    { background: #FDF0E0; border-color: #E9BE85; color: #8A4B10; }
.notice--error   { background: #FCEBEA; border-color: #EBB0AC; color: #9A2B22; }
.notice--success { background: #EDF6E9; border-color: #B3D6A3; color: #3D6B2C; }

/* Toast */
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--cream);
  font-size: .92rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .34);
  border-left: 3px solid var(--gold);
  animation: toastIn .4s var(--ease-out-back);
}
.toast--error   { border-left-color: #E06A5F; }
.toast--success { border-left-color: #7DBE63; }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(20px); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(12px); } }

/* Floating action button (uploaders only) */
.fab {
  position: fixed;
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: #2A1400;
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  transition: transform var(--t), box-shadow var(--t);
}
.fab:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 44px rgba(201,146,42,.46); }
@media (max-width: 600px) { .fab span { display: none; } .fab { padding: 17px; } }

/* ═══ 14. FOOTER ════════════════════════════════════════════════════ */
.footer {
  background: var(--grad-dark);
  color: rgba(253, 246, 238, .74);
  padding-top: clamp(56px, 7vw, 84px);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  padding-bottom: 48px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }

.footer h4 {
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-gu { font-family: var(--font-gu); color: var(--light-gold); margin-bottom: 14px; }
.footer-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.7;
  color: rgba(245, 222, 179, .88);
  max-width: 38ch;
}
@media (max-width: 820px) { .footer-quote { margin-inline: auto; } }

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(253, 246, 238, .74);
  transition: color var(--t), padding-left var(--t);
  display: inline-block;
}
.footer-links a:hover { color: var(--gold-bright); padding-left: 6px; }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(37, 211, 102, .42);
  color: #6BE39B;
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--t), transform var(--t);
}
.wa-btn:hover { background: rgba(37, 211, 102, .22); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(201, 146, 42, .2);
  padding-block: 26px 30px;
  text-align: center;
  font-size: .87rem;
}
.footer-bottom .mark { color: var(--gold); letter-spacing: .5em; display: block; margin-bottom: 12px; }

/* ═══ 15. UTILITIES ═════════════════════════════════════════════════ */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: 34px; }
.stack-center { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 999;
  background: var(--gold);
  color: #2A1400;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ═══ 15b. TOUCH DEVICES ════════════════════════════════════════════
   A tap on a touchscreen leaves :hover stuck until you tap somewhere
   else. Any effect that reveals hidden controls is therefore guarded
   with @media (hover: hover) wherever it appears. What is left here is
   the general phone polish.                                           */
@media (hover: none) {
  /* Grey flash boxes on tap look broken; the :active states replace them */
  a, button, .photo-card, .card, .filter-btn, .grid-toggle__btn {
    -webkit-tap-highlight-color: transparent;
  }
  /* Never let a lift effect stick after a tap */
  .btn:not(:disabled):hover { transform: none; }
  .btn:not(:disabled):active { transform: scale(.97); }
}

/* Comfortable targets for thumbs */
@media (max-width: 700px) {
  .btn { padding: 14px 26px; }
  .btn--sm { padding: 11px 20px; }
  .icon-btn { width: 40px; height: 40px; }
  .filter-btn { padding: 10px 20px; }

  /* Clear the iPhone home indicator */
  .fab { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .toast-stack { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .footer-bottom { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }

  /* Stop long captions and Gujarati words forcing sideways scroll */
  h1, h2, h3, .memory-card__gu, .member-gu, .photo-card__caption { overflow-wrap: anywhere; }

  /* Modals should reach the top of the screen, not float awkwardly */
  .modal { padding: 12px; align-items: flex-start; padding-top: 20px; }
  .modal__panel { max-height: calc(100svh - 40px); }
}

/* iOS zooms the page in when a font smaller than 16px gets focus */
@media (max-width: 900px) {
  .input, .select, .textarea { font-size: 16px; }
}

/* ═══ 16. REDUCED MOTION ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ═══ 17. PRINT ═════════════════════════════════════════════════════ */
@media print {
  .navbar, .footer, .fab, .modal, .toast-stack, .hero-scroll { display: none !important; }
  body { background: #fff; }
}
