/* ==========================================================================
   CITY MALL - Main stylesheet
   Sections:
   1. Design tokens (colours, fonts)   2. Reset / base     3. Layout helpers
   4. Buttons                          5. Loader + announcement bar
   6. Header + mobile menu             7. Footer           8. Floating buttons
   9. Section headings + page hero    10. Cards + gallery grid
  11. Home hero slider                12. Home sections    13. Inner pages
  14. Lightbox                        15. Reveal / motion  16. Reduced motion
   ========================================================================== */

/* 0. SELF-HOSTED FONTS (variable fonts, latin) ------------------------- */
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  --maroon: #62141c;
  --cocoa: #2f1810;
  --gold: #d3aa64;
  --gold-soft: #e3cfa5;
  --cream: #f6eedc;
  --ivory: #fdfaf4;
  --muted: #694e43;
  --border: #dccbb1;
  --white: #ffffff;

  --maroon-rgb: 98 20 28;
  --cocoa-rgb: 47 24 16;
  --gold-rgb: 211 170 100;
  --cream-rgb: 246 238 220;
  --ivory-rgb: 253 250 244;

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;

  --gradient-maroon: linear-gradient(135deg, #590915, #310d09);
  --gradient-gold: linear-gradient(135deg, #e2bf76, #c38c46);
  --shadow-luxe: 0 20px 50px -20px rgb(var(--cocoa-rgb) / 0.45);
  --hero-blend: linear-gradient(to right, var(--maroon) 0%, rgb(var(--maroon-rgb) / 0.96) 22%, rgb(var(--maroon-rgb) / 0.78) 38%, rgb(var(--maroon-rgb) / 0.26) 54%, transparent 70%);
  --hero-glass: linear-gradient(to right, rgb(var(--maroon-rgb) / 0.25), transparent);
}

/* 2. RESET / BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--ivory);
  color: var(--cocoa);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; font-size: inherit; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. LAYOUT HELPERS ------------------------------------------------------ */
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
.section { padding-block: 6rem; }
.section--cream { background: var(--cream); }
.section--compact { padding-block: 5rem; }
.text-gold { color: var(--gold); }
.text-maroon { color: var(--maroon); }
.text-muted { color: var(--muted); }
.shadow-luxe { box-shadow: var(--shadow-luxe); }
.cover { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.eyebrow { font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.grid-cards { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--maroon); transition: color 0.2s; }
.text-link:hover { color: var(--gold); }

/* 4. BUTTONS ------------------------------------------------------------- */
.btn-gold, .btn-outline-gold, .btn-maroon {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; min-height: 44px; border-radius: 0.25rem;
  font-size: 0.8rem; line-height: 1.25; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  white-space: nowrap; cursor: pointer;
}
.btn-gold { background-image: var(--gradient-gold); color: var(--cocoa); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-maroon { background-color: var(--maroon); color: var(--ivory); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-gold:hover, .btn-maroon:hover { transform: translateY(-2px); box-shadow: var(--shadow-luxe); }
.btn-outline-gold { border: 1px solid var(--gold); color: inherit; transition: background-color 0.3s ease, color 0.3s ease; }
.btn-outline-gold:hover { background-color: var(--gold); color: var(--cocoa); }
.btn-outline-gold.on-dark { color: var(--ivory); }
.btn-outline-gold.on-dark:hover { color: var(--cocoa); }
.btn-outline-gold.on-light { color: var(--maroon); }
.btn-outline-gold.on-light:hover { color: var(--cocoa); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row--center { justify-content: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.375rem; transition: background-color 0.2s, color 0.2s; }

/* 5. LOADER + ANNOUNCEMENT BAR -------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background-image: var(--gradient-maroon); pointer-events: none;
  animation: loader-out 1.4s ease forwards;
}
.loader > div { animation: fade-up 1s ease-out both; }
html.skip-loader .loader { display: none; }

.announcement { overflow: hidden; background-image: var(--gradient-maroon); padding-block: 0.5rem; font-size: 0.68rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-soft); }
.announcement-track { display: flex; width: max-content; animation: announcement-scroll 65s linear infinite; }
.announcement-group { display: flex; flex-shrink: 0; align-items: center; }
.announcement-item { display: flex; flex-shrink: 0; align-items: center; white-space: nowrap; }
.announcement-item span:first-child { padding-inline: 1.75rem; }
@media (hover: hover) { .announcement:hover .announcement-track { animation-play-state: paused; } }

/* Logo */
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark { width: 2.75rem; height: 2.75rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.18em; color: var(--maroon); }
.logo-sub { margin-top: 0.25rem; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.34em; color: var(--gold); }
.logo--light .logo-name { color: var(--ivory); }

/* 6. HEADER + MOBILE MENU ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--ivory);
  border-bottom: 1px solid rgb(var(--gold-rgb) / 0.3); transition: all 0.5s;
}
.site-header.is-scrolled { background: rgb(var(--ivory-rgb) / 0.95); box-shadow: var(--shadow-luxe); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 80rem; margin-inline: auto; padding: 1rem 1.25rem; }
.main-nav { display: none; align-items: center; gap: 2.25rem; }
.nav-link { position: relative; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--cocoa); transition: color 0.2s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -0.375rem; width: 0; height: 1px; background: var(--gold); transition: width 0.3s; }
.nav-link:hover { color: var(--maroon); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--maroon); }
.header-call { display: none; }
.menu-toggle { color: var(--maroon); }
.menu-toggle .icon { width: 1.75rem; height: 1.75rem; }
.menu-toggle:hover { background: var(--gold); color: var(--cocoa); }

.mobile-menu { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.mobile-menu.is-open { pointer-events: auto; }
.mobile-overlay { position: absolute; inset: 0; background: rgb(var(--cocoa-rgb) / 0.6); opacity: 0; transition: opacity 0.5s; }
.mobile-menu.is-open .mobile-overlay { opacity: 1; }
.mobile-panel {
  position: absolute; top: 0; right: 0; display: flex; flex-direction: column; width: 85%; max-width: 24rem; height: 100%;
  padding: 2rem; background-image: var(--gradient-maroon); transform: translateX(100%); transition: transform 0.5s;
}
.mobile-menu.is-open .mobile-panel { transform: none; }
.mobile-panel-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-close { color: var(--gold); }
.mobile-close .icon { width: 1.75rem; height: 1.75rem; }
.mobile-close:hover { background: var(--gold); color: var(--cocoa); }
.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 3rem; }
.mobile-link {
  padding-block: 1rem; border-bottom: 1px solid rgb(var(--gold-rgb) / 0.2); font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; color: var(--ivory);
  opacity: 0; transform: translateX(2rem); transition: all 0.5s;
}
.mobile-menu.is-open .mobile-link { opacity: 1; transform: none; }
.mobile-link.is-active { color: var(--gold); }
.mobile-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; }

@media (min-width: 1024px) {
  .header-inner { padding-inline: 2rem; }
  .main-nav { display: flex; }
  .header-call { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* 7. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--cocoa); color: var(--cream); }
.footer-grid { display: grid; gap: 3rem; max-width: 80rem; margin-inline: auto; padding: 4rem 1.25rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); padding-inline: 2rem; } }
.footer-about { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.625; color: rgb(var(--cream-rgb) / 0.75); }
.footer-title { margin-bottom: 1.25rem; }
.footer-list { font-size: 0.875rem; }
.footer-list li + li { margin-top: 0.75rem; }
.footer-list--tight li + li { margin-top: 0.5rem; }
.footer-link { color: rgb(var(--cream-rgb) / 0.8); transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }
.footer-line { display: flex; align-items: center; gap: 0.5rem; }
.footer-line .icon, .footer-address .icon { color: var(--gold); }
.footer-address { display: flex; gap: 0.5rem; font-size: 0.875rem; color: rgb(var(--cream-rgb) / 0.8); }
.footer-address .icon { margin-top: 0.125rem; }
.footer-phones { margin-top: 1rem; font-size: 0.875rem; }
.footer-copy { padding: 1.5rem 1.25rem; border-top: 1px solid rgb(var(--gold-rgb) / 0.2); text-align: center; font-size: 0.75rem; letter-spacing: 0.05em; color: rgb(var(--cream-rgb) / 0.6); }

/* 8. FLOATING BUTTONS ----------------------------------------------------- */
.floaters { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.to-top {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid rgb(var(--gold-rgb) / 0.4); background: var(--maroon); color: var(--gold);
  box-shadow: var(--shadow-luxe); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(1rem); transition: all 0.5s;
}
.to-top .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--gold-soft); }
.wa-float {
  display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid rgb(var(--gold-rgb) / 0.5); background: rgb(var(--maroon-rgb) / 0.7); color: var(--gold);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: all 0.3s;
}
.wa-float:hover { transform: translateY(-2px); background: rgb(var(--maroon-rgb) / 0.85); color: var(--gold-soft); }
.wa-float .icon { width: 1.25rem; height: 1.25rem; fill: currentColor; stroke: none; }
@media (min-width: 768px) { .wa-float { width: 2.75rem; height: 2.75rem; } }

/* 9. SECTION HEADINGS + PAGE HERO ------------------------------------------ */
.section-heading { margin-bottom: 3rem; max-width: 42rem; }
.section-heading.is-center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.25; color: var(--maroon); }
.section-heading.is-light h2 { color: var(--ivory); }
.section-heading .rule { margin-top: 1.25rem; width: 4rem; height: 1px; background: var(--gold); }
.section-heading.is-center .rule { margin-inline: auto; }
.section-heading p.intro { margin-top: 1.25rem; line-height: 1.625; color: var(--muted); }
.section-heading.is-light p.intro { color: rgb(var(--cream-rgb) / 0.8); }
@media (min-width: 768px) { .section-heading h2 { font-size: 3rem; } }

.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 52vh; overflow: hidden; background: var(--cocoa); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0.6; animation: hero-zoom 6s ease-out both; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--cocoa), rgb(var(--cocoa-rgb) / 0.5), transparent); }
.page-hero-content { position: relative; width: 100%; max-width: 80rem; margin-inline: auto; padding: 7rem 1.25rem 3.5rem; }
@media (min-width: 1024px) { .page-hero-content { padding-inline: 2rem; } }
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgb(var(--cream-rgb) / 0.7); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--gold); }
.page-hero h1 { margin-top: 1rem; max-width: 48rem; font-size: 2.25rem; line-height: 1.25; color: var(--ivory); animation: fade-up 1s ease-out both; }
.page-hero .eyebrow { animation: fade-up 1s ease-out both; }
.page-hero-intro { margin-top: 1.25rem; max-width: 36rem; color: rgb(var(--cream-rgb) / 0.85); animation: fade-up 1s ease-out both; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3.75rem; line-height: 1.25; } }

