:root {
  --primary: #6D28D9;          /* Rich purple – logo, headings, links, accents */
  --accent: #D97706;           /* Warm golden yellow – main CTAs, highlights, success */
  --primary-dark: #5B21B6;     /* Darker purple for hovers/depth */
  --accent-dark: #B45309;      /* Darker gold for button hovers */
 
  --dark: #1E293B;             /* Slate dark for body text */
  --gray: #64748B;             /* Subtle gray for secondary text */
  --light: #F8FAFC;            /* Very light gray-white for sections */
  --bg-section: #FFFFFF;
 
  --purple-light: #F3E8FF;     /* Pale purple tint – hero/subtle backgrounds */
  --gold-light: #FEF3C7;       /* Pale gold tint – badges/highlights */
 
  --shadow: 0 10px 40px rgba(109, 40, 217, 0.12);   /* Stronger shadow */
  --shadow-hover: 0 25px 70px rgba(109, 40, 217, 0.25); /* New: Strong hover shadow */
  --radius: 16px;              /* Slightly larger, more modern rounded corners */
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  background: var(--bg-section);
  line-height: 1.7;
  font-size: 1.05rem;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 7rem 0; }
.section-light { background: var(--light); }

h1, h2 { font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.8rem; margin-bottom: 1.2rem; text-align: center; }
h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--primary); }

p.sub {
  color: var(--gray);
  font-size: 1.15rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3); /* Gold shadow */
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.3); /* Purple shadow */
}

.center-cta { text-align: center; margin-top: 4rem; }

/* Header – reduced but safe height, no cutting off logo/menu */
.header {
  position: sticky;
  top: 0;
  height: 60px;                     /* fixed reduced height */
  background: #4C1D95;              /* deep purple – bold & branded */
  box-shadow: 0 4px 20px rgba(76, 29, 149, 0.3); /* purple-tinted shadow */
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(76, 29, 149, 0.94); /* slightly transparent on scroll */
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 25px rgba(76, 29, 149, 0.4);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: -5.5rem;              /* small left margin from edge – change to 0 for absolute left */
  margin-top: -20px;                /* pushes logo UPWARD – adjust -8px to -15px as needed */
  height: 100%;
  padding: 0;
}

.logo img {
  height: 100px;                     /* large logo – header height stays fixed */
  width: auto;
  max-width: 220px;
  object-fit: contain;
}


/* Menu items – white text, gold on hover with underline + scale */
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}
.nav {
  margin-left: auto;                /* pushes nav to the right */
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-list a {
  position: relative;
  color: white;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: all 0.35s ease;
}

.nav-list a:hover {
  color: #FBBF24;             /* gold on hover */
  transform: scale(1.05);
}

.nav-list a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Hamburger toggle – white/gold */
.menu-toggle span {
  background: white;
  transition: all 0.3s;
}

.menu-toggle:hover span {
  background: var(--accent);
}

/* Hamburger toggle – centered vertically */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s;
}
/* ==================== NAVIGATION BAR ON SMALL SCREENS ==================== */

@media (max-width: 1024px) {
    
    /* Force hamburger to always show */
    .menu-toggle {
        display: flex !important;
    }

    /* Hide normal desktop nav on small screens */
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #4C1D95;
        z-index: 1000;
        padding: 2rem 1.5rem;
        overflow-y: auto;
    }

    /* Show nav when active */
    .nav.active {
        display: block !important;
    }

    /* Style the menu items */
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        padding: 1rem 0;
    }

    .nav-list a {
        color: white;
        font-size: 1.35rem;
        padding: 0.8rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .nav-list a:hover {
        background: rgba(251, 191, 36, 0.25);
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
/* Cards & Grids */
.grid-3, .grid-4, .process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  margin-top: 4rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(109, 40, 217, 0.25);
  border-color: var(--primary);
}

.card ul { list-style: none; margin: 1.2rem 0; }
.card ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
}
.card ul li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card .btn-primary {
  margin-top: auto;        /* Pushes button to bottom */
  margin-bottom: 0;
}

/* ==================== IMPLEMENTATION PROCESS (4-Step) ==================== */
.process-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.process-step {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  height: 100%;
}

