/* ==========================================
   INTEGRATED SPLIT HEADER & HERO
   ========================================== */

/* --- 1. THE HEADER --- */
.split-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 100;
  height: 120px;
}

.split-header-left {
  width: 50%;
  padding: 0 3.5rem;
  display: flex;
  align-items: center;
}

.split-header-mark {
  display: block;
  line-height: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.split-header-mark:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.split-header-mark:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.split-logo {
  display: flex;
  flex-direction: column;
  color: var(--ivory);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1.2;
}

.split-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-top: 4px;
}

.split-header-right {
  width: 50%;
  padding: 0 3.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

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

.split-nav a {
  color: var(--brown);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.split-nav a:hover {
  opacity: 0.78;
}

.split-nav a.active {
  color: var(--gold);
  font-weight: 600;
}

/* Nav sits over brown hero (right half) on home */
body.page-home .split-header:not(.is-pill-glass) .split-header-right .split-nav a {
  color: rgba(255, 253, 248, 0.92);
}

body.page-home .split-header:not(.is-pill-glass) .split-header-right .split-nav a.active {
  color: var(--gold-light);
  opacity: 1;
}

body.page-home .split-header:not(.is-pill-glass) .split-header-right .nav-icon {
  color: rgba(255, 253, 248, 0.92);
}

.split-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-icon {
  color: var(--brown);
  position: relative;
  transition: var(--transition);
}

.nav-icon:hover {
  color: var(--gold);
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--brown);
  color: var(--ivory);
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.mobile-toggle {
  display: none;
}

/* Inner pages: full-width fixed bar (same mark + nav as home) */
body.page-inner .split-header:not(.is-pill-glass) {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background: rgba(245, 240, 230, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 46, 27, 0.08);
  box-shadow: 0 2px 16px rgba(74, 46, 27, 0.04);
}

body.page-inner .split-header:not(.is-pill-glass) .split-header-left {
  width: auto;
  flex: 0 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: 1rem;
}

body.page-inner .split-header:not(.is-pill-glass) .split-header-right {
  width: auto;
  flex: 1;
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
  padding-left: 0;
}

body.page-inner .split-header:not(.is-pill-glass) .split-header-right .split-nav a,
body.page-inner .split-header:not(.is-pill-glass) .split-header-right .nav-icon {
  color: var(--brown);
}


/* --- 2. THE HERO LAYOUT --- */
.split-hero-container {
  --hero-pane-brown: #60422e;
  --hero-peach: #c9885a;
  --hero-header-h: 120px;
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.split-pane {
  flex: 1;
  width: 50%;
  position: relative;
  min-height: inherit;
}

/* LEFT PANE (cream — logo + type) */
.split-left {
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--hero-header-h) + 1.5rem) clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vh, 4rem);
}

.hero-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 440px);
  text-align: center;
}

.hero-mark-link {
  display: block;
  line-height: 0;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.hero-mark-logo {
  width: clamp(127px, 13vw, 173px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

.logo-emblem--mark {
  width: clamp(48px, 4.8vw, 58px);
  height: auto;
  object-fit: contain;
}

.ambient-dot {
  position: absolute;
  background: var(--ivory);
  border-radius: 50%;
  animation: floatDots 4s ease-in-out infinite alternate;
}

@keyframes floatDots {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-15px) scale(1.2); }
}

.split-typography {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
}

.typo-script {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--hero-peach);
  display: block;
  line-height: 1;
  user-select: none;
}

.script-1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  text-align: left;
  margin-left: clamp(0.5rem, 4vw, 1.75rem);
  margin-bottom: -0.35rem;
  transform: rotate(-8deg);
  transform-origin: left center;
}

.script-2 {
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  text-align: right;
  margin-top: clamp(0.35rem, 1.5vh, 0.75rem);
  margin-right: clamp(0.25rem, 3vw, 1.25rem);
  transform: rotate(-8deg);
  transform-origin: right center;
}

.typo-block {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.85rem, 5.8vw, 4.85rem);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.2em;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
  text-indent: 0.1em;
}

/* RIGHT PANE (brown + lifestyle photo) */
.split-right {
  background: var(--hero-pane-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--hero-header-h) + 1rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vh, 3rem);
}

.hero-photo-wrapper {
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 640px);
  padding: clamp(10px, 1.2vw, 14px);
  background: var(--ivory);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.hero-lifestyle-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 1px;
}

.hero-scroll-cue--left {
  left: auto;
  right: clamp(1.5rem, 4vw, 2.75rem);
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  transform: none;
  flex-direction: row;
  gap: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(74, 46, 27, 0.38);
  animation: floatCueLeft 2.5s ease-in-out infinite;
}

.hero-scroll-cue--left span {
  display: none;
}

@keyframes floatCueLeft {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 0.85; }
}

body.page-home .section-scroll-nav a {
  border-color: rgba(255, 253, 248, 0.45);
}

