/* ===========================
   24/7 Local Care - Main CSS
   =========================== */

:root {
  --navy: #1a2a5e;
  --navy-dark: #0f1a3d;
  --navy-mid: #1e3370;
  --gold: #c89a2e;
  --gold-light: #e0b84a;
  --gold-btn: #c8922a;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --light-gray: #e8eaf0;
  --text-dark: #1a1a2e;
  --text-muted: #5a6377;
}

/* ---- Global ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
}

p { color: var(--text-muted); }

a { text-decoration: none; color: inherit; }

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

/* ---- Utility ---- */
.text-gold { color: var(--gold) !important; }
.bg-navy { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }
.section-pad { padding: 80px 0; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: 'Lora', serif;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 20px;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn-gold {
  background: var(--gold-btn);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); color: var(--white); transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 30px;
  border-radius: 6px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ---- Navbar ---- */
.navbar-brand-img { height: 48px; }

.main-navbar {
  background: var(--navy-dark);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.main-navbar .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-navbar .navbar-brand span { color: var(--gold); }

.main-navbar .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: color 0.3s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--gold) !important; }

.navbar-phone {
  background: var(--gold-btn);
  color: var(--white) !important;
  border-radius: 6px;
  padding: 8px 18px !important;
  font-weight: 600;
  font-size: 0.92rem !important;
  transition: background 0.3s;
}
.navbar-phone:hover { background: var(--gold-light) !important; color: var(--white) !important; }

/* ---- Hero Sections ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a4a8e 100%);
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content { position: relative; z-index: 2; padding: 60px 0 90px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 20px 0 32px; max-width: 500px; }
.hero-img { position: absolute; right: 0; bottom: 0; height: 100%; object-fit: cover; object-position: center top; opacity: 0.35; }

/* ---- Feature Cards ---- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(26,42,94,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(26,42,94,0.13); }

.feature-card .icon-wrap {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-card h4 { font-size: 1.15rem; margin-bottom: 12px; color: var(--navy); }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); }

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26,42,94,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--light-gray);
  height: 100%;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(26,42,94,0.14); }

.service-card .svc-icon {
  width: 60px; height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--gold);
}

.service-card h5 { font-size: 1rem; margin-bottom: 10px; color: var(--navy); }
.service-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---- Trust Section ---- */
.trust-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 60px 0;
}
.trust-section h2, .trust-section h3 { color: var(--white); }
.trust-section .check-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
  font-size: 1rem;
}
.trust-section .check-item i { color: var(--gold); font-size: 1.1rem; }

/* ---- Reviews ---- */
.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(26,42,94,0.09);
  border-left: 4px solid var(--gold);
  height: 100%;
}
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 10px; }
.review-card p { font-style: italic; font-size: 0.95rem; margin-bottom: 16px; }
.review-author { font-weight: 700; color: var(--navy); font-size: 0.92rem; }

/* ---- CTA Bar ---- */
.cta-bar {
  background: linear-gradient(90deg, var(--gold-btn) 0%, var(--gold-light) 100%);
  padding: 50px 0;
  text-align: center;
}
.cta-bar h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 8px; }
.cta-bar p { color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.cta-bar .btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 6px;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
}
.cta-bar .btn-navy:hover { background: var(--navy-dark); color: var(--white); }

/* ---- Footer ---- */
.main-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.main-footer h5 { color: var(--gold); font-size: 1.05rem; margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.main-footer a { color: rgba(255,255,255,0.75); transition: color 0.3s; font-size: 0.92rem; }
.main-footer a:hover { color: var(--gold); }
.main-footer .footer-li { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.main-footer .footer-li i { color: var(--gold); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.cqc-badge { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 10px; }
.cqc-badge .good { background: #2ecc71; color: white; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 0.85rem; }

/* ---- How It Works Page ---- */
.hiw-step {
  position: relative;
  padding: 0 20px;
}
.hiw-step .step-num {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(200,146,42,0.4);
}
.hiw-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 6px 28px rgba(26,42,94,0.1);
  border: 1px solid var(--light-gray);
  height: 100%;
}
.hiw-card h4 { color: var(--navy); margin-bottom: 14px; }
.hiw-card p { font-size: 0.93rem; }

.hiw-why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(200,154,46,0.3);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
}
.hiw-why-card h4 { color: var(--white); margin-bottom: 12px; }
.hiw-why-card p { color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.hiw-why-card .icon-circ {
  width: 65px; height: 65px;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
  color: var(--white);
}

/* ---- Contact Page ---- */
.contact-card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26,42,94,0.09);
  border-top: 4px solid var(--gold);
  height: 100%;
  transition: transform 0.3s;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card .cc-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--white);
}
.contact-card h5 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: 0.97rem; }

.form-group { margin-bottom: 20px; }
.form-label { font-weight: 600; color: var(--navy); font-size: 0.92rem; margin-bottom: 6px; display: block; }
.form-required { color: var(--gold-btn); font-size: 0.8rem; margin-left: 4px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color 0.3s;
  outline: none;
}
.form-control:focus { border-color: var(--gold); background: var(--white); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ---- Careers Page ---- */
.benefit-item {
  display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start;
}
.benefit-item .bi-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: linear-gradient(135deg, var(--gold-btn), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
}
.benefit-item h5 { color: var(--navy); margin-bottom: 4px; font-size: 1rem; }
.benefit-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---- About Page ---- */
.value-item {
  display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start;
}
.value-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
}

/* ---- Checklist ---- */
.gold-check-list { list-style: none; padding: 0; }
.gold-check-list li {
  padding: 8px 0;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--light-gray);
}
.gold-check-list li:last-child { border-bottom: none; }
.gold-check-list li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* ---- Wave divider ---- */
.wave-divider svg { display: block; }

/* ---- Alert/success ---- */
.alert-success-custom {
  background: #e8f8f0;
  border: 1px solid #a3d9b9;
  border-radius: 8px;
  padding: 16px 20px;
  color: #1a6640;
  font-size: 0.95rem;
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-content { padding: 50px 0 70px; }
  .section-pad { padding: 55px 0; }
  .main-navbar .navbar-collapse { background: var(--navy); padding: 16px; border-radius: 0 0 12px 12px; }
}
