/* =========================================================
   Capital Care Inc — Main Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700&display=swap');

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

:root {
  /* ── Capital Care Brand Palette (matched to capitalcareinc.com) ── */
  --navy:       #275094;   /* primary royal blue — main text/links on old site */
  --navy-dark:  #262262;   /* deep indigo — headings on old site */
  --navy-light: #3F64A8;   /* medium blue — link/accent on old site */
  --sky:        #24AAE1;   /* sky blue — main banner on old site */
  --sky-light:  #DBEDF1;   /* pale cyan — body background on old site */
  --teal:       #27ABE2;   /* footer color on old site */
  --gold:       #24AAE1;   /* replaced: use sky blue as primary CTA accent */
  --gold-dark:  #1A8EC2;   /* darker sky for hover states */
  --white:      #FFFFFF;
  --off-white:  #EDF6FA;   /* tinted with old site page bg tone */
  --gray-100:   #D8EBF0;   /* old site border color tinted */
  --gray-300:   #A1CCD5;   /* old site border color exact */
  --gray-500:   #5A7EA8;   /* muted blue-grey */
  --gray-700:   #275094;   /* matches primary royal blue */
  --text:       #262262;   /* old site heading color as base text */
  --radius:     10px;
  --shadow:     0 4px 24px rgba(39,80,148,0.12);
  --shadow-lg:  0 8px 40px rgba(39,80,148,0.18);
  --transition: 0.25s ease;
  --max-w:      1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--gray-500); max-width: 560px; margin-bottom: 2.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36,170,225,0.40);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}
.btn-navy:hover {
  background: #1A1A55;
  border-color: #1A1A55;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38,34,98,0.35);
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(38,34,98,0.97);  /* deep indigo #262262 */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
#navbar.scrolled {
  background: rgba(25,22,70,0.99);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.nav-logo img { height: 52px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-phone {
  color: var(--sky);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-phone i { font-size: 0.8rem; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: rgba(38,34,98,0.99);
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--sky); background: rgba(255,255,255,0.05); }
.mobile-nav .mobile-phone {
  padding: 0.75rem 1.5rem;
  color: var(--sky);
  font-weight: 700;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.30;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(38,34,98,0.93) 0%, rgba(39,80,148,0.78) 55%, rgba(36,170,225,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(36,170,225,0.15);
  border: 1px solid rgba(36,170,225,0.4);
  color: var(--sky);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.hero h1 span { color: var(--sky); }
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-item {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item i { color: var(--sky); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy-dark);  /* deep indigo — #262262 */
  padding: 1.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { }
.stat-num {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-top: 0.25rem;
}

/* ── Section base ── */
section { padding: 5rem 0; }
section.bg-light { background: var(--sky-light); }  /* pale cyan — old site body bg */
section.bg-navy { background: var(--navy-dark); }    /* deep indigo */

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky);
}
.service-card-img {
  height: 180px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.5rem; }
.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(27,58,107,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon i { color: var(--navy); font-size: 1.1rem; }
.service-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.service-card p { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1rem; }
.service-card .link-arrow {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.service-card:hover .link-arrow { gap: 8px; }

/* ── About Preview ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-checks { margin: 1.5rem 0 2rem; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.875rem;
}
.check-item i { color: var(--sky); margin-top: 3px; flex-shrink: 0; }
.check-item span { font-size: 0.9rem; color: var(--gray-700); }

/* ── Why Choose Us ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition);
}
.value-card:hover { background: rgba(255,255,255,0.12); }
.value-icon {
  width: 56px;
  height: 56px;
  background: var(--sky);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.value-icon i { color: var(--white); font-size: 1.3rem; }
.value-card h3 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 0.5rem; }
.value-card p { color: rgba(255,255,255,0.65); font-size: 0.85rem; line-height: 1.6; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--sky) 0%, var(--navy-light) 100%);
  padding: 4rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: #1A1A55;  /* deep indigo, darker than #262262 for footer depth */
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 48px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.social-btn:hover { background: var(--sky); color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--sky); }
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.footer-contact-item i {
  color: var(--sky);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--sky); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--sky) 100%);
  padding: 140px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--sky); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── Service Sub-pages ── */
.service-detail { padding: 5rem 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.service-detail-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-detail-img img { width: 100%; }
.service-detail-content h2 { margin-bottom: 1rem; }
.service-detail-content p { color: var(--gray-500); margin-bottom: 1rem; }
.service-list { margin: 1.5rem 0; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.service-list li i { color: var(--sky); margin-top: 3px; flex-shrink: 0; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(27,58,107,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon i { color: var(--navy); font-size: 1.1rem; }
.contact-info-text h4 { font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-info-text p, .contact-info-text a { font-size: 0.9rem; color: var(--gray-500); }
.contact-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Careers ── */
.vacancy-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  flex-wrap: wrap;
}
.vacancy-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.vacancy-card h3 { margin-bottom: 0.25rem; font-family: 'Inter', sans-serif; }
.vacancy-card .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.tag.open { background: rgba(27,58,107,0.1); color: var(--navy); }

/* ── Staff Portal ── */
.portal-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.portal-icon {
  width: 72px;
  height: 72px;
  background: rgba(27,58,107,0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.portal-icon i { font-size: 2rem; color: var(--navy); }

/* ── Forms / Downloads ── */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-download-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.form-download-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.form-download-card i { font-size: 1.5rem; color: var(--navy); flex-shrink: 0; }
.form-download-card span { font-size: 0.875rem; font-weight: 500; flex: 1; }
.form-download-card .dl-icon { color: var(--gold); }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  position: relative;
}
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.4;
}
.testimonial-card p { color: var(--gray-700); font-size: 0.9rem; margin: 1.5rem 0 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.author-info strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.author-info span { font-size: 0.8rem; color: var(--gray-500); }
.stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 0.5rem; }

/* ── Emergency Banner ── */
.emergency-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.emergency-bar a { color: var(--gold); font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid, .service-detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .forms-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .vacancy-card { flex-direction: column; align-items: flex-start; }
}
