/* ================================================
   LIMONAIA 43 — STYLE
   Light & Elegant · Inspired by Casa Angelina
   ================================================ */

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

:root {
  /* COLORS */
  --bg: #F5F0E8;
  --bg-warm: #EDE7DB;
  --bg-card: #FEFCF8;
  --text: #2C2824;
  --text-soft: #5C5650;
  --text-muted: #8A7E72;
  --accent: #C4703F;
  --accent-soft: #D4936A;
  --gold: #B8956A;
  --olive: #8B7D56;
  --sand: #D4C5A9;
  --line: rgba(44, 40, 36, 0.12);
  --line-soft: rgba(44, 40, 36, 0.06);
  --white: #FEFCF8;
  --shadow-sm: 0 4px 24px rgba(44, 40, 36, 0.06);
  --shadow-lg: 0 20px 60px rgba(44, 40, 36, 0.12);
  --nav-h: 90px;
  /* EASING */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: none; }

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ============= CUSTOM CURSOR ============= */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(196, 112, 63, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.5s var(--ease-out), width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor.hover { width: 16px; height: 16px; }
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--accent); }

@media (max-width: 900px) {
  body, button, a { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* ============= PAGE TRANSITION OVERLAY ============= */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s var(--ease-in-out);
}

.page-transition.entering {
  transform: scaleY(1);
  transform-origin: top;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-logo {
  width: 80px;
  opacity: 0;
  animation: loaderFade 1.2s var(--ease-out) forwards;
}

.loader-line {
  width: 0;
  height: 1px;
  background: var(--accent);
  animation: loaderLine 1.5s var(--ease-out) 0.4s forwards;
}

@keyframes loaderFade {
  to { opacity: 1; }
}

@keyframes loaderLine {
  to { width: 120px; }
}

/* ============= NAVIGATION ============= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 60px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, padding 0.4s ease, height 0.4s ease;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  height: 70px;
}

/* Hero pages have transparent nav with white logo */
.nav .logo-dark { display: none; }
.nav .logo-light { display: block; }
.nav.scrolled .logo-dark { display: block; }
.nav.scrolled .logo-light { display: none; }
.nav.scrolled .nav-links a { color: var(--text-soft); }
.nav.scrolled .nav-book { color: var(--accent); border-color: rgba(196, 112, 63, 0.4); }

.nav-logo img {
  height: 56px;
  transition: height 0.4s ease;
}

.nav.scrolled .nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav.scrolled .nav-links a:hover { color: var(--text); }

.nav-book {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  transition: all 0.4s ease;
  font-weight: 400;
}

.nav-book:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  width: 26px;
  height: 1px;
  background: var(--white);
  transition: all 0.4s ease;
}

.nav.scrolled .hamburger span { background: var(--text); }

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }

@media (max-width: 900px) {
  .nav-links, .nav-book { display: none; }
  .hamburger { display: flex; cursor: pointer; }
  .nav { padding: 0 24px; }
  .nav-logo img { height: 44px; }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-page {
  height: 75vh;
  min-height: 500px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 23, 20, 0.35) 0%,
    rgba(26, 23, 20, 0.15) 30%,
    rgba(26, 23, 20, 0.25) 70%,
    rgba(26, 23, 20, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 30px;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero h1 .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroReveal 1.2s var(--ease-out) forwards;
}

.hero h1 .word:nth-child(1) span { animation-delay: 0.4s; }
.hero h1 .word:nth-child(2) span { animation-delay: 0.5s; }
.hero h1 .word:nth-child(3) span { animation-delay: 0.6s; }
.hero h1 .word:nth-child(4) span { animation-delay: 0.7s; }
.hero h1 .word:nth-child(5) span { animation-delay: 0.8s; }
.hero h1 .word:nth-child(6) span { animation-delay: 0.9s; }

@keyframes heroReveal {
  to { transform: translateY(0); }
}

.hero-line {
  width: 0;
  height: 1px;
  background: var(--accent-soft);
  margin: 0 auto 32px;
  animation: lineGrow 1.2s var(--ease-out) 1.4s forwards;
}

@keyframes lineGrow {
  to { width: 60px; }
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.6s forwards;
  color: rgba(254, 252, 248, 0.85);
}

.hero-cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.8s forwards;
  position: relative;
  overflow: hidden;
  font-weight: 400;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.hero-cta:hover {
  border-color: var(--accent);
}

.hero-cta:hover::before {
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: auto;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 2s forwards;
}

.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(254, 252, 248, 0.7);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  animation: scrollPulse 2.5s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============= SECTIONS ============= */
.section {
  padding: 140px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 900px;
}

.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 28px;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-line {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 32px;
}

.section-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 580px;
  line-height: 1.9;
  font-weight: 300;
}

