/* ============================================================
   BRAND DETAIL PAGES — Apple-Style Presentation
   ============================================================ */

/* -----------------------------------------------------------
   Brand Hero — Full viewport, gradient background
   ----------------------------------------------------------- */
.brand-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.brand-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brand-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.brand-hero__logo {
  max-width: 280px;
  max-height: 120px;
  margin: 0 auto 32px;
  display: block;
  object-fit: contain;
}

.brand-hero__logo-text {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 32px;
  line-height: 1;
}

.brand-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.brand-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
  line-height: 1.5;
}

.brand-hero__date {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-hero__visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 100px;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-hero__visit:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.brand-hero__visit svg {
  width: 16px;
  height: 16px;
}

.brand-hero__visit--soon {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  cursor: default;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-hero__back {
  position: absolute;
  top: 100px;
  left: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand-hero__back:hover {
  color: #fff;
}

.brand-hero__back svg {
  width: 16px;
  height: 16px;
}

.brand-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: brand-hero-bounce 2s ease-in-out infinite;
}

.brand-hero__scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes brand-hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* -----------------------------------------------------------
   Brand Overview — 2-column story + stats
   ----------------------------------------------------------- */
.brand-overview {
  padding: var(--section-padding) 24px;
}

.brand-overview__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}

.brand-overview__story h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-700);
  margin: 0 0 24px;
  line-height: 1.15;
}

[data-theme="dark"] .brand-overview__story h2 {
  color: var(--white);
}

.brand-overview__story p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-400);
  margin: 0 0 20px;
}

[data-theme="dark"] .brand-overview__story p {
  color: var(--gray-200);
}

.brand-overview__sidebar {
  position: sticky;
  top: 120px;
}

.brand-overview__stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brand-stat {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
}

[data-theme="dark"] .brand-stat {
  border-bottom-color: var(--gray-600);
}

.brand-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brand-stat__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-700);
  display: block;
  margin-bottom: 4px;
}

[data-theme="dark"] .brand-stat__value {
  color: var(--white);
}

.brand-stat__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-300);
  letter-spacing: 0.02em;
}

[data-theme="dark"] .brand-stat__label {
  color: var(--gray-200);
}

/* -----------------------------------------------------------
   Immersive Photo — Full-bleed with parallax
   ----------------------------------------------------------- */
.brand-immersive {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
}

.brand-immersive__img {
  width: 100%;
  height: 85vh;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.brand-immersive__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 40px 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
}

.brand-immersive__caption h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}

.brand-immersive__caption p {
  font-family: var(--font-body);
  font-size: 15px;
  opacity: 0.8;
  margin: 0;
}

/* -----------------------------------------------------------
   Feature Split — Alternating text + image
   ----------------------------------------------------------- */
.brand-split {
  padding: var(--section-padding) 24px;
}

.brand-split__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.brand-split--reverse .brand-split__inner {
  direction: rtl;
}

.brand-split--reverse .brand-split__content,
.brand-split--reverse .brand-split__media {
  direction: ltr;
}

.brand-split__content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-700);
  margin: 0 0 20px;
  line-height: 1.2;
}

[data-theme="dark"] .brand-split__content h2 {
  color: var(--white);
}

.brand-split__content p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-400);
  margin: 0 0 16px;
}

[data-theme="dark"] .brand-split__content p {
  color: var(--gray-200);
}

.brand-split__media {
  border-radius: 16px;
  overflow: hidden;
}

.brand-split__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.brand-split__media:hover img {
  transform: scale(1.03);
}

/* -----------------------------------------------------------
   Photo Pair — Two side-by-side
   ----------------------------------------------------------- */
.brand-pair {
  padding: 0 24px;
  margin: var(--section-padding) auto;
  max-width: var(--container-wide);
}

.brand-pair__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.brand-pair__img {
  border-radius: 16px;
  overflow: hidden;
}

.brand-pair__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.brand-pair__img:hover img {
  transform: scale(1.04);
}

/* -----------------------------------------------------------
   Quote — Typographic callout
   ----------------------------------------------------------- */
