/* =========================================================
   VELVETTE — Luxury Beauty Parlour
   Black & Gold Design System
   ========================================================= */

:root {
  --black-deep: #0b0b0b;
  --black-charcoal: #151515;
  --black-card: #181614;
  --gold: #d4af37;
  --gold-light: #e8c96a;
  --gold-champagne: #f2d98d;
  --white: #ffffff;
  --gray-soft: #b8b8b8;

  --gold-gradient: linear-gradient(
    120deg,
    #b8892b 0%,
    #d4af37 35%,
    #f2d98d 60%,
    #d4af37 85%,
    #b8892b 100%
  );
  --gold-gradient-soft: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.14),
    rgba(212, 175, 55, 0)
  );

  --font-display: "Cormorant Garamond", serif;
  --font-label: "Cinzel", serif;
  --font-body: "Poppins", sans-serif;

  --container: 1240px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--black-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--gold);
  color: var(--black-deep);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 120px 0;
  position: relative;
}
.section-tight {
  padding: 80px 0;
}
.section-alt {
  background: var(--black-charcoal);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-gradient);
}
@media(max-width:500px){
  .eyebrow::before{
    display: none;
     width: 34px;
  height: 1px;
  background: var(--gold-gradient);
  }
}
.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}
.section-head.center {
    display: flex;
    flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: 0.3px;
}
h1 {
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.05;
  font-weight: 500;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}
h3 {
  font-size: 26px;
}
p {
  color: var(--gray-soft);
  margin: 0 0 16px;
  font-weight: 300;
}

.gold {
  color: var(--gold);
}
.serif-italic {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--gold-light);
}

/* signature underline flourish */
.flourish-title {
  position: relative;
  display: inline-block;
}
.flourish-title .draw {
  position: relative;
  display: inline-block;
}
.flourish-title .draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.flourish-title.in-view .draw::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 17px 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-gradient);
  background-size: 200% 100%;
  color: var(--black-deep);
  font-weight: 600;
}
.btn-gold:hover {
  background-position: 100% 0;
  box-shadow: 0 8px 30px -6px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.03);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}
.btn-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.btn-sm {
  padding: 12px 26px;
  font-size: 11px;
}

.text-link {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 4px;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.text-link:hover::after {
  transform: scaleX(1);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black-deep);
  overflow: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Keep the logo and loader ring at the exact viewport centre on every screen. */
.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-label);
  font-size: 20px;
  letter-spacing: 6px;
  color: var(--gold-light);
  text-transform: uppercase;
}
.preloader-logo img {
  height: 90px;
  width: 90px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.35));
}
.loader-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  margin-top: -55px;
  margin-left: -55px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-top-color: var(--gold);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 26px 0;
  transition: all 0.45s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 16px 0;
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  display: block;
  transition: height 0.45s ease, width 0.45s ease;
}
.navbar.scrolled .logo img {
  height: 48px;
  width: 48px;
}
.logo span {
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gray-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 26px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 1px;
  background: var(--gold-light);
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 84vw);
  height: 100vh;
  background: var(--black-charcoal);
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 1100;
  padding: 100px 34px 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-soft);
}
.mobile-menu a:hover {
  color: var(--gold-light);
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
video.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.55) 0%,
    rgba(5, 5, 5, 0.72) 55%,
    rgba(5, 5, 5, 0.95) 100%
  );
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero .eyebrow {
  opacity: 0;
  animation: fadeUp 0.9s 0.3s ease forwards;
}
.hero h1 {
  opacity: 0;
  animation: fadeUp 1s 0.5s ease forwards;
}
.hero p.lead {
  opacity: 0;
  animation: fadeUp 1s 0.75s ease forwards;
  font-size: 18px;
  max-width: 540px;
}
.hero .btn-row {
  opacity: 0;
  animation: fadeUp 1s 1s ease forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  color: var(--gray-soft);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
  overflow: hidden;
}
.page-hero .hero-content {
  padding-top: 120px;
  max-width: none;
}
.page-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 468px;
  flex-wrap: wrap;
}
.page-hero-left {
  flex: 1;
  min-width: 280px;
}
.page-hero-left h1 {
  margin-bottom: 0;
}
.page-hero-right {
  text-align: right;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.page-hero-right .breadcrumb {
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .page-hero-right {
    text-align: left;
    padding-bottom: 0;
  }
  .page-hero-right .breadcrumb {
    justify-content: flex-start;
  }
}

/* ---------- Media frame ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.media-frame:hover img {
  transform: scale(1.06);
}
.img-fallback {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(212, 175, 55, 0.18),
      transparent 55%
    ),
    linear-gradient(150deg, #1c1a16, #0e0d0b 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--gold-light);
  text-transform: uppercase;
}

/* ---------- Category / Service Cards ---------- */
.grid {
  display: grid;
  gap: 30px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cat-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: var(--black-card);
  transition:
    border-color 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.cat-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.8);
}
.cat-card .thumb {
  height: 230px;
  overflow: hidden;
  position: relative;
}
.cat-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.cat-card:hover .thumb img {
  transform: scale(1.12);
}
.cat-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(11, 11, 11, 0.9) 100%
  );
}
.cat-card .icon {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(11, 11, 11, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 16px;
}
.cat-card .body {
  padding: 26px 26px 30px;
}
.cat-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Service cards (grid list) ---------- */
.svc-card {
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: var(--black-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
}
.svc-card .thumb {
  height: 190px;
  overflow: hidden;
}
.svc-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.svc-card:hover .thumb img {
  transform: scale(1.1);
}
.svc-card .body {
  padding: 22px 24px 26px;
}
.svc-card .row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.svc-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0;
  color: var(--white);
}
.svc-card .price {
  font-family: var(--font-label);
  color: var(--gold-light);
  font-size: 13px;
  white-space: nowrap;
}
.svc-card p {
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 74px;
  align-items: center;
}
.split .media-frame {
  aspect-ratio: 4/5;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 36px 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-soft);
  text-transform: uppercase;
}

