/* ApplifyPH Clinic — public site */
:root {
  --navy: #0c3b5e;
  --navy-2: #0f4566;
  --navy-deep: #08263d;
  --teal: #0e8a86;
  --teal-2: #13a29d;
  --gold: #5fd3c6;
  --gold-2: #2fb3a5;
  --cream: #f2f8fa;
  --ink: #12263a;
  --muted: #5d6b7a;
  --line: #e5e9ef;
  --radius: 16px;
  --on-gold: #0c2233;
  --on-navy: #ffffff;
  --shadow: 0 10px 30px color-mix(in srgb, var(--navy) 10%, transparent);
  --shadow-lg: 0 20px 50px color-mix(in srgb, var(--navy) 18%, transparent);
}

body { font-family: 'Outfit', system-ui, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--navy); }
a { color: var(--teal); }
a:hover { color: var(--navy); }
.script { font-family: 'Yellowtail', cursive; font-weight: 400; color: var(--gold); letter-spacing: .5px; }
.text-gold { color: var(--gold-2) !important; }
.text-muted-2 { color: var(--muted); }

/* Buttons */
.btn { border-radius: 12px; font-weight: 500; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-2); border-color: var(--gold-2); color: var(--on-gold); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); font-weight: 600; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.link-gold { color: var(--gold-2); font-weight: 600; text-decoration: none; }

/* Header */
.site-header { background: var(--navy); box-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.site-header .navbar { padding: .55rem 0; }
.brand-logo { height: 62px; width: auto; }
.site-header .nav-link { color: color-mix(in srgb, var(--on-navy) 92%, transparent) !important; font-weight: 500; padding: .5rem .85rem !important; border-radius: 10px; margin: 0 .1rem; }
.site-header .nav-link:hover { color: var(--gold) !important; }
.site-header .nav-link.active { background: var(--gold); color: var(--on-gold) !important; }
.site-header .dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; }
.site-header .dropdown-item { border-radius: 8px; padding: .45rem .9rem; }
.site-header .dropdown-item:hover { background: var(--cream); color: var(--navy); }
.btn-call { padding: .6rem 1.3rem; border-radius: 14px; white-space: nowrap; }
@media (min-width: 992px) { .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }
@media (max-width: 991.98px) {
  .brand-logo { height: 50px; }
  .site-header .navbar-collapse { padding: 1rem 0; }
  .btn-call { margin-top: .75rem; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 92%, transparent) 30%, color-mix(in srgb, var(--navy) 35%, transparent) 62%, color-mix(in srgb, var(--navy) 15%, transparent) 100%), var(--hero-img) right center / cover no-repeat, var(--navy);
}
.hero-inner { position: relative; padding-top: 5.5rem; padding-bottom: 3rem; min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; font-weight: 700; text-shadow: 0 3px 18px rgba(0, 0, 0, .25); }
.hero h1 .script { font-size: 1.32em; line-height: 1.1; margin-top: .1em; position: relative; width: fit-content; padding-bottom: .15em; }
.hero h1 .script::after { content: ""; position: absolute; left: 10%; right: 0; bottom: 0; height: 6px; border-radius: 50%; background: var(--gold); transform: rotate(-2deg); }
.hero .lead { font-size: 1.3rem; max-width: 520px; margin-top: 1.2rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.hero-copy { max-width: 680px; }

.hero-search { margin-top: 2.5rem; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: .5rem; padding: .6rem .7rem .6rem 1.2rem; max-width: 980px; }
.hero-search .hs-btn { grid-column: auto; width: max-content; }
.hs-field input.form-select-plain { cursor: text; }
.hs-field { display: flex; align-items: center; gap: .9rem; padding: .3rem .8rem .3rem 0; border-right: 1px solid var(--line); }
.hs-field i { color: var(--navy); font-size: 1.35rem; }
.hs-field label { display: flex; flex-direction: column; font-size: .85rem; color: var(--ink); width: 100%; margin: 0; font-weight: 500; }
.form-select-plain { border: 0; background: transparent; color: var(--muted); font-size: 1rem; padding: 0; outline: none; cursor: pointer; width: 100%; }
.hs-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 0 .5rem; }
.hs-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.hs-toggle label { padding: .55rem 1.6rem; border-radius: 999px; cursor: pointer; color: var(--navy); font-weight: 500; white-space: nowrap; transition: .2s; }
.hs-toggle input:checked + label { background: var(--teal); color: #fff; }
.hs-toggle input:focus-visible + label { outline: 2px solid var(--gold); }
.hs-btn { padding: .8rem 2.2rem; font-size: 1.05rem; border-radius: 14px; }
@media (max-width: 991.98px) {
  .hero { background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 85%, transparent), color-mix(in srgb, var(--navy) 70%, transparent)), var(--hero-img) center / cover no-repeat, var(--navy); }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 2.5rem; min-height: 0; }
  .hero-search { grid-auto-flow: row; grid-template-columns: 1fr 1fr; padding: 1rem; }
  .hero-search .hs-btn { width: 100%; grid-column: 1 / -1; }
  .hs-field { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
  .hs-toggle { margin: 0; justify-content: center; }
  .hs-toggle label { flex: 1; text-align: center; }
}
@media (max-width: 575.98px) { .hero-search { grid-template-columns: 1fr; } }

