/* ===================================================
   About Page — about.css
   Depends on styles.css being loaded first.
   =================================================== */

/* ---------------------------------------------------
   PAGE HERO  (shared inner-page pattern)
   --------------------------------------------------- */
.page-hero {
  padding-top: var(--nav-height);
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-light);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--color-primary); }

.page-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-hero-inner .lead {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------------------------------------------------
   OUR TEAM GUIDES
   --------------------------------------------------- */
.team-guides {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.team-guides-header {
  text-align: center;
  margin-bottom: 48px;
}

.team-guides-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.team-guides-intro {
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* 4 columns on desktop */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Portrait image container — 3:4 ratio */
.team-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-border);
}

.team-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-img-wrap img {
  transform: scale(1.04);
}

.team-card-caption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card-caption strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}

.team-card-caption span {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* ---------------------------------------------------
   STATS SECTION
   --------------------------------------------------- */
.stats-section {
  background: var(--color-primary);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ---------------------------------------------------
   WHY CHOOSE US — TABS
   --------------------------------------------------- */
.why-choose {
  padding: 80px 0;
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
}

.tabs-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab-btn {
  background: none;
  border: none;
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  border-left: 3px solid transparent;
}

.tab-btn:hover { background: var(--color-bg-light); }

.tab-btn.active {
  background: var(--color-bg-light);
  border-left-color: var(--color-primary);
}

.tab-btn h3 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.tab-btn span {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.5;
  display: block;
}

.tab-btn.active h3 { color: var(--color-primary); }

.tab-panels { position: relative; }

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-panel img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.tab-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.tab-panel p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ---------------------------------------------------
   FEATURES GRID
   --------------------------------------------------- */
.features-section {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img,
.feature-icon svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature-icon svg { fill: var(--color-primary); }

.feature-card h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------------------------------------------------
   REVIEWS SECTION
   --------------------------------------------------- */
.reviews-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.review-card {
  padding: 28px;
  background: var(--color-bg-light);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  position: relative;
}

.review-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars span {
  color: #f59e0b;
  font-size: 1rem;
}

.review-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

.reviewer strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 700;
}

.reviewer span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.reviews-cta {
  text-align: center;
}

/* ---------------------------------------------------
   WHATSAPP BUTTON
   --------------------------------------------------- */
.wa-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.wa-button img { width: 28px; height: 28px; }

.wa-message {
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ---------------------------------------------------
   TAB PANEL SWITCHING
   --------------------------------------------------- */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-panel img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------------------------------------------------
   YOUTUBE VIDEOS SECTION
   --------------------------------------------------- */
.videos-section {
  padding: 80px 0;
  background: var(--color-bg-light);
}

/* Stack the two videos vertically with a gap */
.videos-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 860px;   /* keeps them from stretching too wide */
  margin: 0 auto;
}

/* Responsive 16:9 iframe wrapper */
.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------------------------------------------------
   RESPONSIVE
   --------------------------------------------------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
  .tabs-wrapper  { grid-template-columns: 260px 1fr; gap: 28px; }
  .team-grid     { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .team-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .videos-stack { max-width: 100%; }
}

@media (max-width: 768px) {
  .tabs-wrapper { grid-template-columns: 1fr; }
  .tabs-nav { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .tab-btn  { flex-shrink: 0; min-width: 180px; border-left: none; border-bottom: 3px solid transparent; }
  .tab-btn.active { border-left: none; border-bottom-color: var(--color-primary); }

  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid  { grid-template-columns: 1fr; }

  .team-guides    { padding: 56px 0; }
  .videos-section { padding: 56px 0; }
  .videos-stack   { gap: 28px; }
}

@media (max-width: 480px) {
  .team-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}