:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --accent: #4a90e2;
  --accent-2: #e94e77;
  --text: #333333;
  --muted: #666666;
  --border: #cccccc;
  --focus:  ;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Global typography */
html, body { line-height: 1.6; letter-spacing: 0.5px; }
h1, h2, h3, h4, h5, h6, .section-title { line-height: 1.3; letter-spacing: 1px; }
p, li, .svc-card, .category-empty, .svc-street, .svc-contact { line-height: 1.6; letter-spacing: 0.25px; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1000; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #75e6da); transition: width 0.1s linear; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 999; backdrop-filter: saturate(180%) blur(12px); background: #f0f0f0; border-bottom: 1px solid var(--border); }
.nav-content { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.nav-logo .logo-text { font-weight: 800; font-size: 1.1rem; }
.dot-info { color: var(--accent); }
.nav-links { display: inline-flex; gap: 18px; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-link:hover, .nav-link:focus { background: var(--card); outline: none; }
.mobile-menu-btn { display: none; }

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; height: 80vh; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; z-index: 1; display: flex; align-items: center; justify-content: center; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: rgba(245,245,245,0.7); z-index: 1; }
.hero-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 3; max-width: 800px; margin: 0 auto; padding: 20px; color: var(--text); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; }
.hero-title { font-size: clamp(1.7rem, 2.8vw, 3rem); margin: 0 0 10px; }
.hero-subtitle { color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.cta-button { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid var(--border); padding: 10px 14px; text-decoration: none; color: var(--text); background: var(--card); }
.cta-button.primary { background: var(--accent); border: none; color: #fff; font-weight: 700; }
.cta-button.secondary { background: #e0e0e0; color: var(--text); }
.cta-button:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; padding: 12px; cursor: pointer; border-radius: 50%; z-index: 4; }
.hero-prev { left: 20px; } .hero-next { right: 20px; }

/* Sections */
.section-title { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: 1px; line-height: 1.3; margin: 20px 0 16px; text-decoration: none; }
.section-title .material-icons { color: var(--accent); font-size: 1.4em; vertical-align: middle; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.services-section, .about-section { padding: 12px 0 36px; }

/* Category nav */
.category-nav-container {
  /* removed sticky positioning */
  background: #f9f9f9;
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.category-nav-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.category-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.category-nav-button:hover {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.category-nav-button.active {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
}

.category-nav-button:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Empty state */
.category-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 150px 20px; text-align: center; background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); animation: fadeInUp 0.6s ease; transition: opacity 0.6s ease, transform 0.6s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.category-empty.fade-out { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* Loader */
.loader { border: 6px solid #f3f3f3; border-top: 6px solid var(--accent); border-radius: 50%; width: 48px; height: 48px; animation: spin 1s linear infinite; margin-bottom: 12px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-text { font-size: 1rem; color: var(--muted); animation: fadePulse 1.5s ease-in-out infinite; }
@keyframes fadePulse { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } }

/* Footer */
.footer { background: #f0f0f0; color: var(--muted); margin-bottom: 68px; }
.footer .container { padding: 18px 20px; }

/* Service cards */
.category-content { margin-top: 20px; }
.svc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 2px 6px rgba(0,0,0,0.05); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.svc-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.svc-street { font-size: 0.95rem; color: var(--muted); }
.svc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.svc-contact { font-weight: 600; font-size: 0.95rem; color: var(--accent); text-decoration: none; }
.svc-contact:hover, .svc-contact:focus { text-decoration: underline; }
.svc-contact.muted { color: var(--muted); pointer-events: none; }
.map-button { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; transition: background 0.2s ease; }
.map-button:hover { background: #357ac8; }

/* Emergency FAB */
.emergency-fab-container { position: fixed; bottom: 73px; right: 20px; z-index: 1000; }

.emergency-fab {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  overflow: hidden; /* ensures image stays inside circle */
}

.emergency-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the circle */
  border-radius: 50%; /* keeps it circular */
}

.emergency-dial { display: none; flex-direction: column; align-items: flex-end; margin-bottom: 10px; }
.emergency-dial.show { display: flex; }
.emergency-mini {
  background: #fff;
  color: var(--accent);
  border-radius: 30px;
  padding: 8px 12px;
  margin: 6px 0;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.emergency-dial.show .emergency-mini { opacity: 1; transform: translateY(0) scale(1); }
.emergency-mini.urgent { border: 2px solid red; color: red; }

/* Staggered animation delays */
.emergency-dial.show .emergency-mini:nth-child(1) { transition-delay: 0.05s; }
.emergency-dial.show .emergency-mini:nth-child(2) { transition-delay: 0.10s; }
.emergency-dial.show .emergency-mini:nth-child(3) { transition-delay: 0.15s; }
.emergency-dial.show .emergency-mini:nth-child(4) { transition-delay: 0.20s; }
.emergency-dial.show .emergency-mini:nth-child(5) { transition-delay: 0.25s; }

/* Mobile sections with fade-in */
.mobile-section { display: none; opacity: 0; transition: opacity 0.4s ease; }
.mobile-section.active { display: block; opacity: 1; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Desktop override */
@media (min-width: 768px) {
  .mobile-section { display: block !important; opacity: 1 !important; animation: none !important; }
}

/* Mobile tabs */
.mobile-tabs { display: none; }
@media (max-width: 767px) {
  .mobile-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f9f9f9;
    border-top: 1px solid var(--border);
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
  }
  .mobile-tabs .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
  }
  .mobile-tabs .tab-item.active { color: var(--accent); font-weight: 600; }
}

/* Responsive overrides */
@media (max-width: 767px) {
  .nav-links { display: none !important; }
  .hero-slider { height: 60vh; }
  .hero-content { max-width: 90%; text-align: center; padding: 30px 16px; }
  .hero-title { font-size: 1.6rem; line-height: 1.3; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: center; }
  .cta-button { width: 100%; justify-content: center; }
  .hero-prev, .hero-next { padding: 8px; background: rgba(0,0,0,0.3); }
  .category-nav-inline { grid-template-columns: repeat(2, 1fr); }
  .svc-list { grid-template-columns: 1fr; }
  .svc-footer { flex-direction: column; align-items: flex-start; gap: 6px; }
  .map-button { width: 100%; text-align: center; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .svc-list { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 70vh; }
}

/* Hide footer on mobile */
@media (max-width: 767px) { .footer { display: none !important; } }


/* Category empty icon styling */
.category-empty .material-icons {
  color: #007BFF;
  font-size: 4em;
}
/* Remove underline from logo and nav links */
.nav-logo,
.nav-logo .logo-text,
.nav-logo .dot-info,
.nav-links .nav-link {
  text-decoration: none;
}

/* Keep hover/focus interactive without underline */
.nav-links .nav-link:hover,
.nav-links .nav-link:focus {
  text-decoration: none;
  color: var(--accent); /* accent blue on hover */
}

/* Apply section-title font to logo */
.nav-logo .logo-text {
  font-family: 'Poppins', sans-serif; /* same as section-title */
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  font-size: 1.2rem; /* adjust size for navbar */
}

.nav-logo .dot-info {
  color: var(--accent);
}
/* Hover outline in accent blue */
.svc-card:hover {
  border-color: var(--accent); /* your blue accent */
}
.advertisement {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.ad-carousel {
  position: relative;
  max-width: 1200px;
  width: 100%;
  overflow: hidden;
  display: flex;
}

.ad-slide {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.ad-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .advertisement { padding: 10px 0; }
  .ad-slide img { border-radius: 4px; }
}
/* Hero shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2; /* above slide background, below hero content */
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

/* Individual shapes */
.shape-1 {
  width: 80px; height: 80px;
  background: var(--accent);
  top: 20%; left: 10%;
  animation: float-1 6s ease-in-out infinite;
}
.shape-2 {
  width: 100px; height: 100px;
  background: var(--accent-2);
  top: 40%; left: 70%;
  animation: float-2 8s ease-in-out infinite;
}
.shape-3 {
  width: 60px; height: 60px;
  background: #75e6da;
  top: 65%; left: 30%;
  animation: float-3 7s ease-in-out infinite;
}
.shape-4 {
  width: 120px; height: 120px;
  background: #ffcc00;
  top: 15%; left: 80%;
  animation: float-4 10s ease-in-out infinite;
}

/* Floating animations */
@keyframes float-1 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}
@keyframes float-2 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(-15deg); }
}
@keyframes float-3 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(20deg); }
}
@keyframes float-4 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(-10deg); }
}
.overview-list {
  margin: 16px 0;
  padding-left: 20px;
  list-style: disc;
  color: var(--text);
  line-height: 1.6;
}
.overview-list li {
  margin-bottom: 16px;
}
.overview-list strong {
  color: var(--accent);
}
/* Parallax background for hero slides */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 80vh;
  perspective: 1px; /* enables parallax depth */
  transform-style: preserve-3d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateZ(-1px) scale(2); /* pushes background back */
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: var(--text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
/* Mobile text adjustments */
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.6rem; /* smaller heading */
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 8px 0;
  }
  .hero-actions .cta-button {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}
/* Global typography */
html, body { 
  line-height: 2; /* increased from 1.6 */
  letter-spacing: 0.5px; 
}

h1, h2, h3, h4, h5, h6, .section-title { 
  line-height: 1.4; /* slightly more breathing room for headings */
  letter-spacing: 1px; 
}


/* About Section specific boost */
#aboutSection p,
#aboutSection li {
  line-height: 2; /* extra spacing for readability */
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.svc-card {
  opacity: 0;
  transform: translateY(20px);
}

.svc-card.visible {
  animation: fadeInUp 0.5s ease forwards;
}
@media (max-width: 767px) {
  .overview-list li {
    margin-bottom: 16px; /* same spacing on mobile */
    line-height: 1.9;
  }
}

/* Ensure anchor targets account for sticky navbar */
#services,
#about {
  scroll-margin-top: 90px; /* adjust to your actual navbar height */
}
/* Services list layout */
.svc-list {
  display: grid;
  grid-template-columns: 1fr; /* default single column */
  gap: 6px; /* spacing between cards */
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
  .svc-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet: 3 columns */
@media (min-width: 601px) and (max-width: 1024px) {
  .svc-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Desktop: 4 columns */
@media (min-width: 1025px) {
  .svc-list {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .category-content {
    padding-bottom: 10px; /* ensures space below last card */
  }
}
/* Extra bottom gap for About section on mobile */
@media (max-width: 600px) {
  #about {
    margin-bottom: 10px; /* adjust value as needed */
  }
}
