/*
  FILE: home.css
  ══════════════════════════════════════════════════
  PURPOSE:
  Styling for the cinematic homepage parallax stages, tabs, grids, and particles.

  RESPONSIBILITIES:
  - Controls layout of the 520vh vertical scroll-driven animation stages.
  - Implements the translate3d layers for sky, Parisian backdrop, fog, and outline typography.
  - Manages overlay panels, blurred glass alley containers, and glowing portals.
  - Sets up responsive layouts for philosophy, city selector tabs, and franchise pitches.

  PERFORMANCE NOTES:
  - Utilizes will-change on parallax scenes to force GPU layers and optimize repaint.
  - Employs transform scale and translate properties over layout triggers (top, left, margin) to prevent layout thrashing.
  - Blurs and fog shadows are managed to avoid excessive composite overhead on lower-end devices.

  DEVELOPED BY : MIRRO
  CODED BY     : SIVASURYA
  ══════════════════════════════════════════════════
*/

/* ═════════ CINEMATIC STAGE ═════════ */
#stage-wrapper {
  height: 520vh;
  position: relative;
}

#stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--navy);
}

/* PARALLAX LAYERS */
.parallax-scene {
  position: absolute;
  inset: -8%;
  will-change: transform;
}

.p-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

#p-sky {
  background: radial-gradient(ellipse at 50% 0%, #1a2e50 0%, var(--navy) 60%);
  z-index: 1;
}

#p-bg {
  background-image: url('../assets/img/paris-hero-banner.png');
  background-position: center 50%;
  z-index: 2;
  will-change: transform;
  filter: brightness(0.55) contrast(1.1) saturate(0.9);
  transform-origin: 50% 50%;
}

#p-mid {
  z-index: 3;
  background: linear-gradient(to top, rgba(4, 16, 31, 0.7) 0%, transparent 40%);
}

#p-fog-base {
  z-index: 4;
  background: radial-gradient(ellipse at 50% 100%, rgba(4, 16, 31, 0.9) 0%, transparent 65%);
}

/* REFLECTIVE PAVEMENT */
#reflection-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25vh;
  z-index: 5;
  background: url('../assets/img/paris-hero-banner.png') center 100% / cover no-repeat;
  transform: scaleY(-1);
  filter: blur(4px) brightness(0.35) saturate(1.4);
  mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  opacity: 0.4;
}

/* PARTICLE CANVAS */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.7;
}

/* ═══════════════════ HERO UI ═══════════════════ */
#hero-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  will-change: opacity, transform;
}

.hero-logo-wrap {
  margin-bottom: 2rem;
}

.hero-logo-img {
  width: clamp(140px, 26vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(184, 115, 51, 0.5));
  animation: logoBreathe 7s ease-in-out infinite;
}

@keyframes logoBreathe {

  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 30px rgba(184, 115, 51, 0.35));
  }

  50% {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 0 60px rgba(184, 115, 51, 0.6));
  }
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  letter-spacing: 0.6em;
  color: var(--copper);
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 1.2rem;
  animation: fadeUp 1.4s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 1.1;
  color: #fff;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.8s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--copper);
  opacity: 0;
  transform: translateY(20px);
  margin-top: 1rem;
  animation: fadeUp 1.4s 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-discover {
  margin-top: 2rem;
  background: linear-gradient(135deg, #cba152, #f5d487, #b28536);
  border: none;
  color: var(--navy-deep);
  padding: 18px 56px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* Centers the letter-spaced text perfectly */
  text-transform: uppercase;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(184, 115, 51, 0.35), 0 0 20px rgba(245, 212, 135, 0.15);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-discover:hover {
  background: linear-gradient(135deg, #d3ab5d, #fadca5, #bd903e);
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 15px 50px rgba(184, 115, 51, 0.55), 0 0 30px rgba(245, 212, 135, 0.3);
}

.btn-discover:active {
  transform: scale(0.98) translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
}

/* SCROLL CUE */
.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 2.2s ease forwards;
}

.scroll-cue span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.8;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
}

/* ═══════════════════ OUTLINE TYPOGRAPHY ═══════════════════ */
#outline-type-wrap {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}

#zoom-img {
  width: clamp(150px, 30vw, 400px);
  height: auto;
  object-fit: contain;
  /* If the image has a white background, multiply will make the white transparent */
  mix-blend-mode: multiply;
  /* Adding a slight copper tint via drop-shadow if it's transparent, or filter if it's black text */
  filter: sepia(1) hue-rotate(340deg) saturate(3) brightness(0.8) contrast(1.2);
}

