/**
 * =============================================================================
 * NEXUS LIVING HUB — ABOUT PAGE STYLES
 * about/assets/css/about.css
 *
 * Page-specific styles for /about/index.html
 * Relies on: ../../style-tokens.css (tokens), ../../global.css (components)
 *
 * Sections:
 *  01. About Hero (60vh warm split)
 *  02. Our Story (editorial long-form prose)
 *  03. Mission & Vision (two-card layout)
 *  04. Our Values (2×2 icon grid)
 *  05. The Team (4-card department row)
 *  06. Experience Centre (espresso dark, 2-col with map)
 *  07. Milestones Timeline (vertical alternating)
 *  08. About CTA (cream with decorative gold frame)
 * =============================================================================
 */


/* =============================================================================
   01. ABOUT HERO
   Height: 60vh, warm split — content left / image right (desktop)
   Mobile: image above, content below
   ============================================================================= */

.about-hero {
  min-height: 60vh;
  background-color: var(--color-bg-primary);
  padding-top: 72px; /* nav height compensation */
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: calc(60vh - 72px);
}

@media (min-width: 768px) {
  .about-hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Content (left column) ─────────────────────────────────────────────────── */

.about-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  order: 2;
}

@media (min-width: 768px) {
  .about-hero__content {
    order: 1;
    padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) var(--space-2xl);
  }
}

@media (min-width: 1280px) {
  .about-hero__content {
    padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) 3rem;
    max-width: 640px;
  }
}

.about-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
  flex-wrap: wrap;
}

.about-hero__breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.about-hero__breadcrumb a:hover {
  color: var(--color-accent-gold);
}

.about-hero__breadcrumb-sep {
  color: var(--color-border);
}

.about-hero__breadcrumb-current {
  color: var(--color-accent-gold);
}

.about-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--h1-size);
  color: var(--color-accent-dark);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 0;
}

.about-hero__rule {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-gold), transparent);
  border-radius: var(--radius-pill);
  margin: var(--space-md) 0;
}

.about-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  max-width: 480px;
}

/* ── Image (right column) ──────────────────────────────────────────────────── */

.about-hero__image {
  order: 1;
  position: relative;
  min-height: 280px;
  background-color: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-hero__image {
    order: 2;
    min-height: auto;
  }
}

.about-hero__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background-color: var(--color-bg-secondary);
}

.about-hero__image-placeholder i {
  font-size: 4rem;
  color: var(--color-border);
}

.about-hero__image-placeholder span {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  text-align: center;
  padding: 0 var(--space-md);
}

.about-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle warm grain overlay on hero image */
.about-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}


/* =============================================================================
   02. OUR STORY SECTION
   Single-column editorial prose, max-width 720px, ornamental dividers
   ============================================================================= */

.story-section {
  padding: var(--section-pad-mobile);
  background-color: var(--color-bg-secondary);
}

@media (min-width: 768px) {
  .story-section {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .story-section {
    padding: var(--section-pad-desktop);
  }
}

.story-section .section-header {
  margin-bottom: var(--space-2xl);
}

.story-prose {
  max-width: 720px;
  margin: 0 auto;
}

.story-prose p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  line-height: 1.85;
  color: var(--color-text-primary);
  max-width: 72ch;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.story-prose .reveal {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.story-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.story-divider::before,
.story-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.story-divider-ornament {
  color: var(--color-accent-gold);
  font-size: 0.875rem;
  opacity: 0.75;
  letter-spacing: 0.4em;
}


/* =============================================================================
   03. MISSION & VISION
   Two cards side by side, gold top border, generous padding
   ============================================================================= */

.mission-section {
  padding: var(--section-pad-mobile);
  background-color: var(--color-bg-primary);
}

@media (min-width: 768px) {
  .mission-section {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .mission-section {
    padding: var(--section-pad-desktop);
  }
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mission-card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-accent-gold);
  transition: var(--transition-card);
}

@media (max-width: 767px) {
  .mission-card {
    padding: var(--space-xl) var(--space-lg);
  }
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mission-card__label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-md);
}

.mission-card__text {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: var(--fw-medium);
  color: var(--color-accent-dark);
  line-height: var(--lh-normal);
  max-width: 100%;
}


/* =============================================================================
   04. OUR VALUES
   2×2 icon-block grid, circular icon backgrounds
   ============================================================================= */

.values-section {
  padding: var(--section-pad-mobile);
  background-color: var(--color-bg-secondary);
}

@media (min-width: 768px) {
  .values-section {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .values-section {
    padding: var(--section-pad-desktop);
  }
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition-card);
}

.value-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-gold);
}

.value-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.value-icon-wrap i {
  font-size: 1.5rem;
  color: var(--color-accent-gold);
}

.value-block h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-dark);
}

.value-block p {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-primary);
  line-height: var(--lh-relaxed);
  max-width: 100%;
}


/* =============================================================================
   05. THE TEAM
   4 department cards in a row, circular icon placeholder, hover lift
   ============================================================================= */

.team-section {
  padding: var(--section-pad-mobile);
  background-color: var(--color-bg-primary);
}

