/* =========================================================
   Health Way Support — healthwaysupport.com
   Custom stylesheet (works on top of Bootstrap 5.3.3)
   ========================================================= */

:root {
  --brand: #0e7c86;
  --brand-600: #0b6670;
  --brand-700: #07525a;
  --brand-900: #06343a;
  --mint: #14b8a6;
  --mint-soft: #e6f7f5;
  --sand: #fdf6ee;
  --ink: #12323a;
  --body: #5a6f76;
  --line: #e3edee;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(6, 52, 58, .06);
  --shadow: 0 14px 40px rgba(6, 52, 58, .10);
  --shadow-lg: 0 26px 70px rgba(6, 52, 58, .16);
  --grad: linear-gradient(135deg, #0e7c86 0%, #14b8a6 100%);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

a { color: var(--brand); text-decoration: none; transition: .2s ease; }
a:hover { color: var(--brand-700); }
p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; }
ul.list-clean { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Utility ---------- */
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-soft { background: var(--brand-light, #f2fbfa); background: #f2fbfa; }
.bg-mint-soft { background: var(--mint-soft); }
.bg-sand { background: var(--sand); }
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-title { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-title.text-start { margin-left: 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--mint-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow.on-dark { background: rgba(255,255,255,.16); color: #c9f4ee; }
.lead-lg { font-size: 1.12rem; color: var(--body); }
.divider-wave { display: block; width: 100%; height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  transition: all .25s ease;
  border: 2px solid transparent;
}
.btn-brand { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(14,124,134,.28); }
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,124,134,.36); }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.btn-light-soft { background: #fff; color: var(--brand-700); }
.btn-light-soft:hover { background: var(--brand-900); color: #fff; }
.btn-link-more { color: var(--brand); font-weight: 700; padding: 0; }
.btn-link-more svg { transition: transform .2s ease; }
.btn-link-more:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-900); color: #cfe9ea; font-size: .875rem; padding: 9px 0; }
.topbar a { color: #d8f0f1; }
.topbar a:hover { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-item svg { flex: none; opacity: .85; }
.topbar .tb-social a {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.10); color: #fff;
}
.topbar .tb-social a:hover { background: var(--mint); }

/* ---------- Navbar ---------- */
.navbar-phn { background: #fff; padding: 0; box-shadow: 0 2px 16px rgba(6,52,58,.07); }
.navbar-phn .navbar-brand { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink); }
.brand-mark {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  background: var(--grad); display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 18px rgba(14,124,134,.32);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; }
.brand-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.navbar-phn .nav-link { color: var(--ink) !important; font-weight: 600; padding: 1.5rem 1.05rem !important; position: relative; }
.navbar-phn .nav-link:hover { color: var(--brand) !important; }
.navbar-phn .nav-link::after {
  content: ""; position: absolute; left: 1.05rem; right: 1.05rem; bottom: 1.05rem; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar-phn .nav-link:hover::after, .navbar-phn .nav-link.active::after { transform: scaleX(1); }
.navbar-phn .nav-link.active { color: var(--brand) !important; }
.navbar-toggler { border: 0; padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { background-image: none; position: relative; width: 26px; height: 20px; }
.navbar-toggler-icon::before, .navbar-toggler-icon::after, .navbar-toggler-icon span.bar {
  content: ""; position: absolute; left: 0; height: 2.5px; width: 26px; background: var(--ink); border-radius: 3px; transition: .25s;
}
.navbar-toggler-icon::before { top: 2px; }
.navbar-toggler-icon span.bar { top: 9px; display: block; }
.navbar-toggler-icon::after { top: 16px; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span.bar { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { transform: translateY(-7px) rotate(-45deg); }
.sticky-top { z-index: 1030; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand) 60%, #12a396 100%);
  color: #eaf7f7; padding: 76px 0 76px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { color: #d3ecec; font-size: 1.06rem; max-width: 640px; }
.breadcrumb-phn { font-size: .9rem; color: #a9d6d8; margin-bottom: 14px; }
.breadcrumb-phn a { color: #d9f2f2; }
.breadcrumb-phn a:hover { color: #fff; }
.breadcrumb-phn span.sep { margin: 0 8px; opacity: .6; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,52,58,.94) 0%, rgba(6,52,58,.80) 45%, rgba(6,52,58,.35) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero .hero-sub { color: #d7eded; font-size: 1.12rem; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badge {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px); color: #fff; border-radius: 999px; padding: 7px 15px; font-size: .86rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stats .n { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stats .l { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #b9dedd; }

/* ---------- Cards ---------- */
.card-phn {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: all .3s ease; height: 100%; overflow: hidden;
}
.card-phn:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe9e8; }

/* Service card */
.service-card { display: flex; flex-direction: column; }
.service-card .sc-img { position: relative; overflow: hidden; }
.service-card .sc-img img { width: 100%; height: 210px; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .sc-img img { transform: scale(1.07); }
.service-card .sc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.service-card h3 a { color: var(--ink); }
.service-card h3 a:hover { color: var(--brand); }
.service-card p { font-size: .95rem; margin-bottom: 20px; }
.service-card .sc-foot { margin-top: auto; }

/* Feature / why choose us */
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; height: 100%; transition: .3s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe9e8; }
.icon-badge {
  width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--brand); margin-bottom: 18px;
}
.icon-badge.solid { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(14,124,134,.28); }
.icon-badge.sm { width: 46px; height: 46px; border-radius: 12px; }

/* Value / process cards */
.process-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; height: 100%; }
.process-card .step {
  font-weight: 800; font-size: 1rem; color: var(--brand); background: var(--mint-soft);
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
}

/* ---------- About ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-float {
  position: absolute; left: -28px; bottom: -28px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 24px; display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.about-float .n { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1; }
.about-float .l { font-size: .8rem; line-height: 1.35; color: var(--body); }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; height: 100%; box-shadow: var(--shadow-sm); }
.testi-card .quote-mark { font-size: 3rem; line-height: 1; color: #d7f0ee; font-weight: 800; font-family: Georgia, serif; }
.testi-card p { font-size: .98rem; color: var(--ink); font-style: italic; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: .9rem; }
.t-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1rem;
}
.t-author .nm { font-weight: 700; color: var(--ink); line-height: 1.3; }
.t-author .rl { font-size: .82rem; color: var(--body); }
.testi-carousel .carousel-indicators { bottom: -58px; }
.testi-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand); opacity: .25; border: 0;
}
.testi-carousel .carousel-indicators .active { opacity: 1; width: 26px; border-radius: 999px; }
.testi-carousel .carousel-control-prev, .testi-carousel .carousel-control-next {
  width: 46px; height: 46px; top: -78px; bottom: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 50%; opacity: 1; box-shadow: var(--shadow-sm);
}
.testi-carousel .carousel-control-prev { right: 60px; left: auto; }
.testi-carousel .carousel-control-next { right: 0; }
.testi-carousel .carousel-control-prev-icon, .testi-carousel .carousel-control-next-icon { width: 16px; height: 16px; }

/* ---------- FAQ ---------- */
.accordion-phn .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 14px; overflow: hidden; }
.accordion-phn .accordion-button { font-weight: 700; color: var(--ink); padding: 18px 22px; box-shadow: none; background: #fff; }
.accordion-phn .accordion-button:not(.collapsed) { background: var(--mint-soft); color: var(--brand-700); }
.accordion-phn .accordion-button::after { background-size: 16px; }
.accordion-phn .accordion-body { padding: 0 22px 20px; font-size: .95rem; }
.help-box {
  background: var(--brand-900); color: #cfe9ea; border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.help-box h3 { color: #fff; }
.help-box::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); }

/* ---------- CTA ---------- */
.cta-band { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.cta-band::before { width: 340px; height: 340px; left: -140px; bottom: -180px; }
.cta-band::after { width: 240px; height: 240px; right: -80px; top: -120px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e2f6f4; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 10px 22px; color: #fff; font-weight: 700;
}
.cta-phone:hover { background: #fff; color: var(--brand-700); }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; height: 100%; text-align: center; box-shadow: var(--shadow-sm); transition: .3s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card .icon-badge { margin: 0 auto 18px; }
.contact-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.contact-card a { font-weight: 600; word-break: break-word; }
.map-embed {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #eef7f7;
  min-height: 320px; position: relative;
}
.map-pin {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(0deg, rgba(14,124,134,.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(14,124,134,.07) 0 1px, transparent 1px 34px),
    #f4fbfa;
}
.map-pin .pin {
  width: 62px; height: 62px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  background: var(--brand); display: grid; place-items: center; margin: 0 auto 14px;
  box-shadow: 0 12px 26px rgba(14,124,134,.35);
}
.map-pin .pin svg { transform: rotate(45deg); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1px solid #d9e8e9; border-radius: 10px; padding: .7rem .95rem; color: var(--ink); background: #fbfefe;
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(14,124,134,.14); background: #fff; }
.form-control::placeholder { color: #a5b7bb; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: #dc3545; background-image: none; }
.was-validated .form-control:valid, .form-control.is-valid { border-color: #19a88f; background-image: none; }
.invalid-feedback { font-size: .82rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(14,124,134,.18); }
.req::after { content: " *"; color: #e05555; font-weight: 700; }

.form-alert { display: none; border-radius: 12px; padding: 16px 18px; font-size: .94rem; margin-bottom: 20px; }
.form-alert.show { display: block; }
.form-alert.success { background: #e8f8f2; border: 1px solid #b7e6d5; color: #0f6b52; }
.form-alert.error { background: #fdecec; border: 1px solid #f6c6c6; color: #a12d2d; }
.form-alert.info { background: #eaf4fb; border: 1px solid #c4ddf1; color: #14507a; }
.spinner-inline { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Legal pages ---------- */
.legal-toc { position: sticky; top: 120px; }
.legal-toc .list-group-item { border: 0; padding: .55rem 0; font-size: .93rem; color: var(--body); }
.legal-toc .list-group-item:hover { color: var(--brand); }
.legal-body h2 { font-size: 1.35rem; margin-top: 44px; padding-top: 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.06rem; margin-top: 26px; }
.legal-body ul, .legal-body ol { padding-left: 1.25rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body p, .legal-body li { font-size: .97rem; }
.updated-chip { background: var(--mint-soft); color: var(--brand-700); border-radius: 999px; padding: 6px 16px; font-size: .84rem; font-weight: 600; display: inline-block; }

/* ---------- Footer ---------- */
.footer-phn { background: var(--brand-900); color: #b6d5d7; padding: 76px 0 0; }
.footer-phn h5 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; letter-spacing: .01em; }
.footer-phn p { font-size: .93rem; }
.footer-phn a { color: #b6d5d7; }
.footer-phn a:hover { color: #fff; }
.footer-phn .footer-links li { margin-bottom: 11px; font-size: .93rem; }
.footer-phn .footer-links a { display: inline-flex; gap: 8px; align-items: center; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .93rem; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--mint); }
.footer-news .form-control { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding-left: 18px; }
.footer-news .form-control::placeholder { color: #8fb6b8; }
.footer-news .form-control:focus { background: rgba(255,255,255,.14); border-color: var(--mint); box-shadow: none; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 56px; padding: 22px 0; font-size: .88rem; }
.social-links a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; margin-right: 8px; transition: .25s;
}
.social-links a:hover { background: var(--mint); transform: translateY(-3px); }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; z-index: 1040;
  box-shadow: 0 12px 26px rgba(14,124,134,.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s;
}
#backToTop.show { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { background: var(--brand-900); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 64px 0; }
  .navbar-phn .nav-link { padding: .7rem 1rem !important; }
  .navbar-phn .nav-link::after { display: none; }
  .about-float { left: 16px; bottom: -20px; }
  .hero { min-height: 560px; }
  .testi-carousel .carousel-control-prev, .testi-carousel .carousel-control-next { top: auto; bottom: -66px; }
  .testi-carousel .carousel-indicators { bottom: -58px; }
}
@media (max-width: 767.98px) {
  .topbar { text-align: center; }
  .topbar .tb-social { justify-content: center; }
  .hero-stats { gap: 24px; }
  .form-card { padding: 24px; }
  .footer-phn { padding-top: 56px; }
  .about-float { position: static; margin-top: 16px; max-width: 100%; }
}