/* ═══════════════════ FOG LAYERS ═══════════════════ */
.fog-layer {
  position: absolute;
  left: -20%;
  right: -20%;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
  border-radius: 50%;
  filter: blur(40px);
}

#fog-1 {
  bottom: -30%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(4, 16, 31, 0.85) 0%, transparent 70%);
}

#fog-2 {
  bottom: -20%;
  height: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(4, 16, 31, 0.6) 0%, transparent 60%);
  animation: fogDrift1 18s ease-in-out infinite;
}

#fog-3 {
  bottom: -40%;
  height: 80%;
  background: radial-gradient(ellipse at 60% 100%, rgba(4, 16, 31, 0.5) 0%, transparent 70%);
  animation: fogDrift2 24s ease-in-out infinite;
}

@keyframes fogDrift1 {

  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(40px) translateY(-20px);
  }
}

@keyframes fogDrift2 {

  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-60px) translateY(-30px);
  }
}

/* ═══════════════════ ZOOM VEIL ═══════════════════ */
#zoom-veil {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 5%, rgba(5, 5, 5, 0.98) 60%);
  opacity: 0;
  will-change: opacity;
}

/* ═══════════════════ GATEWAY PORTAL ═══════════════════ */
#gateway-portal {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 30%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 60%);
  mask-position: 50% 50%;
  mask-repeat: no-repeat;
  mask-size: 0px 0px;
  -webkit-mask-position: 50% 50%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 0px 0px;
  will-change: opacity, mask-size, -webkit-mask-size;
}

#portal-inner {
  width: 100%;
  height: 100%;
  background: var(--obsidian) url('../assets/img/plus33-cafe-exterior.png') center / cover no-repeat;
  will-change: transform;
}

#portal-bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 35vw, 500px);
  height: clamp(200px, 35vw, 500px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 115, 51, 0.55) 0%, rgba(184, 115, 51, 0.25) 40%, transparent 70%);
  filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  z-index: 22;
  animation: bloomPulse 3s ease-in-out infinite;
}

@keyframes bloomPulse {

  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ═══════════════════ ALLEY STAGE ═══════════════════ */
#alley-glass {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: rgba(4, 16, 31, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}

.cinematic-text {
  position: absolute;
  inset: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  will-change: opacity, transform;
}

.glass-panel {
  background: rgba(4, 16, 31, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-copper);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 6vw, 3.5rem);
  max-width: 640px;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.cinematic-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  color: var(--ivory);
  line-height: 1.2;
}

.cinematic-text .c {
  color: var(--copper);
}

.cinematic-text p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--copper);
  opacity: 0.9;
  margin-top: 1.5rem;
}

.cinematic-cta {
  margin-top: 2.5rem;
}

.cinematic-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Base CTA — used both in cinematic panel and desktop identities */
.di-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-copper);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s var(--ease-rr);
  cursor: pointer;
  background: transparent;
}

.di-cta:hover {
  background: rgba(184, 115, 51, 0.15);
  border-color: var(--copper);
  color: var(--copper);
}



/* ═══════════════════ WHITE TRANSITION ═══════════════════ */
#white-transition {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: var(--bg-main);
  opacity: 0;
  will-change: opacity;
}

/* ═══════════════════ POST-HERO CONTENT ═══════════════════ */
#normal-content {
  position: relative;
  z-index: 50;
  background: var(--bg-main);
}

/* ═══════════════════════════════════════════════════
   COFFEE PHILOSOPHY — FULL REDESIGN
   ═══════════════════════════════════════════════════ */

#coffee-philosophy {
  background: #080e18;
  overflow: hidden;
}

/* ──────────── INTRO HERO ──────────── */
.cp-intro {
  padding: 9rem 3rem 8rem;
  background: linear-gradient(160deg, #0b1220 0%, #111827 60%, #0d1525 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cp-intro::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(184, 115, 51, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cp-intro::after {
  content: '+33';
  position: absolute;
  bottom: -3rem;
  right: -1rem;
  font-family: var(--font-serif);
  font-size: clamp(8rem, 18vw, 16rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 115, 51, 0.07);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
}

.cp-intro-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--copper);
}

