/* Service Center Nagercoil - Lightweight High-Performance CSS */

/* --- Google Fonts (Single Family: Inter, 2 Weights: 400, 700) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-dark: #0F172A;
  --color-brand: #4F46E5;
  --color-brand-hover: #4338CA;
  --color-success: #059669;
  --color-success-hover: #047857;
  --color-text: #334155;
  --color-muted: #64748B;
  --color-bg-light: #F8FAFC;
  --color-bg-white: #FFFFFF;
  --color-border: #E2E8F0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --transition-fast: all 0.2s ease-in-out;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--color-brand-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Navbar & Responsive Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
  background-color: #ffffff;
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand svg {
  color: var(--color-brand);
}

/* Ensure no bullet points or default list styling are ever displayed in navigation */
.navbar-nav, 
.dropdown-menu {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.navbar-nav li, 
.dropdown-menu li {
  list-style: none !important;
  list-style-type: none !important;
}

.nav-link {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: var(--color-brand) !important;
  background-color: var(--color-bg-light);
}

.btn-nav-book {
  background-color: var(--color-brand);
  color: #ffffff !important;
  font-weight: 700;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
}
.btn-nav-book:hover {
  background-color: var(--color-brand-hover);
}

/* Dropdown Menu Premium Styling */
.navbar .dropdown-menu {
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 8px 0;
  animation: navFadeIn 0.15s ease-out;
}

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 8px 16px;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-brand);
}

/* Mobile specific menu overrides to guarantee clean layout and hide by default */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding: 15px;
    border-top: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 10px 15px !important;
    display: block;
  }
  
  .btn-nav-book {
    text-align: center;
    margin-top: 5px;
  }
}


/* --- Page Sections & Spacing --- */
.section-padding {
  padding: 48px 0;
}
.section-subtitle {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 6px;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
  padding: 48px 0;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--color-brand);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.hero-title span {
  color: var(--color-brand);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.trust-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand);
}
.trust-text {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* --- Dual Action Buttons --- */
.cta-dual-wrapper {
  max-width: 600px;
  width: 100%;
}
.btn-dual-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  padding: 10px 18px;
  transition: var(--transition-fast);
}
.btn-dual-call {
  background-color: var(--color-brand);
  color: #ffffff !important;
}
.btn-dual-call:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-1px);
}
.btn-dual-form {
  background-color: var(--color-success);
  color: #ffffff !important;
}
.btn-dual-form:hover {
  background-color: var(--color-success-hover);
  transform: translateY(-1px);
}

/* --- Cards & Grid --- */
.service-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}
.service-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
}
.service-icon-box {
  width: 44px;
  height: 44px;
  background-color: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  margin-bottom: 14px;
}
.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}
.service-price {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.brand-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 60px;
  transition: var(--transition-fast);
}
.brand-grid-item:hover {
  background-color: #ffffff;
  border-color: var(--color-brand);
}
.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.area-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}
.area-link:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* --- Floating CTAs --- */
.floating-whatsapp, .floating-call {
  position: fixed;
  top: 60%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  z-index: 99999; /* Higher z-index to stay above all content */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.floating-whatsapp {
  left: 16px;
  background-color: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35), 0 2px 5px rgba(0, 0, 0, 0.07);
}

.floating-call {
  right: 16px;
  background-color: var(--color-brand);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35), 0 2px 5px rgba(0, 0, 0, 0.07);
}

/* Pseudo-elements for ripple animation */
.floating-whatsapp::before, .floating-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.floating-whatsapp::before {
  animation: ripple-whatsapp 2s cubic-bezier(0.25, 0, 0, 1) infinite;
}

.floating-call::before {
  animation: ripple-call 2s cubic-bezier(0.25, 0, 0, 1) infinite;
}

/* Continuous floating animation when not hovered */
.floating-whatsapp:not(:hover) {
  animation: float-whatsapp 3.5s ease-in-out infinite;
}

.floating-call:not(:hover) {
  animation: float-call 3.5s ease-in-out infinite 0.5s;
}

/* Hover scale and stronger shadow/glow */
.floating-whatsapp:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-call:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* SVG icon continuous custom cycles */
.floating-whatsapp svg {
  display: block;
  transform-origin: center;
  animation: whatsapp-bounce-cycle 6s ease-in-out infinite;
}

.floating-call svg {
  display: block;
  transform-origin: center;
  animation: phone-shake-cycle 6s ease-in-out infinite 1s;
}

/* Float Keyframes */
@keyframes float-whatsapp {
  0%, 100% {
    transform: translateY(-50%) translateY(0);
  }
  50% {
    transform: translateY(-50%) translateY(-6px);
  }
}

@keyframes float-call {
  0%, 100% {
    transform: translateY(-50%) translateY(0);
  }
  50% {
    transform: translateY(-50%) translateY(-6px);
  }
}

/* Soft ripple/pulse keyframes every 2s */
@keyframes ripple-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
}

@keyframes ripple-call {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.6);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(79, 70, 229, 0);
  }
}

/* Gentle WhatsApp Bounce: scale and slight vertical offset */
@keyframes whatsapp-bounce-cycle {
  0%, 75%, 100% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.15) translateY(-3px);
  }
  84% {
    transform: scale(0.92) translateY(0);
  }
  88% {
    transform: scale(1.08) translateY(-1px);
  }
  92% {
    transform: scale(0.97) translateY(0);
  }
  96% {
    transform: scale(1);
  }
}

/* Gentle Phone Shake: rotate back and forth and scale */
@keyframes phone-shake-cycle {
  0%, 75%, 100% {
    transform: rotate(0deg) scale(1);
  }
  78% {
    transform: rotate(-12deg) scale(1.1);
  }
  81% {
    transform: rotate(12deg) scale(1.1);
  }
  84% {
    transform: rotate(-12deg) scale(1.1);
  }
  87% {
    transform: rotate(12deg) scale(1.1);
  }
  90% {
    transform: rotate(-8deg) scale(1.05);
  }
  93% {
    transform: rotate(8deg) scale(1.05);
  }
  96% {
    transform: rotate(0deg) scale(1);
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  font-size: 0.88rem;
}
.footer h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-logo {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 32px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 575.98px) {
  .section-padding {
    padding: 36px 0;
  }
  .floating-whatsapp {
    left: 10px;
    width: 46px;
    height: 46px;
  }
  .floating-call {
    right: 10px;
    width: 46px;
    height: 46px;
  }
}