.process-step:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  background: var(--purple-light);
}

.step-number {
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  font-size: 1.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.6rem;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

/* Make sure the process section looks balanced */
#process .section-content {
  padding-bottom: 2rem;
}

/* ==================== ZOHO CARDS - MAKE WHOLE CARD CLICKABLE ==================== */
.card.zoho-card {
  cursor: pointer !important;
  transition: all 0.35s ease;
  padding: 2rem 1.5rem;
}

.card.zoho-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(109, 40, 217, 0.28);
}

.zoho-card {
  cursor: pointer !important;
  transition: all 0.35s ease;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.zoho-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(109, 40, 217, 0.25);
  border-color: var(--primary);
}

/* Allow clicks on "Learn More" to pass through to the card */
.learn-more-btn {
  pointer-events: none !important;
  margin-top: 1.2rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  display: inline-block;
}


.zoho-card:hover .learn-more-btn {
  opacity: 1;
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* Optional: arrow icon inside button */
.learn-more-btn::after {
  content: " →";
  margin-left: 0.3rem;
  font-weight: bold;
}

/* Partner badge – fits nicely inside container */
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;                    /* space between image and text */
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  flex-wrap: wrap;              /* allows wrapping on very small screens */
}

/* Badge image – constrained size + responsive */
.partner-badge {
  margin-top: -40px;
  max-height: 20vh;              /* scales with viewport height – fits most screens */
  max-width: 400px;             /* prevents it from getting too wide */
  width: auto;
  height: auto;
  object-fit: contain;          /* keeps proportions */
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); /* subtle shadow for depth */
}

/* Responsive adjustments – smaller on mobile/tablet */
@media (max-width: 1024px) {
  .partner {
    font-size: 1.3rem;
    gap: 0.8rem;
  }
  .partner-badge {
    max-height: 7vh;
    max-width: 160px;
  }
}

@media (max-width: 768px) {
  .partner {
    font-size: 1.1rem;
    flex-direction: column;     /* stack image above text on small screens */
    gap: 0.6rem;
  }
  .partner-badge {
    max-height: 6vh;
    max-width: 140px;
  }
}

/* Testimonials */
.testimonial {
  background: var(--light);
  padding: 2.2rem;
  border-radius: var(--radius);
  border-left: 6px solid var(--accent);
  font-style: italic;
}
.testimonial-author { margin-top: 1.5rem; font-weight: 600; font-style: normal; }
.testimonial-company { color: var(--gray); font-size: 0.95rem; }

.badges { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 2.5rem 0; }
.badge {
  background: white;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: var(--shadow);
  color: var(--primary);
  border: 1px solid var(--purple-light);
}
.badge i { color: var(--accent); }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 3rem auto 0;
}
.faq-list details {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-list summary {
  padding: 1.5rem 2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--accent);
  transition: 0.3s;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list p {
  padding: 0 2rem 1.8rem;
  color: var(--gray);
  margin: 0;
}

/* Contact Form */
form { max-width: 680px; margin: 4rem auto 0; display: grid; gap: 1.4rem; }
input, select, textarea {
  padding: 1.1rem 1.4rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.05rem;
  width: 100%;
}
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}
.office h4 { color: var(--primary); margin-bottom: 1rem; }

/* Footer */
footer {
background: #2A1F45;
  color: #e5e0ff;
  padding: 6rem 0 3rem;
  text-align: center;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4rem; margin-bottom: 4rem; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: white; }
.copyright { margin-top: 3rem; font-size: 0.95rem; opacity: 0.8; }


/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.12); }
.whatsapp-float img { width: 40px; height: 40px; }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.3);
}
.back-to-top:hover { transform: translateY(-4px); }

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.client-logo {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2rem;
}

.hidden { display: none; }

/* Responsive */
@media (max-width: 1024px) { section { padding: 6rem 0; } #hero { padding: 8rem 0 6rem; } }
@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  .btn { padding: 0.9rem 1.8rem; width: 100%; text-align: center; }
  .hero-cta { flex-direction: column; gap: 1rem; }
  .grid-3, .grid-4, .process-grid { grid-template-columns: 1fr; }
}