/* ============= REVEAL ANIMATIONS ============= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Image reveal — scales and unmasks */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right;
  transition: transform 1.4s var(--ease-in-out);
  z-index: 2;
}

.image-reveal.visible::after {
  transform: scaleX(0);
}

.image-reveal img,
.image-reveal .img-bg {
  transform: scale(1.2);
  transition: transform 1.8s var(--ease-out);
}

.image-reveal.visible img,
.image-reveal.visible .img-bg {
  transform: scale(1);
}

/* Text line reveal */
.text-reveal {
  overflow: hidden;
}

.text-reveal .line {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

.text-reveal.visible .line {
  transform: translateY(0);
}

.text-reveal.visible .line:nth-child(2) { transition-delay: 0.1s; }
.text-reveal.visible .line:nth-child(3) { transition-delay: 0.2s; }

/* ============= TWO COLUMNS ============= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 640px;
  align-items: stretch;
}

.two-col-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 540px;
}

.two-col-img-wrap .img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.two-col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 80px;
}

.two-col-text-narrow {
  padding: 100px 60px 100px 100px;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col-img-wrap { min-height: 380px; }
  .two-col-text, .two-col-text-narrow { padding: 60px 30px; }
}

/* ============= PARALLAX FULL IMAGE ============= */
.full-image {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.full-image .img-bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.full-image .caption {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 2;
  color: var(--white);
}

.full-image .caption .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.full-image .caption h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 500px;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .full-image .caption { left: 24px; bottom: 30px; }
}

/* ============= EXPERIENCE CARDS ============= */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.exp-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: none;
}

.exp-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-out);
}

.exp-card:hover .exp-card-bg {
  transform: scale(1.08);
}

.exp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 23, 20, 0) 30%,
    rgba(26, 23, 20, 0.85) 100%
  );
  z-index: 1;
  transition: opacity 0.5s ease;
}

.exp-card:hover::after { opacity: 0.95; }

.exp-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  z-index: 2;
  color: var(--white);
}

.exp-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
  display: block;
}

.exp-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.exp-card-link {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.exp-card-link span { transition: transform 0.4s var(--ease-out); display: inline-block; }
.exp-card:hover .exp-card-link { opacity: 1; }
.exp-card:hover .exp-card-link span { transform: translateX(8px); }

@media (max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; gap: 16px; }
  .exp-card { height: 380px; }
}

/* ============= MARQUEE ============= */
.marquee {
  padding: 100px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-warm);
}

.marquee-inner {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
  gap: 80px;
  align-items: center;
}

.marquee-item {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 80px;
}

.marquee-item::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============= QUOTE SECTION ============= */
.quote-section {
  padding: 140px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 32px;
}

.quote-text .quote-mark {
  color: var(--accent);
  font-size: 1.4em;
}

.quote-author {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============= GALLERY ============= */
.gallery-section {
  padding: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.gallery-item::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  border: 1px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 200;
  transition: transform 0.5s var(--ease-out);
  z-index: 2;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Gallery layouts */
.g-tall { grid-column: span 4; grid-row: span 2; }
.g-wide { grid-column: span 6; grid-row: span 1; }
.g-square { grid-column: span 4; grid-row: span 1; }
.g-large { grid-column: span 8; grid-row: span 2; }
.g-small { grid-column: span 4; grid-row: span 1; }

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
  }
  .g-tall { grid-column: span 3; grid-row: span 2; }
  .g-wide { grid-column: span 6; grid-row: span 1; }
  .g-square { grid-column: span 3; grid-row: span 1; }
  .g-large { grid-column: span 6; grid-row: span 2; }
  .g-small { grid-column: span 3; grid-row: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(20px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-out);
}

.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--text);
  color: var(--white);
}