/* 10. CARDS + GALLERY GRID ------------------------------------------------- */
.category-card { display: block; }
.category-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.category-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s; }
.category-card:hover img { transform: scale(1.1); }
.category-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--cocoa-rgb) / 0.85), transparent, transparent); }
.category-frame { position: absolute; inset: 0.75rem; border: 1px solid rgb(var(--gold-rgb) / 0); transition: all 0.7s; }
.category-card:hover .category-frame { border-color: rgb(var(--gold-rgb) / 0.7); }
.category-body { position: absolute; bottom: 0; padding: 1.5rem; }
.category-body h3 { font-size: 1.5rem; line-height: 2rem; color: var(--ivory); }
.category-body p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: rgb(var(--cream-rgb) / 0.8); }
.category-more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }
.category-more .icon { transition: transform 0.3s; }
.category-card:hover .category-more .icon { transform: translateX(0.25rem); }

.masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry-item { margin-bottom: 1.25rem; break-inside: avoid; }
.masonry-item[hidden] { display: none; }
.zoom-btn { display: block; width: 100%; overflow: hidden; background: var(--cream); }
.zoom-btn img { width: 100%; height: auto; transition: transform 1.2s; }
.zoom-btn:hover img { transform: scale(1.05); }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.filter-btn {
  min-height: 2.75rem; padding-inline: 1.25rem; border: 1px solid rgb(var(--gold-rgb) / 0.5); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cocoa); transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--maroon); }
