/* =====================
   THEME VARIABLES
===================== */
:root {
  --primary-dark: #133158;
  --primary-gold: #be9a53;
  --secondary-blue: #516275;
  --light-gold: #dbba6f;
  --light-bg: #f7f9fc;
  --text-dark: #1e1e1e;
  --white: #ffffff;
}

/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =====================
   HEADER + LOGO (GLOBAL)
===================== */
.header {
  background: var(--white);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO IMAGE */
.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-wrap img {
  height: 100%;
  width: 30%;
  display: block;
  transition: transform 0.3s ease;
}

.logo-wrap img:hover {
  transform: scale(1.05);
}

/* NAV LINKS */
nav a {
  color: var(--primary-dark);
  margin-left: 22px;
  font-weight: 500;
  position: relative;
}

nav a.active,
nav a:hover {
  color: var(--primary-gold);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* =====================
   HERO BACKGROUND BANNER
===================== */
.hero-bg {
  position: relative;
  min-height: 85vh;
  background: url("../images/home.png") center/cover no-repeat;
  display: flex;
  align-items: center;
}

/* Dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(19,49,88,0.85),
    rgba(19,49,88,0.6),
    rgba(190,154,83,0.15)
  );
  z-index: 1;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
}

.hero-content p {
  margin-top: 15px;
  font-size: 17px;
  opacity: 0.95;
}

/* Badge */
.hero-badge {
  margin-top: 30px;
  background: rgba(255,255,255,0.1);
  padding: 20px 25px;
  border-left: 4px solid var(--primary-gold);
  border-radius: 15px;
  backdrop-filter: blur(6px);
}

.hero-badge h3 {
  margin-bottom: 5px;
  color: var(--light-gold);
}

/* =====================
   HERO MOBILE
===================== */
@media (max-width: 900px) {
  .hero-bg {
    min-height: auto;
    padding: 80px 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero {
  color: var(--white);
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.small-hero {
  padding: 60px 0;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
}

.hero h1 span {
  color: var(--light-gold);
  position: relative;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--primary-gold);
  border-radius: 3px;
}

.hero-buttons {
  margin-top: 20px;
}

/* HERO BADGE */
.hero-card.overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(19,49,88,0.9);
  color: var(--white);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid var(--primary-gold);
  backdrop-filter: blur(4px);
}

/* =====================
   BUTTONS
===================== */
.btn {
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--primary-gold);
  color: var(--primary-dark);
}

.primary:hover {
  background: var(--light-gold);
}

.outline {
  background: transparent;
  border: 2px solid var(--light-gold);
  color: var(--white);
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 70px 0;
}

.light {
  background: var(--light-bg);
}

.center {
  text-align: center;
  margin-bottom: 40px;
}

/* =====================
   GRID SYSTEM
===================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* =====================
   CARDS + HOVER
===================== */
.card,
.service-card,
.value-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.card:hover,
.service-card:hover,
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.icon-card {
  text-align: center;
}

.icon-card img {
  width: 40px;
  margin-bottom: 10px;
}

/* =====================
   IMAGES
===================== */
.about-image {
  overflow: hidden;
  border-radius: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* =====================
   COUNTERS
===================== */
.counter-section {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  text-align: center;
}

/* =====================
   SERVICES
===================== */
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 12px;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h4 {
  text-align: center;
  color: var(--primary-dark);
}

/* =====================
   INDUSTRIES
===================== */
.industry-card {
  height: 160px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  transition: transform 0.4s ease;
}

.industry-card:hover {
  transform: scale(1.04);
}

.industry-card span {
  background: rgba(19,49,88,0.85);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--white);
  font-weight: 600;
}

/* =====================
   CONTACT
===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.contact-info p {
  margin: 15px 0;
  color: #555;
}

.contact-card {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
}

/* CONTACT FORM */
.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.contact-form textarea {
  grid-column: 1 / -1;
}

.contact-form button {
  grid-column: 1 / -1;
}

/* =====================
   CTA
===================== */
/* CTA FIX */
.cta {
  background: linear-gradient(
    120deg,
    var(--secondary-blue),
    var(--primary-dark)
  );
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}

.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cta h2 {
  margin-bottom: 5px;
}

.cta p {
  margin-bottom: 10px;
  opacity: 0.9;
}

.cta .btn {
  margin: 0 auto;   /* 🔥 THIS fixes Call Now */
}

/* =====================
   FOOTER
===================== */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: flex-start; /* 🔥 IMPORTANT */
}

footer h3,
footer h4 {
  margin-bottom: 12px;
}

footer p {
  margin-bottom: 8px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: left;
  }

  footer {
    padding: 40px 0 20px;
  }
}