/* ---------- Why choose us ---------- */
.feature {
  padding: 34px 30px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-md);
  background: linear-gradient(
    160deg,
    rgba(212, 175, 55, 0.05),
    transparent 60%
  );
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}
.feature:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-4px);
}
.feature .ic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 19px;
  margin-bottom: 20px;
}
.feature h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--white);
}
.feature p {
  font-size: 14px;
  margin: 0;
}

/* ---------- Team ---------- */
.team-card {
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: var(--black-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
}
.team-card .thumb {
  aspect-ratio: 3/3.6;
  overflow: hidden;
}
.team-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s ease,
    filter 0.5s ease;
  filter: grayscale(30%);
}
.team-card:hover .thumb img {
  transform: scale(1.08);
  filter: grayscale(0%);
}
.team-card .body {
  padding: 20px 22px 24px;
  text-align: center;
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 2px;
}
.team-card .role {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.team-card .socials {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.team-card .socials a {
  color: var(--gray-soft);
  font-size: 13px;
  transition: color 0.3s ease;
}
.team-card .socials a:hover {
  color: var(--gold);
}

/* ---------- Bridal band ---------- */
.bridal-band {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 560px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.bridal-band .img-side {
  position: relative;
}
.bridal-band .img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bridal-band .content-side {
  background: var(--black-charcoal);
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bridal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 26px 0 34px;
}
.bridal-list li {
  font-size: 14px;
  color: var(--gray-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bridal-list li::before {
  content: "\2726";
  color: var(--gold);
  font-size: 11px;
}

/* ---------- Before / After ---------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: ew-resize;
  user-select: none;
}
.ba-slider .ba-after,
.ba-slider .ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider .ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}
.ba-slider .ba-before-wrap img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
}
.ba-slider .ba-before-wrap img.wfix {
  width: var(--ba-w, 600px);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  transform: translateX(-1px);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}
.ba-handle::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ba-tag {
  position: absolute;
  top: 16px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(11, 11, 11, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.ba-tag.before {
  left: 16px;
}
.ba-tag.after {
  right: 16px;
}
.ba-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.ba-tab {
  padding: 9px 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-soft);
  font-family: var(--font-label);
}
.ba-tab.active {
  background: var(--gold-gradient);
  color: var(--black-deep);
  border-color: transparent;
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.gallery-filters button {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gray-soft);
  padding: 9px 22px;
  border-radius: 30px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.gallery-filters button.active,
.gallery-filters button:hover {
  background: var(--gold-gradient);
  color: var(--black-deep);
  border-color: transparent;
}
.masonry {
  columns: 4 260px;
  column-gap: 20px;
}
.masonry .g-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.14);
}
.masonry .g-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.masonry .g-item:hover img {
  transform: scale(1.08);
}
.masonry .g-item .g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: all 0.35s ease;
}
.masonry .g-item:hover .g-overlay {
  opacity: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 11, 11, 0.88));
}
.masonry .g-item .g-overlay span {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--gold-light);
  font-size: 28px;
  background: none;
  border: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 16px;
}
.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

/* ---------- Kids Certificate Popup ---------- */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 20px;
}
.cert-modal.open {
  opacity: 1;
  visibility: visible;
}
.cert-modal-box {
  background: var(--black-card);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  padding: 30px;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.cert-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--gold-light);
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.cert-modal-box img {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.cert-modal-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-light);
  margin: 0 0 4px;
}
.cert-modal-service {
  color: var(--gray-soft);
  font-size: 14px;
  margin: 0 0 20px;
}
.cert-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cert-status {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-soft);
}
.cert-status i {
  font-size: 34px;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
#qr-reader {
  max-width: 420px;
  margin: 0 auto 24px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cert-manual-entry {
  max-width: 380px;
  margin: 26px auto 0;
  display: flex;
  gap: 10px;
}
.cert-manual-entry input {
  flex: 1;
  background: var(--black-charcoal);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--white);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}
.cert-manual-entry input::placeholder {
  color: var(--gray-soft);
}

/* ---------- Pricing ---------- */
.price-card {
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--radius-md);
  padding: 44px 34px;
  background: var(--black-card);
  position: relative;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
}
.price-card.popular {
  border-color: var(--gold);
  box-shadow: 0 0 60px -18px rgba(212, 175, 55, 0.4);
}
.price-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: var(--black-deep);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 20px;
}
.price-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold-light);
  margin: 16px 0;
}
.price-card .price span {
  font-size: 14px;
  color: var(--gray-soft);
  font-family: var(--font-body);
}
.price-card ul {
  margin: 26px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card ul li {
  font-size: 13.5px;
  color: var(--gray-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card ul li::before {
  content: "\2726";
  color: var(--gold);
  font-size: 10px;
  margin-top: 4px;
}

/* ---------- Offers ---------- */
.offer-card {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--black-card);
  display: flex;
  flex-direction: column;
}
.offer-card .thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.offer-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer-card .discount {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold-gradient);
  color: var(--black-deep);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 30px;
}
.offer-card .body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.offer-card .price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 6px;
}
.offer-card .price-line .old {
  text-decoration: line-through;
  color: #7a7a7a;
  font-size: 14px;
}
.offer-card .price-line .new {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 26px;
}
.offer-card .expiry {
  font-size: 11.5px;
  letter-spacing: 1px;
  color: #9a9a9a;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- Testimonials ---------- */
.testi-track {
  overflow: hidden;
}
.testi-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.testi-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
}
.testi-card {
  max-width: 680px;
  text-align: center;
  padding: 0 20px;
}
.testi-quote {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-champagne);
  position: relative;
}
.testi-quote::before {
  content: "\201C";
  font-size: 70px;
  color: rgba(212, 175, 55, 0.35);
  display: block;
  font-family: var(--font-display);
  line-height: 0;
  margin-bottom: 14px;
}
.testi-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 26px auto 14px;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-name {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
}
.testi-role {
  font-size: 12px;
  color: var(--gray-soft);
  margin-top: 2px;
}
.testi-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  margin-top: 8px;
}
.testi-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}
.testi-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  border: none;
  padding: 0;
}
.testi-dots button.active {
  background: var(--gold);
}

