/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= VARIABLES ================= */
:root {
  --blue-primary: #1f3c88;
  --blue-secondary: #2563eb;
  --orange-accent: #f57c00;
  --light-bg: #f3f4f6;
  --dark-text: #222;
}

/* ================= BODY ================= */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  background: #fff;
  line-height: 1.6;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* NAV */
nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--blue-primary);
  font-weight: 500;
}

nav a:hover {
  color: var(--orange-accent);
}

.menu-toggle {
  display: none;
}

/* ================= HERO ================= */
.hero {
  min-height: 90vh;
  padding-top: 100px;
  padding-bottom: 60px;

  background-image:
    linear-gradient(
      rgba(31, 60, 136, 0.55),   /* 🔥 lighter overlay */
      rgba(37, 99, 235, 0.55)
    ),
    url("../Images/hero-tax-consulting.png");

  background-size: cover;
  background-position: center top; /* 🔥 show people faces */
  background-repeat: no-repeat;

  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
}

.hero p {
  max-width: 650px;
  margin: 14px 0 26px;
}

/* ================= BUTTONS ================= */
.btn {
  padding: 14px 32px;
  background: #fff;
  color: var(--blue-primary);
  border-radius: 30px;
  text-decoration: none;
  margin: 10px;
  font-weight: 600;
}

.btn.outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* ================= SECTIONS ================= */
.section {
  padding: 100px 30px;
  text-align: center;
}

.section.grey {
  background: var(--light-bg);
}

h2 {
  margin-bottom: 20px;
  color: var(--blue-primary);
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

/* ================= CARDS ================= */
/* ===== SERVICES CARDS FIX ===== */
.card {
  min-height: 140px;              /* 🔥 equal height */
  padding: 30px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 12px;
  border-top: 4px solid var(--orange-accent);

  display: flex;                  /* 🔥 center content */
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card {
  min-height: 140px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  border-top: 4px solid var(--blue-primary);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-top-color: var(--orange-accent);
}

/* ================= TEAM ================= */
.team-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;   /* 🔥 head not cut */
  display: block;
  margin: 0 auto 15px;
}

.team-card h4 {
  margin-top: 10px;
  color: var(--blue-primary);
}

/* ================= TESTIMONIAL ================= */
.testimonial {
  padding: 30px;
  background: #fff;
  border-left: 5px solid var(--blue-secondary);
  text-align: left;
}

/* ================= CONTACT ================= */
.contact-box {
  max-width: 490px;
  margin: auto;
  background: #f9fafb;
  padding: 30px;
  border-radius: 10px;
}

/* ================= FOOTER ================= */
footer {
  background: var(--blue-primary);
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .header {
    height: 90px;
    padding: 0 25px;
  }

  .logo img {
    height: 65px;
  }

  nav {
    display: none;
    position: absolute;
    top: 90px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
  }

  .hero {
    min-height: 55vh;
  }

  .hero h1 {
    font-size: 32px;
  }
}

/* ===== MOBILE MENU FIX ===== */
@media (max-width: 768px) {

  nav {
    display: none;
    position: absolute;
    top: 100px;          /* below header */
    right: 20px;
    width: 200px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  nav.active {
    display: block;     /* 🔥 THIS MAKES MENU APPEAR */
  }

  nav a {
    display: block;
    margin: 12px 0;
    color: #1f3c88;
    font-weight: 500;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
  }
}
/* .card:nth-child(odd) { */
  /* border-top: 4px solid var(--blue-primary); */
/* } */

/* .card:nth-child(even) { */
  /* border-top: 4px solid var(--orange-accent); */
/* } */


/* ===== FLIP CARD EFFECT ===== */
/* ===== FLIP CARD (SINGLE BOX FIX) ===== */

.flip-card {
  perspective: 1000px;
  min-height: 140px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 140px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* Hover flip */
.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* FRONT & BACK */
.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* FRONT */
.flip-front {
  background: #ffffff;
  border-top: 4px solid var(--blue-primary);
}

.flip-front h4 {
  color: var(--blue-primary);
  font-weight: 600;
}

/* BACK */
.flip-back {
  background: linear-gradient(
    135deg,
    var(--blue-primary),
    var(--blue-secondary)
  );
  color: #ffffff;
  transform: rotateY(180deg);
  border-top: 4px solid var(--orange-accent);
}

@media (max-width: 768px) {
  .flip-card:hover .flip-inner {
    transform: none;
  }

  .flip-card.active .flip-inner {
    transform: rotateY(180deg);
  }
}
/* ===== MOBILE HERO FIX ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 14px;
    margin: 12px 0 20px;
  }

  .hero-btns {
    display: flex;
    flex-direction: column; /* 🔥 stack buttons */
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
}
/* ===== MOBILE FLIP FIX ===== */
@media (max-width: 768px) {
  .flip-card:hover .flip-inner {
    transform: none; /* disable hover */
  }

  .flip-card.active .flip-inner {
    transform: rotateY(180deg);
  }
}
.flip-card {
  cursor: pointer;
}
/* ===== STATS SECTION ===== */
.stats-section {
  background: #fff;
  padding: 80px 30px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  background: #fff;
  padding: 40px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stat-card h3 {
  font-size: 42px;
  font-weight: 700;
  color: var(--orange-accent);
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #555;
  text-transform: uppercase;
}

/* ===== MOBILE HERO HEIGHT FIX ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 65vh;     /* 🔥 not full screen */
    padding-top: 90px;
    padding-bottom: 40px;
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* space between logo & text */
}

.logo img {
  height: 45px; /* adjust if needed */
  width: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #0a2a66; /* match your theme */
  white-space: nowrap;
}
/* Chat Icon */
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a2a66;
  color: #fff;
  font-size: 24px;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
}

/* Popup */
#chat-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  z-index: 9999;
}

