/* Mncvcdii Group — custom styles (Tailwind handles utilities) */

/* Self-hosted Poppins (latin) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-v24-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-v24-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-v24-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-v24-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-v24-latin-800.woff2") format("woff2");
}

/* Tokens */
:root {
  --navy: #0d192a;
  --navy-soft: #142238;
  --gold: #e3b123;
  --gold-soft: #f2cd5c;
  --cream: #f5f6f8;
  --surface: #f2f3f5;
  --ink: #0d192a;
  --ink-muted: #5b6472;
  --line: #e3e6ea;
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.text-muted {
  color: var(--ink-muted);
}

h1,
h2 {
  text-wrap: balance;
}

a.text-muted:hover {
  color: var(--navy);
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Page loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

#page-loader img {
  width: 72px;
  height: 72px;
  animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Eyebrow label (used on dark banners) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Section heading: title, divider, short description */
.section-head {
  display: inline-block;
  background: #ffffff;
  padding: 0.2rem 0;
}

.section-head--plain {
  background: transparent;
}

.section-head__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.section-head__divider {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  margin: 0.9rem 0;
}

.section-head__desc {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

@media (min-width: 768px) {
  .section-head__title {
    font-size: 2.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

/* Smaller button in the navbar (header height is unchanged) */
#site-header .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-soft);
}

.btn-outline-light {
  border-color: rgba(245, 246, 248, 0.35);
  color: var(--cream);
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-navy {
  border-color: rgba(13, 25, 42, 0.2);
  color: var(--navy);
}

.btn-outline-navy:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

/* Scroll reveal */
.js-reveal .reveal {
  opacity: 0;
}

.js-reveal .reveal.is-visible {
  animation: reveal-in 0.6s ease forwards;
}

.js-reveal .reveal:nth-child(2) { animation-delay: 0.1s; }
.js-reveal .reveal:nth-child(3) { animation-delay: 0.2s; }
.js-reveal .reveal:nth-child(4) { animation-delay: 0.3s; }

@keyframes reveal-in {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(227, 177, 35, 0.14);
  transition: box-shadow 0.25s ease;
}

#site-header.scrolled {
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.6);
}

/* Logo lockup */
.logo {
  /* height of the brand wording: name + gap + tagline */
  --logo-h: calc(1.2rem + 5px + 0.6rem);
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.logo-desc {
  margin-top: 5px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Logo options (see the commented options in the header and footer) */
.logo--caps .logo-name {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo--fit .logo-name,
.logo--fit .logo-desc {
  align-self: flex-start;
  white-space: nowrap;
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo--mark {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  height: var(--logo-h);
  width: var(--logo-h);
  object-fit: contain;
}

.logo--wide {
  flex-direction: row;
  align-items: center;
}

.logo-wide {
  display: block;
  height: var(--logo-h);
  width: auto;
}

/* Nav links */
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(245, 246, 248, 0.78);
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--cream);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--gold);
}

/* Mobile nav */
#mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-nav.open {
  max-height: 420px;
  border-top: 1px solid rgba(227, 177, 35, 0.1);
}

#nav-toggle span {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

#nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Photo background with dark overlay */
.bg-photo {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(13, 25, 42, 0.4), rgba(13, 25, 42, 0.4)), url("../images/background.webp");
  background-size: cover;
  background-position: center;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 81px);
  min-height: calc(100svh - 81px);
  padding: 4rem 0 6rem;
}

/* Scroll cue (hero) */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 246, 248, 0.35);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.8rem;
  transform: translateX(-50%);
  animation: cue-bob 2s ease-in-out infinite;
}

.scroll-cue:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

.hero-accent {
  color: var(--gold);
}

.hero-enter {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 0.7s ease forwards;
  animation-delay: 0.45s;
}

.hero-enter.delay-1 { animation-delay: 0.53s; }
.hero-enter.delay-2 { animation-delay: 0.61s; }
.hero-enter.delay-3 { animation-delay: 0.69s; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
  #page-loader img {
    animation-duration: 2.5s;
  }
  .scroll-cue {
    animation: none;
  }
  .js-reveal .reveal {
    opacity: 1;
  }
  .js-reveal .reveal.is-visible {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Page banner (inner pages) */
.page-header {
  position: relative;
  overflow: hidden;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(227, 177, 35, 0.55);
  box-shadow: 0 20px 40px -24px rgba(13, 25, 42, 0.35);
  transform: translateY(-3px);
}

.brand-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: rgba(227, 177, 35, 0.18);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Icon box */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-box--sm {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* Brand family tree */
.tree-parent {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: 0.9rem 1.6rem;
  text-align: center;
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 12px;
}

.tree-parent-name {
  display: block;
  font-weight: 600;
  color: #fff;
}

.tree-parent-role {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--gold);
}

.tree-children {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.tree-child {
  position: relative;
  padding: 0.9rem 0.6rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.tree-child:hover {
  border-color: var(--gold);
}

.tree-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.tree-role {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* Tree connector lines (tablet and up) */
@media (min-width: 640px) {
  .tree-children {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
  }

  .tree-parent::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 20px;
    margin-left: -1px;
    background: rgba(227, 177, 35, 0.7);
  }

  .tree-children::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc((100% - 24px) / 6);
    right: calc((100% - 24px) / 6);
    height: 2px;
    background: rgba(227, 177, 35, 0.7);
  }

  .tree-child::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -20px;
    width: 2px;
    height: 20px;
    margin-left: -1px;
    background: rgba(227, 177, 35, 0.7);
  }
}

/* Footer */
#site-footer {
  background: var(--navy);
  color: rgba(245, 246, 248, 0.72);
}