.filter-btn[aria-selected="true"] { border-color: var(--maroon); background: var(--maroon); color: var(--ivory); }

/* 11. HOME HERO SLIDER ----------------------------------------------------- */
.fashion-hero { position: relative; overflow: hidden; background-image: var(--gradient-maroon); }
.hero-grid { display: flex; flex-direction: column; width: 100%; max-width: 80rem; margin-inline: auto; }
.hero-copy { order: 1; padding: 3rem 1.25rem 2rem; }
.hero-copy h1 { margin-top: 1.5rem; font-size: 3rem; line-height: 1.05; color: var(--ivory); }
.hero-copy .hero-desc { margin-top: 1.5rem; max-width: 28rem; font-size: 1.125rem; line-height: 1.75rem; color: rgb(var(--cream-rgb) / 0.85); }
.hero-slide-text { min-height: 230px; animation: fade-up 0.8s ease-out both; }
.hero-media { order: 2; position: relative; margin: 0 1.25rem; aspect-ratio: 3 / 4; border-radius: 1.25rem; overflow: hidden; }
.hero-panel { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-panel.is-active { opacity: 1; z-index: 1; }
.hero-panel picture, .hero-panel img { display: block; width: 100%; height: 100%; }
.hero-panel img { object-fit: cover; object-position: center top; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--cocoa-rgb) / 0.55), transparent 25%); }
.hero-actions { order: 3; display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 1.5rem 1.25rem 0; }
.hero-actions a { min-height: 48px; white-space: normal; text-align: center; letter-spacing: 0.08em; padding: 0.9rem 1rem; }
.hero-controls { order: 4; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem 1.25rem 2.25rem; }
.hero-controls .icon-btn { color: var(--gold); }
.hero-controls .icon-btn:hover { background: rgb(var(--gold-rgb) / 0.1); }
.hero-controls .icon-btn .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.hero-indicators { display: flex; gap: 0.5rem; }
.hero-indicator { position: relative; width: 2.75rem; height: 44px; overflow: hidden; transition: background 0.4s ease; }
.hero-indicator::before { content: ""; position: absolute; inset: 20px 0; border-radius: 999px; background: rgb(var(--gold-rgb) / 0.28); }
.hero-indicator:hover { background: rgb(var(--gold-rgb) / 0.45); }
.hero-indicator-fill { position: absolute; inset: 20px 0; display: none; border-radius: 999px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-indicator.is-active .hero-indicator-fill { display: block; animation: hero-progress 5s linear forwards; }
.hero-indicator.is-active .hero-indicator-fill.is-paused { animation-play-state: paused; }
.hero-toggle .pause-icon { display: block; }
.hero-toggle .play-icon { display: none; }
.hero-toggle.is-stopped .pause-icon { display: none; }
.hero-toggle.is-stopped .play-icon { display: block; }

@media (min-width: 420px) and (max-width: 767px) {
  .hero-actions { flex-direction: row; }
  .hero-actions a { flex: 1; }
}
@media (max-width: 359px) { .hero-slide-text { min-height: 260px; } }
@media (min-width: 768px) {
  .hero-grid { --hero-content-inset: 6vw; display: grid; position: relative; max-width: none; min-height: 600px; grid-template-columns: 44% 1fr; grid-template-rows: auto auto auto; align-content: center; }
  .hero-grid::before { content: ""; position: absolute; z-index: 1; inset: 0 30% 0 0; pointer-events: none; background: var(--hero-glass); -webkit-backdrop-filter: blur(12px) saturate(110%); backdrop-filter: blur(12px) saturate(110%); -webkit-mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 100%); }
  .hero-media { position: absolute; inset: 0; order: 0; margin: 0; aspect-ratio: auto; border-radius: 0; min-height: 0; }
  .hero-copy { order: 0; position: relative; z-index: 2; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 40px 1.5rem var(--hero-content-inset); }
  .hero-copy h1 { font-size: 3.75rem; }
  .hero-slide-text { min-height: 0; }
  .hero-shade { background: var(--hero-blend), linear-gradient(to top, rgb(var(--cocoa-rgb) / 0.5), transparent 22%); }
  .hero-controls { order: 0; grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 2; justify-content: flex-start; padding: 1rem 40px 0 var(--hero-content-inset); }
  .hero-actions { order: 0; grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; flex-direction: row; align-items: center; padding: 0 40px 0 var(--hero-content-inset); }
  .hero-actions a { flex: none; }
}
@media (min-width: 1024px) {
  .hero-grid { --hero-content-inset: calc((100vw - min(100vw, 1440px)) / 2 + min(11.5vw, 165.6px)); }
  .hero-copy h1 { font-size: 4.5rem; }
}