/* ---------- Instagram grid ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.insta-grid a {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
}
.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.4s ease;
  filter: grayscale(20%);
}
.insta-grid a:hover img {
  transform: scale(1.12);
  filter: grayscale(0%);
}
.insta-grid a::after {
  content: "\f16d";
  font-family: "Font Awesome 6 Brands";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 20px;
  background: rgba(11, 11, 11, 0);
  opacity: 0;
  transition: all 0.35s ease;
}
.insta-grid a:hover::after {
  opacity: 1;
  background: rgba(11, 11, 11, 0.55);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: 110px 0;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at center,
      rgba(212, 175, 55, 0.08),
      transparent 65%
    ),
    var(--black-charcoal);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.cta-band h2 {
  max-width: 720px;
  margin: 0 auto 18px;
}
.cta-band p {
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta-contacts {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.cta-contacts a {
  font-size: 13.5px;
  color: var(--gray-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-contacts a:hover {
  color: var(--gold-light);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--black-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 48px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: var(--font-label);
}
.field input,
.field select,
.field textarea {
  background: var(--black-deep);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--white);
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4AF37' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-note {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 10px;
}
.success-msg {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-size: 13.5px;
  margin-top: 20px;
}
.success-msg.show {
  display: flex;
}

/* ---------- Contact info blocks ---------- */
.info-card {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.info-card:last-child {
  border-bottom: none;
}
.info-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.info-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--white);
}
.info-card p {
  font-size: 13.5px;
  margin: 0;
}
.map-frame {
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  filter: grayscale(65%) invert(92%) contrast(90%);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Blog ---------- */
.blog-card {
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--black-card);
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
}
.blog-card .thumb {
  height: 210px;
  overflow: hidden;
}
.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .thumb img {
  transform: scale(1.08);
}
.blog-card .body {
  padding: 24px 26px 28px;
}
.blog-meta {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  font-family: var(--font-label);
}
.blog-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.blog-card p {
  font-size: 13.5px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--black-charcoal);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-grid h5 {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-grid ul a {
  font-size: 13.5px;
  color: var(--gray-soft);
  transition: color 0.3s ease;
}
.footer-grid ul a:hover {
  color: var(--gold);
}
.footer-about p {
  font-size: 13.5px;
  max-width: 280px;
}
.footer-about .logo img {
  height: 84px;
  width: 84px;
}
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 13px;
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--black-deep);
}
.newsletter {
  display: flex;
  margin-top: 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 13px 14px;
  color: var(--white);
  font-size: 13px;
}
.newsletter input:focus {
  outline: none;
}
.newsletter button {
  background: var(--gold-gradient);
  border: none;
  padding: 0 18px;
  color: var(--black-deep);
  font-family: var(--font-label);
  font-size: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 26px 0;
  text-align: center;
  font-size: 12.5px;
  color: #8c8c8c;
}

