/* ============================================================
   HealthPath Careway - Main Stylesheet
   ============================================================ */

:root {
  --primary: #0e7c86;
  --primary-dark: #0a5c64;
  --accent: #22b8a0;
  --dark: #12333a;
  --light: #f2f9f9;
  --gray: #5f7379;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #2c3e43;
  line-height: 1.7;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--dark); }

a { text-decoration: none; }

.btn-theme {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 50rem;
  padding: .6rem 1.6rem;
  font-weight: 600;
  transition: all .3s ease;
}
.btn-theme:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn-outline-theme {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50rem;
  padding: .6rem 1.6rem;
  font-weight: 600;
  transition: all .3s ease;
}
.btn-outline-theme:hover { background: var(--primary); color: #fff; }

.text-theme { color: var(--primary) !important; }
.bg-light-theme { background: var(--light); }

.section-padding { padding: 80px 0; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title .subtitle {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .85rem;
  margin-bottom: 8px;
}
.section-title h2 { font-size: 2.2rem; }
.section-title p { color: var(--gray); max-width: 640px; margin: 10px auto 0; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--primary-dark); color: #dff3f2; font-size: .85rem; padding: 6px 0; }
.top-bar a { color: #dff3f2; }
.top-bar a:hover { color: #fff; }
.top-bar i { color: var(--accent); margin-right: 5px; }

/* ---------- Navbar ---------- */
.main-nav { background: #ffffff; box-shadow: 0 2px 14px rgba(0,0,0,.08); padding: 12px 0; }
.main-nav .navbar-brand { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.main-nav .navbar-brand i { color: var(--primary); margin-right: 6px; }
.main-nav .navbar-brand span { color: var(--primary); }
.main-nav .nav-link { color: var(--dark); font-weight: 600; margin: 0 8px; transition: color .3s; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary); }

.navbar-brand img{
  width: 250px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(10,54,62,.78), rgba(10,54,62,.55)), url('../img/hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 140px 0;
}
.hero h1 { color: #fff; font-size: 3rem; font-weight: 800; }
.hero p { font-size: 1.15rem; color: #e3f2f1; max-width: 620px; }
.hero .badge-pill { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 50rem; padding: 6px 18px; font-weight: 600; letter-spacing: 1px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(rgba(10,54,62,.82), rgba(14,124,134,.72)), url('../img/hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: 2.6rem; font-weight: 800; }
.page-header .breadcrumb { justify-content: center; margin: 10px 0 0; background: transparent; }
.page-header .breadcrumb a { color: var(--accent); font-weight: 600; }
.page-header .breadcrumb-item.active { color: #d8ecec; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: #d8ecec; }

/* ---------- Feature / Why choose us ---------- */
.feature-box {
  background: #fff;
  border-radius: 14px;
  padding: 34px 24px;
  text-align: center;
  height: 100%;
  box-shadow: 0 6px 24px rgba(18,51,58,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-box:hover { transform: translateY(-8px); box-shadow: 0 14px 34px rgba(18,51,58,.14); }
.feature-box .icon {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.feature-box h5 { margin-bottom: 10px; }
.feature-box p { color: var(--gray); font-size: .95rem; margin: 0; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 24px rgba(18,51,58,.08);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 38px rgba(18,51,58,.16); }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card .card-body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card h5 { margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: .95rem; flex-grow: 1; }
.service-card .btn-theme { align-self: flex-start; font-size: .9rem; padding: .5rem 1.4rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
  box-shadow: 0 6px 24px rgba(18,51,58,.08);
  position: relative;
}
.testimonial-card .quote-icon { font-size: 2rem; color: var(--accent); margin-bottom: 14px; }
.testimonial-card p.quote { color: var(--gray); font-style: italic; }
.testimonial-card .stars { color: #ffb400; margin-bottom: 12px; }
.testimonial-card .client { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testimonial-card .client .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.testimonial-card .client h6 { margin: 0; }
.testimonial-card .client small { color: var(--gray); }

/* ---------- Blog cards ---------- */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 24px rgba(18,51,58,.08);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 16px 38px rgba(18,51,58,.16); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .card-body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card h5 a { color: var(--dark); transition: color .3s; }
.blog-card h5 a:hover { color: var(--primary); }
.blog-card p { color: var(--gray); font-size: .95rem; flex-grow: 1; }
.blog-card .read-more { color: var(--primary); font-weight: 700; font-size: .92rem; }
.blog-card .read-more:hover { color: var(--primary-dark); }

/* ---------- Blog single ---------- */
.blog-single img.featured { width: 100%; border-radius: 14px; margin-bottom: 28px; max-height: 420px; object-fit: cover; }
.blog-single h2 { margin-bottom: 18px; }
.blog-single h4 { margin-top: 28px; margin-bottom: 12px; }
.blog-single p { color: #45585e; }
.sidebar-widget {
  background: var(--light);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 28px;
}
.sidebar-widget h5 { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.recent-post { display: flex; gap: 14px; margin-bottom: 16px; align-items: center; }
.recent-post img { width: 74px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recent-post a { color: var(--dark); font-weight: 600; font-size: .92rem; line-height: 1.4; }
.recent-post a:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.accordion-item { border: 1px solid #e3eded; border-radius: 12px !important; margin-bottom: 14px; overflow: hidden; }
.accordion-button { font-weight: 700; color: var(--dark); background: #fff; }
.accordion-button:not(.collapsed) { background: var(--light); color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--accent); }
.accordion-body { color: var(--gray); }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 70px 0;
}
.cta-section h2 { color: #fff; font-size: 2.1rem; }
.cta-section p { color: #d9efee; margin-bottom: 0; }
.btn-light-theme {
  background: #fff; color: var(--primary); border-radius: 50rem;
  padding: .7rem 1.9rem; font-weight: 700; border: 2px solid #fff; transition: all .3s;
}
.btn-light-theme:hover { background: transparent; color: #fff; }

/* ---------- About ---------- */
.about-img { border-radius: 16px; width: 100%; box-shadow: 0 16px 40px rgba(18,51,58,.18); }
.about-check li { margin-bottom: 10px; color: #45585e; }
.about-check li i { color: var(--accent); margin-right: 10px; }
.stat-box { text-align: center; padding: 30px 10px; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(18,51,58,.07); height: 100%; }
.stat-box h3 { color: var(--primary); font-size: 2.4rem; font-weight: 800; margin-bottom: 4px; }
.stat-box span { color: var(--gray); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-info-box {
  background: var(--light);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  height: 100%;
}
.contact-info-box .icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.contact-info-box p { margin: 0; color: var(--gray); font-size: .95rem; }
.contact-form-wrap { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 34px rgba(18,51,58,.1); }
.form-control, .form-select { padding: .7rem 1rem; border-radius: 10px; border: 1px solid #dbe7e7; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(34,184,160,.15); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: 16px; }

/* ---------- Newsletter pages ---------- */
.newsletter-card {
  background: #fff; border-radius: 18px; padding: 48px;
  box-shadow: 0 12px 40px rgba(18,51,58,.12);
  max-width: 620px; margin: 0 auto; text-align: center;
}
.newsletter-card .big-icon {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}

/* ---------- Legal pages ---------- */
.legal-content h4 { margin-top: 34px; margin-bottom: 12px; }
.legal-content p, .legal-content li { color: #45585e; }
.legal-updated { background: var(--light); border-left: 4px solid var(--accent); padding: 14px 20px; border-radius: 8px; color: var(--gray); }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #b8ccd1; }
footer .footer-top { padding: 64px 0 40px; }
footer h5 { color: #fff; margin-bottom: 20px; font-size: 1.05rem; }
footer .brand { font-size: 1.4rem; font-weight: 800; color: #fff; }
footer .brand i { color: var(--accent); margin-right: 6px; }
footer .brand span { color: var(--accent); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 10px; }
footer a { color: #b8ccd1; transition: color .3s; }
footer a:hover { color: var(--accent); }
footer .contact-line { display: flex; gap: 10px; margin-bottom: 12px; }
footer .contact-line i { color: var(--accent); margin-top: 5px; }
footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .9rem; }
.footer-newsletter .form-control { border-radius: 50rem; border: none; padding-left: 18px; }
.footer-newsletter button { border-radius: 50rem; }
.social-links a {
  display: inline-flex; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  align-items: center; justify-content: center; margin-right: 8px; transition: background .3s;
}
.social-links a:hover { background: var(--primary); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { padding: 90px 0; }
  .hero h1 { font-size: 2.2rem; }
  .section-padding { padding: 60px 0; }
}
