/* ================================================================
   ABOUT — The Haller Family page
   Prefix: .about-
   Design tokens + shared components come from main.css
   ================================================================ */


/* ----------------------------------------------------------------
   §1  HERO
   ---------------------------------------------------------------- */
.about-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.about-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.15) 0%,
    rgba(10,22,40,0.10) 35%,
    rgba(10,22,40,0.72) 100%
  );
}

.about-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(4rem, 10vh, 8rem);
  max-width: 860px;
}

.about-hero__label {
  display: block;
  margin-bottom: 1.5rem;
}

.about-hero__h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Script accent word — "good" */
.about-hero__h1 .sw--script-inline {
  display: inline;
  position: relative;
  top: -0.02em;
  transition: top 0.3s ease, margin 0.3s ease;
}
.about-hero__h1 .hero__script-word {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.15em;
  font-style: normal;
  letter-spacing: 0.01em;
}

/* Scroll hint */
.about-hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(2rem, 5vw, 5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.85; }
}


/* ----------------------------------------------------------------
   §2  ORIGIN STORY
   ---------------------------------------------------------------- */
.about-origin {
  background: var(--color-sand);
  overflow: hidden;
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(5rem, 10vh, 8rem);
}

.about-origin__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.about-origin__text {
  max-width: 700px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-origin__label {
  display: block;
  margin-bottom: 1.25rem;
}

.about-origin__h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ocean);
  margin: 0 0 1.5rem;
}

.about-origin__body {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(10,22,40,0.8);
  margin: 0 0 1rem;
}

.about-origin__body:last-of-type {
  margin-bottom: 0;
}

/* 3 construction photos — horizontal strip, full bleed below text */
.about-origin__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: clamp(240px, 35vw, 480px);
}

.about-origin__photo {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.about-origin__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

.about-origin__photo:hover img {
  transform: scale(1.04);
}


/* ----------------------------------------------------------------
   §3  WEDDING
   ---------------------------------------------------------------- */
.about-wedding {
  background: var(--color-ocean);
  overflow: hidden;
}

.about-wedding__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

/* Gallery — wedding photos */
.about-wedding__gallery {
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
}

.about-wedding__gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  width: 100%;
}

/* Swipe hint — hidden by default, mobile shows it */
.about-wedding__swipe-hint {
  display: none;
}

.about-wedding__fig {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

.about-wedding__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s ease;
}

.about-wedding__fig:hover img {
  transform: scale(1.04);
}

.about-wedding__fig--main {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
  height: auto;
}

.about-wedding__fig:not(.about-wedding__fig--main) {
  aspect-ratio: 3 / 2;
  height: auto;
}

/* Mobile-only heading block — hidden on desktop */
.about-wedding__heading {
  display: none;
}

/* Text */
.about-wedding__text {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-wedding__label {
  display: block;
  margin-bottom: 1.25rem;
  /* section-label applies gold colour from main.css */
}

.about-wedding__h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0 0 1.5rem;
}

.about-wedding__body {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  margin: 0 0 1rem;
}

.about-wedding__cta {
  align-self: flex-start;
  margin-top: 1rem;
}


/* ----------------------------------------------------------------
   §4  TEAM — Profile cards
   ---------------------------------------------------------------- */
.about-team {
  background: var(--color-white);
  padding: clamp(5rem, 10vh, 9rem) 0;
}

.about-team__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.about-team__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-team__h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--color-ocean);
  margin: 0.75rem 0 1rem;
}

.about-team__intro {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(10,22,40,0.65);
  max-width: 540px;
  margin: 0 auto;
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Card */
.about-team__card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.about-team__photo-wrap {
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
  width: clamp(160px, 20vw, 240px);
}

.about-team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.7s ease;
}

.about-team__card:hover .about-team__photo {
  transform: scale(1.06);
}

.about-team__card-body {
  flex: 1;
}

.about-team__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--color-ocean);
  margin: 0 0 0.25rem;
}

.about-team__role {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 0.75rem;
}

.about-team__note {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10,22,40,0.72);
  margin: 0;
}


/* ----------------------------------------------------------------
   §5  VILLAS AS SELF-PORTRAIT
   ---------------------------------------------------------------- */
.about-villas {
  background: var(--color-sand);
  padding: clamp(5rem, 10vh, 9rem) 0;
  overflow: hidden;
}

.about-villas__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.about-villas__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-villas__label {
  display: block;
  margin-bottom: 1rem;
}

