/* ═══════════════════════════════════════════════════════════
   MERIDIAN — Premium Yacht Website
   Style sheet
   ═══════════════════════════════════════════════════════════ */

/* ── 0. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Palette */
  --navy:          #0B1C2D;
  --navy-mid:      #152840;
  --navy-light:    #1E3A5A;
  --navy-pale:     #2A4F72;
  --off-white:     #F3EDE3;
  --warm-white:    #FAF8F3;
  --warm-grey:     #8A8D94;
  --warm-grey-lt:  #C5C6C9;
  --warm-grey-dk:  #4A4D52;
  --gold:          #B08A4E;
  --gold-light:    #CBA86A;
  --text-dark:     #1A1A1A;
  --text-mid:      #3A3A3A;
  --text-light:    #6A6A6A;
  --text-lighter:  #9A9A9A;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: clamp(5rem, 10vw, 10rem);
  --container-max:   1280px;
  --container-pad:   clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── 1. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }
sup { font-size: 0.5em; vertical-align: super; margin-left: 0.1em; }

/* ── 2. Layout helpers ────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-padding) 0;
}

.section--light  { background: var(--warm-white); }
.section--warm   { background: var(--off-white); }
.section--dark   { background: var(--navy); }
.section--gallery { background: var(--navy); padding-bottom: 0; }

/* ── 3. Typography scale ──────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.section-label--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 2rem;
}
.section-title--light { color: var(--off-white); }

.section-intro {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-light);
  max-width: 60ch;
  line-height: 1.8;
  margin-bottom: 4rem;
}
.section-intro--light { color: var(--warm-grey); }

.body-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  max-width: 62ch;
}
.body-text--light { color: var(--warm-grey); max-width: 56ch; }

/* ── 4. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--warm-white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--off-white);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--navy);
  color: var(--off-white);
  border-color: var(--navy);
}
.btn--dark:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

/* ── 5. Navigation ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.5s var(--ease-out), padding 0.5s var(--ease-out), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(11, 28, 45, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
  border-bottom-color: rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--off-white);
  flex-shrink: 0;
  z-index: 1001;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 237, 227, 0.7);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--off-white); }

.nav-link--cta {
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(176, 138, 78, 0.4);
  transition: color 0.3s, border-color 0.3s;
}
.nav-link--cta:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.nav-right { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-btn {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 237, 227, 0.45);
  transition: color 0.3s;
  padding: 0.2rem 0;
}
.lang-btn.active,
.lang-btn:hover { color: var(--off-white); }
.lang-divider {
  color: rgba(243, 237, 227, 0.2);
  font-size: 0.65rem;
  user-select: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--off-white);
  transition: all 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 300;
  color: var(--off-white);
  padding: 0.5rem 0;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--gold-light); }
.mobile-lang { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; }

/* ── 6. Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy); /* fallback if image missing */
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: brightness(0.42) saturate(0.85);
  animation: heroBreath 8s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  from { filter: brightness(0.38) saturate(0.8); }
  to   { filter: brightness(0.46) saturate(0.9); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 28, 45, 0.35) 0%,
    rgba(11, 28, 45, 0.1) 35%,
    rgba(11, 28, 45, 0.2) 60%,
    rgba(11, 28, 45, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--off-white);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(243, 237, 227, 0.65);
  margin-bottom: 3rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero bottom stats bar */
.hero-numbers {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  flex: 1;
  padding: 0.5rem 2rem 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-stat__value {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--off-white);
  line-height: 1;
}

.hero-stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 237, 227, 0.45);
}

.hero-stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.1);
  margin: 0 2rem;
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll__line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(243,237,227,0.4));
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  40%       { transform: scaleY(1); transform-origin: top; }
  60%       { transform: scaleY(1); transform-origin: bottom; }
  100%      { transform: scaleY(0); transform-origin: bottom; }
}

/* ── 7. Project Section ───────────────────────────────────── */

