/* ===== Theme ===== */
:root{
  --teal:#099488;
  --teal-700:#07756C;
  --text:#0f172a;
  --muted:#475569;
  --white:#ffffff;

  --soft:#eafaf8;          /* mint section tint */
  --panel:#f8fafc;         /* very light panel */
  --shadow:0 10px 28px rgba(2,6,23,.10);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:#fff;
}
.container{ width:min(1200px, 92%); margin-inline:auto; }
.center{ text-align:center; }

/* ===== HERO ===== */
.about-hero{
  color:var(--white);
  background:var(--teal);

  text-align:center;
  padding: 72px 20px;

}
.about-hero h1{
  margin:0 0 12px;
  font-size:clamp(32px, 6vw, 56px);
  font-weight:900;
}
.about-hero p{
  margin:0;
  font-size:clamp(16px, 2.4vw, 22px);
  opacity:.96;
}

/* ===== STORY ===== */
.story{
  display:grid;
  text-align:center;!important
  grid-template-columns: 1.1fr .9fr;
  gap:40px;
  align-items:center;
  padding:56px 0 24px;
}
.story h2{
  margin:0 0 12px;
  font-size:clamp(26px, 4vw, 40px);
  font-weight:900;
}
.story p{ color:var(--muted); line-height:1.8; margin:0 0 14px; }

.img-card {
  margin: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;          /* ensures image respects rounded corners */
  box-shadow: var(--shadow);
  width: 100%;               /* responsive */
  max-width: 500px;          /* optional: adjust card width */
  height: 500px;             /* fixed height for consistent look */
}

.img-card img {
  display: block;
  width: 100%;
  height: 100%;              /* fill card height */
  object-fit: cover;         /* fill and crop neatly */
  object-position: top;      /* keeps the head visible */
}



/* ===== MISSION ===== */
.mission{
  background:var(--soft);
  padding:56px 0 72px;
}
.mission h2{
  text-align:center;
  margin:0 0 18px;
  font-size:clamp(26px, 4vw, 40px);
  font-weight:900;
}
.quote-card{
  background:#fff;
  border-radius:16px;
  padding:28px 24px 28px;
  box-shadow:0 6px 18px rgba(2,6,23,.06);
  max-width: 980px;
  margin: 0 auto;
  text-align:center;
}
.quote-icon{
  width:48px; height:48px; color:var(--teal-700);
  margin-inline:auto 10px auto 0;
  display:grid; place-items:center;
  margin-bottom:8px;
}
.quote-icon svg{ width:28px; height:28px; }
blockquote{
  margin:0 0 12px;
  font-size:clamp(18px, 2.6vw, 24px);
  font-style:italic;
  color:#0b2030;
}
.quote-card p{ margin:0; color:var(--muted); }

/* ===== FOUNDERS ===== */
.founders{ padding:56px 0; }
.founders header p{ color:var(--muted); margin:8px 0 24px; }
/* === FOUNDERS: flip columns (text left, image right) === */
/* Keep text left, image right */
.founders-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr; /* text | image */
  gap: 36px;
  align-items: center;
  padding:5px 50px;!important
}

.founders-text{
  grid-column: 1;
  grid-row: 1;     /* force text into same row as image */
}

.founders .img-card{
  grid-column: 2;
  grid-row: 1;     /* force image into same row as text */
  justify-self: end;
}

/* ===== VALUES ===== */
.values{
  background:#f6f9fb;
  padding:56px 0;
}
.values-sub{ color:var(--muted); margin:0 0 24px; }
.values-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:22px;
}
.value-card{
  background:#fff;
  border-radius:18px;
  padding:24px;
  border:1px solid #e9eef4;
  box-shadow:0 6px 18px rgba(2,6,23,.06);
}
.icon-bubble{
  width:64px; height:64px; border-radius:999px;
  background:var(--soft); color:var(--teal-700);
  display:grid; place-items:center; margin-bottom:12px;
  box-shadow:0 6px 16px rgba(2,6,23,.06);
}
.icon-bubble svg{ width:28px; height:28px; fill:currentColor; }
.value-card h4{ margin:0 0 8px; font-size:18px; font-weight:800; }
.value-card p{ margin:0; color:var(--muted); line-height:1.6; }

/* ===== TEAM ===== */
.team{ padding:56px 0; }
.team-sub{ color:var(--muted); margin:8px auto 24px; max-width:900px; }
.team-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:28px;
  align-items:start;
}
.team-item{ text-align:center; }
.avatar{
  width: clamp(200px, 28vw, 320px);
  aspect-ratio: 1/1;
  margin: 0 auto 12px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-item h4{ margin:0 0 8px; font-size:18px; font-weight:800; }
.team-item p{ margin:0; color:var(--muted); line-height:1.6; }

@media (max-width: 640px) {
  .avatar {
    width: 150px;
    height: 150px; /* override aspect-ratio for tighter control */
  }
}

/* ===== ENVIRONMENT (image cards) ===== */
.environment{ padding: 32px 0 56px; }
.environment h2{ margin:0 0 18px; text-align:center; font-size:clamp(24px, 4vw, 34px); font-weight:900; }
.env-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:22px;
}
.env-card{
  position:relative; overflow:hidden; border-radius:14px;
  box-shadow:0 10px 24px rgba(2,6,23,.12);
  margin:0;
}
.env-card img{ width:100%; height:240px; object-fit:cover; display:block; }
.env-card::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1) 55%, transparent);
}
.env-card figcaption{
  position:absolute; left:16px; right:16px; bottom:12px;
  color:#fff; font-weight:800; text-shadow:0 2px 8px rgba(0,0,0,.35);
}

/* ===== CTA BAR ===== */
.about-cta{
  background:var(--soft);
  color:#fff;
  text-align:center;
  padding:64px 16px 80px;
}
.about-cta h2{ margin:0 0 12px; font-size:clamp(26px, 4.6vw, 44px); font-weight:900; }
.about-cta p{ margin:0 auto 22px; max-width:900px; font-size:18px; line-height:1.6; }
.cta-row{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* CTA buttons (white + outline) */
.btn-white{
  background:#fff; color:var(--teal); text-decoration:none;
  padding:12px 20px; border-radius:14px; font-weight:800;
  border:2px solid #fff; box-shadow:0 2px 10px rgba(0,0,0,.08);
  transition: transform .04s ease, background .2s ease, color .2s ease;
}
.btn-white:hover{ transform: translateY(-1px); color:var(--teal-700); }
.btn-ghost{
  background:transparent; color:#fff; text-decoration:none;
  padding:12px 20px; border-radius:14px; font-weight:800;
  border:2px solid #fff;
  transition: transform .04s ease, background .2s ease, color .2s ease;
}
.btn-ghost:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }

/* ===== RESPONSIVE ===== */
@media (max-width:1100px){
  .story{ grid-template-columns: 1fr; }
  .img-card img{ height:320px; }
  .founders-grid{ grid-template-columns: 1fr; }
  .values-grid{ grid-template-columns: repeat(2,1fr); }
  .team-grid{ grid-template-columns: 1fr; }
  .env-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .founders-grid {
    grid-template-columns: 1fr;  /* single column */
    text-align: center;
    padding: 20px;
  }

  .founders-text, 
  .founders .img-card {
    grid-column: auto !important;  /* reset manual placement */
    grid-row: auto !important;
  }

  .founders .img-card {
    order: -1;                     /* 👈 moves image above text */
    justify-self: center;
    max-width: 300px;
    height: auto;
  }

  .founders .img-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
