/* ==========================================================================
   HÉDI CAHYA — PEINTRE DE LA MÉDINA
   Design System & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --sable: #e9dcc3;
  --sable-clair: #f4ecd9;
  --terracotta: #b5562f;
  --terracotta-hover: #983f1d;
  --bleu-porte: #2f5a7a;
  --bleu-nuit: #1f2f3d;
  --bleu-profond: #121c26;
  --ocre: #c98a3a;
  --ocre-clair: #df9e4f;
  --or-delicat: #dfb26c;
  --encre: #2a2420;
  --papier: #fbf6ec;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--papier);
  color: var(--encre);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.signature {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- NAV & ADAPTIVE HEADER ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              color 0.4s ease;
}

/* Identical text properties across all themes to prevent any layout shifts */
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  transition: color 0.4s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
  margin: 0;
  transition: color 0.4s ease, opacity 0.25s ease;
}

/* Theme Dark (Hero & Galerie) */
header.theme-dark,
header:not(.scrolled) {
  color: #fff;
}

header.theme-dark .brand,
header:not(.scrolled) .brand {
  color: #fff;
}

header.theme-dark nav a,
header:not(.scrolled) nav a {
  color: #fff;
}

header.theme-dark nav a:hover,
header:not(.scrolled) nav a:hover {
  color: var(--or-delicat);
}

header.theme-dark .nav-toggle span,
header:not(.scrolled) .nav-toggle span {
  background: #fff;
}

/* Theme Light (Biographie, Parcours, Contact) */
header.theme-light {
  color: var(--bleu-nuit);
}

header.theme-light .brand {
  color: var(--bleu-nuit);
}

header.theme-light nav a {
  color: var(--bleu-nuit);
  font-weight: 400;
}

header.theme-light nav a:hover {
  color: var(--terracotta);
}

header.theme-light .nav-toggle span {
  background: var(--bleu-nuit);
}

/* Scrolled state (crisp solid background without backdrop-filter to prevent mobile rendering bugs) */
header.scrolled.theme-dark {
  background: #0e1620;
  border-bottom: 1px solid rgba(201, 138, 58, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

header.scrolled.theme-light {
  background: #fbf6ec;
  border-bottom: 1px solid rgba(216, 200, 164, 0.85);
  box-shadow: 0 4px 20px rgba(42, 36, 32, 0.1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  transition: 0.3s;
}

.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);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background: #1a1410;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.15) 0%, rgba(15, 10, 8, 0.15) 40%, rgba(10, 7, 5, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 8vh;
  color: var(--sable-clair);
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #dfb26c;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--ocre);
}

.hero-desc {
  font-size: 1.05rem;
  max-width: 520px;
  color: #e6dcc9;
  font-weight: 300;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: #fff;
  padding: 14px 28px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--terracotta-hover);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 6vw;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbb98f;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: #cbb98f;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ocre);
  animation: dripline 2.2s ease-in-out infinite;
}

@keyframes dripline {
  0% {
    top: -100%;
  }

  60% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* ---------- SECTION GENERIC ---------- */
section {
  padding: 110px 6vw;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--terracotta);
}

/* ---------- BIO ---------- */
.bio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
  background: var(--sable);
}

.bio-grid {
  display: contents;
}

.bio-portrait {
  position: relative;
}

.bio-portrait .frame {
  border: 1px solid var(--ocre);
  padding: 18px;
  background: #fff;
}

.bio-portrait img {
  width: 100%;
}

.bio-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  margin-top: 16px;
  color: #5a4c38;
}

.bio h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 26px;
  color: var(--bleu-nuit);
}

.bio p {
  margin-bottom: 18px;
  color: #3a3226;
  font-size: 1.02rem;
  max-width: 560px;
}

.bio-facts {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.bio-facts div {
  border-left: 1px solid var(--ocre);
  padding-left: 16px;
}

.bio-facts .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: var(--terracotta);
  display: block;
}

.bio-facts .lbl {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5d47;
}

/* ---------- ITINERAIRE ---------- */
.itineraire {
  background: var(--papier);
}

.itineraire h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--bleu-nuit);
  max-width: 700px;
  margin-bottom: 40px;
}

.itineraire .lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--terracotta);
  max-width: 760px;
  margin-bottom: 50px;
  line-height: 1.5;
}

.expo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  border-top: 1px solid #d8c8a4;
}

.expo-item {
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid #d8c8a4;
}

.expo-item .year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--bleu-porte);
}

.expo-item .place {
  font-size: 0.85rem;
  color: #5a4c38;
  margin-top: 4px;
}

/* ---------- GALERIE DES 55 OEUVRES ---------- */
.galerie {
  background: var(--bleu-nuit);
  color: #eee2c9;
}

.galerie .eyebrow {
  color: var(--ocre);
}

.galerie .eyebrow::before {
  background: var(--ocre);
}

.galerie h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 16px;
  color: #fff;
}

.galerie>.section-header>p {
  max-width: 600px;
  color: #c9bda0;
  margin-bottom: 40px;
}

/* Gallery Controls */
.gallery-controls {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid rgba(216, 200, 164, 0.15);
  padding-bottom: 4px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: #a49987;
  padding: 10px 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

.filter-btn::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.filter-btn:hover {
  color: #fff;
  background: transparent;
}

.filter-btn.active {
  color: #fff;
  font-weight: 500;
  background: transparent;
}

.filter-btn.active::after {
  width: 100%;
}

.filter-btn .count {
  font-size: 0.72rem;
  color: var(--ocre);
  margin-left: 4px;
}

.search-and-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(216, 200, 164, 0.25);
  border-radius: 0;
  padding: 8px 10px 8px 28px;
  color: #fff;
  font-size: 0.88rem;
  font-family: 'Jost', sans-serif;
  transition: border-color 0.25s ease;
}