/* Project photo */
.project-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.project-photo:hover img { transform: scale(1.04); }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.project-quote {
  margin-bottom: 3rem;
  padding: 2rem 0 2rem 2rem;
  border-left: 2px solid var(--gold);
}
.project-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-mid);
}

.project-origin { display: flex; flex-direction: column; gap: 1.5rem; }
.origin-item {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}
.origin-number {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  flex-shrink: 0;
}
.origin-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── 8. Yacht / Specs ─────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 3rem;
}

.spec-card {
  background: rgba(21, 40, 64, 0.5);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.3s;
}
.spec-card:hover { background: rgba(30, 58, 90, 0.6); }

.spec-value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--off-white);
  line-height: 1;
}
.spec-unit {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.spec-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,237,227,0.55);
  margin-top: 0.5rem;
}
.spec-detail {
  font-size: 0.8rem;
  color: rgba(243,237,227,0.3);
  margin-top: 0.25rem;
}

.yacht-note {
  padding: 1.5rem 2rem;
  border-left: 2px solid rgba(176, 138, 78, 0.4);
}
.yacht-note p {
  font-size: 0.875rem;
  color: rgba(243, 237, 227, 0.45);
  font-style: italic;
}

/* ── 8b. Image Band ───────────────────────────────────────── */
.image-band {
  position: relative;
  height: clamp(280px, 40vw, 520px);
  overflow: hidden;
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.55) saturate(0.9);
  transition: transform 12s ease-out;
}
.image-band:hover img { transform: scale(1.03); }

.image-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 28, 45, 0.7) 0%,
    rgba(11, 28, 45, 0.2) 50%,
    rgba(11, 28, 45, 0.4) 100%
  );
}

.image-band__text {
  position: absolute;
  left: clamp(2rem, 8vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--off-white);
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 18ch;
}

/* ── 9. Qualities ─────────────────────────────────────────── */
.qualities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
  margin-top: 4rem;
}

.quality-card { display: flex; flex-direction: column; gap: 1rem; }

.quality-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.quality-icon svg { width: 100%; height: 100%; }

.quality-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}
.quality-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ── 10. Philosophy ───────────────────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.philosophy-left { position: sticky; top: 8rem; }

.philosophy-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}

.philosophy-line {
  width: 3rem;
  height: 1px;
  background: var(--warm-grey-lt);
  margin: 2rem 0;
}

.philosophy-signature {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-lighter);
  letter-spacing: 0.05em;
}

/* ── 11. For Whom ─────────────────────────────────────────── */

/* Background photo for the For Whom section */
.section--with-photo {
  position: relative;
  overflow: hidden;
}
.section-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.22) saturate(0.7);
  z-index: 0;
}
.section--with-photo .container { position: relative; z-index: 1; }

.forwhom-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: start;
  margin-top: 2rem;
}

.forwhom-profiles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.profile-item {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}
.profile-icon {
  color: var(--gold-light);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.profile-item span:last-child {
  font-size: 0.9rem;
  color: var(--warm-grey);
  line-height: 1.6;
}

/* ── 12. Innovation ───────────────────────────────────────── */
.innovation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 5rem;
  margin-top: 3rem;
}

.innovation-item { display: flex; flex-direction: column; gap: 0.75rem; }

.innovation-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(176, 138, 78, 0.25);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.innovation-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}

.innovation-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-light);
}

/* ── 13. Gallery ──────────────────────────────────────────── */
.section--gallery {
  background: var(--navy);
}

/* Compact header — no large padding, text is light */
.gallery-header {
  padding: 4rem var(--container-pad) 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* 2 × 2 full-width grid, no gap */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 55vh 55vh;
  gap: 3px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:hover .gallery-img { transform: scale(1.04); }

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s var(--ease-out);
  background: var(--navy-mid); /* fallback while loading */
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(11,28,45,0.8) 0%, transparent 100%);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,237,227,0.7);
  transform: translateY(6px);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
  opacity: 0;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ── Part label (Exterior / Interior) ────────────────────── */
