/* ==========================================================
   Next Generation Enterprises — Stylesheet
   Mobile-first • 320 / 480 / 576 / 768 / 992 / 1200 / 1440
   ========================================================== */

/* ===== CSS Variables (unchanged from original) ===== */
:root {
  --navy:      #1a237e;
  --navy-dark: #0f174d;
  --gold:      #c9a84c;
  --gold-dark: #a98a36;
  --white:     #ffffff;
  --bg-light:  #f5f5f5;
  --text:      #2c3e50;
  --muted:     #6b7a8c;

  --shadow-sm: 0 5px 15px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --radius:    10px;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 700;
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; }

/* ===== Navigation ===== */
.navbar-custom {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
}
.navbar-custom.scrolled { padding: 0.5rem 0; background: #fff; }
.navbar-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: var(--navy) !important;
  letter-spacing: -0.5px;
}
.brand-mark { color: var(--navy); }
.brand-tail { color: var(--gold); margin-left: 4px; }

.navbar-custom .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.9rem;
  margin: 0 0.25rem;
  position: relative;
  padding: 0.5rem 0.5rem;
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute; left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 80%; }

.navbar-custom .cta-link {
  background: var(--gold);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.4rem 1.1rem !important;
  margin-left: 0.3rem;
}
.navbar-custom .cta-link::after { display: none; }
.navbar-custom .cta-link:hover { background: var(--gold-dark); }

.navbar-toggler { border: none; padding: 0.35rem 0.6rem; }
.navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); border: 2px solid var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); border: 2px solid var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light:hover { color: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15,23,77,0.92) 0%, rgba(26,35,126,0.85) 60%, rgba(15,23,77,0.95) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 8rem 1rem 4rem;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }

.hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(1.9rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}
.text-gold { color: var(--gold); }
.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.9);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.hero-buttons .btn { min-width: 160px; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== Section Shared ===== */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-tag.light { color: var(--gold); }
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  font-weight: 700;
}
.section-title.light { color: #fff; }
.section-subtitle { color: var(--muted); max-width: 650px; margin: 0 auto; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }
.lead-text { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* ===== About — Vision / Mission grid ===== */
.vm-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 480px) { .vm-grid { grid-template-columns: 1fr 1fr; } }

.vm-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.vm-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.vm-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.vm-card p  { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ===== About — Stats ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: #fff;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  line-height: 1;
}
.stat-number::after { content: '+'; color: var(--gold); }
.stat-label { color: var(--muted); font-weight: 600; margin-top: 0.5rem; font-size: 0.9rem; }

/* ===== Services ===== */
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.35s ease;
  color: #fff;
  backdrop-filter: blur(8px);
}
.service-card:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-card:hover .service-icon { background: #fff; color: var(--navy); }
.service-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}
.service-card h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1.2rem; }
.service-card p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0; }
.service-card:hover h4,
.service-card:hover p { color: #fff; }

/* ===== Values ===== */
.value-card {
  background: #fff;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}
.value-icon {
  width: 65px; height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.value-card h5 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--navy); }
.value-card p  { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ===== Team (NEW) ===== */
.team-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.team-img-wrap {
  position: relative;
  overflow: hidden;
  /* 1:1 aspect ratio so all photos are uniform squares */
  aspect-ratio: 1 / 1;
  width: 100%;
}
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  display: block;
}
.team-card:hover .team-img { transform: scale(1.07); }

.team-overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,77,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.team-card:hover .team-overlay { opacity: 1; }
.team-overlay a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.team-overlay a:hover { transform: scale(1.15); background: #fff; }

.team-body { padding: 1.4rem 1.25rem 1.5rem; }
.team-body h5 { color: #fff; font-size: 1.05rem; margin-bottom: 0.25rem; }
.team-role {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-head);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.team-body p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ===== Testimonials (NEW) ===== */
/* Testimonials sit on section-light (same bg as About & Values) */
.testi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid #e0e4ea;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold);
}
.testi-card.testi-featured {
  border-top-color: var(--gold);
  box-shadow: 0 8px 28px rgba(26,35,126,0.13);
}

.testi-quote {
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.75;
}
.testi-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}
.testi-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.testi-author h6 { margin: 0 0 0.1rem; font-size: 0.97rem; color: var(--navy); }
.testi-author span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.3rem; }
.testi-stars { color: var(--gold); font-size: 0.82rem; letter-spacing: 1px; }