body.page-home .section-scroll-nav a.is-active,
body.page-home .section-scroll-nav a:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.right-edge-nav {
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: rgba(74, 46, 27, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
}

/* --- 3. RESPONSIVE DESIGN FOR TABLET/MOBILE --- */
@media (max-width: 1024px) {
  .split-hero-container {
    flex-direction: column;
    height: auto;
    --hero-header-h: 80px;
  }

  /* Full-width top bar — logo left, menu right */
  .split-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ivory);
    height: 80px;
    min-height: 80px;
    border-bottom: 1px solid rgba(74, 46, 27, 0.1);
    width: 100%;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  body.page-inner .split-header:not(.is-pill-glass) {
    height: 80px;
  }

  .split-header-left {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0;
  }

  .split-header-right {
    flex: 1 1 auto;
    width: auto !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  .split-actions {
    margin-left: auto;
  }

  /* Home: one logo in hero — menu only in the bar */
  body.page-home .split-header .split-header-left {
    display: none;
  }

  body.page-home .split-header .split-header-right {
    flex: 1;
    justify-content: flex-end;
  }

  body.page-home .split-header .split-header-right .split-nav a,
  body.page-home .split-header .split-header-right .nav-icon,
  body.page-home .split-header .mobile-toggle {
    color: var(--brown);
  }

  body.page-home .split-header .mobile-toggle svg {
    stroke: var(--brown);
  }

  body.page-home .split-header.is-pill-glass .mobile-toggle,
  body.page-home .split-header.liquid-glass-pill .mobile-toggle,
  body.page-home .split-header.pill-on-dark .mobile-toggle {
    color: var(--brown);
  }

  body.page-home .split-header.is-pill-glass .mobile-toggle svg,
  body.page-home .split-header.liquid-glass-pill .mobile-toggle svg,
  body.page-home .split-header.pill-on-dark .mobile-toggle svg {
    stroke: var(--brown);
  }

  /* Change logo color to brown since bg is ivory now */
  .split-logo { color: var(--brown); font-size: 1rem; letter-spacing: 0.2em; }
  .split-logo span { color: var(--brown-light); font-size: 0.5rem; }

  /* Hide normal nav, show hamburger */
  .split-nav { display: none; }
  .mobile-toggle { display: inline-flex; }

  .split-pane {
    width: 100%;
    min-height: auto;
  }

  .split-left {
    padding: calc(80px + 1.25rem) 1.25rem 1.5rem;
    min-height: auto;
    justify-content: flex-start;
  }

  body.page-home .split-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100dvh - 80px);
    min-height: calc(100svh - 80px);
    padding-top: calc(80px + 1rem);
    padding-bottom: 1.75rem;
    box-sizing: border-box;
  }

  .hero-left-inner {
    width: 100%;
    max-width: 22rem;
  }

  body.page-home .hero-left-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
  }

  .hero-mark-link {
    margin-bottom: 1.5rem;
  }

  body.page-home .hero-mark-link {
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
  }

  .hero-mark-logo {
    width: clamp(100px, 28vw, 132px);
  }

  body.page-home .hero-mark-logo {
    width: clamp(92px, 26vw, 120px);
  }

  .split-typography {
    width: 100%;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .script-1 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    text-align: center;
    margin: 0 0 -0.2rem;
    align-self: center;
    transform: rotate(-6deg);
    transform-origin: center center;
  }

  .typo-block {
    font-size: clamp(2.15rem, 10.5vw, 2.85rem);
    letter-spacing: 0.16em;
    text-indent: 0;
    width: 100%;
  }

  .script-2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    text-align: center;
    margin: 0.15rem 0 0;
    align-self: center;
    transform: rotate(-6deg);
    transform-origin: center center;
  }

  body.page-home .script-2 {
    margin-bottom: 0.25rem;
  }

  .hero-scroll-cue--left {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
    align-self: center;
    transform: none;
    animation: none;
    color: rgba(74, 46, 27, 0.45);
    letter-spacing: 0.28em;
  }

  body.page-home .hero-scroll-cue--left {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: clamp(2rem, 6vh, 3.25rem);
    color: rgba(74, 46, 27, 0.55);
    font-size: 0.65rem;
    text-transform: uppercase;
  }

  .split-right {
    padding: 2rem 1.25rem 3rem;
    min-height: auto;
  }

  .hero-photo-wrapper {
    width: min(100%, 22rem);
    max-height: none;
    margin-inline: auto;
  }

  .right-edge-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .typo-block {
    letter-spacing: 0.12em;
    font-size: clamp(1.95rem, 9.5vw, 2.35rem);
  }

  body.page-home .script-1 {
    font-size: 1.25rem;
  }

  body.page-home .script-2 {
    font-size: 1.55rem;
  }

  .split-left {
    padding-inline: 1rem;
  }
}