/* Form container – subtle white card differentiation */
.form-container {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--purple-light);
  max-width: 720px;
  margin: 2.5rem auto 0;
}

form {
  display: grid;
  gap: 1.6rem;
}

input, select, textarea {
  padding: 1.25rem 1.4rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1.05rem;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

button.btn-primary {
  padding: 1.2rem;
  font-size: 1.1rem;
  width: 100%;
}

/* Success Message */
#form-success {
  background: #10b981;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

/* Maps container & items */
.maps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}
/* Section content wrapper – subtle differentiation (light border/shadow/padding) */
.section-content {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--purple-light);
}

/* ==================== HERO SECTION ==================== */
#hero {
  position: relative;
  background-image: url("images/img1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 75vh;                    /* Changed: Full height for better impact */
  display: flex;
  align-items: center;                  /* Changed: Centers content vertically */
  color: white;
  padding-top: 75px;
}

/* Very light purple-tinted overlay – keeps image visible */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(76, 29, 149, 0.48),   /* Stronger purple overlay */
    rgba(109, 40, 217, 0.58)
  );
  z-index: 1;
}

/* Content container */
.hero-content-container {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: -4.0rem auto 0 auto;                      /* Removed extreme negative margin */
  text-align: center;
  background: rgba(255,255,255,0.09);   /* Better glass effect */
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 3.2rem 2.8rem;
  box-shadow: 0 25px 70px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
}

/* Strong text contrast for readability */
.hero-content-container h1,
.hero-content-container p.desc,
.hero-content-container .partner,
.hero-content-container .stats,
.hero-content-container .badge {
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.7);   /* Stronger shadow */
}

/* Badge styling */
.hero-content-container .badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  backdrop-filter: blur(8px);
}

/* Golden icons in badges */
.hero-content-container .badge i {
  color: var(--accent);
}

/* Buttons on transparent/dark overlay */
.hero-content-container .btn-primary {
  background: var(--accent);
  color: white;
}
.hero-content-container .btn-outline {
  border-color: white;
  color: white;
}
.hero-content-container .btn-outline:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content-container {
    padding: 2.6rem 2.2rem;
  }
  #hero {
    min-height: 85vh;
    padding-top: 70px;
  }
}

@media (max-width: 768px) {
  .hero-content-container {
    padding: 2rem 1.6rem;
  }
  #hero {
    min-height: 75vh;
    padding-top: 60px;
    background-attachment: scroll;
  }
}

/* Zoho card logo styling – base state */
.zoho-card {
  text-align: center;
  transition: all 0.3s ease;          /* smooth animation */
  cursor: pointer;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.2rem;
}

/* Hover state – same effect as process / why-us cards */
.zoho-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.18); /* purple glow */
  background: var(--purple-light);
}

.zoho-card:hover .card-action {
  opacity: 1;
  text-decoration: underline;
}
i.fas,
i.fab {
  color: var(--accent) !important; /* !important ensures override */
}
.card-action {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.zoho-card:hover .zoho-logo {
  transform: scale(1.08);
}

.zoho-logo {
  max-width: 40px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* WhatsApp on left, Back-to-top on right */
.whatsapp-float {
  left: 30px;          /* changed from right:30px */
  right: auto;
}

/* Ensure no overlap on mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
.map-item {
  text-align: center;
}

.map-item h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Slightly smaller hero on desktop */
#hero {
  padding: 8rem 0 6rem;  /* was 10rem top */
}

@media (max-width: 768px) {
  #hero {
    padding: 6rem 0 4rem;
  }
}
/* Tighter global spacing */
section {
  padding: 4rem 0 3rem; /* significantly reduced */
}

.section-light {
  padding: 3.5rem 0 2.5rem;
}

.section-content {
  padding: 1.5rem; /* reduced internal padding */
  margin-bottom: 0.8rem; /* very minimal between sections */
}

/* Even tighter hero */
#hero {
  padding: 5rem 0 3.5rem;
}

/* Process – hover effect added */
.process-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 2rem 0;
}

.process-step,
.why-card {
  flex: 1 1 23%;
  min-width: 210px;
  text-align: center;
  padding: 1.2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.process-step:hover,
.why-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.18); /* purple glow */
  background: var(--purple-light);
}