#site-footer a:hover {
  color: var(--gold);
}

.footer-bottom,
.footer-bottom p,
.footer-bottom a {
  font-size: 0.8rem;
  font-weight: 400;
}

.footer-sep {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  background: rgba(245, 246, 248, 0.3);
}

#site-footer .designer-link {
  color: var(--gold);
}

#site-footer .designer-link:hover {
  color: rgba(245, 246, 248, 0.72);
}

.footer-heading {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact-item i {
  color: var(--gold);
  width: 16px;
  text-align: center;
  margin-top: 0.2rem;
  font-size: 0.88rem;
}

/* Social icons */
.social-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(227, 177, 35, 0.3);
  color: rgba(245, 246, 248, 0.85);
  font-size: 0.88rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#site-footer .social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Contact form */
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 177, 35, 0.18);
  outline: none;
}

/* Misc */
.marker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Floating buttons */
#float-actions {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + var(--cookie-h, 0px));
  transition: bottom 0.35s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.float-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
}

.float-btn--whatsapp {
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
}

.float-btn--whatsapp:hover {
  background: #20bd5a;
}

/* Back to top: collapses when hidden so WhatsApp drops down */
#back-to-top {
  background: var(--gold);
  color: var(--navy);
  height: 0;
  margin-top: -0.75rem;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  box-shadow: none;
  transition: height 0.25s ease, margin 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, background-color 0.2s ease;
}

#back-to-top.show {
  height: 48px;
  margin-top: 0;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}

#back-to-top:hover {
  background: var(--gold-soft);
}

/* Brand logos */
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 22%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.3rem;
}

.brand-icon--lg {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

/* Brand rows (Brands page) */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.brand-row {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem;
}

.brand-row__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-row__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.work-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  cursor: zoom-in;
}

/* Expand icon: shows visitors the picture opens */
.work-tile::after {
  content: "065";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(13, 25, 42, 0.72);
  color: #fff;
  font-size: 0.72rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.work-tile:hover::after,
.work-tile:focus-visible::after {
  background: var(--gold);
  color: var(--navy);
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-tile:hover img {
  transform: scale(1.06);
}

@media (min-width: 768px) {
  .brand-row {
    grid-template-columns: 2fr 3fr;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
  }
}

/* Form status */
.form-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: #1f7a3d;
}

.form-status.is-error {
  color: #b42318;
}

/* Legal text (privacy) */
.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.legal p,
.legal ul {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal li {
  margin-top: 0.4rem;
}

.legal a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

/* Cookie notice */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 100%;
  background: var(--navy);
  color: rgba(245, 246, 248, 0.85);
  border-top: 1px solid rgba(227, 177, 35, 0.25);
  box-shadow: 0 -12px 30px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s ease;
}

#cookie-banner.show {
  transform: translateY(0);
  visibility: visible;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cookie-actions a {
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.cookie-actions a:hover {
  color: var(--gold);
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* Gallery viewer */
.gallery {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(7, 12, 22, 0.985);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery[hidden] {
  display: none;
}

.gallery.is-open {
  opacity: 1;
}

body.gallery-open {
  overflow: hidden;
}

.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--cream);
}

.gallery__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.gallery__count {
  margin-top: 2px;
  font-size: 0.8rem;
  color: rgba(245, 246, 248, 0.6);
}

.gallery__bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gallery__close,
.gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--cream);
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.gallery__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 246, 248, 0.3);
}

.gallery__close:hover,
.gallery__nav:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.gallery__stage {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}

.gallery__track {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 1.5rem;
  scroll-snap-align: center;
}

.gallery__slide img {
  transform: scale(0.9);
  transition: transform 0.35s ease;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  border-radius: 10px;
}

.gallery.is-open .gallery__slide img {
  transform: scale(1);
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  background: rgba(13, 25, 42, 0.85);
  border: 1px solid rgba(227, 177, 35, 0.4);
}

.gallery__nav--prev {
  left: 0.75rem;
}

.gallery__nav--next {
  right: 0.75rem;
}

.gallery__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

@media (min-width: 768px) {
  .gallery__slide {
    padding: 0 5rem 1.5rem;
  }
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(227, 177, 35, 0.55);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.faq-answer a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

/* Cookie settings panel */
#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 12, 22, 0.7);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#cookie-modal[hidden] {
  display: none;
}

#cookie-modal.is-open {
  opacity: 1;
}

body.cc-open {
  overflow: hidden;
}

.cc-panel {
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  color: var(--ink);
}

.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cc-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.cc-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
}

.cc-close:hover {
  border-color: var(--gold);
}

.cc-intro {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.cc-list {
  margin-top: 1rem;
}

.cc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.cc-row__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.cc-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  margin-top: 2px;
}

.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.cc-switch input:disabled {
  cursor: not-allowed;
}

.cc-switch__ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9ced6;
  transition: background-color 0.2s ease;
}

.cc-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-switch__ui {
  background: var(--gold);
}

.cc-switch input:checked + .cc-switch__ui::after {
  transform: translateX(20px);
}

.cc-switch input:disabled + .cc-switch__ui {
  opacity: 0.6;
}

.cc-switch input:focus-visible + .cc-switch__ui {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.cc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  #cookie-modal,
  .gallery__slide img,
  .gallery,
  #cookie-banner,
  #float-actions {
    transition: none;
  }
}