.search-box input:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}

.search-box input::placeholder {
  color: #7c7263;
  font-weight: 300;
}

.search-icon {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c7263;
  pointer-events: none;
}

.gallery-status {
  font-size: 0.82rem;
  color: #c4b8a2;
}

.gallery-status strong {
  color: var(--or-delicat);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.art-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0f1620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
  transform: translateZ(0);
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 136, 53, 0.5);
}

.art-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3.5;
  overflow: hidden;
}

.art-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.art-card:hover .art-thumb {
  transform: scale(1.06);
}

.art-num-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 15, 20, 0.85);
  color: var(--ocre);
  border: 1px solid rgba(201, 136, 53, 0.3);
  padding: 2px 8px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  z-index: 2;
}

.art-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.art-card:hover .art-hover-overlay {
  opacity: 1;
}

.art-view-pill {
  background: var(--terracotta);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #141e29;
}

.art-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 4px;
}

.art-tech {
  font-size: 0.76rem;
  color: var(--ocre);
  margin-bottom: 4px;
}

.art-dims {
  font-size: 0.74rem;
  color: #a09581;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.art-inquire-link {
  background: transparent;
  border: none;
  color: var(--or-delicat);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.art-inquire-link:hover {
  text-decoration: underline;
}

.empty-gallery-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #a49986;
}

/* ---------- ACQUERIR / CONTACT ---------- */
.acquerir {
  background: var(--sable-clair);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.acquerir h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--bleu-nuit);
  margin-bottom: 22px;
}

.acquerir p {
  color: #4a3f2f;
  margin-bottom: 16px;
  max-width: 480px;
}

.steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.step {
  display: flex;
  gap: 18px;
}

.step .n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--terracotta);
  flex-shrink: 0;
}

.step .t {
  font-size: 0.95rem;
  color: #3a3226;
}

.form-card {
  background: #fff;
  border: 1px solid #e0d3b3;
  padding: 44px;
}

.form-group {
  margin-bottom: 20px;
}

.form-card label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a6c53;
  margin-bottom: 8px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d8c8a4;
  background: transparent;
  padding: 10px 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.98rem;
  color: var(--encre);
  border-radius: 0;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}

.form-card textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  margin-top: 20px;
  width: 100%;
  background: var(--bleu-nuit);
  color: #f4ecd9;
  border: none;
  padding: 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--terracotta);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--bleu-nuit) !important;
}

.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(244, 236, 217, 0.35);
  border-top-color: #f4ecd9;
  border-radius: 50%;
  animation: btnSpin 0.75s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  max-width: 440px;
  width: calc(100% - 40px);
  background: #fdfbf7;
  border: 1px solid #d8c8a4;
  border-left: 5px solid var(--terracotta);
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(24, 18, 12, 0.22);
  padding: 16px 18px;
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  z-index: 3000;
  transform: translateY(25px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast-notification.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.toast-notification.toast-success {
  border-left-color: #3b7a57;
}

.toast-notification.toast-error {
  border-left-color: #b33927;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ede3cf;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-success .toast-icon {
  background: #e4efe7;
  color: #3b7a57;
}

.toast-error .toast-icon {
  background: #fae8e5;
  color: #b33927;
}

.toast-text {
  flex: 1;
}

.toast-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 4px 0;
  color: var(--encre);
}

.toast-message {
  font-family: 'Jost', sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
  color: #615340;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: #93846f;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  transition: color 0.2s, background-color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--encre);
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  .toast-notification {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--bleu-nuit);
  color: #8b8060;
  padding: 50px 6vw 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .brand {
  color: #eee2c9;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .small {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 5vw;
  color: #eee2c9;
  font-size: 1.6rem;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  z-index: 2010;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2010;
}

.lightbox-nav-btn:hover {
  background: var(--terracotta);
}

.lightbox-prev {
  left: 2vw;
}

.lightbox-next {
  right: 2vw;
}

.lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  max-height: 90vh;
}

.lightbox-img {
  max-height: 75vh;
  max-width: 85vw;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-info {
  margin-top: 16px;
  text-align: center;
  color: #eee2c9;
}

.lightbox-num {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 2px;
}

.lightbox-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #fff;
}

.lightbox-meta {
  font-size: 0.84rem;
  color: #c9bda0;
  margin-top: 2px;
}

.lightbox-inquire-btn {
  margin-top: 10px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 6px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-inquire-btn:hover {
  background: var(--terracotta-hover);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  header {
    padding: 14px 5vw;
  }

  .brand {
    font-size: 1.15rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    position: relative;
    z-index: 1005;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
  }

  .nav-toggle.open span {
    background: #fff !important;
  }

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

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

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

  nav ul {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: 280px;
    max-width: 82vw;
    background: #111822 !important;
    flex-direction: column;
    padding: 85px 28px 40px;
    gap: 0;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.7);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(201, 138, 58, 0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav ul.open {
    transform: translateX(0);
  }

  nav ul li {
    width: 100%;
  }

  nav ul a,
  header.theme-light nav ul a,
  header.theme-dark nav ul a {
    color: #fbf6ec !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
    padding: 16px 0 !important;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  nav ul a:hover,
  header.theme-light nav ul a:hover,
  header.theme-dark nav ul a:hover {
    color: var(--or-delicat) !important;
    padding-left: 6px !important;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .bio,
  .acquerir {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 80px 6vw;
  }
}

@media (max-width: 560px) {
  header {
    padding: 12px 5vw;
  }

  .brand {
    font-size: 1.1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 24px;
  }

  .bio-facts {
    gap: 20px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }
}