* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================
   Base
   ===================== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
}

/* Inner page background watermark behind content */

.inner-page {
  position: relative;
}

.inner-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('logo.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 420px auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

/* Reduce watermark cost on smaller screens */
@media (max-width: 768px) {
  .inner-page::before {
    background-size: 260px auto;
    opacity: 0.04;
  }
}

@media (max-width: 480px) {
  .inner-page::before {
    display: none; /* remove fixed background on very small devices */
  }
}

/* Container */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================
   Top bar
   ===================== */

.topbar {
  background-color: #020617;
  color: #e5e7eb;
  font-size: 13px;
  padding: 6px 0;
}

.topbar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 768px) {
  .topbar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Topbar sliding text */

.topbar-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.topbar-marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: topbar-scroll 18s linear infinite;
}

.topbar-marquee-inner span {
  padding-right: 80px;
}

@keyframes topbar-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =====================
   Header / navbar
   ===================== */

header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}

/* Logo + brand */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-line1 {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
}

.brand-line2 {
  font-weight: 700;
  font-size: 11px;
  color: #da2222;
}

/* Primary nav (desktop baseline) */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
  border-bottom-color: #dc2626;
  color: #dc2626;
}

.nav-menu a.active {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

/* Header social icons */

.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: #0f172a;
  font-size: 16px;
  border: 1px solid #e5e7eb;
}

.nav-social a:hover {
  background-color: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Older generic nav selector (kept but nav-menu is primary) */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

nav a:hover {
  color: #da2626;
}

nav a.active {
  color: #da2626;
  border-bottom: 2px solid #da2626;
  padding-bottom: 4px;
}

/* Hamburger button */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #0f172a;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate hamburger to X when open */

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive nav layout */

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background-color: #020617;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 16px;
    gap: 8px;
    border-top: 1px solid #111827;
    display: none;
    z-index: 50;
  }

  .nav-menu a {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #111827;
    color: #e5e7eb;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  header.nav-open .nav-menu {
    display: flex;
  }

  .nav-social {
    margin-top: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-social a {
    background-color: #111827;
    border-color: #1f2937;
    color: #e5e7eb;
  }

  .nav-social a:hover {
    background-color: #dc2626;
    border-color: #dc2626;
  }
}

/* Extra-small adjustments */

@media (max-width: 480px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  header .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  body {
    font-size: 14px;
  }

  .section h2 {
    font-size: 22px;
  }

  nav a {
    font-size: 13px;
  }
}

/* =====================
   Hero
   ===================== */

.hero {
  background-color: #020617;
  color: #e5e7eb;
  padding: 48px 0;
  background-image: linear-gradient(to right, rgba(15,23,42,0.9), rgba(15,23,42,0.7)), url('hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.hero h1 {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  margin-bottom: 12px;
}

.hero ul {
  margin-top: 8px;
  margin-bottom: 24px;
  padding-left: 18px;
}

.hero ul li {
  margin-bottom: 6px;
}

/* Buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background-color: #da2222;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #b51c1c;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid #9ca3af;
  color: #e5e7eb;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* =====================
   Sections & cards
   ===================== */

.section {
  padding: 56px 0;
  border-top: 1px solid #e5e7eb;
}

.section:first-of-type {
  border-top: none;
}

.section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 18px;
}

.section p {
  margin-bottom: 10px;
}

.section-light {
  background-color: #ffffff;
}

.section-soft {
  background-color: #f1f5f9;
}

/* Generic card */

.card {
  background-color: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 18px;
}

.card h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* =====================
   Services slider (home)
   ===================== */

.services-hero {
  padding: 60px 0;
  background-color: #0f172a;
  color: #f9fafb;
  margin-bottom: 40px;
}

.services-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
}

/* Base slide styles */

.services-slider .slide {
  position: relative;
  display: none;
  opacity: 0;
  transform: translateX(40px);
}

/* Active slide */

.services-slider .slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Image and overlay */