.cp-eyebrow::before,
.cp-eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--copper);
  opacity: 0.6;
}

.cp-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.cp-headline em {
  color: var(--copper);
  font-style: italic;
}

.cp-lead {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(245, 241, 234, 0.6);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

/* ──────────── SPLIT PANELS ──────────── */
.cp-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  position: relative;
}

/* Thin copper top-border accent on each panel */
.cp-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6rem;
  right: 6rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184, 115, 51, 0.25), transparent);
  z-index: 10;
}

.cp-panel--light {
  background: #f8f4ef;
}

.cp-panel--dark {
  background: #07101e;
}

.cp-panel--warm {
  background: #faf4ed;
}

/* ──────────── TEXT SIDE ──────────── */
.cp-panel__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5rem 6rem 6rem;
  position: relative;
}

/* Giant step-number watermark behind text */
.cp-panel__text::before {
  content: attr(data-step);
  position: absolute;
  top: 3rem;
  left: 4rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 115, 51, 0.12);
  pointer-events: none;
  user-select: none;
  font-weight: 400;
}

.cp-panel--dark .cp-panel__text::before {
  -webkit-text-stroke: 1px rgba(245, 241, 234, 0.05);
}

.cp-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.5rem;
}

.cp-panel__tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

.cp-panel__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 2rem;
  position: relative;
}

.cp-panel--dark .cp-panel__title {
  color: var(--ivory);
}

/* Copper underline accent on title */
.cp-panel__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--copper), transparent);
  margin-top: 1.2rem;
}

.cp-panel__body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1rem;
  color: rgba(50, 40, 30, 0.7);
}

.cp-panel--dark .cp-panel__body {
  color: rgba(245, 241, 234, 0.65);
}

/* ──────────── STATS BAR ──────────── */
.cp-panel__stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(184, 115, 51, 0.15);
}

.cp-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-stat__num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1;
  font-weight: 400;
  transition: color 0.3s ease;
}

.cp-panel:hover .cp-stat__num {
  color: var(--copper);
}

.cp-stat__label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(50, 40, 30, 0.45);
}

.cp-stat--light .cp-stat__num {
  color: var(--ivory);
}

.cp-stat--light .cp-stat__label {
  color: rgba(245, 241, 234, 0.4);
}

.cp-panel:hover .cp-stat--light .cp-stat__num {
  color: var(--copper);
}

/* ──────────── IMAGE SIDE ──────────── */
.cp-panel__visual {
  position: relative;
  overflow: hidden;
  background: #0d1525;
  min-height: 500px;
}

.cp-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.9) contrast(1.05);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.cp-panel:hover .cp-panel__img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.95) contrast(1.05);
}

/* ── Blur-blend fade toward text ── */
.cp-panel__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Image RIGHT → fade LEFT edge to light bg */
.cp-panel--light .cp-panel__visual::after {
  background: linear-gradient(to left,
      transparent 35%,
      rgba(248, 244, 239, 0.4) 60%,
      rgba(248, 244, 239, 0.85) 80%,
      #f8f4ef 100%);
}

.cp-panel--warm .cp-panel__visual::after {
  background: linear-gradient(to left,
      transparent 35%,
      rgba(250, 244, 237, 0.4) 60%,
      rgba(250, 244, 237, 0.85) 80%,
      #faf4ed 100%);
}

/* Image LEFT → fade RIGHT edge to dark bg */
.cp-panel--dark .cp-panel__visual::after {
  background: linear-gradient(to right,
      transparent 35%,
      rgba(7, 16, 30, 0.4) 60%,
      rgba(7, 16, 30, 0.88) 80%,
      #07101e 100%);
}

/* ── Badge ── */
.cp-panel__badge {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  background: rgba(7, 16, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 115, 51, 0.3);
  color: var(--copper);
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 2px;
  z-index: 3;
}

.cp-panel__badge--light {
  background: rgba(245, 241, 234, 0.1);
  border-color: rgba(245, 241, 234, 0.2);
  color: var(--ivory);
}

/* ── CTA ── */
.cp-closer__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 3rem;
  padding: 18px 44px;
  border: 1px solid rgba(184, 115, 51, 0.5);
  color: var(--copper);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  align-self: flex-start;
  transition: all 0.4s var(--ease-rr);
  position: relative;
  overflow: hidden;
}

.cp-closer__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-rr);
  z-index: 0;
}

