/* =====================================================
   Concordia Homecare — STYLESHEET
   ===================================================== */

/* ---------------------- RESET & BASE ---------------------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary:     #0d9488;
  --primary-dark:#0f766e;
  --secondary:   #14b8a6;
  --blue:        #3b82f6;
  --blue-dark:   #1d4ed8;
  --indigo:      #6366f1;
  --navy:        #111827;
  --slate:       #1f2937;
  --slate-mid:   #4b5563;
  --muted:       #6b7280;
  --light:       #f8fafc;
  --white:       #ffffff;
  --warm-cream:  #f0fdfa;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 999px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 50px rgba(0,0,0,0.14);
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------------------- TOPBAR ---------------------- */
.topbar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--slate) 100%);
  color: #cbd5e1;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 8px 20px;
}

.topbar a {
  color: var(--secondary);
  font-weight: 600;
  transition: color var(--transition);
}
.topbar a:hover { color: #5eead4; }

/* ---------------------- HEADER ---------------------- */
.header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), padding var(--transition);
}

.header.scrolled,
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  gap: 24px;
}

/* ---------------------- LOGO ---------------------- */
.logo {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* ---------------------- NAVIGATION ---------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Shared nav link style (both <a> and <button>) */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-mid);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.nav-active,
.nav-item.open > .nav-link {
  color: var(--primary);
  background: rgba(13,148,136,0.08);
}

.nav-chevron {
  font-size: 0.7rem;
  transition: transform var(--transition);
  display: inline-block;
}

.nav-item.open .nav-chevron {
  transform: rotate(180deg);
}

/* ── DROPDOWN CONTAINER ── */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 20px 50px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Small arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid rgba(0,0,0,0.07);
  border-top: 1px solid rgba(0,0,0,0.07);
  rotate: 45deg;
}

.nav-dropdown-inner {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── DROPDOWN LINKS ── */
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate-mid);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-link:hover {
  background: var(--light);
  color: var(--navy);
}

.nav-dd-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--transition);
}

.nav-dropdown-link:hover .nav-dd-icon {
  background: rgba(59,130,246,0.1);
}

.nav-dropdown-link strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.nav-dropdown-link small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.3;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------------------- BUTTONS ---------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(59,130,246,0.45);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  color: var(--slate);
  transition: background var(--transition);
}
.mobile-toggle:hover { background: var(--light); }

/* ---------------------- MOBILE NAV ---------------------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 16px;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.mobile-nav a {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-mid);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav a:hover { background: var(--light); color: var(--blue); }
.mobile-nav .btn-primary { margin-top: 8px; justify-content: center; }
.mobile-nav.active { display: flex; }

.mobile-nav-sub {
  display: none;
  flex-direction: column;
  padding-left: 12px;
  padding-top: 4px;
}

.mobile-nav-group.open .mobile-nav-sub {
  display: flex;
}

.mobile-nav-group.open .mobile-nav-heading span {
  transform: rotate(180deg);
}

.mobile-nav-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-mid);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mobile-nav-heading span {
  transition: transform var(--transition);
  display: inline-block;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .mobile-toggle { display: block; }
}

/* =====================================================
   INDEX PAGE
   ===================================================== */

/* ---------------------- HERO ---------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 28px 90px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%),
    url('../image/hero.jpeg');
  background-size: cover;
  background-position: center;
}

/* Decorative blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -150px; left: -100px;
}
.hero::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent);
  bottom: -100px; right: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59,130,246,0.2);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title em {
  font-style: normal;
  color: white;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.75;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--slate) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Hero cards */
.hero-image-block {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card {
  background: white;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  min-width: 190px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hcard-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: var(--radius-sm);
}

.hero-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.hero-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------------------- TRUST BAR ---------------------- */
.trust-bar {
  background: white;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 32px;
  flex-wrap: wrap;
}

.trust-bar span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-bar span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------------------- CONTACT CTA ---------------------- */
.contact-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 28px;
  text-align: center;
  margin: 60px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(13,148,136,0.3);
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.contact-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.contact-cta p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin: 0 auto 32px;
  max-width: 520px;
}

.contact-cta .btn-primary {
  background: white;
  color: var(--primary-dark) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.contact-cta .btn-primary:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  text-align: left;
}

.contact-cta-inner h2 { margin-bottom: 10px; }
.contact-cta-inner p  { margin-bottom: 0; }

/* =====================================================
   LOCATIONS PAGE
   ===================================================== */

/* ---------------------- PAGE HERO ---------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: white;
  padding: 80px 28px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(99,102,241,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.7;
  margin: 0;
}

/* ---------------------- SECTION ---------------------- */
.section {
  padding: 72px 28px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------------------- LOCATIONS GRID ---------------------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.location-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Active card */
.location-card--active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-md);
}

.location-card--active::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
}

.location-card--active:hover {
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}

/* Soon card */
.location-card--soon {
  background: #fafafa;
  border-color: #e2e8f0;
  opacity: 0.85;
}

.location-card--soon:hover {
  opacity: 1;
  border-color: #cbd5e1;
}

.loc-map-icon {
  font-size: 2.4rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: var(--radius-sm);
}

.loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(59,130,246,0.1);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.loc-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.loc-badge--soon {
  background: rgba(100,116,139,0.1);
  color: var(--muted);
}

.loc-badge--soon::before {
  background: var(--muted);
  animation: none;
}

.location-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}

.location-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.loc-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.loc-details span {
  font-size: 0.85rem;
  color: var(--slate-mid);
  font-weight: 500;
}

.loc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 4px;
  transition: gap var(--transition);
}

.location-card--active:hover .loc-cta { gap: 10px; }

.loc-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  color: var(--slate-mid);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
  width: fit-content;
}

.loc-notify-btn:hover {
  background: white;
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 64px 28px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin: 0 0 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #64748b;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: #93c5fd;
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #475569;
  max-width: 700px;
  line-height: 1.6;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #475569;
  margin: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .contact-cta { margin: 40px 16px; }
  .contact-cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 20px 60px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section { padding: 48px 20px; }
  .contact-cta { padding: 56px 20px; margin: 32px 12px; border-radius: var(--radius-md); }

  .locations-grid { grid-template-columns: 1fr; }
}