/* ============= GALLERY — Uniform Squares, 3px Gap ============= */
.gallery-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 0;
  background: #000;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
  display: block;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(0.55);
}

/* Plus icon on hover */
.gallery-thumb::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 200;
  opacity: 0;
  z-index: 2;
  transition: all 0.45s var(--ease-out);
  pointer-events: none;
  line-height: 1;
}

.gallery-thumb:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* No wide/tall variants — all equal squares */
.gallery-thumb-wide {
  grid-column: span 1;
  aspect-ratio: 1/1;
}

@media (max-width: 900px) {
  .gallery-simple { grid-template-columns: repeat(3, 1fr); gap: 3px; }
}

@media (max-width: 500px) {
  .gallery-simple { grid-template-columns: repeat(2, 1fr); gap: 3px; }
}

/* ============= SERVICES GRID ============= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.service-card {
  position: relative;
  height: 520px;
  overflow: hidden;
  cursor: none;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.4s var(--ease-out);
}

.service-card:hover .service-card-bg { transform: scale(1.08); }

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0) 30%, rgba(26,23,20,0.9) 100%);
  z-index: 1;
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px;
  z-index: 2;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-card-content { transform: translateY(0); }

.service-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
  display: block;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.service-card:hover p {
  opacity: 0.8;
  max-height: 100px;
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { height: 400px; }
  .service-card-content { padding: 30px; }
}

/* ============= ABOUT TEXT ============= */
.about-text p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 2;
  margin-bottom: 28px;
  font-weight: 300;
}

.about-text p:last-child { margin-bottom: 0; }

/* Pull quote */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 32px;
  margin: 48px 0;
}

/* ============= CONTACT ============= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  margin-top: 60px;
}

.contact-info-block {
  margin-bottom: 36px;
}

.contact-label {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}

.contact-value a { transition: color 0.3s; }
.contact-value a:hover { color: var(--accent); }

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

.form-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.4s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea { resize: none; height: 130px; }

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-submit {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 48px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: none;
  transition: all 0.4s ease;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  font-weight: 400;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.form-submit:hover { color: var(--white); }
.form-submit:hover::before { transform: translateY(0); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* ============= BOOKING BANNER ============= */
.booking-banner {
  background: var(--bg-warm);
  padding: 140px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="0.5" fill="%23C4703F" opacity="0.15"/></svg>') repeat;
  opacity: 0.4;
}

.booking-banner > * {
  position: relative;
  z-index: 1;
}

.booking-banner .section-text {
  margin: 0 auto 40px;
}

.booking-banner .hero-cta {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
  animation: none;
}

.booking-banner .hero-cta:hover {
  color: var(--white);
}

/* ============= FOOTER ============= */
.footer {
  background: #1A1714;
  color: var(--white);
  padding: 100px 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto 60px;
}

.footer-brand .footer-logo-img {
  width: 130px;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(254, 252, 248, 0.65);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 24px;
  font-weight: 400;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a, .footer-col p {
  font-size: 0.85rem;
  color: rgba(254, 252, 248, 0.65);
  font-weight: 300;
  transition: color 0.3s;
  line-height: 1.7;
}

.footer-col a:hover { color: var(--accent-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(254, 252, 248, 0.4);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .footer { padding: 60px 24px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 24px; }
  .quote-section { padding: 80px 30px; }
  .booking-banner { padding: 80px 24px; }
}


/* ============= APARTMENTS — STACKED BANNERS ============= */
.apt-banner {
  display: block;
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  cursor: none;
}

.apt-banner-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.apt-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.apt-banner:hover .apt-banner-img img {
  transform: scale(1.06);
}

.apt-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 23, 20, 0.8) 0%,
    rgba(26, 23, 20, 0.5) 40%,
    rgba(26, 23, 20, 0.15) 100%
  );
  z-index: 1;
  transition: background 0.6s ease;
}