.cp-closer__cta:hover::before {
  transform: translateX(0);
}

.cp-closer__cta:hover {
  color: var(--navy);
}

.cp-closer__cta span,
.cp-closer__cta svg {
  position: relative;
  z-index: 1;
}

/* ──────────── SCROLL REVEAL ANIMATIONS ──────────── */

/* We remove hardcoded opacity:0 here because GSAP's gsap.from() handles the initial state. 
   Keeping them in CSS would conflict with the animation. */

.cp-panel__text,
.cp-panel__visual {
  will-change: transform, opacity;
}

/* Revealed states (for ghost numbers and other CSS-only effects) */
.cp-panel.is-visible .cp-panel__text,
.cp-panel.is-visible .cp-panel__visual {
  /* No need for opacity 1 here, GSAP handles it */
}

/* Staggered children reveal - CSS fallback removed for GSAP */
.cp-panel .cp-panel__text>* {
  will-change: transform, opacity;
}

.cp-panel.is-visible .cp-panel__text>* {
  /* No need for opacity 1 here, GSAP handles it */
}

/* Ghost number visibility */
.cp-panel__text::before {
  opacity: 0;
  transition: opacity 1s ease;
}

.cp-panel.is-visible .cp-panel__text::before {
  opacity: 1;
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 1100px) {
  .cp-panel__text {
    padding: 5rem 3.5rem;
  }
}

@media (max-width: 768px) {
  .cp-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cp-panel::before {
    left: 2rem;
    right: 2rem;
  }

  .cp-panel__text {
    padding: 4rem 2rem 3.5rem;
    order: 2;
  }

  .cp-panel__visual {
    min-height: 280px;
    order: 1;
  }

  .cp-panel__text::before {
    font-size: 5rem;
    top: 1.5rem;
    left: 1.5rem;
  }

  /* Mobile: always fade bottom → bg */
  .cp-panel--light .cp-panel__visual::after {
    background: linear-gradient(to bottom, transparent 40%, #f8f4ef 100%);
  }

  .cp-panel--warm .cp-panel__visual::after {
    background: linear-gradient(to bottom, transparent 40%, #faf4ed 100%);
  }

  .cp-panel--dark .cp-panel__visual::after {
    background: linear-gradient(to bottom, transparent 40%, #07101e 100%);
  }

  .cp-intro {
    padding: 6rem 1.5rem 5rem;
  }

  .cp-intro::after {
    font-size: 6rem;
  }

  .cp-panel__stats {
    gap: 2rem;
  }
}

/* ═══════════════════ IDENTITIES SECTION ═══════════════════ */
#identities-section {
  width: 100%;
  text-align: center;
  position: relative;
}

.identities-mobile-only {
  padding-top: 5rem;
}

.identities-header {
  padding: 5rem 2rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

/* On desktop, the section is dark — flip the whole section and header text colors */
@media (min-width: 1024px) {
  #identities-section {
    background: #030811;
  }

  .identities-header {
    padding: 6rem 2rem 4rem;
  }

  .identities-header .sec-title {
    color: var(--ivory);
  }

  .identities-header .sec-sub {
    color: rgba(245, 241, 234, 0.55);
  }

  /* .identities-desktop-only no longer needs its own bg padding since section handles it */
  .identities-desktop-only {
    padding-top: 0 !important;
  }
}

/* ═══════════════════ MOBILE IDENTITY CARD ═══════════════════ */

.mi-card {
  width: 100%;
  margin: 2rem 0 0;
  background: var(--ivory-warm);
  overflow: hidden;
  text-align: left;
  border-radius: 20px;
  box-shadow: 0 12px 60px rgba(7, 20, 43, 0.13);
}

/* Hero image */
.mi-bg-img {
  height: 72vw;
  min-height: 300px;
  max-height: 440px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-image: url('../assets/img/plus33-cafe-exterior.png');
  position: relative;
  transition: background-image 0.5s ease;
}

/* Gradient fade from image into the card below */
.mi-bg-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, var(--ivory-warm) 100%);
  pointer-events: none;
}

/* Content wrapper */
.mi-bottom-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Left content box */
.mi-left-box {
  width: 100%;
  background: var(--ivory-warm);
  padding: 1.5rem 1.75rem 1rem;
  margin-top: -32px;
  border-top-right-radius: 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* Smooth diagonal cut transition when city switches */
  transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Typography */
.mi-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
  display: block;
}

