/* ==========================================================================
   Furnora — About Page Styles
   Deep Navy + Champagne Gold luxury theme (matches the Home page).
   Loaded after style-index.css. Requires <body class="home-lux"> so the
   gradient tokens (--hx-*) and glossy shadows defined there are available.
   Every rule here is scoped to About-page classes only.
   ========================================================================== */

/* ── 0. Utility grids ───────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── 1. Page Hero ───────────────────────────────────────────────────────── */
.about-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  min-height: 83vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  z-index: -1;
  opacity: 0.5;
}

.about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ── 2. Our Story ───────────────────────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.story-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── 3. Timeline ────────────────────────────────────────────────────────── */
.timeline {
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, #0C2250 0%, #0C2250 40%, #C9962E 60%, #E2C06B 100%) 1;
  padding-left: 2rem;
  margin-top: 3rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

/* Glossy champagne-gold marker */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.38rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 2px !important;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 55%),
    var(--hx-g-gold);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(148, 112, 31, 0.35), 0 1px 4px rgba(5, 15, 42, 0.30);
}

.timeline-year {
  width: fit-content;
  color: #0C2250;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  background-image: var(--hx-g-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

/* ── 4. Mission / Vision / Values ───────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Tablet (601–900px): the 2-column grid leaves the third card alone on the
   left, so centre it on its own row at the same width as the others. */
@media (min-width: 601px) and (max-width: 900px) {
  .values-grid > :nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 2rem) / 2);
  }
}

.value-card {
  padding: 2.2rem 2rem;
  border: 1px solid var(--border);
  border-radius: 6px !important;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* ── 5. Stats ───────────────────────────────────────────────────────────── */
.stats-section .glass.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 6px !important;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .stats-section .glass.stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-section .glass.stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 2.4rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

/* Gradient fill for the number comes from style-index.css (.stat-v) */
.stat-v {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-family: var(--font-display);
  font-weight: 500;
  color: #0C2250;
  margin-bottom: 0.35rem;
}

.stat-l {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ── 6. Team / Leadership ───────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.team-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  /* champagne-gold rule between photo and caption */
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #F6E7B8 0%, #C9962E 50%, #F6E7B8 100%) 1;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.05);
}

.team-socials-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(5, 15, 42, 0.82) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.team-card:hover .team-socials-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-socials-overlay .icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0C2250;
  border: none;
}

.team-socials-overlay .icon-btn:hover {
  background: var(--hx-g-gold);
  color: #0C2250;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
  background: transparent;
  position: relative;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #091B40;
  margin-bottom: 0.35rem;
}

.team-role {
  color: #94701F;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-img-wrap {
    aspect-ratio: 3/2;
  }

  .team-info {
    padding: 0.85rem 1rem;
  }

  .team-name {
    font-size: 0.95rem;
  }

  .team-role {
    font-size: 0.68rem;
  }
}

@media (max-width: 450px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .team-img-wrap {
    aspect-ratio: 1/1;
  }
}

/* ── 7. Why Choose Us — icon style ─────────────────────────────────────── */
/* Gradient stroke comes from style-index.css (.card.sm .ico) */
.ico {
  width: 2rem;
  height: 2rem;
  color: #0C2250;
  margin-bottom: 0.75rem;
}

/* ── 8. Commitments (awards grid) ───────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .awards-grid { grid-template-columns: 1fr; }
}

.award-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px !important;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.award-card:hover {
  transform: translateY(-4px);
}

.award-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: #0C2250;
  margin: 0 auto 1rem;
  display: block;
}

.award-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.award-org {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── 9. Features grid wrap fix ──────────────────────────────────────────── */
.features-grid {
  margin-top: 0;
}

/* ==========================================================================
   10. Home-page luxury treatment (Deep Navy + Champagne Gold, glossy)
   Same gradient borders, shadows and gradient type as the Home page cards.
   ========================================================================== */

/* Gradient-hairline cards with glossy depth */
body.home-lux :is(.value-card, .award-card, .team-card) {
  border-color: transparent;
  background: var(--hx-surface) padding-box, var(--hx-bd) border-box;
  box-shadow: var(--hx-sh-card);
}

body.home-lux :is(.value-card, .award-card, .team-card):hover {
  --hx-bd: var(--hx-bd-strong);
  border-color: transparent;
  box-shadow: var(--hx-sh-card-hover);
}

/* Gradient headings inside About cards (matches .card h3 on Home) */
body.home-lux :is(.value-card h3, .timeline-title, .team-name, .award-title) {
  width: fit-content;
  max-width: 100%;
  color: #091B40;
  background-image: linear-gradient(100deg, #091B40 0%, #0C2250 60%, #1D3F85 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.home-lux :is(.team-name, .award-title) {
  margin-inline: auto;
}

/* Commitment icons: glossy cream tile with a navy-to-gold stroke */
body.home-lux .award-icon {
  box-sizing: content-box;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.8rem;
  border: 1px solid rgba(201, 150, 46, 0.40);
  border-radius: 6px;
  stroke: url(#hxStroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #E6EBF6 0%, #FBF3E4 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px -3px rgba(5, 15, 42, 0.22);
  transition: background 0.25s, box-shadow 0.25s;
}

body.home-lux .award-card:hover .award-icon {
  stroke: #FFF8E6;
  border-color: transparent;
  background: var(--hx-g-tile);
  box-shadow: var(--hx-sh-tile);
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-img-wrap img,
  .team-socials-overlay,
  .value-card,
  .award-card {
    transition: none;
  }

  .team-card:hover,
  .value-card:hover,
  .award-card:hover {
    transform: none;
  }
}