/* 12. HOME SECTIONS --------------------------------------------------------- */
.welcome { display: grid; align-items: center; gap: 3.5rem; max-width: 80rem; margin-inline: auto; padding: 6rem 1.25rem; }
.welcome-photo { position: relative; }
.welcome-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-luxe); }
.welcome-frame { display: none; position: absolute; right: -1.25rem; bottom: -1.25rem; z-index: -1; width: 100%; height: 100%; border: 1px solid var(--gold); }
.welcome p { line-height: 1.625; color: var(--muted); }
.welcome p + p { margin-top: 1rem; }
.italic { font-style: italic; }
@media (min-width: 768px) { .welcome-frame { display: block; } }
@media (min-width: 1024px) { .welcome { grid-template-columns: repeat(2, 1fr); padding-inline: 2rem; } }

.wedding-band { position: relative; overflow: hidden; background-image: var(--gradient-maroon); }
.wedding-grid { display: grid; align-items: center; max-width: 80rem; margin-inline: auto; }
.wedding-copy { padding: 5rem 1.25rem; }
.wedding-photo { width: 100%; height: 520px; object-fit: cover; object-position: top; }
@media (min-width: 1024px) {
  .wedding-grid { grid-template-columns: repeat(2, 1fr); }
  .wedding-copy { padding-inline: 3rem; }
  .wedding-photo { height: 680px; }
}