/* Title with flag underline */
.mi-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  align-self: flex-start;
  padding-bottom: 12px;
}

/* Flag stripe underline on mobile title */
.mi-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  transition: background 0.6s var(--ease-rr);
}

#mi-title[data-city="paris"]::after {
  background: linear-gradient(90deg, #002395 0% 33%, #ffffff 33% 66%, #ED2939 66% 100%);
}

#mi-title[data-city="london"]::after {
  background: linear-gradient(90deg, #012169 0% 25%, #C8102E 25% 50%, #ffffff 50% 75%, #012169 75% 100%);
}

#mi-title[data-city="dubai"]::after {
  background: linear-gradient(90deg, #009A44 0% 25%, #ffffff 25% 50%, #000000 50% 75%, #EF3340 75% 100%);
}

#mi-title[data-city="switzerland"]::after {
  background: linear-gradient(90deg, #FF0000 0% 40%, #ffffff 40% 60%, #FF0000 60% 100%);
}

.mi-desc {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.mi-theme {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.55;
  margin-bottom: 1.5rem;
}

/* CTA + thumbnail row — button left, thumbnails fill the right */
.mi-action-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}

/* Thumbnails fill space to the right of button */
.mi-thumbnails {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  align-items: stretch;
}

/* CTA Button */
.mi-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  align-self: flex-start;
  transition: background 0.5s var(--ease-rr), transform 0.4s var(--ease-rr);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.mi-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease-out-expo);
}

.mi-btn:hover::after {
  transform: translateX(130%);
}

.mi-btn:hover {
  background: var(--copper);
  transform: translateY(-2px);
}

/* Social icons */
.mi-socials {
  display: flex;
  gap: 1rem;
}

.mi-socials svg {
  width: 17px;
  height: 17px;
  color: rgba(7, 20, 43, 0.45);
  cursor: pointer;
  transition: color 0.3s;
  stroke-width: 1.5;
}

.mi-socials svg:hover {
  color: var(--copper);
}

/* Thumbnail strip */
.mi-thumb {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-rr), border-color 0.3s;
}

.mi-thumb:hover {
  transform: translateY(-4px);
}

.mi-thumb.active {
  border-color: var(--copper);
}

.mi-thumb-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}