.about-villas__h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--color-ocean);
  margin: 0.75rem 0 1rem;
}

.about-villas__intro {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(10,22,40,0.7);
  max-width: 680px;
  margin: 0 auto;
  font-style: italic;
}

.about-villas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Villa card */
.about-villas__card {
  display: block;
  text-decoration: none;
  background: var(--color-white);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-villas__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10,22,40,0.14);
}

.about-villas__card-img-wrap {
  overflow: hidden;
  aspect-ratio: 3/2;
}

.about-villas__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.about-villas__card:hover .about-villas__card-img {
  transform: scale(1.05);
}

.about-villas__card-body {
  padding: 1.5rem 1.75rem;
}

.about-villas__card-name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--color-ocean);
  margin: 0 0 0.3rem;
}

.about-villas__card-location {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(10,22,40,0.6);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.about-villas__card-link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  text-transform: uppercase;
}


/* ----------------------------------------------------------------
   §6  CLOSE CTA
   ---------------------------------------------------------------- */
.about-close {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-close__bg {
  position: absolute;
  inset: 0;
}

.about-close__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.about-close__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.80) 0%,
    rgba(10,22,40,0.55) 100%
  );
}

.about-close__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 680px;
}

.about-close__h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 1rem 0 1.5rem;
}

.about-close__sub {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  margin: 0 0 2.5rem;
}

.about-close__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.about-close__note {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin: 0;
  text-transform: uppercase;
}


/* ----------------------------------------------------------------
   §7  ORIGIN PHOTO LIGHTBOX
   ---------------------------------------------------------------- */
.origin-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.94);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.origin-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.origin-lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

.origin-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1;
}

.origin-lightbox__close:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}

/* Make photos show as clickable thumbnails */
.about-origin__photo {
  cursor: pointer;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
  .about-team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}

@media (max-width: 900px) {
  /* Wedding: stack gallery above text */
  .about-wedding__inner {
    grid-template-columns: 1fr;
  }

  /* Villas: 2 columns */
  .about-villas__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-hero__h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .about-hero__h1 br {
    display: none;
  }

  .about-hero__scroll-hint {
    display: none;
  }

  .about-origin__h2,
  .about-wedding__h2,
  .about-team__h2,
  .about-villas__h2,
  .about-close__h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  /* Origin photos on mobile: all 3 as equal thumbnails in a row, tap to expand */
  .about-origin__photos {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    height: 38vw;
    min-height: 160px;
    max-height: 240px;
  }

  .about-origin__photo:not(:first-child) {
    display: block; /* show all 3 */
  }

  /* Wedding section on mobile: heading → strip → body+CTA
     — same pattern as island page .krk-discover                          */
  .about-wedding__inner {
    display: flex;
    flex-direction: column;
  }

  /* 1 — mobile heading (label + h2) */
  .about-wedding__heading {
    display: block;
    order: 1;
    padding: 2.5rem 1.5rem 1.5rem;
  }

  /* 2 — image strip, full bleed */
  .about-wedding__gallery {
    order: 2;
    display: block;
    padding: 0;
    overflow: visible;
  }

  /* 3 — body text + CTA, hide the duplicate label+h2 inside */
  .about-wedding__text {
    order: 3;
    padding: 2rem 1.5rem 2.5rem;
  }

  .about-wedding__text .about-wedding__label,
  .about-wedding__text .about-wedding__h2 {
    display: none;
  }

  /* Scrollable flex row — mirrors .krk-discover__track on mobile */
  .about-wedding__gallery-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 3px;
    padding: 0 0 0 0;
  }

  .about-wedding__gallery-grid::-webkit-scrollbar {
    display: none;
  }

  /* All tiles uniform — same proportions as island discover tiles */
  .about-wedding__fig--main,
  .about-wedding__fig:not(.about-wedding__fig--main) {
    grid-column: auto;
    flex: 0 0 80vw;
    max-width: 380px;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 0;
    scroll-snap-align: start;
  }

  /* Swipe hint — below strip, matches .krk-discover__hint style */
  .about-wedding__swipe-hint {
    display: block;
    padding: 0.875rem 0 2rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin: 0;
  }

  .about-team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .about-villas__grid {
    grid-template-columns: 1fr;
  }

  .about-close__ctas {
    flex-direction: column;
    align-items: center;
  }

  .about-close__ctas .cta-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