.brand-quote {
  padding: var(--section-padding) 24px;
  background: var(--gray-50);
}

[data-theme="dark"] .brand-quote {
  background: var(--gray-700);
}

.brand-quote__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.brand-quote__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gray-700);
  line-height: 1.3;
  margin: 0 0 24px;
}

[data-theme="dark"] .brand-quote__text {
  color: var(--white);
}

.brand-quote__attr {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-300);
}

[data-theme="dark"] .brand-quote__attr {
  color: var(--gray-200);
}

/* -----------------------------------------------------------
   Photo Gallery — 3-column grid with lightbox triggers
   ----------------------------------------------------------- */
.brand-gallery {
  padding: var(--section-padding) 24px;
}

.brand-gallery__header {
  max-width: var(--container-width);
  margin: 0 auto 48px;
}

.brand-gallery__header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-700);
  margin: 0;
}

[data-theme="dark"] .brand-gallery__header h2 {
  color: var(--white);
}

.brand-gallery__grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.brand-gallery__item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.brand-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.brand-gallery__item:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.brand-gallery__item--wide {
  grid-column: span 2;
}

.brand-gallery__item--tall {
  grid-row: span 2;
}

.brand-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.brand-gallery__item:hover img {
  transform: scale(1.04);
}

/* -----------------------------------------------------------
   Lightbox
   ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out-expo);
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

/* -----------------------------------------------------------
   Next Brand CTA
   ----------------------------------------------------------- */
.brand-next {
  padding: var(--section-padding) 24px;
  text-align: center;
  border-top: 1px solid var(--gray-100);
}

[data-theme="dark"] .brand-next {
  border-top-color: var(--gray-600);
}

.brand-next__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

[data-theme="dark"] .brand-next__label {
  color: var(--gray-200);
}

.brand-next__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gray-700);
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

[data-theme="dark"] .brand-next__link {
  color: var(--white);
}

.brand-next__link:hover {
  color: var(--accent);
}

.brand-next__link svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.brand-next__link:hover svg {
  transform: translateX(8px);
}

/* -----------------------------------------------------------
   Brand page footer adjustment
   ----------------------------------------------------------- */
.brand-page .footer__back-top {
  display: none;
}

/* -----------------------------------------------------------
   Responsive — 1024px
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .brand-overview__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .brand-overview__sidebar {
    position: static;
  }

  .brand-overview__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .brand-stat {
    flex: 1;
    min-width: 140px;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid var(--gray-100);
    padding-right: 24px;
  }

  [data-theme="dark"] .brand-stat {
    border-right-color: var(--gray-600);
  }

  .brand-stat:last-child {
    border-right: none;
    padding-right: 0;
  }

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

  .brand-gallery__item--wide {
    grid-column: span 2;
  }
}

/* -----------------------------------------------------------
   Responsive — 768px
   ----------------------------------------------------------- */
@media (max-width: 768px) {
  .brand-split__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brand-split--reverse .brand-split__inner {
    direction: ltr;
  }

  .brand-pair__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-hero__back {
    top: 80px;
    left: 20px;
  }

  .lightbox__nav--prev {
    left: 12px;
  }

  .lightbox__nav--next {
    right: 12px;
  }
}

/* -----------------------------------------------------------
   Responsive — 480px
   ----------------------------------------------------------- */
@media (max-width: 480px) {
  .brand-hero__logo {
    max-width: 180px;
    max-height: 80px;
  }

  .brand-hero__logo-text {
    font-size: 40px;
  }

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

  .brand-gallery__item--wide {
    grid-column: span 1;
  }

  .brand-gallery__item--tall {
    grid-row: span 1;
  }

  .brand-overview__stats {
    flex-direction: column;
  }

  .brand-stat {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 24px;
  }

  [data-theme="dark"] .brand-stat {
    border-right: none;
    border-bottom-color: var(--gray-600);
  }

  .brand-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__close {
    width: 40px;
    height: 40px;
    top: 16px;
    right: 16px;
  }
}
