/* ============================================================
   Able Care — Custom CSS
   Extends Tailwind CDN with brand-specific utility classes.
   ============================================================ */

/* ── CSS VARIABLES ───────────────────────────────────────── */
:root {
  --navy:  #1E1E6E;
  --sky:   #3AADD9;
  --green: #4CAF50;
  --lime:  #8DC63F;
  --dark:  #1A1A2E;
  --muted: #5A6A7E;
  --light: #F4F8FF;
  --white: #FFFFFF;

  --shadow-card:  0 4px 24px rgba(30,30,110,0.08);
  --shadow-hover: 0 8px 40px rgba(30,30,110,0.16);
  --shadow-header:0 2px 20px rgba(30,30,110,0.12);
  --radius-card:  1rem;
  --radius-btn:   0.75rem;
}

/* ── BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.25;
  color: var(--dark);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30,30,110,0.20);
}
.btn-primary:hover {
  background: var(--sky);
  border-color: var(--sky);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sky);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 2px solid var(--sky);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
}

/* ── SECTION LABEL ───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--sky);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── SECTION TITLE ───────────────────────────────────────── */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* ── SECTION SUBTITLE ────────────────────────────────────── */
.section-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42rem;
}

/* ── CARD ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ── NAV LINK ─────────────────────────────────────────────── */
.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
}
.nav-link:hover {
  color: var(--sky);
  border-bottom-color: var(--sky);
}
.nav-link.active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

/* ── CDN IMAGE ───────────────────────────────────────────── */
.cdn-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* ── HERO SLIDER ─────────────────────────────────────────── */
#slides-wrapper {
  transition: transform 0.7s ease-in-out;
}
.slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer.open {
  max-height: 600px;
}
.faq-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}
.faq-icon.open {
  transform: rotate(45deg);
}

/* ── MOBILE MENU ─────────────────────────────────────────── */
#mobile-menu {
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform-origin: top center;
}
#mobile-menu.hidden {
  opacity: 0;
  transform: scaleY(0.95);
  pointer-events: none;
}
#mobile-menu.open {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}

/* ── HAMBURGER ANIMATION ─────────────────────────────────── */
#hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#hamburger.open span:nth-child(2) {
  opacity: 0;
}
#hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  border: none;
  box-shadow: var(--shadow-card);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--sky);
}

/* ── DECORATIVE UTILITIES ────────────────────────────────── */
.lime-divider {
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--lime);
  border-radius: 9999px;
  margin-top: 0.5rem;
}
.navy-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--navy);
}
.sky-accent-bar {
  display: block;
  width: 0.25rem;
  height: 6rem;
  background: var(--sky);
  border-radius: 9999px;
}

/* ── FOOTER HEADING ──────────────────────────────────────── */
.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
}
.footer-heading::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--lime);
  margin-top: 0.5rem;
  border-radius: 9999px;
}

/* ── SERVICES SCROLL SLIDER ──────────────────────────────── */
.scroll-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.scroll-track:active {
  cursor: grabbing;
}
.scroll-track::-webkit-scrollbar { display: none; }

/* ── SLIDER DOTS ─────────────────────────────────────────── */
.slider-dot {
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
  width: 0.75rem;
  height: 0.75rem;
  transition: width 0.3s ease, background 0.3s ease;
  cursor: pointer;
  border: none;
}
.slider-dot.active {
  background: var(--sky);
  width: 2rem;
}

/* ── CONTACT FORM FIELDS ─────────────────────────────────── */
.form-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,30,110,0.1);
}
.form-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

/* ── TICK ITEM ───────────────────────────────────────────── */
.tick-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.5;
}
.tick-circle {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.tick-circle svg {
  width: 0.75rem;
  height: 0.75rem;
  color: #fff;
}

/* ── FEATURE CARD HOVER ──────────────────────────────────── */
.feature-card {
  border-radius: var(--radius-card);
  padding: 1.75rem;
  background: #ffffff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.feature-card:hover {
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-card:hover .fc-title,
.feature-card:hover .fc-desc { color: #fff; }
.feature-card:hover .fc-icon-wrap { background: rgba(255,255,255,0.15); }
.feature-card:hover .fc-icon { color: #fff; }
.fc-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(30,30,110,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease;
}
.fc-icon { color: var(--navy); transition: color 0.3s ease; }
.fc-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.fc-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  transition: color 0.3s ease;
}

/* ── PAGE LOADED FADE ─────────────────────────────────────── */
body.page-loaded main { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── SKIP LINK ───────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sr-only:focus, .focus\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  top: 1rem;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}

/* ── RESPONSIVE TWEAKS ───────────────────────────────────── */
@media (max-width: 640px) {
  .slider-dot { display: none; }
  .slider-dot:nth-child(-n+3) { display: block; }
}

/* ── ELEMENTOR INTEGRATION ───────────────────────────────── */
.elementor-widget-container {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.e-con, .elementor-container {
  max-width: 100% !important;
}

/* ── HIDE PAGE TITLE ON ELEMENTOR PAGES ─────────────────── */
.elementor-page .entry-title,
.elementor-page .page-title,
.elementor-page h1.post-title,
body.page .entry-title {
  display: none !important;
}