@media (max-width: 1024px) {
  .process-row {
    flex-direction: column;
    align-items: center;
  }
  .process-step {
    flex: 1 1 100%;
    max-width: 400px;
  }
}

/* Card & grid spacing reduced */
.grid-3, .grid-4, .process-row {
  gap: 1.5rem; /* tighter */
}

.card {
  padding: 1.6rem; /* reduced from 2.2rem */
}

/* Headings & icons tighter */
h2 {
  margin-bottom: 0.8rem; /* closer to sub/p content */
}

h3 {
  margin-bottom: 0.6rem;
}

/* Nav tighter */
.nav-list {
  gap: 1.8rem; /* reduced from 2.2rem */
}
#why-us .grid-3 .card {
  @apply why-card; /* or just add class="card why-card" in HTML as shown above */
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  max-width: 620px;
  width: 92%;
  border-radius: var(--radius);
  padding: 2.2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-logo {
  max-width: 30px;
  height: auto;
  margin-bottom: 1rem;
}

.modal-body p {
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.modal-body ul {
  list-style: none;
  padding-left: 0;
}

.modal-body ul li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.modal-body ul li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.modal-footer {
  text-align: center;
  margin-top: 2rem;
}

.modal-demo-btn {
  margin-right: 1rem;
}

/* ==================== IMPROVED FOOTER + BLOG + LOCATIONS (Mobile Optimized) ==================== */

footer {
  background: #0F172A;
  color: #e2e8f0;
  padding: 3.5rem 0 2rem;
  text-align: center;
  margin-top: 0; /* Removed the 1px hack - cleaner */
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

/* Authorized Partner Badge */
.logo-badge {
  max-height: 75px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Smaller badge on mobile */
@media (max-width: 768px) {
  .logo-badge {
    max-height: 58px;
    max-width: 160px;
  }
}

/* Brand Column */
.brand-tag {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.8rem 0 0.6rem;
}

.brand-desc {
  font-size: 0.93rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Middle Column - Quick Contact */
.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.2rem 0 1.5rem;
}

.quick-btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.quick-btn:hover {
  background: rgba(251,191,36,0.2);
  border-color: #FBBF24;
}

/* Business Hours */
.business-hours {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
}

.business-hours p {
  margin: 0.35rem 0;
}

.business-hours strong {
  color: #FBBF24;
}

/* Social Icons */
.footer-social h4 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.social-icons a {
  color: #FBBF24;
  font-size: 2.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #ffd080;
  transform: scale(1.15);
}

/* Copyright */
.copyright {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  opacity: 0.78;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
}

/* ==================== BLOG SECTION IMPROVEMENTS ==================== */

#blog .grid-3 {
  gap: 1.8rem;
}

#blog-posts .card {
  padding: 1.8rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#blog-posts .card h3 {
  font-size: 1.32rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
  color: var(--primary);
}

#blog-posts .card p {
  font-size: 0.96rem;
  color: var(--gray);
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

#blog-posts .card .btn {
  margin-top: 1.2rem;
  width: 100%;
}

/* ==================== LOCATIONS / MAPS - FIXED FOR MOBILE ==================== */

.locations-section {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
}

.locations-section h3 {
  color: white;
  margin-bottom: 2rem;
  font-weight: 600;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Location Card */
.location-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}

.location-header {
  background: #1E2937;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
  margin: 0;
}

/* IMPORTANT: Limit map height on mobile */
.map-wrapper {
  flex-grow: 1;
  min-height: 260px;           /* Reasonable height */
  max-height: 320px;           /* Prevents huge scrolling */
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Details */
.location-details {
  padding: 1.3rem;
  text-align: center;
}

.location-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.location-details a {
  color: #6D28D9;
  text-decoration: none;
}

.location-details a:hover {
  color: #FBBF24;
}

/* Extra small screen fixes */
@media (max-width: 576px) {
  .map-wrapper {
    min-height: 240px;
    max-height: 280px;
  }
  
  .locations-grid {
    gap: 1.8rem;
  }
  
  #blog-posts .card {
    padding: 1.6rem 1.2rem;
  }
}