/* Features bar */
.features-bar { background: var(--cream); position: relative; padding: 1.8rem 0 2.6rem; }
.features-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(100deg, var(--gold) 0 30%, transparent 30.2%), linear-gradient(100deg, transparent 0 25%, var(--teal) 25.2%); clip-path: ellipse(75% 100% at 50% 100%); opacity: .95; }
.feature-item { display: flex; align-items: center; gap: 1rem; justify-content: center; padding: .8rem 1rem; }
.feature-item + .feature-item { border-left: 1px solid #d9d4cc; }
.feature-icon { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1.5rem; }
.feature-text { font-size: 1.08rem; font-weight: 500; color: var(--navy); line-height: 1.25; }
@media (max-width: 991.98px) { .feature-item:nth-child(3) { border-left: 0; } .feature-item { justify-content: flex-start; } }
@media (max-width: 575.98px) { .feature-item { border-left: 0 !important; } .feature-text { font-size: .95rem; } .feature-icon { width: 44px; height: 44px; font-size: 1.2rem; } }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); }
.section-head { max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head.light h2 { color: #fff; }
.section-head.light .eyebrow { color: var(--gold); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--teal); margin-bottom: .6rem; }
.title-swoosh { display: block; width: 120px; height: 5px; margin: .9rem auto 0; border-radius: 50%; background: var(--gold); }
.title-swoosh.start { margin-left: 0; }
.display-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

/* Services */
.service-card { background: #fff; border-radius: var(--radius); padding: 2.2rem 1.9rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); transition: transform .25s; }
.service-card:hover { transform: translateY(-4px); }
.service-icon { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--teal)); color: var(--gold); display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 1.2rem; }
.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--muted); margin: 0 0 .8rem; }

/* About */
.about-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: linear-gradient(90deg, var(--gold), var(--teal)); }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Stats */
.stats-band { background: linear-gradient(120deg, var(--teal), var(--navy)); color: #fff; padding: 3.5rem 0; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--gold); }
.stat-label { opacity: .9; }

/* Testimonials */
.testimonial { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); position: relative; margin: 0; display: flex; flex-direction: column; }
.quote-mark { font-size: 3rem; color: var(--gold); line-height: 1; }
.testimonial blockquote { color: var(--ink); font-size: 1.02rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; }
.testimonial figcaption img, .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.avatar { background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.2; }
.testimonial small { color: var(--muted); }