/* =====================
   SCROLL REVEAL
===================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 60px 0;
    text-align: center;
  }

  .hero-grid,
  .two-col,
  .grid-2,
  .grid-3,
  .grid-4,
  .counter-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: auto;
  }

  .hero-card.overlay {
    position: static;
    margin-top: 15px;
  }

  .contact-form form {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }
}


/* =====================
   HAMBURGER MENU
===================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-gold);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-dark);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    display: none;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 12px 0;
    font-size: 18px;
    color: var(--white);
  }

  .hamburger {
    display: flex;
  }
}

/* HAMBURGER ANIMATION */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/* =====================
   SERVICES PAGE – MOBILE FIX
===================== */
@media (max-width: 900px) {

  /* Page hero spacing */
  .small-hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .small-hero p {
    font-size: 15px;
    margin-top: 10px;
  }

  /* Service list spacing */
  .service-list {
    gap: 40px;
  }

  .service-item {
    padding: 25px 20px;
  }

  /* Force single-column layout */
  .service-item .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Image control */
  .service-item img {
    height: 200px;
    border-radius: 15px;
  }

  /* Hide extra images if any */
  .service-item img + img {
    display: none;
  }

  /* Headings & text spacing */
  .service-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .service-item p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .service-item ul {
    padding-left: 18px;
    margin-bottom: 15px;
  }

  .service-item ul li {
    font-size: 14px;
    margin-bottom: 6px;
  }

  /* Buttons full-width */
  .service-item .btn {
    width: 100%;
    text-align: center;
  }

  /* Specialized financing cards */
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .value-card {
    padding: 20px;
    text-align: left;
  }

  /* CTA section mobile */
  .cta {
    padding: 50px 20px;
  }

  .cta h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .cta p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .cta .btn {
    width: 100%;
  }
}

/* =====================
   TESTIMONIAL SLIDER
===================== */
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}

.testimonial-slide {
  min-width: 100%;
  background: var(--white);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.testimonial-badge {
  width: 55px;
  height: 55px;
  background: var(--primary-gold);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 15px;
}

.testimonial-slide p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.testimonial-slide h4 {
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.testimonial-slide span {
  font-size: 14px;
  color: #777;
}

/* Navigation buttons */
.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
}

.testimonial-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.testimonial-nav button:hover {
  background: var(--primary-gold);
  color: var(--primary-dark);
}


/* =====================
   ABOUT PAGE HERO
===================== */
.about-hero {
  background: url("../images/about.png") center/cover no-repeat;
  min-height: 65vh;
}

/* Slightly lighter overlay for about page */
.about-hero .hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(19,49,88,0.85),
    rgba(19,49,88,0.55),
    rgba(190,154,83,0.18)
  );
}

/* About hero text alignment */
.about-hero .hero-content {
  max-width: 650px;
}

/* Mobile */
@media (max-width: 900px) {
  .about-hero {
    min-height: auto;
    padding: 80px 0;
    text-align: center;
  }
}

/* =====================
   SERVICES PAGE HERO
===================== */
.service-hero {
  background: url("../images/service.png") center/cover no-repeat;
  min-height: 65vh;
}