.apt-banner:hover .apt-banner-overlay {
  background: linear-gradient(
    90deg,
    rgba(26, 23, 20, 0.85) 0%,
    rgba(26, 23, 20, 0.55) 45%,
    rgba(26, 23, 20, 0.2) 100%
  );
}

/* Right-aligned content variant: flip the gradient */
.apt-banner:has(.apt-banner-content-right) .apt-banner-overlay {
  background: linear-gradient(
    270deg,
    rgba(26, 23, 20, 0.8) 0%,
    rgba(26, 23, 20, 0.5) 40%,
    rgba(26, 23, 20, 0.15) 100%
  );
}

.apt-banner:has(.apt-banner-content-right):hover .apt-banner-overlay {
  background: linear-gradient(
    270deg,
    rgba(26, 23, 20, 0.85) 0%,
    rgba(26, 23, 20, 0.55) 45%,
    rgba(26, 23, 20, 0.2) 100%
  );
}

.apt-banner-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

.apt-banner-content-right {
  left: auto;
  right: 0;
  align-items: flex-end;
  text-align: right;
}

.apt-banner-floor {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.apt-banner-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-banner:hover .apt-banner-name {
  transform: translateY(-6px);
}

.apt-banner-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--accent-soft);
  margin-bottom: 24px;
}

.apt-banner-divider {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 28px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-banner-content-right .apt-banner-divider {
  margin-left: auto;
}

.apt-banner:hover .apt-banner-divider {
  width: 90px;
}

.apt-banner-specs {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}

.apt-banner-content-right .apt-banner-specs {
  justify-content: flex-end;
}

.apt-bspec {
  display: flex;
  flex-direction: column;
}

.apt-bspec-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--white);
}

.apt-bspec-unit {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(254, 252, 248, 0.5);
  margin-top: 4px;
}

.apt-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.4s ease;
  margin-top: 8px;
}

.apt-banner:hover .apt-banner-cta {
  background: var(--accent);
  border-color: var(--accent);
}

.apt-banner-arrow {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.apt-banner:hover .apt-banner-arrow {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .apt-banner { height: 60vh; min-height: 420px; }
  .apt-banner-content,
  .apt-banner-content-right {
    width: 100%;
    padding: 40px 30px;
    text-align: left;
    align-items: flex-start;
  }
  .apt-banner-overlay,
  .apt-banner:has(.apt-banner-content-right) .apt-banner-overlay {
    background: linear-gradient(
      180deg,
      rgba(26, 23, 20, 0.15) 0%,
      rgba(26, 23, 20, 0.75) 100%
    ) !important;
  }
  .apt-banner-content-right .apt-banner-divider { margin-left: 0; }
  .apt-banner-content-right .apt-banner-specs { justify-content: flex-start; }
  .apt-banner-name { font-size: 3rem; }
}

/* ============= APARTMENT PAGE STYLES ============= */
.apt-hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 20px;
}

.apt-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-top: 60px;
}

.apt-feature {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--line-soft);
  transition: all 0.4s ease;
}

.apt-feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.apt-feature-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.apt-feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

.apt-feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* Floor plan / layout info */
.apt-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.apt-layout-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}

.apt-layout-icon {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.apt-layout-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.apt-layout-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text);
}

@media (max-width: 700px) {
  .apt-layout-grid { grid-template-columns: 1fr; }
}

/* ============= HERO VIDEO ============= */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.hero-video.loaded {
  opacity: 1;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 23, 20, 0.35) 0%,
    rgba(26, 23, 20, 0.15) 30%,
    rgba(26, 23, 20, 0.25) 70%,
    rgba(26, 23, 20, 0.55) 100%
  );
  z-index: 1;
}

/* Make hero-bg always visible underneath as fallback */
.hero-bg {
  z-index: 0;
}