.services-slider img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.services-slider .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.4)
  );
}

.slide-content {
  position: absolute;
  left: 40px;
  bottom: 40px;
  max-width: 480px;
  color: #f9fafb;
}

.slide-content h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #e5e7eb;
}

/* Slider buttons */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(220, 38, 38, 0.9);
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

/* Slider dots */

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(148, 163, 184, 0.8);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
  background-color: #f97316;
  transform: scale(1.3);
}

/* Slider responsive */

@media (max-width: 768px) {
  .services-slider img {
    height: 320px;
  }

  .slide-content {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 14px;
  }
}

/* Extra gap before CTA after Clients & Partners */

.section-soft.clients-section {
  margin-bottom: 40px;
}

/* =====================
   Service cards (home & services page)
   ===================== */

.service-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card {
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.2);
}

.service-card h2,
.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.service-card ul {
  padding-left: 18px;
  margin: 0;
}

.service-card li {
  font-size: 14px;
  color: #475569;
  margin-bottom: 4px;
}

/* =====================
   Projects grid
   ===================== */

.projects-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.project-card h2,
.project-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.project-card p {
  font-size: 14px;
  color: #475569;
}

.project-card:hover {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
  transform: translateY(-3px);
  border-color: #da2222;
}

/* =====================
   Why choose us
   ===================== */

.why-grid {
  display: grid;
  gap: 16px;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0;
  box-shadow: 0 1px 2px rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-icon {
  margin-left: 12px;
  font-size: 18px;
  color: #64748b;
  transition: transform 0.2s ease;
}

/* Animated answer */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  border-top: 1px solid #e5e7eb;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.faq-answer p {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: #475569;
}

/* Open state */

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 12px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg); /* changes + to x-ish */
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.why-card {
  font-size: 14px;
}

.why-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 600;
}

/* =====================
   Contact
   ===================== */

.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-box {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.2);
}

.contact-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-box p {
  font-size: 14px;
  color: #475569;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

form button {
  width: 100%;
  background-color: #da2222;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

form button:hover {
  background-color: #b51c1c;
}

.map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  display: block;
}

/* Email links in CTA section */

.contact-grid a[href^="mailto:"] {
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
}

.contact-grid a[href^="mailto:"]:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* =====================
   Stats strip
   ===================== */

.stats-strip {
  display: grid;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat-item {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.stat-number {
  font-size: 20px;
  font-weight: 800;
  color: #da2222;
  margin-bottom: 4px;
}

.stat-number span {
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
  color: #0f172a;
}

.stat-label {
  font-size: 13px;
  color: #475569;
}

/* =====================
   Clients & Partners
   ===================== */

.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.client-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}

.clients-section {
  margin-bottom: 40px;
}

/* =====================
   Certifications & memberships
   ===================== */

.certs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.cert-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 999px;
  background-color: #020617;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  font-size: 13px;
}

.cert-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.cert-badge small {
  font-size: 11px;
  color: #9ca3af;
}

/* Certifications mobile layout */

@media (max-width: 768px) {
  .certs-strip {
    flex-direction: column;
  }

  .cert-badge {
    width: 100%;
  }
}

/* =====================
   Global link styles
   ===================== */

/* Global phone and email link style */

a[href^="tel:"],
a[href^="mailto:"] {
  color: #dc2626 !important;
  text-decoration: none;
  font-weight: 600;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  color: #b91c1c !important;
  text-decoration: underline;
}

/* Make contact-grid tel links red (reinforce) */

.contact-grid a[href^="tel:"] {
  color: #dc2626 !important;
}

/* Focus outlines */

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #da2222;
  outline-offset: 2px;
}

/* Highlight utility */

.highlight {
  color: #da2222;
  font-weight: 600;
}

/* =====================
   Testimonials slider
   ===================== */

.testimonials-slider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.2);
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.testimonial-quote {
  font-style: italic;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 10px;
}

.testimonial-meta {
  font-size: 14px;
  color: #6b7280;
}

