/* ====================================================================
   PAGES.CSS — Additive Extension Stylesheet
   Purpose: New page layouts (About, Contact, Privacy, Terms) built
   entirely from existing design tokens (variables.css) and existing
   component patterns (card-glass, feature-card, section-header, etc).
   Nothing in variables.css / main.css / responsive.css / animations.css
   is modified or overridden here — this file only ADDS new component
   classes required for the new templates.
   ==================================================================== */

/* ---------- Shared Inner Page Hero (real pages, not virtual routes) ---------- */
.page-hero {
  position: relative;
  padding: 13rem 0 6rem;
  text-align: left;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero h1 {
  font-size: 3.25rem;
  margin: 1.25rem 0 1.25rem;
  max-width: 780px;
  line-height: 1.1;
}

.page-hero p.page-hero-desc {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.page-hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* ---------- Section Rhythm Helpers ---------- */
.section-block {
  padding: 5rem 0;
}

.section-block-tight {
  padding: 3rem 0;
}

.two-col-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-block.reverse .two-col-media {
  order: 2;
}

.two-col-copy h2 {
  font-size: 2.1rem;
  margin-bottom: 1.25rem;
}

.two-col-copy p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.two-col-media {
  position: relative;
}

.two-col-media .card-glass {
  padding: 2.5rem;
  text-align: center;
}

.stat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-chip {
  flex: 1 1 140px;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-align: center;
}

.stat-chip-value {
  font-family: var(--font-headings);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-chip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.team-card span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.team-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Why Choose Us / Values ---------- */
.value-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.value-badge-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-card {
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.contact-info-card .icon-box {
  margin-bottom: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-info-card a,
.contact-info-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.map-placeholder {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--secondary-rgb), 0.08)),
    repeating-linear-gradient(0deg, var(--border-light) 0, var(--border-light) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, var(--border-light) 0, var(--border-light) 1px, transparent 1px, transparent 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-pin {
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.map-placeholder-pin svg {
  transform: rotate(45deg);
  color: #fff;
  width: 22px;
  height: 22px;
}

.map-placeholder-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ---------- Legal Pages (Privacy / Terms): Sticky TOC Layout ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: 8.5rem;
  padding: 1.75rem;
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.legal-toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.legal-toc-list a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: var(--transition-fast);
}

.legal-toc-list a:hover {
  color: var(--text-main);
  background: rgba(var(--primary-rgb), 0.05);
}

.legal-toc-list a.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  border-left-color: var(--primary);
  font-weight: 600;
}

.legal-content {
  padding: 3rem;
}

.legal-content .term-block:target {
  scroll-margin-top: 7.5rem;
}

.legal-content h2 {
  scroll-margin-top: 7.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.4rem;
}

.legal-content h2 .legal-heading-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-family: var(--font-headings);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.legal-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(var(--success-rgb), 0.1);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Mobile TOC (rendered as horizontal scroll chip bar, toc column hidden) */
.legal-toc-mobile {
  display: none;
}

/* ---------- FAQ CTA / Section wrapper reused across pages ---------- */
.page-faq-section .faq-grid {
  padding: 5rem 0;
}

/* ---------- Responsive: Pages ---------- */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }

  .legal-toc-mobile {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .legal-toc-mobile a {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
  }

  .legal-toc-mobile a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 10rem 0 3rem;
    text-align: center;
  }

  .page-hero h1 {
    font-size: 2.25rem;
    max-width: 100%;
  }

  .page-hero p.page-hero-desc {
    max-width: 100%;
    margin: 0 auto;
  }

  .two-col-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .two-col-block.reverse .two-col-media {
    order: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 1.75rem;
  }
}

/* about us */

#about-hero {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 100vh; /* or your desired height */
    display: flex;
    align-items: center;
}

#about-hero .hero-badge {
  margin:0;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: -2;
}
.hero-bg-video-layer {
    position: absolute;
    inset: 0;
    background:#000;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 0.8;
  

}

#about-hero .container {
    position: relative;
    z-index: 1;
    color: #fff;
    display:flex;
    justify-content:center;
    flex-direction:column;
    align-items:center;
}

.mission-vision .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

#about-hero h1 {
color: var(--white) ;
text-align: center;
}

#about-hero .page-hero-desc {
color: var(--white) ;
text-align: center;
}


#contact-hero {
  background: url("../images/contactusimg.png");
  background-position:right;
  background-size:contain;
  background-repeat:no-repeat;
}