/* Overlay slightly stronger (icons + text visible) */
.service-hero .hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(19,49,88,0.88),
    rgba(19,49,88,0.6),
    rgba(190,154,83,0.18)
  );
}

/* Width control */
.service-hero .hero-content {
  max-width: 720px;
}

/* Mobile */
@media (max-width: 900px) {
  .service-hero {
    min-height: auto;
    padding: 80px 0;
    text-align: center;
  }

  .service-hero .hero-content {
    max-width: 100%;
  }
}

/* =====================
   CONTACT PAGE HERO
===================== */
.contact-hero {
  background: url("../images/contact.png") center/cover no-repeat;
  min-height: 65vh;
}

/* Slightly softer overlay (friendly consultation feel) */
.contact-hero .hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(19,49,88,0.8),
    rgba(19,49,88,0.55),
    rgba(190,154,83,0.22)
  );
}

/* Content width */
.contact-hero .hero-content {
  max-width: 680px;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .contact-hero {
    min-height: auto;
    padding: 80px 0;
    text-align: center;
  }

  .contact-hero .hero-content {
    max-width: 100%;
  }
}

/* =====================
   FINANCIAL SOLUTIONS IMAGE
===================== */
.solutions-image {
  margin-top: 35px;
}

.solutions-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* Mobile spacing */
@media (max-width: 900px) {
  .solutions-image {
    margin-top: 25px;
  }
}


/* =====================
   ABOUT HERO – MOBILE IMAGE SWAP
===================== */
@media (max-width: 900px) {

  .about-hero {
    background-image: url("../images/aboutmob.png"); /* mobile banner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: auto;
    padding: 90px 0 70px;
    text-align: center;
  }

  .about-hero .hero-content {
    max-width: 100%;
    padding: 0 16px;
  }

  .about-hero h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .about-hero p {
    font-size: 15px;
    margin-top: 10px;
  }

  .about-hero .hero-badge {
    margin: 22px auto 0;
    padding: 18px;
  }
}

/* =====================
   HOME HERO – MOBILE IMAGE SWAP
===================== */
@media (max-width: 900px) {

  .hero-bg {
    background-image: url("../images/homemob.png"); /* mobile home banner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: auto;
    padding: 90px 0 70px;
    text-align: center;
  }

  .hero-bg .hero-content {
    max-width: 100%;
    padding: 0 16px;
  }

  .hero-bg h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-bg p {
    font-size: 15px;
    margin-top: 10px;
  }

  .hero-bg .hero-badge {
    margin: 22px auto 0;
    padding: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* =====================
   SERVICES HERO – MOBILE IMAGE SWAP
===================== */
@media (max-width: 900px) {

  .service-hero {
    background-image: url("../images/servicesmob.png"); /* mobile services banner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: auto;
    padding: 90px 0 70px;
    text-align: center;
  }

  .service-hero .hero-content {
    max-width: 100%;
    padding: 0 16px;
  }

  .service-hero h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .service-hero p {
    font-size: 15px;
    margin-top: 10px;
  }

  .service-hero .hero-badge {
    margin: 22px auto 0;
    padding: 18px;
  }
}

/* =====================
   CONTACT HERO – MOBILE IMAGE SWAP
===================== */
@media (max-width: 900px) {

  .contact-hero {
    background-image: url("../images/contactmob.png"); /* mobile contact banner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: auto;
    padding: 90px 0 70px;
    text-align: center;
  }

  .contact-hero .hero-content {
    max-width: 100%;
    padding: 0 16px;
  }

  .contact-hero h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .contact-hero p {
    font-size: 15px;
    margin-top: 10px;
  }

  .contact-hero .hero-badge {
    margin: 22px auto 0;
    padding: 18px;
  }
}

/* Overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup box */
.popup-content {
  background: #fff;
  width: 400px;
  max-width: 90%;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  animation: popupFade 0.3s ease;
}

@keyframes popupFade {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Form styling */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

