/* ============================================
   ABOUT PAGE - Desktop Styles
   ============================================

   This file contains desktop-first styles for the about page:
   - Hero Section
   - Values Section
   - Story Section
   - Team Section
   - CTA Section
   - Scroll to Top

   Responsive styles are in responsive/ directory
   ============================================ */

/*==========ABOUT US===========*/
/* optional tighter container – if you prefer this globally, keep it.
   If not, you can remove this rule. */
   .container {
    max-width: var(--about-container-width);
  }

  /* Buttons reuse existing .btn styles from home.css; these just refine variants */
  .btn-primary {
    background: var(--gradient-gold);
    color: var(--card);
    box-shadow: 0 14px 30px rgba(246, 196, 83, 0.35);
    /* Note: Keeping rgba shadow with specific opacity for design effect */
  }
  .btn-primary:hover {
    box-shadow: 0 18px 40px rgba(246, 196, 83, 0.42);
    transform: translateY(-1px);
  }
  .btn-ghost {
    background: var(--brand-blue);
    color: var(--text-light);
    border-color: rgba(148, 163, 184, 0.5);
  }
  .btn-ghost:hover {
    background: var(--brand-gold-light);
    border-color: rgba(148, 163, 184, 0.9);
  }

  /* ---------- Hero ---------- */

  .about-hero {
    padding: 3.5rem 0 4.5rem;
    /* Light background with blue accents for better contrast - Referrals page style */
    background: linear-gradient(180deg,
      var(--bg) 0%,
      rgba(26, 67, 191, 0.02) 30%,
      rgba(26, 67, 191, 0.04) 50%,
      rgba(26, 67, 191, 0.02) 70%,
      var(--bg) 100%);
    color: var(--text-light);
    font-family: var(--about-font-sans);
    position: relative;
    overflow: hidden;

  }

  /* Architectural grid pattern - Referrals page style */
  .about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Architectural grid pattern - blueprint style */
   /* background:
      /* Subtle grid lines */
      /*repeating-linear-gradient(0deg,
        /*transparent 0px,
    /    transparent 99px,
     /   rgba(26, 67, 191, 0.04) 100px,
      /  rgba(26, 67, 191, 0.04) 101px),
      /repeating-linear-gradient(90deg,
       / transparent 0px,
    /    transparent 99px,
        rgba(26, 67, 191, 0.04) 100px,*/
     /*   rgba(26, 67, 191, 0.04) 101px),*/
      /* Flowing architectural curves */
     /* radial-gradient(ellipse 1200px 600px at 15% 20%, rgba(26, 67, 191, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 1000px 800px at 85% 80%, rgba(26, 67, 191, 0.06) 0%, transparent 55%),/*
      /* Central focus point */
      /*radial-gradient(ellipse 800px 500px at 50% 50%, rgba(26, 67, 191, 0.05) 0%, transparent 60%);*/
    mix-blend-mode: multiply;
    opacity: 0.6;
    animation: aboutHeroBackgroundFlow 20s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes aboutHeroBackgroundFlow {
    0%, 100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.6;
    }
    25% {
      transform: translate3d(-10px, 8px, 0) scale(1.02);
      opacity: 0.65;
    }
    50% {
      transform: translate3d(8px, -10px, 0) scale(1.01);
      opacity: 0.63;
    }
    75% {
      transform: translate3d(-6px, 6px, 0) scale(1.015);
      opacity: 0.65;
    }
  }

  /* Geometric shapes overlay - Referrals page style */
  .about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Geometric shapes overlay */
    background:
      /* Diagonal accent lines */
      linear-gradient(135deg, transparent 0%, rgba(26, 67, 191, 0.03) 25%, transparent 50%),
      linear-gradient(225deg, transparent 0%, rgba(26, 67, 191, 0.03) 25%, transparent 50%),
      /* Corner highlights */
      radial-gradient(circle at 0% 0%, rgba(26, 67, 191, 0.06) 0%, transparent 40%),
      radial-gradient(circle at 100% 100%, rgba(26, 67, 191, 0.06) 0%, transparent 40%);
    pointer-events: none;
  }

  /* Ensure content is above background patterns */
  .about-hero .container {
    position: relative;
    z-index: 1;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 2.7vw, 2.8rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--brand-blue);
  }

  .hero-subtitle {
    margin: 0 0 1.6rem;
    color: var(--dark-alt);
  }

  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.85rem;
  }

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

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin: 0;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--brand-blue);
    background: var(--card);
    color: var(--brand-blue);
  }
  .hero-stats dt {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-blue);
    /* Note: Keeping specific gray for hero stats */
  }
  .hero-stats dd {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--brand-blue);
  }

  /* Hero media */

  .hero-media {
    display: flex;
    justify-content: flex-end;
  }

  .hero-media-composition {
    position: relative;
    width: min(620px, 100%);
  }

  .hero-media-composition::before {
    content: '';
    position: absolute;
    inset: -12% -8% auto auto;
    width: clamp(220px, 28vw, 320px);
    height: clamp(220px, 28vw, 320px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 67, 191, 0.2), rgba(26, 67, 191, 0));
    opacity: 0.5;
    pointer-events: none;
  }

  .hero-media-frame {
    position: relative;
    border-radius: calc(var(--about-radius-xl) + 10px);
    padding: clamp(12px, 2vw, 16px);
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(135deg, rgba(26, 67, 191, 0.35), rgba(148, 163, 184, 0.2)) border-box;
    border: 1px solid transparent;
    box-shadow:
      0 30px 70px rgba(15, 23, 42, 0.2),
      0 0 0 1px rgba(26, 67, 191, 0.08);
    overflow: hidden;
    isolation: isolate;
  }

  .hero-media-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(90deg, rgba(26, 67, 191, 0.05) 1px, transparent 1px),
      linear-gradient(0deg, rgba(26, 67, 191, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
  }

  .hero-media-frame img {
    width: 100%;
    height: clamp(320px, 44vw, 440px);
    object-fit: cover;
    border-radius: calc(var(--about-radius-xl) + 2px);
    display: block;
    animation: heroMediaFloat 14s ease-in-out infinite;
  }

  .hero-media-badge {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 0.35rem 0.9rem;
    border-radius: var(--about-radius-pill);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-blue);
    font-weight: 600;
    z-index: 1;
    border: 1px solid rgba(26, 67, 191, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  }

  .hero-media-accent {
    position: absolute;
    pointer-events: none;
  }

  .hero-media-accent--dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    right: 22px;
    top: 22px;
    background: var(--brand-blue);
    box-shadow: 0 0 0 6px rgba(26, 67, 191, 0.15);
  }

  .hero-media-accent--ring {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    right: -18px;
    bottom: 32px;
    border: 2px solid rgba(26, 67, 191, 0.25);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.6);
  }

  .hero-image-card {
    position: relative;
    border-radius: var(--about-radius-xl);
    overflow: hidden;
    background: var(--dark-base);
    box-shadow: var(--about-shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.28);
  }

  .hero-image-card img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
  }

  .hero-image-card figcaption {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.85));
  }

  .hero-image-card figcaption p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--about-text-muted);
  }

  .pill {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: var(--about-radius-pill);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--about-accent-soft);
    color: var(--about-accent);
  }

  @keyframes heroMediaFloat {
    0%, 100% {
      transform: scale(1.01) translateY(0);
    }
    50% {
      transform: scale(1.03) translateY(-8px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-media-frame img {
      animation: none;
      transform: none;
    }
  }

  @media (max-width: 960px) {
    .hero-media-composition {
      width: min(560px, 100%);
    }
  }

  /* ---------- Generic about sections ---------- */

  .about-section {
    padding: 2rem 0;
  }

  .about-section-alt {
    background: var(--card);
    border: 1px solid var(--brand-blue);
    border-radius: 10px;
      /* Note: Keeping specific dark gradient for about-section-alt */
  }

  .section-header {
    max-width: 640px;
    text-align: left;
    margin-bottom: 2.75rem;
  }
  .section-header h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: var(--text);
    /* Note: Using base text color for section header */
  }
  .section-header p {
    margin: 0;
    color: var(--dark-alt);
    font-size: 1.2rem;
  }

  /* ---------- Values ---------- */

  .values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .value-card {
    border-radius: var(--about-radius-lg);
    background: var(--brand-blue);
    border: 1px solid var(--about-border-subtle);
    padding: 1.3rem 1.25rem 1.25rem;
  }
  #values-title {
    font-weight: 700;
  }
  .value-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg);
  }
  .value-card p {
    margin: 0;
    color: var(--card);
    /* Note: Using base text color for value card text */
  }

  /* ---------- Our story ---------- */

  .split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
  }

  .split-text h2 {
    margin: 0 0 1rem;
    color: var(--dark-alt);
    font-weight: 700;
  }
  .split-text p {
    margin: 0 0 0.9rem;
    color: var(--dark-alt);
  }

  .split-cards {
    display: grid;
    gap: 1rem;
  }

  .story-card {
    border-radius: var(--about-radius-lg);
    padding: 1.3rem 1.25rem 1.25rem;
    border: 1px solid var(--about-border-subtle);
    background: var(--brand-blue);
  }
  .story-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 700;
  }
  .story-card p {
    margin: 0;
    color: var(--text-white);
  }

  /* ---------- Team ---------- */

  .about-section-team {
    background: var(--bg);
  }

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

  .team-card {
    border-radius: var(--about-radius-xl);
    background: var(--card);
    /* Note: Using base text color (black) for team card background */
    border: 1px solid var(--brand-blue);
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.65);
  }

  #team-title {
    color: var(--brand-blue);
    /* Note: Keeping specific blue for team title accent */
    font-weight: 700;
  }

  .team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .team-info {
    padding: 1.1rem 1.1rem 1.2rem;
  }
  .team-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    color: var(--brand-blue);
    font-weight: 700;
  }
  .team-role {
    margin: 0 0 0.7rem;
    font-size: 0.85rem;
    color: var(--brand-orange);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .team-bio {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-alt);
  }

  /* ---------- CTA ---------- */

  .about-cta-section {
    padding: 4rem 0 4.5rem;
  }

  .cta-inner {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: var(--text-light);
    padding: 2.4rem 2.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.1rem;
    box-shadow: var(--about-shadow-soft);
    margin-top: -80px;
  }
  .cta-inner h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.6rem, 2vw, 1.8rem);
    color: var(--brand-blue);
  }
  .cta-inner p {
    margin: 0;
    color: var(--dark-alt);
    max-width: 480px;
  }
  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-end;
  }

  /* ---------- Scroll to top ---------- */
  /* Note: Scroll-top styles moved to components/scroll-top.css */