.testimonial-meta span {
  font-size: 13px;
}

/* Dots */

.testimonial-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(148, 163, 184, 0.8);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.t-dot.active {
  background-color: #da2222;
  transform: scale(1.25);
}

/* Mobile tweaks */

@media (max-width: 640px) {
  .testimonial-slide {
    padding: 16px 14px;
  }

  .testimonial-quote {
    font-size: 14px;
  }
}

/* =====================
   Footer
   ===================== */

footer {
  background-color: #020617;
  color: #e5e7eb;
  margin-top: 32px;
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
}

footer a:hover {
  color: #da2222;
}

/* Main footer content */

.footer-inner {
  display: grid;
  gap: 20px;
  padding: 20px 0 10px 0;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
  }
}

.footer-inner p {
  margin: 4px 0;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Footer brand */

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-top: 2px;
}

/* Footer menu */

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 4px;
}

.footer-menu a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
}

.footer-menu a:hover {
  color: #da2222;
}

/* Footer social icons */

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #111827;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  font-size: 16px;
}

.footer-social a:hover {
  background-color: #da2222;
  border-color: #da2222;
  color: #ffffff;
}

.footer-social i {
  display: block;
}

/* Bottom bar */

.footer-bottom {
  border-top: 1px solid #1f2933;
  padding: 8px 0;
  font-size: 12px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-copy {
  color: #9ca3af;
}

.footer-powered span {
  font-weight: 600;
  color: #e5e7eb;
}

.footer-top-link a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-top-link a:hover {
  color: #da2222;
}

/* Back to top floating button */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 88px; /* lifted above WhatsApp */
  background-color: #da2222;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.back-to-top:hover {
  background-color: #b51c1c;
}

/* Extra-small footer bottom alignment */

@media (max-width: 480px) {
  .footer-bottom-inner {
    align-items: center;
    text-align: center;
  }

  .footer-copy,
  .footer-powered,
  .footer-top-link {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background-color: #25d366; /* WhatsApp green */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
}

/* Simple “WA” text icon */
.whatsapp-icon {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.whatsapp-icon-img {
  width: 28px;
  height: 28px;
}

/* Hover effect on desktop */
@media (hover: hover) {
  .whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }
}

/* =====================
   Mobile performance optimizations
   ===================== */

/* General mobile spacing and typography */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: 32px 0;
  }

  h1 {
    font-size: 22px;
  }

  .section h2 {
    font-size: 20px;
  }

  .section p {
    font-size: 14px;
  }

  .service-card,
  .project-card,
  .contact-box,
  .faq-item {
    padding: 14px;
    box-shadow: 0 1px 2px rgba(148, 163, 184, 0.16); /* slightly lighter shadow on mobile */
  }

  .service-grid,
  .projects-grid,
  .why-grid,
  .faq-list,
  .contact-grid,
  .stats-strip {
    gap: 12px;
  }

  .btn-primary,
  .btn-outline {
    padding: 9px 14px;
    font-size: 14px;
  }

  /* Adjust floating buttons on mobile */
  .whatsapp-float {
    right: 12px;
    bottom: 72px; /* raised above footer */
    width: 46px;
    height: 46px;
    font-size: 13px;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
    right: 12px;
    bottom: 140px; /* stays above WhatsApp */
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.3);
  }
}

/* Make grids single-column slightly earlier to avoid cramped layouts */
@media (max-width: 768px) {
  .service-grid,
  .projects-grid,
  .why-grid,
  .contact-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 16px;
  }
}

/* FAQs mobile adjustments */
@media (max-width: 640px) {
  .faq-list {
    gap: 12px;
  }

  .faq-item {
    border-radius: 10px;
  }

  .faq-question {
    padding: 10px 14px;
    font-size: 14px;
  }

  .faq-icon {
    font-size: 18px;
    margin-left: 8px;
  }

  .faq-answer {
    padding: 0 14px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .faq-question span:first-child {
    padding-right: 24px;
  }
}