/* About page — uses global tokens from index.css */

/* Shared container already in index.css */
.section { padding: 5rem 0; }

/* Hero */
.about-hero {
  padding: 6rem 0 3rem;
  padding-top: 10rem;
  position: relative;
}
.about-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.about-hero__content h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}
.about-hero__content p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.about-hero .badge {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary-light);
  padding: .4rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  margin-bottom: .75rem;
}
.about-hero__media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
  display:block;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-card h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: .25rem;
}
.stat-card p { color: var(--text-gray); }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.value-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--gradient);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.6rem; color:#fff;
  margin-bottom: .9rem;
}
.value-card h3 { color: var(--white); margin-bottom: .4rem; }
.value-card p { color: var(--text-gray); }

/* Process */
.process-steps {
  list-style: none;
  max-width: 900px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1rem;
}
.step-index {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient);
  color:#fff; font-weight: 700; font-size: 1.2rem;
  display:flex; align-items:center; justify-content:center;
}
.step-body h3 { color: var(--white); margin: .2rem 0 .35rem; }
.step-body p { color: var(--text-gray); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.team-card img { width: 100%; height: 220px; object-fit: cover; display:block; }
.team-card h3 { color: var(--white); padding: 1rem 1rem .25rem; }
.team-card p { color: var(--text-gray); padding: 0 1rem 1rem; }

/* CTA */
.about-cta .cta-wrap {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .15), rgba(124,58,237,.12));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  text-align: center;
  padding: 2.25rem 1.5rem;
}
.about-cta h2 { color: var(--white); margin-bottom: .5rem; }
.about-cta p { color: var(--text-gray); margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 1100px) {
  .about-hero .container { grid-template-columns: 1fr; }
  .about-hero__media img { height: 320px; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .team-grid { grid-template-columns: 1fr; }
  .about-hero { padding-top: 5rem; }
}

/* Performance niceties */
.about-hero,
.about-stats,
.about-values,
.about-process,
.about-team,
.about-cta { content-visibility: auto; contain-intrinsic-size: 800px; 
}

/* --- Origin / Owner --- */
.about-origin .origin-wrap{
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 7rem;
}

.origin-text p{
  color: var(--text-gray);
  margin-top: .5rem;
}

.origin-address{
  margin-top: 1rem;
  font-style: normal;
  color: var(--text-light);
}
.origin-map{
  display:inline-block;
  margin-top: .35rem;
  color: var(--primary-light);
  text-decoration: none;
  border-bottom: 1px dashed rgba(var(--primary-rgb), .45);
  transition: color .2s ease, border-color .2s ease;
}
.origin-map:hover{
  color: var(--white);
  border-color: rgba(var(--primary-rgb), .8);
}

.origin-media img{
  width:100%;
  height:340px;
  object-fit:cover;
  border-radius: 16px;
  display:block;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width: 1024px){
  .about-origin .origin-wrap{ grid-template-columns: 1fr; }
  .origin-media img{ height:300px; }
}

/* Performance nicety */
.about-origin{ content-visibility:auto; contain-intrinsic-size: 700px; }

/* --- Unify CTA section width with other sections --- */
.about-cta > .container{
  max-width: 1200px;
  padding-inline: 2rem;    /* match global container gutters */
}

/* --- Values: 1 per row on phones (keeps layout tidy) --- */
@media (max-width: 768px){
  .values-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;              /* comfortable spacing between cards */
  }
  .value-card{ padding: 1.25rem; }
}

/* --- About hero buttons: full-width & stacked on small screens --- */
@media (max-width: 540px){
  .about-hero .hero-cta{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .about-hero .hero-cta .btn-primary,
  .about-hero .hero-cta .btn-secondary{
    width: 100%;
    justify-content: center;
  }
}

/* --- Minor perf/CLS polish (keeps visuals the same) --- */
.about-hero__media img,
.team-card img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  /* helps layout stability without changing appearance */
  aspect-ratio: 16 / 10;
}

/* Make each big section cheaper to paint off-screen */
.about-hero,
.about-stats,
.about-values,
.about-process,
.about-origin,
.about-team,
.about-cta{
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

/* theme-CONSTEL: subtle starfield + blueprint lines, seamless page-wide */
.theme-CONSTEL::before{
  content:"";
  position: fixed; inset: -8vmax; z-index: 0; pointer-events: none;
  background-image:
    url("/assets/img/constel.svg"),
    radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.8px),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.8px);
  background-size: 520px 520px, 36px 36px, 56px 56px; /* tile, dot layers */
  background-position: 0 0, 12px 18px, 6px 4px;
  background-repeat: repeat;
  opacity: .32;
}
@media (max-width:640px){
  .theme-CONSTEL::before{
    background-size: 600px 600px, 40px 40px, 64px 64px;
    opacity: .28;
  }
}

/* --- ABOUT: CTA card width + gutters ------------------------------ */
.about-cta .container{
  display: grid;
  place-items: center;
}

.about-cta .cta-wrap{
  width: 100%;
  max-width: 1280px;                 /* keeps the card from getting too wide */
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  box-sizing: border-box;           /* prevent overflow from padding */
}

@media (max-width: 1024px){
  .about-cta .container{ padding-inline: 1.25rem; } /* match page gutters */
  .about-cta .cta-wrap{
    max-width: none;                /* just fill the container on small screens */
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
  }
}

/* --- ABOUT: Values grid → 1 per row on mobile --------------------- */
@media (max-width: 700px){
  .about-values .values-grid{
    display: grid;
    grid-template-columns: 1fr;     /* single column */
    row-gap: 1rem;
  }
  .about-values .value-card{
    padding: 1rem 1.25rem;
  }
}

/* Extra top space for hero under the fixed navbar (mobile) */
@media (max-width: 768px){
  .hero{
    padding-top: calc(var(--navH) + 16px);
    /* keep full-screen feel after adding padding */
    min-height: calc(100vh - var(--navH) + 16px);
  }
}
/* Use safe viewport when supported */
@supports (height: 100svh){
  @media (max-width: 768px){
    .hero{
      min-height: calc(100svh - var(--navH) + 16px);
    }
  }
}

/* Smooth in-page jump to #home with the new offset */
#home{ scroll-margin-top: calc(var(--navH) + 16px); }