.reasons { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.reason-card { height: 100%; padding: 2rem; border: 1px solid rgb(var(--gold-rgb) / 0.4); background: var(--white); text-align: center; transition: all 0.5s; }
.reason-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-luxe); }
.reason-card .icon { width: 2rem; height: 2rem; margin-inline: auto; color: var(--gold); stroke-width: 1.3; }
.reason-card h3 { margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.75rem; color: var(--maroon); }
.reason-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted); }

.glimpse-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .glimpse-grid { grid-template-columns: repeat(4, 1fr); } }
.glimpse-tile { aspect-ratio: 1; overflow: hidden; }
.glimpse-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s; }
.glimpse-tile:hover img { transform: scale(1.1); }
.center-row { margin-top: 2.5rem; text-align: center; }

.visit { display: grid; gap: 2.5rem; max-width: 80rem; margin-inline: auto; padding: 6rem 1.25rem; }
@media (min-width: 1024px) { .visit { grid-template-columns: repeat(2, 1fr); padding-inline: 2rem; } }
.visit h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.25; color: var(--maroon); }
@media (min-width: 768px) { .visit h2 { font-size: 3rem; line-height: 1; } }
.info-line { display: flex; gap: 0.75rem; color: var(--muted); }
.info-line .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; color: var(--gold); }
.visit .info-line { margin-top: 1.5rem; }
.phone-list { margin-top: 1rem; }
.phone-list a { display: flex; align-items: center; gap: 0.75rem; color: var(--cocoa); transition: color 0.2s; }
.phone-list a + a { margin-top: 0.5rem; }
.phone-list a:hover { color: var(--maroon); }
.phone-list .icon { width: 1.25rem; height: 1.25rem; color: var(--gold); }
.cta-box { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 2.5rem; border: 1px solid rgb(var(--gold-rgb) / 0.5); background-image: var(--gradient-maroon); text-align: center; }
.cta-box h3 { font-size: 1.875rem; line-height: 2.25rem; color: var(--ivory); }
.cta-box p { color: rgb(var(--cream-rgb) / 0.8); }
.cta-box .btn-row { margin-top: 0.5rem; }

/* 13. INNER PAGES ------------------------------------------------------------ */
.wrap { max-width: 80rem; margin-inline: auto; padding: 6rem 1.25rem; }
@media (min-width: 1024px) { .wrap { padding-inline: 2rem; } }
.wrap--compact { padding-block: 5rem; }

