/* ───────────────────────────  team.css  ───────────────────────────
   Page-specific styles for team.php
   Mobile-first, overflow-safe, scroll-reveal ready
   ------------------------------------------------------------------ */

/* 0. Palette & variables */
:root {
  --gold:       #d4af37;
  --gold-dark:  #b88700;
  --black:      #000;
  --white:      #fff;
  --muted:      #6f6f6f;
  --bg:         #fafafa;
  --card-bg:    #fff;
  --shadow:     0 8px 18px rgba(0,0,0,.06);
  --container:  1200px;
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container {
  max-width: var(--container);
  margin: auto;
  padding: 0 1rem;
}
.section-pad {
  padding: 3.5rem 1rem;
}
.section-title {
  font-size: clamp(2rem,5vw,2.8rem);
  text-align: center;
  margin-bottom: 2rem;
}

/* 1. Banner */
.banner {
  position: relative;
  overflow: hidden;
  height: clamp(450px,50vh,550px);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.banner-overlay h1 {
  font-size: clamp(1.8rem,5.5vw,2.6rem);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}

/* ─────────────────────────── team.css ───────────────────────────
   Styles for redesigned team section (CEO spotlight + secondary grid)
   Mobile-first, responsive, no horizontal overflow
   ------------------------------------------------------------------ */

/* 0. Palette & base resets */
:root {
  --gold:       #d4af37;
  --gold-dark:  #b88700;
  --black:      #000;
  --white:      #fff;
  --bg:         #fafafa;
  --card-bg:    #fff;
  --shadow:     0 8px 24px rgba(0,0,0,.08);
  --container:  1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section padding */
.section-pad {
  padding: 4rem 1rem;
}

/* 1. CEO Spotlight Card */
.ceo-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 3rem;
}
.ceo-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.ceo-inner img {
  width: 100%;
  border-bottom: 1px solid #eee;
}
.ceo-details {
  padding: 2rem;
}
.ceo-details h3 {
  font-size: clamp(1.8rem,5vw,2.4rem);
  margin-bottom: .5rem;
  color: var(--gold-dark);
}
.ceo-details .role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
}
.ceo-details .qual {
  font-size: .95rem;
  font-style: italic;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.ceo-details .bio {
  font-size: .95rem;
  color: var(--black);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Desktop layout: side-by-side image + details */
@media(min-width: 768px) {
  .ceo-inner {
    grid-template-columns: 300px 1fr;
  }
  .ceo-inner img {
    border-bottom: none;
    border-right: 1px solid #eee;
    height: auto;
    object-fit: cover;
  }
}

/* 2. Secondary Team Grid */
.team-grid.secondary {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(200px,100%),1fr));
}
.team-grid.secondary .member {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 1.6rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-grid.secondary .member:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.team-grid.secondary .member img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
}
.team-grid.secondary .member h4 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--gold-dark);
}
.team-grid.secondary .member .role {
  font-size: .9rem;
  color: var(--muted);
}

/* 3. Reveal animations */
.ceo-card.reveal,
.team-grid.secondary .member.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.ceo-card.reveal.visible,
.team-grid.secondary .member.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4. Mobile tweaks */
@media(max-width: 480px) {
  .section-pad { padding: 3rem 1rem; }
  .ceo-details h3 { font-size: 1.6rem; }
  .team-grid.secondary { gap: 1.2rem; }
  .team-grid.secondary .member img { width: 80px; height: 80px; }
}

/* 3. Global CTA */
.cta {
  position: relative;
  background: url('/images/hero.jpg') center/cover fixed;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: -1;
}
.cta .container {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: auto;
}
.cta h2 {
  font-size: clamp(2rem,5vw,2.8rem);
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.cta p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}
.cta .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  padding: .9rem 2.4rem;
  border-radius: 50px;
  transition: transform .2s ease, box-shadow .3s ease;
}
.cta .btn::after {
  content: '→';
  transition: transform .3s ease;
}
.cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(212,175,55,.4);
}
.cta .btn:hover::after {
  transform: translateX(4px);
}

/* 4. Responsive tweaks */
@media (max-width: 480px) {
  .section-pad { padding: 2.5rem 1rem; }
  .banner { height: clamp(450px,50vh,450px); }
  .member img { width: 90px; height: 90px; }
  .cta .container { padding: 3rem 1rem; }
  .cta h2 { font-size: 2rem; }
  .cta p { font-size: 1rem; }
}

@media (max-width: 360px) {
  .team-grid { gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%),1fr)); }
  .banner-overlay h1 { font-size: 1.5rem; }
}