/* CTA */
.cta-band { background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 96%, transparent), color-mix(in srgb, var(--teal) 88%, transparent)), var(--cta-img) center / cover; color: #fff; padding: 4rem 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Forms / contact */
.form-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: #d7dde5; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--teal) 15%, transparent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem; }
.contact-card .ci { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-card .ci:last-child { border-bottom: 0; }
.contact-card .ci i { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.contact-card small { display: block; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.contact-card a { color: #fff; text-decoration: none; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }
.why-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.why-list li { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.why-list i { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--cream); color: var(--teal); display: grid; place-items: center; font-size: 1.3rem; }
.why-list strong { display: block; color: var(--navy); }
.why-list span { color: var(--muted); }

/* Page banner */
.page-banner { background: linear-gradient(90deg, var(--navy) 40%, color-mix(in srgb, var(--navy) 75%, transparent)), url('../img/hero.jpg') right center / cover; color: #fff; padding: 3.2rem 0 2.8rem; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-banner p { margin: .4rem 0 0; opacity: .85; }
.page-banner-sm { padding: 1.1rem 0; }
.page-banner .breadcrumb { margin-bottom: .6rem; }
.page-banner-sm .breadcrumb { margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .9rem; }
.page-banner .breadcrumb-item.active { color: var(--gold); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
.filter-bar { background: #fff; padding: 1.1rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -3.2rem; position: relative; z-index: 2; }
.filter-bar .form-label { margin-bottom: .2rem; color: var(--muted); }
.page-link { color: var(--navy); border-radius: 8px !important; margin: 0 2px; }
.page-item.active .page-link { background: var(--navy); border-color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #fff; position: relative; margin-top: 3rem; }
.footer-wave { position: absolute; top: -26px; left: 0; right: 0; height: 28px; background: linear-gradient(100deg, var(--gold) 0 35%, var(--teal) 35.3%); clip-path: ellipse(70% 100% at 50% 100%); }
.footer-logo { height: 70px; }
.footer-title { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; color: rgba(255, 255, 255, .78); }
.footer-contact i { color: var(--gold); }
.social-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; text-decoration: none; transition: .2s; }
.social-btn:hover { background: var(--gold); color: var(--on-gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); font-size: .88rem; }

.empty-state { background: var(--cream); border-radius: var(--radius); }

/* Announcement bar (1.6.0) */
.ann-bar { font-size: .92rem; padding: .45rem 0; }
.ann-bar .container-xl { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: center; text-align: center; }
.ann-bar a { font-weight: 600; text-decoration: none; color: inherit; border-bottom: 1px solid currentColor; }
.ann-gold { background: var(--gold); color: var(--on-gold); }
.ann-teal { background: var(--teal); color: #fff; }
.ann-navy { background: var(--navy-deep); color: #fff; }
.ann-red { background: #b42318; color: #fff; }
.preview-bar { background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffe69c; padding: .6rem 0; font-size: .92rem; }

/* ---------- Clinic: doctor cards, services, booking ---------- */
.doc-pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.doc-pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.doc-pmedia { display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--dc, var(--teal)) 30%, #fff), color-mix(in srgb, var(--dc, var(--teal)) 70%, var(--navy))); }
.doc-pmedia img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.doc-pcard:hover .doc-pmedia img { transform: scale(1.05); }
.doc-pinit { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 2.4rem; font-weight: 700; }
.doc-pbody { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.doc-spec { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, #fff); border-radius: 999px; padding: .2rem .75rem; }
.doc-pname { font-size: 1.2rem; margin: .55rem 0 .3rem; }
.doc-pname a { color: var(--navy); text-decoration: none; }
.doc-pname a:hover { color: var(--teal); }
.doc-phours { color: var(--muted); font-size: .9rem; }
.doc-phours i { color: var(--teal); }
.doc-pbody > .d-flex { margin-top: auto !important; padding-top: 1rem; align-items: center; }
.doc-fee { font-size: .88rem; font-weight: 600; color: var(--navy); }
.doc-profile-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--dc, var(--teal)) 30%, #fff), color-mix(in srgb, var(--dc, var(--teal)) 70%, var(--navy))); }
.doc-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-profile-photo .doc-pinit { width: 160px; height: 160px; font-size: 3.2rem; }
.doc-facts span { background: var(--cream); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; color: var(--navy); }
.doc-facts i { color: var(--teal); }
.hours-table th { font-weight: 500; color: var(--muted); width: 40%; }
.hours-table td, .hours-table th { padding: .35rem 0; background: transparent; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip { padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 500; background: #fff; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.empty-state { color: var(--muted); }

.service-card { display: flex; flex-direction: column; }
.svc-price { font-size: 1.15rem; font-weight: 700; color: var(--teal); }

.book-form .form-card { height: 100%; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: .9rem; margin-right: .4rem; vertical-align: 2px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; min-height: 46px; align-items: start; padding: .2rem; border-radius: 12px; }
.slot-grid.need { outline: 2px solid #dc3545; }
.slot-grid .slot { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .55rem .3rem; font-weight: 500; color: var(--navy); transition: .15s; }
.slot-grid .slot:hover { border-color: var(--teal); color: var(--teal); }
.slot-grid .slot.on { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 35%, transparent); }
.book-done { max-width: 560px; }
.book-done-ic { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 14%, #fff); color: var(--teal); font-size: 2.4rem; margin-bottom: 1rem; }
.book-ref { display: inline-block; background: var(--cream); border: 1px dashed var(--teal); border-radius: 12px; padding: .6rem 1.2rem; margin: .4rem 0 1.2rem; font-size: 1.05rem; }
.book-ref strong { letter-spacing: .12em; color: var(--navy); }
.book-sum { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; text-align: left; max-width: 400px; margin: 0 auto 1rem; }
.book-sum dt { color: var(--muted); font-weight: 500; }
.book-sum dd { margin: 0; color: var(--navy); font-weight: 500; }