.about-blocks { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .about-blocks { grid-template-columns: repeat(2, 1fr); } }
.about-block { padding-left: 2rem; border-left: 2px solid var(--gold); }
.about-block h2 { font-size: 1.5rem; line-height: 2rem; color: var(--maroon); }
.about-block p { margin-top: 1rem; line-height: 1.625; color: var(--muted); }
@media (min-width: 768px) { .about-block h2 { font-size: 1.875rem; line-height: 2.25rem; } }
.about-duo { display: grid; }
.about-duo img { width: 100%; height: 420px; object-fit: cover; object-position: top; }
@media (min-width: 768px) { .about-duo { grid-template-columns: repeat(2, 1fr); } .about-duo img { height: 560px; } }
.find-us { max-width: 48rem; margin-inline: auto; padding-inline: 1.25rem; text-align: center; }
.find-us h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 2.25rem; color: var(--maroon); }
@media (min-width: 768px) { .find-us h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.find-us .info-line { justify-content: center; margin-top: 1.5rem; gap: 0.5rem; }
.find-us .phones-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.find-us .phones-inline a { display: flex; align-items: center; gap: 0.5rem; color: var(--cocoa); transition: color 0.2s; }
.find-us .phones-inline a:hover { color: var(--maroon); }
.find-us .phones-inline .icon { color: var(--gold); }
.find-us .btn-row { margin-top: 2rem; }

.collection-intro { display: grid; gap: 3.5rem; max-width: 80rem; margin-inline: auto; padding: 6rem 1.25rem; }
@media (min-width: 1024px) { .collection-intro { grid-template-columns: 1fr 1.2fr; padding-inline: 2rem; } }
.collection-intro img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; box-shadow: var(--shadow-luxe); }
.collection-text { display: flex; flex-direction: column; justify-content: center; }
.collection-text h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 2.25rem; color: var(--maroon); }
@media (min-width: 768px) { .collection-text h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.collection-text .rule { margin-top: 1.25rem; width: 4rem; height: 1px; background: var(--gold); }
.collection-text .desc { margin-top: 1.5rem; line-height: 1.625; color: var(--muted); }
.highlights { margin-top: 2rem; }
.highlights li { display: flex; align-items: center; gap: 0.75rem; color: var(--cocoa); }
.highlights li + li { margin-top: 0.75rem; }
.highlights .icon { color: var(--gold); }
.collection-text .btn-row { margin-top: 2.5rem; }

.contact-grid { display: grid; gap: 3rem; max-width: 80rem; margin-inline: auto; padding: 6rem 1.25rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); padding-inline: 2rem; } }
.contact-grid h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 2.25rem; color: var(--maroon); }
@media (min-width: 768px) { .contact-grid h2 { font-size: 3rem; line-height: 1; } }
.contact-sub { margin-top: 0.5rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); }
.contact-items { margin-top: 2.5rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-item + .contact-item { margin-top: 2rem; }
.contact-item > .icon { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.contact-item h3 { font-size: 1.125rem; line-height: 1.75rem; color: var(--maroon); }
.contact-item address { margin-top: 0.25rem; color: var(--muted); }
.contact-item a { display: block; margin-top: 0.25rem; color: var(--cocoa); transition: color 0.2s; }
.contact-item a:hover { color: var(--maroon); }
.contact-grid .btn-row { margin-top: 2.5rem; }
.map-frame { padding: 0.5rem; border: 1px solid rgb(var(--gold-rgb) / 0.5); box-shadow: var(--shadow-luxe); }
.map-frame iframe { width: 100%; height: 420px; border: 0; }
@media (min-width: 768px) { .map-frame iframe { height: 520px; } }

.not-found { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding-inline: 1rem; }
.not-found-box { max-width: 28rem; text-align: center; }
.not-found h1 { margin-top: 1rem; font-size: 3.75rem; line-height: 1; color: var(--maroon); }
.not-found p.msg { margin-top: 1rem; color: var(--muted); }
.not-found .btn-maroon { margin-top: 2rem; }

/* 14. LIGHTBOX --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 4rem 3rem; background: rgb(var(--cocoa-rgb) / 0.95); animation: page-in 0.6s ease-out both; }
@media (min-width: 768px) { .lightbox { padding-inline: 5rem; } }
.lightbox[hidden] { display: none; }
.lightbox figure { max-height: 100%; min-width: 0; }
.lightbox img { margin-inline: auto; width: auto; max-width: 100%; max-height: 75vh; max-height: 75dvh; object-fit: contain; border: 1px solid rgb(var(--gold-rgb) / 0.4); }
.lightbox figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.875rem; line-height: 1.25rem; color: rgb(var(--cream-rgb) / 0.8); }
.lightbox .count { display: block; margin-top: 0.5rem; font-size: 0.75rem; color: var(--gold); }
.lb-btn { position: absolute; color: var(--gold); }
.lb-btn:hover { background: var(--gold); color: var(--cocoa); }
.lb-btn .icon { width: 1.5rem; height: 1.5rem; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 0.25rem; }
.lb-next { right: 0.25rem; }
@media (min-width: 768px) { .lb-prev { left: 1.5rem; } .lb-next { right: 1.5rem; } }

/* 15. REVEAL / MOTION ---------------------------------------------------------- */
.page-in { animation: page-in 0.6s ease-out both; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* reveal delays (classes instead of inline styles, so the security policy can block inline CSS) */
.js .d-60 { transition-delay: 60ms; } .js .d-80 { transition-delay: 80ms; } .js .d-100 { transition-delay: 100ms; }
.js .d-120 { transition-delay: 120ms; } .js .d-160 { transition-delay: 160ms; } .js .d-200 { transition-delay: 200ms; }
.js .d-240 { transition-delay: 240ms; } .js .d-300 { transition-delay: 300ms; }

@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes loader-out { 0%, 70% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes announcement-scroll { to { transform: translateX(-50%); } }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 16. REDUCED MOTION ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .announcement-track { animation: none; width: 100%; }
  .announcement-group:first-child { width: 100%; flex-wrap: wrap; justify-content: center; }
  .announcement-group:last-child { display: none; }
  .announcement-item { white-space: normal; }
}