/* DESKTOP ONLY */
.identities-desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .identities-mobile-only {
    display: none;
  }

  .identities-desktop-only {
    display: block;
    background: #030811;
    padding: 6rem 2rem;
  }

  /* ── Container: two-column split ── */
  .di-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    min-height: 700px;
    align-items: stretch;
  }

  /* ── Left: Visual panel ── */
  .di-visual {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 600px;
  }

  .di-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s var(--ease-rr);
  }

  .di-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 16, 31, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
  }

  /* ── City nav inside overlay ── */
  .di-nav {
    display: flex;
    gap: 2.5rem;
    align-items: flex-end;
  }

  /* Base tab — vertical stack, label + underline */
  .di-nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    position: relative;
    padding-bottom: 0;
    transition: all 0.4s var(--ease-rr);
  }

  .di-nav-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.45);
    transition: color 0.4s var(--ease-rr);
  }

  /* Underline bar — starts at 30% width, expands to 100% when active */
  .di-nav-item::after {
    content: '';
    display: block;
    height: 3px;
    width: 30%;
    border-radius: 2px;
    opacity: 0.35;
    transition: width 0.5s var(--ease-out-expo), opacity 0.4s var(--ease-rr);
  }

  /* 🇫🇷 France — Blue · White · Red vertical tricolore */
  .di-nav-item[data-city="paris"]::after {
    background: linear-gradient(90deg,
        #002395 0% 33%,
        #ffffff 33% 66%,
        #ED2939 66% 100%);
  }

  /* 🇬🇧 UK — Navy · Red · White Union Jack palette */
  .di-nav-item[data-city="london"]::after {
    background: linear-gradient(90deg,
        #012169 0% 25%,
        #C8102E 25% 50%,
        #ffffff 50% 75%,
        #012169 75% 100%);
  }

  /* 🇦🇪 UAE — Green · White · Black · Red horizontal bands */
  .di-nav-item[data-city="dubai"]::after {
    background: linear-gradient(90deg,
        #009A44 0% 25%,
        #ffffff 25% 50%,
        #000000 50% 75%,
        #EF3340 75% 100%);
  }

  /* 🇨🇭 Switzerland — Red with White cross accent */
  .di-nav-item[data-city="switzerland"]::after {
    background: linear-gradient(90deg,
        #FF0000 0% 40%,
        #ffffff 40% 60%,
        #FF0000 60% 100%);
  }

  /* Active state — full width, full opacity, label turns white */
  .di-nav-item.active::after {
    width: 100%;
    opacity: 1;
  }

  .di-nav-item.active .di-nav-label {
    color: rgba(245, 241, 234, 0.95);
  }

  /* Hover state — partial expand */
  .di-nav-item:hover::after {
    width: 70%;
    opacity: 0.75;
  }

  .di-nav-item:hover .di-nav-label {
    color: rgba(245, 241, 234, 0.80);
  }


  /* ── Right: Content panel ── */
  .di-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: rgba(4, 16, 31, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 115, 51, 0.15);
    border-radius: var(--r-lg);
    text-align: left;
  }

  .di-text-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .di-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--copper);
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: block;
  }

  .di-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--ivory);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    align-self: flex-start;
    padding-bottom: 14px;
  }

  /* Flag-stripe underline on the right-panel title */
  .di-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    transition: background 0.6s var(--ease-rr);
  }

  /* 🇫🇷 France */
  #di-title[data-city="paris"]::after {
    background: linear-gradient(90deg,
        #002395 0% 33%,
        #ffffff 33% 66%,
        #ED2939 66% 100%);
  }

  /* 🇬🇧 UK */
  #di-title[data-city="london"]::after {
    background: linear-gradient(90deg,
        #012169 0% 25%,
        #C8102E 25% 50%,
        #ffffff 50% 75%,
        #012169 75% 100%);
  }

  /* 🇦🇪 UAE */
  #di-title[data-city="dubai"]::after {
    background: linear-gradient(90deg,
        #009A44 0% 25%,
        #ffffff 25% 50%,
        #000000 50% 75%,
        #EF3340 75% 100%);
  }

  /* 🇨🇭 Switzerland */
  #di-title[data-city="switzerland"]::after {
    background: linear-gradient(90deg,
        #FF0000 0% 40%,
        #ffffff 40% 60%,
        #FF0000 60% 100%);
  }

  .di-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(245, 241, 234, 0.75);
    margin-bottom: 2rem;
    font-weight: 300;
  }

  .di-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
  }

  .di-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .di-feature-icon {
    width: 20px;
    height: 20px;
    color: var(--copper);
    opacity: 0.8;
    flex-shrink: 0;
  }

  .di-feature-item span {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: rgba(245, 241, 234, 0.85);
    font-weight: 300;
  }

  /* Desktop override for CTA in identities panel */
  .di-content .di-cta {
    justify-content: space-between;
    padding: 1.2rem 2rem;
    border-radius: var(--r-md);
    color: var(--copper);
    font-size: 0.8rem;
  }

  .di-content .di-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ═══════════════════ FRANCHISE SECTION ═══════════════════ */
#franchise-section {
  padding: 7rem 2rem;
  background: #ffffff;
}

.franchise-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .franchise-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.franchise-text .sec-eyebrow {
  color: var(--copper);
}

.franchise-text .sec-title {
  color: var(--navy);
}

.franchise-text .sec-sub {
  color: var(--text-sec);
  margin-top: 1rem;
  display: block;
}

.franchise-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2.5rem;
  padding: 16px 40px;
  border: 1px solid var(--border-copper);
  color: var(--copper);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  transition: all 0.5s var(--ease-rr);
  position: relative;
  overflow: hidden;
}

.franchise-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease-out-expo);
}

.franchise-cta:hover::after {
  transform: translateX(130%);
}

.franchise-cta:hover {
  background: var(--copper);
  color: var(--navy);
  border-color: var(--copper);
}

.franchise-visual {
  position: relative;
}

.franchise-img {
  height: 500px;
  background-image: url('../global/assets/img/global-expansion-map.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  border-radius: var(--r-md);
}

.franchise-overlay-text {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 12vw, 10rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 115, 51, 0.35);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .franchise-visual {
    display: none;
  }
}