/* Header */
.chat-header {
  background: #0a2a66;
  color: #fff;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form */
#leadForm {
  padding: 15px;
}

#leadForm input,
#leadForm select,
#leadForm textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#leadForm textarea {
  resize: none;
  height: 70px;
}

#leadForm button {
  width: 100%;
  background: #0a2a66;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
@media (max-width: 768px) {
  #chat-icon {
    padding: 18px;
    font-size: 26px;
  }
}
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #0a2a66;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
}

/* Tooltip bubble */
#chat-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #0a2a66;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Tooltip arrow */
#chat-icon::before {
  content: "";
  position: absolute;
  bottom: 60px;
  right: 18px;
  border: 6px solid transparent;
  border-top-color: #0a2a66;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show tooltip */
#chat-icon:hover::after,
#chat-icon:hover::before {
  opacity: 1;
  transform: translateY(0);
}
#chat-icon.show-tip::after,
#chat-icon.show-tip::before {
  opacity: 1;
  transform: translateY(0);
}
.loader {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.social-links a {
  color: #0a2a66;
  margin: 0 8px;
  font-size: 18px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #1f7a8c;
}
/* CONTACT SECTION CLEAN UI */
.contact-section {
  text-align: center;
}

.contact-desc {
  max-width: 620px;
  margin: 0 auto 30px;
  color: #555;
}

.contact-items {
  max-width: 520px;
  margin: 0 auto 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
}

.contact-item i {
  color: #0a2a66;
  font-size: 18px;
}

.contact-item a {
  color: #0a2a66;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-cta {
  margin-top: 25px;
}

.contact-cta .btn {
  margin: 5px;
}

.contact-trust {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
}

.contact-trust i {
  color: #2e7d32;
  margin-right: 5px;
}

.footer-social a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 18px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 1;
}
/* BRAND LOGO + TEXT */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 45px;   /* adjust if needed */
  width: auto;
}

/* Text container */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Main brand name */
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Vertex (blue) */
.brand-vertex {
  color: #0a2a66;   /* Deep blue */
}

/* Edge (green/teal) */
.brand-edge {
  color: #1f7a8c;   /* Teal/green */
}

/* Tagline */
.brand-tagline {
  font-size: 13px;
  color: BACK;
  font-weight: 500;
}
/* HEADER FIX */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: #fff;
}

/* Brand block (logo + text) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Navigation */
#nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

#nav a {
  text-decoration: none;
  color: #0a2a66;
  font-weight: 500;
  font-size: 16px;
}

/* Hover */
#nav a:hover {
  color: #1f7a8c;
}
.brand img {
  height: 65px;
  width: auto;
}
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #0a2a66;
}

/* Mobile */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  #nav {
    width: 100%;
    flex-direction: column;
    display: none;
    margin-top: 12px;
  }

  #nav.active {
    display: flex;
  }

  #nav a {
    padding: 10px 0;
  }
}