/* ---------- Floating buttons ---------- */
.float-wa {
  position: fixed;
  bottom: 99px;
  right: 27px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f1f1f;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  font-size: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}
.float-wa:hover {
  transform: scale(1.08);
}
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--black-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
  
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view {
  transition-delay: 0.1s;
}
.reveal-delay-2.in-view {
  transition-delay: 0.2s;
}
.reveal-delay-3.in-view {
  transition-delay: 0.3s;
}

/* animated counters container just uses JS */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-soft);
  font-family: var(--font-label);
  display: flex;
  align-items: center;
}
.breadcrumb a {
  color: var(--gray-soft);
}
.breadcrumb a:hover {
  color: var(--gold-light);
}
.breadcrumb span {
  color: var(--gold);
  margin: 0 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .masonry {
    columns: 3 220px;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bridal-band {
    grid-template-columns: 1fr;
  }
  .bridal-band .img-side {
    height: 320px;
  }
  .bridal-band .content-side {
    padding: 50px 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }
  .container {
    text-align: center;
    padding: 0 20px;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry {
    columns: 1;
  }
  .price-card {
    padding: 34px 24px;
  }
  .form-card {
    padding: 28px;
  }
  .nav-cta .btn {
    display: none;
  }
}


/* ---------- Inner pages: centered content (index.html excluded) ---------- */
body.inner-page .page-hero {
  align-items: center;
  padding-bottom: 0;
}

body.inner-page .page-hero .hero-content {
  width: 100%;
  max-width: var(--container);
  padding-top: 110px;
}

body.inner-page .page-hero-inner {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

body.inner-page .page-hero-left {
  flex: 0 1 auto;
  width: 100%;
  max-width: 900px;
  min-width: 0;
}

body.inner-page .page-hero-left .eyebrow,
body.inner-page .section-head .eyebrow,
body.inner-page .split > div:not(.media-frame) > .eyebrow,
body.inner-page .price-card > .eyebrow {
  justify-content: center;
}

body.inner-page .page-hero-right {
  width: 100%;
  text-align: center;
  padding-bottom: 0;
}

body.inner-page .page-hero-right .breadcrumb,
body.inner-page .breadcrumb {
  justify-content: center;
}

body.inner-page .section-head,
body.inner-page .section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

body.inner-page .cat-card .body,
body.inner-page .svc-card .body,
body.inner-page .feature,
body.inner-page .offer-card .body,
body.inner-page .blog-card .body,
body.inner-page .price-card {
  text-align: center;
}

body.inner-page .feature .ic {
  margin-left: auto;
  margin-right: auto;
}

body.inner-page .svc-card .row-top,
body.inner-page .offer-card .price-line {
  justify-content: center;
  flex-wrap: wrap;
}

body.inner-page .split > div:not(.media-frame) {
  text-align: center;
}

body.inner-page .split > div:not(.media-frame) .btn {
  margin-left: auto;
  margin-right: auto;
}

body.inner-page .info-card {
  justify-content: flex-start;
  text-align: left;
}

body.inner-page .cert-status,
body.inner-page .cert-modal-box,
body.inner-page .cert-manual-entry,
body.inner-page #qr-output {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  body.inner-page .page-hero {
    min-height: 52vh;
    align-items: center;
    padding-bottom: 0;
  }

  body.inner-page .page-hero .hero-content {
    padding-top: 96px;
  }

  body.inner-page .page-hero-inner {
    align-items: center;
    gap: 12px;
  }

  body.inner-page .page-hero-left,
  body.inner-page .page-hero-right {
    text-align: center;
    width: 100%;
  }

  body.inner-page .page-hero-right .breadcrumb,
  body.inner-page .breadcrumb {
    justify-content: center;
  }

  body.inner-page .split > div:not(.media-frame) {
    text-align: center;
  }

  body.inner-page .info-card {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  body.inner-page .cert-manual-entry {
    width: 100%;
  }
}

/* ---------- Certificate pages: mobile-only arrangement ---------- */
@media (max-width: 640px) {
  /* Scope every rule to certificate pages so desktop and all other pages stay unchanged. */
  body.certificate-ui-page {
    overflow-x: hidden;
  }

  /* The search page has no page hero, so clear the fixed mobile navbar. */
  body.certificate-scan-page > .section {
    padding-top: 150px;
    padding-bottom: 64px;
    min-height: calc(100dvh - 165px);
    display: flex;
    align-items: flex-start;
  }

  body.certificate-scan-page > .section > .container,
  body.certificate-admin-page > .section > .container,
  body.certificate-view-page > .section > .container {
    width: 100%;
    max-width: 100% !important;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.certificate-scan-page .section-head {
    width: 100%;
    max-width: 100%;
    margin-bottom: 28px;
  }

  body.certificate-scan-page .flourish-title {
    margin-bottom: 0;
  }

  body.certificate-scan-page .flourish-title .draw {
    display: inline-block;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  /* Stack certificate number field and action button on narrow screens. */
  body.certificate-ui-page .cert-manual-entry {
    width: 100%;
    max-width: 430px;
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.certificate-ui-page .cert-manual-entry input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 14px 15px;
    font-size: 16px;
    text-align: left;
  }

  body.certificate-ui-page .cert-manual-entry .btn,
  body.certificate-ui-page #qr-generate-btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body.certificate-scan-page #manual-error {
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
  }

  /* Certificate popup: keep the whole card inside the phone viewport. */
  body.certificate-ui-page .cert-modal {
    padding: 8px;
    align-items: center;
  }

  body.certificate-ui-page .cert-modal-box {
    width: 100%;
    max-width: 430px;
    max-height: 96dvh;
    padding: 14px 12px 16px;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.certificate-ui-page .cert-modal-close {
    top: 7px;
    right: 7px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 50%;
    background: rgba(8, 8, 8, 0.78);
    font-size: 28px;
  }

  body.certificate-ui-page .cert-modal-box img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    margin: 0 auto 13px;
    border-radius: 6px;
  }

  body.certificate-ui-page .cert-modal-name {
    padding: 0 6px;
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.certificate-ui-page .cert-modal-service {
    padding: 0 6px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  body.certificate-ui-page .cert-modal-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.certificate-ui-page .cert-modal-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  body.certificate-view-page .cert-status {
    width: 100%;
    max-width: 430px;
    padding: 42px 12px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
  }

  /* Keep certificate page hero readable on shorter phones. */
  body.certificate-view-page .page-hero {
    min-height: 46dvh;
  }

  body.certificate-view-page .page-hero .hero-content {
    padding-top: 92px;
  }

  body.certificate-view-page .page-hero-left h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  /* Staff QR page: prevent generated QR/link from overflowing small screens. */
  body.certificate-admin-page .page-hero {
    min-height: 42dvh !important;
  }

  body.certificate-admin-page .page-hero-left h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.08;
  }

  body.certificate-admin-page #qr-output {
    width: 100%;
    max-width: 100%;
  }

  body.certificate-admin-page #qr-canvas-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  body.certificate-admin-page #qr-canvas-wrap canvas,
  body.certificate-admin-page #qr-canvas-wrap img {
    max-width: 100% !important;
    height: auto !important;
  }

  body.certificate-admin-page #qr-link-preview {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.certificate-admin-page #qr-download-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