.hero-content,
.scroll-indicator {
  z-index: 2;
}

/* ============= APARTMENT GALLERY — Uniform Squares, 3px Gap ============= */
.apt-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0;
}

.apt-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1 !important;
  border-radius: 0 !important;
  padding-bottom: 0 !important;
}

.apt-gallery-item img {
  position: static !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
  display: block;
}

.apt-gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.55);
}

/* Plus icon on hover */
.apt-gallery-item::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 200;
  opacity: 0;
  z-index: 2;
  transition: all 0.45s var(--ease-out);
  pointer-events: none;
  line-height: 1;
}

.apt-gallery-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Override all legacy grid span classes */
.ag-hero, .ag-side, .ag-wide, .ag-tall, .ag-sq, .ag-large, .ag-small {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  aspect-ratio: 1/1 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 900px) {
  .apt-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
  .apt-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============= REVIEWS — Compact Carousel ============= */
.reviews-section {
  height: 15vh;
  min-height: 130px;
  background: var(--bg-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

.review-track {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  pointer-events: none;
  text-align: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.review-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.review-slide-stars {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  flex-shrink: 0;
}

.review-slide-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  max-width: 720px;
}

.review-slide-author {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Carousel dots */
.review-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.review-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(44, 40, 36, 0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.review-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .reviews-section { padding: 0 30px; height: auto; min-height: 18vh; padding: 30px 30px 40px; }
  .review-slide { flex-direction: column; gap: 12px; }
  .review-slide-author { font-size: 0.65rem; }
}



/* ============= LIGHTBOX ARROWS & COUNTER ============= */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: transparent;
  border: 1px solid rgba(44, 40, 36, 0.3);
  color: var(--text);
  font-size: 2rem;
  font-weight: 200;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: 'Cormorant Garamond', serif;
  line-height: 0;
  padding: 0;
}

.lightbox-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

@media (max-width: 700px) {
  .lightbox-arrow { width: 44px; height: 44px; font-size: 1.4rem; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* ============= GALLERY PERFORMANCE OPTIMIZATIONS ============= */
.apt-gallery-item,
.gallery-thumb {
  content-visibility: auto;
  contain-intrinsic-size: 300px 300px;
}

/* Smooth fade-in for lazy images */
.apt-gallery-item img,
.gallery-thumb img {
  background: #2a2622;
  opacity: 0;
  animation: imgFadeIn 0.6s ease forwards;
}

@keyframes imgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============= ELEGANT LANGUAGE SWITCHER ============= */
.lang-switcher {
  position: relative;
  margin-right: 24px;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(254, 252, 248, 0.25);
  border-radius: 24px;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav.scrolled .lang-trigger {
  color: var(--text);
  border-color: rgba(44, 40, 36, 0.15);
}

.lang-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav.scrolled .lang-trigger:hover {
  border-color: var(--accent);
}

.lang-current-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-current-code {
  font-weight: 500;
}

.lang-chevron {
  transition: transform 0.3s ease;
  margin-left: 2px;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(44, 40, 36, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 23, 20, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s ease;
  z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
  background: rgba(196, 112, 63, 0.08);
}

.lang-option.active {
  background: rgba(196, 112, 63, 0.12);
  color: var(--accent);
  font-weight: 500;
}

.lang-option-flag {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-option-name {
  flex: 1;
}

/* Mobile pill switcher */
.lang-switcher-mobile {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(44, 40, 36, 0.08);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(44, 40, 36, 0.2);
  border-radius: 22px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 900px) {
  .lang-switcher { display: none; }
}

/* ─── FORM CONTATTI: stato invio + anti-spam ─── */

/* Campo trappola: invisibile ma non display:none (i bot lo saltano) */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 24px;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 2px solid;
  animation: formStatusIn 0.4s ease;
}

.form-status-success {
  background: rgba(196, 112, 63, 0.06);
  border-color: #C4703F;
  color: #6b4526;
}

.form-status-error {
  background: rgba(155, 45, 45, 0.06);
  border-color: #9B2D2D;
  color: #7a2424;
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes formStatusIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