/* ===== Contact ===== */
.section-contact { background: var(--bg-light); }
.contact-info {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.info-icon {
  width: 45px; height: 45px;
  flex-shrink: 0;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 1rem;
}
.info-item h6 { margin: 0 0 0.2rem; font-size: 1rem; color: var(--navy); }
.info-item p  { margin: 0; color: var(--muted); font-size: 0.95rem; word-break: break-word; }

.map-placeholder {
  margin-top: 1.5rem;
  height: 160px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e9ecef, #dde1e6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--muted); font-weight: 600;
}
.map-placeholder i { font-size: 1.8rem; color: var(--navy); }

.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-label { font-weight: 600; color: var(--text); font-family: var(--font-head); font-size: 0.9rem; }
.form-control {
  border-radius: 8px;
  border: 1.5px solid #e1e5ea;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.15); }
.form-status { font-weight: 600; font-size: 0.9rem; }
.form-status.success { color: #1f8a45; }
.form-status.error   { color: #b3261e; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 1.5rem;
}
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-brand span { color: var(--gold); }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }
.social-icons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; text-decoration: none;
}
.social-icons a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.site-footer hr { border-color: rgba(255,255,255,0.15); margin: 2rem 0 1rem; }
.copyright { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ===== Back-to-top ===== */
.back-to-top {
  position: fixed; right: 25px; bottom: 25px;
  width: 45px; height: 45px;
  border-radius: 50%;
  background: var(--gold); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all 0.3s ease; z-index: 1000;
}
.back-to-top.show  { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); }

/* ==============================================================
   RESPONSIVE BREAKPOINTS
   All original breakpoints kept; improved for new sections.
============================================================== */

/* ----- Tablet / large mobile : ≤991px (navbar breakpoint) ----- */
@media (max-width: 991.98px) {
  .navbar-custom { background: #fff; }
  .navbar-custom .nav-link { margin: 0.25rem 0; padding: 0.45rem 0.75rem; }
  .navbar-custom .nav-link::after { display: none; }
  .navbar-custom .cta-link {
    display: inline-block;
    margin: 0.5rem 0.75rem 0.25rem;
    width: fit-content;
  }
  .navbar-collapse { padding-bottom: 0.75rem; }
}

/* ----- Small tablet / large phone : ≤767px ----- */
@media (max-width: 767.98px) {
  .section { padding: 70px 0; }
  .hero { padding: 7.5rem 1rem 3.5rem; }
  .contact-form { padding: 2rem 1.5rem; }
  .testi-card { padding: 1.75rem 1.4rem; }
  /* Team cards centre nicely at 2-per-row on tablet portrait */
  .team-card { max-width: 380px; margin-left: auto; margin-right: auto; }
}

/* ----- Mobile : ≤575px ----- */
@media (max-width: 575.98px) {
  .section { padding: 56px 0; }
  .hero { padding: 6.5rem 1rem 3rem; min-height: 100svh; }

  /* Stack hero buttons full-width but centred */
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 260px; }

  /* Stat cards stay 2-up as original */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 1.5rem 0.75rem; }

  .contact-form { padding: 1.5rem 1.25rem; }
  .contact-info { padding: 1.5rem 1.25rem; }

  .btn { padding: 0.6rem 1.4rem; }

  /* Values: 2-per-row on mobile (original uses col-sm-6, this keeps it) */
  .value-card { padding: 1.5rem 1rem; }

  /* Team: single column on very small screens */
  .team-card { max-width: 100%; }
  .team-body { padding: 1.2rem 1rem 1.3rem; }

  /* Testimonials: single column, slightly reduced padding */
  .testi-card { padding: 1.5rem 1.25rem; }

  /* Back-to-top: pull it in a bit */
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ----- Small phones : ≤400px ----- */
@media (max-width: 400px) {
  .hero-title { font-size: 1.75rem; }
  .hero-eyebrow { font-size: 0.68rem; padding: 0.35rem 0.9rem; }
  .navbar-brand { font-size: 1rem; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.8rem; }
  .footer-brand { font-size: 1.15rem; }
  .testi-author { flex-direction: column; align-items: flex-start; }
  .testi-avatar { width: 46px; height: 46px; }
}

/* ----- Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-cue { animation: none; }
}
