/* ==========================================================================
   AM HOME CARE AND NURSING SERVICES - Clean Healthcare Styling
   Brand Colors:
   - Deep Royal Blue: #0c4e97 (derived from the logo)
   - Medical Green:   #109438 (derived from the logo)
   - Pure White:      #ffffff
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-blue-primary: #0c4e97;
  --color-blue-dark: #083b74;
  --color-blue-light: #0284c7;
  --color-blue-soft: #f0f7ff;
  --color-blue-tint: #e0effe;

  --color-green-primary: #109438;
  --color-green-dark: #0b782c;
  --color-green-light: #22c55e;
  --color-green-soft: #f0fdf4;
  --color-green-tint: #dcfce7;

  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ea952;

  /* Neutral Palette */
  --color-bg-white: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-card: #ffffff;

  --color-text-main: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(12, 78, 151, 0.08), 0 2px 6px -1px rgba(12, 78, 151, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(12, 78, 151, 0.1), 0 4px 8px -2px rgba(12, 78, 151, 0.05);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Spacing */
  --max-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-white);
  color: var(--color-text-body);
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--color-bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ---------------- Layout Utilities ---------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center {
  text-align: center;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-blue-primary);
  color: #ffffff;
  border-color: var(--color-blue-primary);
  box-shadow: 0 4px 14px rgba(12, 78, 151, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(12, 78, 151, 0.32);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  border-color: var(--color-whatsapp);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-text-body);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-blue-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-green-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background-color: var(--color-blue-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--color-border);
  padding: 24px 20px 32px;
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.08);
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-link:hover {
  color: var(--color-blue-primary);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero-section {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-subtle) 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--color-blue-soft);
  color: var(--color-blue-primary);
  border: 1px solid var(--color-blue-tint);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-green-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 148, 56, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.18rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hero-visual:hover .hero-image {
  transform: scale(1.015);
}

.image-overlay-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 14px;
}

.overlay-icon {
  width: 36px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.overlay-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-blue-primary);
}

.overlay-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   3. SERVICES
   ========================================================================== */
.services-section {
  padding: 72px 0 80px;
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.title-bar {
  width: 54px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue-primary), var(--color-green-primary));
  border-radius: var(--radius-full);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: left;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue-light);
  box-shadow: var(--shadow-lg);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08);
}

.icon-blue {
  background-color: var(--color-blue-soft);
  color: var(--color-blue-primary);
  border: 1px solid var(--color-blue-tint);
}

.icon-green {
  background-color: var(--color-green-soft);
  color: var(--color-green-primary);
  border: 1px solid var(--color-green-tint);
}

.service-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.service-card-text {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

/* ==========================================================================
   4. ABOUT
   ========================================================================== */
.about-section {
  padding: 36px 0 72px;
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.about-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.about-emblem-wrap {
  margin-bottom: 16px;
}

.about-emblem {
  width: 58px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.about-heading {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-blue-primary);
  margin-bottom: 12px;
}

.title-bar.center {
  margin: 0 auto 20px;
}

.about-description {
  font-size: 1.12rem;
  color: var(--color-text-body);
  line-height: 1.7;
}

/* ==========================================================================
   5. WEBSITE UNDER PROCESS SECTION
   ========================================================================== */
.under-process-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.process-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-blue-soft) 100%);
  border: 1.5px dashed #93c5fd;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.process-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background-color: #ffffff;
  color: var(--color-blue-primary);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.pulse-circle {
  width: 8px;
  height: 8px;
  background-color: var(--color-green-primary);
  border-radius: 50%;
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 148, 56, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(16, 148, 56, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 148, 56, 0);
  }
}

.process-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.process-message {
  font-size: 1.02rem;
  color: var(--color-text-body);
  margin-bottom: 24px;
}

/* Progress bar animation */
.progress-container {
  max-width: 380px;
  margin: 0 auto;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, var(--color-blue-primary), var(--color-green-primary), var(--color-blue-primary));
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  animation: shimmerProgress 2.5s infinite linear;
}

@keyframes shimmerProgress {
  0% {
    background-position: 200% 0;
    left: 0%;
    width: 35%;
  }
  50% {
    left: 45%;
    width: 55%;
  }
  100% {
    background-position: -200% 0;
    left: 100%;
    width: 25%;
  }
}

.progress-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-blue-primary);
}

.animated-ellipsis i {
  font-style: normal;
  display: inline-block;
  animation: dotBlink 1.4s infinite ease-in-out;
}

.animated-ellipsis i:nth-child(2) {
  animation-delay: 0.2s;
}

.animated-ellipsis i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBlink {
  0%, 80%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   6. CONTACT CTA
   ========================================================================== */
.contact-cta-section {
  padding: 72px 0 80px;
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border-light);
}

.cta-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.cta-heading {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-blue-primary);
  margin-bottom: 12px;
}

.cta-subtext {
  font-size: 1.1rem;
  color: var(--color-text-body);
  margin-bottom: 30px;
}

.cta-button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 44px 0 32px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-green-primary);
  font-weight: 600;
}

.footer-divider {
  width: 100%;
  max-width: 420px;
  height: 1px;
  background-color: var(--color-border);
  margin-bottom: 18px;
}

.footer-bottom {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Scroll Animation (Fade In & Slide Up)
   ========================================================================== */
[data-fade] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design Breakpoints
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-container {
    gap: 32px;
  }

  .hero-title {
    font-size: 2.35rem;
  }
}

/* Mobile & Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }

  .logo-img {
    height: 44px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .image-overlay-card {
    position: static;
    margin-top: 12px;
    border-radius: var(--radius-sm);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .about-heading {
    font-size: 1.55rem;
  }

  .cta-heading {
    font-size: 1.75rem;
  }

  .cta-card {
    padding: 36px 20px;
  }

  .cta-button-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-button-group .btn {
    width: 100%;
  }
}

/* Smallest mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .logo-img {
    height: 38px;
  }
}