.gallery-part-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ── Interior section header ──────────────────────────────── */
.gallery-interior-header {
  padding: 3.5rem var(--container-pad) 1.75rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery-divider {
  width: 2.5rem;
  height: 1px;
  background: rgba(181, 146, 76, 0.45);
  margin-bottom: 1.25rem;
}

/* ── Interior grid: salon (large) | galley (small)
       then full-width cabin ─────────────────────────────── */
.gallery-interior-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 58vh 50vh;
  gap: 3px;
}

.gallery-item--salon  { grid-column: 1; grid-row: 1; }
.gallery-item--galley { grid-column: 2; grid-row: 1; }
.gallery-item--cabin  { grid-column: 1 / -1; grid-row: 2; }

/* Cabin: favour the top portion so the bed headboard shows */
.gallery-item--cabin .gallery-img { object-position: center 35%; }

/* ── 14. Acquisition Form ─────────────────────────────────── */
.acq-header { margin-bottom: 3.5rem; }

.acq-form {
  max-width: 780px;
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
.form-row--half { flex-wrap: wrap; }
.form-row--half .form-group { flex: 1; min-width: 220px; }
.form-row--submit {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.form-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,237,227,0.45);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--off-white);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus { border-bottom-color: var(--gold); }
.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-select {
  cursor: pointer;
  color: rgba(243,237,227,0.7);
}
.form-select option {
  background: var(--navy-mid);
  color: var(--off-white);
}

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

.form-note {
  font-size: 0.75rem;
  color: rgba(243,237,227,0.25);
  line-height: 1.6;
  max-width: 50ch;
}

.form-success {
  display: none;
  padding: 1rem 0;
}
.form-success p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
}

/* ── 15. Contact ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--warm-grey-lt);
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-detail__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-detail__value {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}
.contact-link { color: var(--text-mid); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact-link:hover { border-bottom-color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-form .form-input {
  color: var(--text-dark);
  border-bottom-color: var(--warm-grey-lt);
}
.contact-form .form-input:focus { border-bottom-color: var(--gold); }
.contact-form .form-label {
  color: var(--warm-grey);
  letter-spacing: 0.12em;
}

/* ── 16. Footer ───────────────────────────────────────────── */
#footer {
  background: var(--navy);
  padding: 4rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 3rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--off-white);
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(243,237,227,0.3);
  font-style: italic;
  max-width: 38ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: flex-end;
  max-width: 600px;
}
.footer-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,237,227,0.4);
  transition: color 0.3s;
}
.footer-link:hover { color: var(--off-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(243,237,227,0.2);
}

.lang-switcher--footer .lang-btn {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ── 17. Scroll Reveal Animations ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.22s; }
.reveal--delay-3 { transition-delay: 0.34s; }
.reveal--delay-4 { transition-delay: 0.46s; }

/* ── 18. Language Transition ──────────────────────────────── */
body.lang-switching {
  transition: opacity 0.2s;
  opacity: 0.5;
}

/* ── 19. Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .qualities-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
  .philosophy-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; }
}

@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }

  .project-grid { grid-template-columns: 1fr; gap: 3rem; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .philosophy-left { position: static; }
  .forwhom-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .innovation-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

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

  .footer-top { flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .hero-numbers {
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem var(--container-pad);
  }
  .hero-stat-divider { display: none; }
  .hero-stat { flex: 0 0 40%; text-align: center; }

  .specs-grid { grid-template-columns: 1fr 1fr; }
  .qualities-grid { grid-template-columns: 1fr; }
  .innovation-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 60vw); }
  .gallery-interior-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 65vw 65vw 65vw;
  }
  .gallery-item--salon,
  .gallery-item--galley,
  .gallery-item--cabin { grid-column: 1; grid-row: auto; }

  .form-row--half { flex-direction: column; }
  .form-row { flex-direction: column; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ── 20. Chinese language overrides ──────────────────────── */
html[data-lang="zh"] .hero-headline {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ── 21. Utility ──────────────────────────────────────────── */
::selection { background: rgba(176, 138, 78, 0.25); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}