@media (min-width: 768px) {
  .team-section {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .team-section {
    padding: var(--section-pad-desktop);
  }
}

.team-section .section-header p {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: var(--space-sm) auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-card);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 169, 110, 0.4);
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-primary);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.team-card__avatar i {
  font-size: 2rem;
  color: var(--color-accent-gold);
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
}

.team-card p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 100%;
}


/* =============================================================================
   06. EXPERIENCE CENTRE
   Dark espresso section, two-column content + map, address block
   ============================================================================= */

.experience-section {
  padding: var(--section-pad-mobile);
  background-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
}

@media (min-width: 768px) {
  .experience-section {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .experience-section {
    padding: var(--section-pad-desktop);
  }
}

.experience-section .section-header h2 {
  color: var(--color-accent-gold);
}

.experience-section .section-header p {
  color: rgba(245, 240, 232, 0.8);
}

.experience-section .section-header .heading-accent {
  background: var(--color-accent-gold);
  opacity: 0.5;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

@media (min-width: 1024px) {
  .experience-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-3xl);
  }
}

/* ── Left: Contact Content ─────────────────────────────────────────────────── */

.experience-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.experience-content address {
  font-style: normal;
}

.experience-address-label {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-xs);
}

.experience-address-text {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--lh-relaxed);
  color: rgba(245, 240, 232, 0.9);
}

.experience-hours-label {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-xs);
}

.experience-hours-text {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: rgba(245, 240, 232, 0.8);
  line-height: var(--lh-relaxed);
}

.experience-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.experience-contacts a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: rgba(245, 240, 232, 0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.experience-contacts a:hover {
  color: var(--color-accent-gold);
}

.experience-contacts i {
  color: var(--color-accent-gold);
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.experience-cta-wrap {
  margin-top: var(--space-xs);
}

/* ── Right: Map ────────────────────────────────────────────────────────────── */

.experience-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg-secondary);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.experience-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  height: 100%;
  width: 100%;
}

.map-placeholder i {
  font-size: 3rem;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-md);
}

.map-placeholder p {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.map-placeholder a {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--transition-fast), gap 200ms ease;
}

.map-placeholder a:hover {
  color: var(--color-cta);
  gap: 0.625rem;
}


/* =============================================================================
   07. MILESTONES TIMELINE
   Vertical timeline, alternating left-right (desktop), all-left (mobile)
   Connecting gold vertical line, year circles
   ============================================================================= */

.milestones-section {
  padding: var(--section-pad-mobile);
  background-color: var(--color-bg-secondary);
}

@media (min-width: 768px) {
  .milestones-section {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .milestones-section {
    padding: var(--section-pad-desktop);
  }
}

.milestones-track {
  position: relative;
  max-width: 820px;
  margin: var(--space-2xl) auto 0;
}

/* Connecting vertical line */
.milestones-track::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px; /* centered on year circle for mobile */
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 169, 110, 0.3) 8%,
    rgba(201, 169, 110, 0.3) 92%,
    transparent
  );
  pointer-events: none;
}

@media (min-width: 768px) {
  .milestones-track::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Individual milestone */
.milestone-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-md);
  align-items: start;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.milestone-item:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .milestone-item {
    grid-template-columns: 1fr 48px 1fr;
    gap: var(--space-xl);
  }

  /* All items: year circle in center column */
  .milestone-year-wrap {
    grid-column: 2;
    grid-row: 1;
  }

  /* Even items: content on RIGHT (col 3) */
  .milestone-content {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
  }

  /* Odd items: content on LEFT (col 1) */
  .milestone-item:nth-child(odd) .milestone-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }
}

.milestone-year-wrap {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.milestone-year {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px var(--color-bg-secondary), 0 0 0 6px rgba(201, 169, 110, 0.25);
}

.milestone-content {
  padding-top: 0.75rem; /* align text with circle midpoint */
}

.milestone-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-snug);
}

.milestone-content p {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-primary);
  line-height: var(--lh-relaxed);
  max-width: 100%;
}

@media (min-width: 768px) {
  .milestone-item:nth-child(odd) .milestone-content p {
    margin-left: auto; /* push right-aligned text block */
  }
}


/* =============================================================================
   08. ABOUT CTA SECTION
   Warm cream background, editorial gold-bordered frame
   ============================================================================= */

.about-cta-section {
  padding: var(--section-pad-mobile);
  background-color: var(--color-bg-primary);
}

@media (min-width: 768px) {
  .about-cta-section {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .about-cta-section {
    padding: var(--section-pad-desktop);
  }
}

.about-cta-frame {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--color-accent-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
}

/* Inner double-frame decorative line */
.about-cta-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

@media (max-width: 639px) {
  .about-cta-frame {
    padding: var(--space-xl) var(--space-md);
  }

  .about-cta-frame::before {
    display: none;
  }
}

.about-cta-frame h2 {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-md);
  line-height: var(--lh-snug);
}

.about-cta-frame p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  color: var(--color-text-primary);
  line-height: var(--lh-relaxed);
  max-width: 52ch;
  margin: 0 auto var(--space-xl);
}

.about-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}
