/* =====================================
   ROOT VARIABLES
===================================== */
:root {
  --primary: #6a49f2;
  --primary-dark: #5433d8;
  --secondary: #32236f;
  --bg: #ffffff;
  --bg-alt: #ffffff;
  /* used in three rules but never defined, so that text fell back to whatever
     it inherited */
  --text-muted: #6b6b8a;
  --text-dark: #3e3f66;
  --text-light: #3e3f66;
  --radius: 12px;
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
  --section-padding: 90px 8%;
}

/* =====================================
   GLOBAL STYLES
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  /* background: var(--bg); */
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--secondary);
}

p {
  color: var(--text-light);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--primary);
}

.btn.secondary:hover {
  background: #eef4ff;
}

/* =====================================
   HERO SECTION
===================================== */
.hero2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--section-padding);
  background: var(--secondary);
  background: rgba(71, 31, 156, 0.82);

  /* background-image: url(/img/bg-img/bg-2.jpg);
  background-color: #005bcc; */
  color: #fff;
  gap: 40px;
}

.hero-content2 {
  flex: 1 1 480px;
}

.hero2 h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.2;
  color: #eef4ff;
}

.hero2 p {
  max-width: 600px;
  font-size: 1.5em;
  opacity: 0.9;
  margin-bottom: 30px;
  color: black;
}

.hero-buttons2 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero_image {
  flex: 1 1 400px;
  text-align: center;
  margin-top: 30px;
}

.hero_image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* =====================================
   STATS SECTION
===================================== */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--section-padding);
  background: var(--bg-alt);
  gap: 40px;
}

.stat-container {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat {
  text-align: center;
  padding: 20px;
}

.stat h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 5px;
}

.stat p {
  font-weight: 500;
  color: var(--text-dark);
}

.stat-content {
  flex: 1 1 45%;
}

.stat-content h6 {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

.stat-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 15px;
}

.stat-content p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* =====================================
   ABOUT SECTION
===================================== */
.about {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  padding: var(--section-padding);
}

.about-text {
  flex: 1 1 450px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.about-text ul {
  list-style: none;
  margin-top: 15px;
}

.about-text li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 25px;
}

.about-text li::before {
  content: "✔";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.about-image {
  flex: 1 1 450px;
  position: relative;
}

.about-image img {
  box-shadow: var(--shadow-md);
}

.about-buttons {
  position: absolute;
  bottom: 10%;
  left: 10%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-buttons .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}
/* ================================
   Testimonial Section
================================= */
.testimonials {
  padding: 80px 5%;
  background: var(--bg-alt);
  color: var(--text-dark);
  text-align: center;
}

.testimonials .section-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonials .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 15px;
  color: var(--secondary);
}

.testimonials .section-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* Testimonial Wrapper */
.testimonial-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Testimonial Card */
.testimonial-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 25px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 0;
}

.testimonial-position {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 15px 0;
}

.stars {
  color: #ffc107;
  font-size: 1rem;
}

/* ================================
   RESPONSIVE
================================= */
@media (max-width: 992px) {
  .testimonial-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 25px 20px;
  }

  .testimonial-name {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .stars {
    font-size: 0.95rem;
  }
}

/* =====================================
   OFFICES SECTION
===================================== */
.offices {
  background: var(--bg-alt);
  text-align: center;
  padding: var(--section-padding);
}

.offices h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.offices h3 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 50px;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.office-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 30, 61, 0.12);
}

/* the office card image is sized by .office-media in style.css now - the old
   fixed 150px height here was overriding it (this sheet loads later) */
.office-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.office-card:hover img {
  transform: scale(1.05);
}

.office-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #1f2937;
  font-family: "Poppins", sans-serif;
}

.office-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #0f1e3d;
  display: flex;
  align-items: center;
  gap: 7px;
}

.office-info p {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  color: #475569;
}

.office-info p:nth-of-type(2),
.office-info p:nth-of-type(3) {
  font-weight: 500;
  color: #0f1e3d;
}

.office-info p a {
  color: inherit;
  text-decoration: none;
}

.office-info p a:hover {
  color: #5433d8;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */
@media (max-width: 992px) {
  .hero2 {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content2,
  .hero_image {
    flex: 1 1 100%;
  }

  .stats {
    flex-direction: column;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-buttons {
    position: static;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero2 {
    padding: 60px 5%;
  }

  .hero2 h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .stat-container {
    grid-template-columns: 1fr;
  }

  .testimonial-container {
    grid-template-columns: 1fr;
  }

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

  .section-description {
    font-size: 0.95rem;
  }
}
/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 90px 8%;
  background: var(--bg-alt);
}

.about-text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--secondary);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-text li::before {
  content: "✔";
  color: var(--primary);
  margin-right: 8px;
}

.about-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.about-buttons .btn {
  padding: 12px 22px;
  font-size: 0.95rem;
  flex: 1 1 200px; /* Makes buttons flexible and stack on small screens */
  text-align: center;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  position: relative;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 992px) {
  .about {
    flex-direction: column-reverse;
    text-align: center;
    padding: 60px 5%;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

  .about-buttons {
    justify-content: center;
  }

  .about-text ul {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-buttons .btn {
    flex: 1 1 100%; /* Buttons stack vertically on mobile */
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-text ul li {
    font-size: 0.95rem;
  }
}

/* =====================================
   UI POLISH ENHANCEMENTS
===================================== */

/* Hero image polish: subtle entrance + fixed aspect ratio so layout doesn't jump */
.hero_image img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(13, 13, 50, 0.35);
  animation: floatIn 0.9s ease-out both;
}

@keyframes floatIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Stats card polish */
.stats {
  position: relative;
}

.stat {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.stat:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #f6f4fe 0%, #ece6ff 100%);
  box-shadow: 0 8px 22px rgba(94, 51, 169, 0.15);
}

.stat h2 {
  background: linear-gradient(135deg, #6a49f2 0%, #8a4cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About image safer sizing */
.about-image img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Testimonial card subtle accent */
.testimonial-card {
  position: relative;
  border-top: 4px solid transparent;
  background-image: linear-gradient(#fff, #fff),
    linear-gradient(135deg, #6a49f2, #8a4cff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(94, 51, 169, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-avatar {
  border: 3px solid #ece6ff;
  box-shadow: 0 4px 10px rgba(94, 51, 169, 0.2);
}

/* Mobile tweaks for the always-visible office card */
@media (max-width: 768px) {
  .office-grid {
    gap: 14px;
  }

  .office-info {
    padding: 12px 14px 14px;
  }
  .office-info h4 {
    font-size: 0.95rem;
  }
  .office-info p {
    font-size: 0.78rem;
  }
}
