/*
 * Site-wide polish for grow.bluetreedental.com
 * Loaded after each page's own styles. Small, safe touches only.
 */

/* The card's arc, as a subtle accent on the closing banners */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.cta-banner::before { width: 520px; height: 520px; right: -200px; top: -260px; border: 2px solid rgba(255,255,255,0.10); }
.cta-banner::after { width: 380px; height: 380px; left: -190px; bottom: -230px; background: rgba(255,255,255,0.04); }

/* Easier-to-read small text */
[style*="color: #9ca3af"] { color: #6b7280 !important; }
[style*="color: rgba(255,255,255,0.5);"], [style*="color: rgba(255,255,255,0.55)"] { color: rgba(255,255,255,0.78) !important; }

/* Gentle fade-in as sections scroll into view */
.bt-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.bt-reveal.bt-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bt-reveal { opacity: 1; transform: none; transition: none; } }

/* Hover lift on clickable cards */
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(1,54,104,0.12); }

/* Phones: "What matters most" chips in one swipeable row per group */
@media (max-width: 600px) {
  div[style*="justify-content: center; gap: 10px; flex-wrap: wrap;"] {
    flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -20px; padding: 2px 20px 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  }
  div[style*="justify-content: center; gap: 10px; flex-wrap: wrap;"]::-webkit-scrollbar { display: none; }
  div[style*="justify-content: center; gap: 10px; flex-wrap: wrap;"] > a { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
}

/* Phones: a slim bar with the two paths, always one tap away */
.bt-bar { display: none; }
@media (max-width: 700px) {
  .bt-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -6px 24px rgba(1,54,104,0.12);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .bt-bar.bt-show { transform: none; }
  .bt-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px;
    border-radius: 999px; font: 700 15px/1.15 Inter, Arial, sans-serif; text-align: center; text-decoration: none;
    border: 2px solid #013668; color: #013668; background: #ffffff;
  }
  .bt-bar a.primary { background: #013668; color: #ffffff; }
  body.bt-has-bar { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* Inline booking on the paths */
.booking-sec { padding: 72px 24px 24px; }
.booking-in { max-width: 860px; margin: 0 auto; text-align: center; }
.booking-eb { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #013668; }
.booking-eb:after { content: ""; display: block; width: 32px; height: 3px; margin: 10px auto 0; border-radius: 2px; background: #b9cde3; }
.booking-in h2 { margin: 16px 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; color: #013668; }
.booking-in p { margin: 0 auto 24px; max-width: 620px; font-size: 18px; line-height: 1.55; color: #374151; }
.booking-box { background: #f7f9fc; border: 1px solid #e5e7eb; border-radius: 20px; padding: 28px; }
.booking-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 30px; border-radius: 999px; background: #013668; color: #ffffff !important; font-weight: 700; font-size: 17px; text-decoration: none; }
.booking-btn:hover { background: #012850; }

/* Monthly note signup */
.bt-note-sec { padding: 64px 24px; background: #eaf2f9; }
.bt-note-in { max-width: 760px; margin: 0 auto; text-align: center; }
.bt-note-eb { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #013668; }
.bt-note-eb:after { content: ""; display: block; width: 32px; height: 3px; margin: 10px auto 0; border-radius: 2px; background: #b9cde3; }
.bt-note-in h2 { margin: 16px 0 8px; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.18; color: #013668; }
.bt-note-in > p { margin: 0 auto 22px; max-width: 600px; font-size: 17px; line-height: 1.55; color: #374151; }
.bt-note-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bt-note-row input { flex: 1 1 200px; min-height: 52px; padding: 12px 16px; border: 1.5px solid #c9d7e6; border-radius: 12px; font: 16px Inter, Arial, sans-serif; background: #fff; color: #1f2937; }
.bt-note-row input:focus { outline: none; border-color: #013668; }
.bt-note-row button { min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px; background: #013668; color: #fff; font: 700 16px Inter, Arial, sans-serif; cursor: pointer; }
.bt-note-row button:hover { background: #012850; }
.bt-note-row button[disabled] { opacity: .6; }
.bt-note-pick { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 0 0 14px; font-size: 15px; color: #013668; font-weight: 600; }
.bt-note-pick input { margin-right: 6px; }
.bt-note-msg { min-height: 20px; margin: 10px 0 0; font-size: 14px; color: #013668; }
.bt-note-done { font-size: 18px; font-weight: 700; color: #013668; }
.bt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .bt-note-row button { width: 100%; } }

/* Provider Path: our own openings list */
.op-list { display: grid; gap: 12px; }
.op-count { margin: 0 0 6px; text-align: center; font-size: 15px; color: #4b5563; }
.op-note { text-align: center; font-size: 17px; color: #374151; }
.op-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.op-row:hover { border-color: #013668; box-shadow: 0 10px 26px rgba(1,54,104,0.10); transform: translateY(-2px); }
.op-main { display: flex; flex-direction: column; gap: 4px; }
.op-role { font-size: 20px; font-weight: 800; color: #013668; }
.op-meta { font-size: 15px; color: #4b5563; }
.op-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #013668; color: #ffffff; font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 600px) { .op-row { flex-direction: column; align-items: flex-start; } .op-go { width: 100%; justify-content: center; } }
.op-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.op-tags span { padding: 3px 10px; border-radius: 999px; background: #eaf2f9; color: #013668; font-size: 13px; font-weight: 700; }

/* Exit Path: the three ways to start, up front */
.xp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.xp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 999px; border: 2px solid #013668; background: #ffffff; color: #013668; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s, color .15s; }
.xp-btn.primary { background: #013668; color: #ffffff; }
.xp-btn:hover { background: #012850; border-color: #012850; color: #ffffff; }
.xp-alt { display: inline-block; margin-top: 14px; color: #013668; font-size: 15px; font-weight: 600; }
#book { scroll-margin-top: 90px; }
@media (max-width: 600px) { .xp-btn { width: 100%; justify-content: center; } }
.xp-start { display: block; width: 100%; }
.xp-start .xp-ctas { flex-wrap: wrap; }
.op-row.op-opening { border-color: #013668; opacity: .85; }

/* Path heroes: the homepage hero layout, with a photo and a doctor quote */
/* Hero: headline first, custom video cover, proof up top */
.hero2 { padding: 88px 80px 80px; position: relative; overflow: hidden; }
.hero2-media { position: relative; }
.hero2-media::before { content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%; border: 2px solid #dfe9f4; pointer-events: none; }
.hero2-media::after { content: ""; position: absolute; left: -60px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: #eaf2f9; pointer-events: none; }
.hero2-media .vcard { z-index: 1; }
.hero2-in { position: relative; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero2-eb { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #013668; display: flex; align-items: center; gap: 12px; }
.hero2-eb .rule { width: 24px; height: 2px; background: #013668; display: inline-block; flex: 0 0 auto; }
.hero2 h1 { font-size: clamp(40px, 3.7vw, 58px); text-wrap: balance; line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; color: #013668; margin: 18px 0 18px; }
.hero2 h1 em { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; white-space: nowrap; }
.hero2-sub { font-size: 19px; line-height: 1.55; color: #374151; max-width: 580px; margin: 0 0 26px; }
.hero2-proof { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.hero2-proof .faces { padding-left: 12px; }
.hero2-proof .faces img { width: 44px; height: 44px; border-width: 2px; margin-left: -12px; }
.hero2-proof strong { display: block; font-size: 15px; color: #013668; }
.hero2-proof span { display: block; font-size: 14px; color: #4b5563; margin-top: 2px; }
.vcard { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #013668; box-shadow: 0 24px 60px rgba(1,54,104,0.22); }
.vcard .vcover, .vcard video, .vcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,54,104,0.05) 30%, rgba(1,54,104,0.78) 100%); pointer-events: none; }
.vplay { position: absolute; inset: 0; width: 100%; display: flex; align-items: flex-end; gap: 16px; padding: 28px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: #ffffff; }
.vbtn { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: transform .2s; }
.vbtn svg { margin-left: 4px; }
.vplay:hover .vbtn, .vplay:focus-visible .vbtn { transform: scale(1.08); }
.vplay:focus-visible { outline: 3px solid #ffffff; outline-offset: -6px; border-radius: 24px; }
.vcap strong { display: block; font-size: 20px; line-height: 1.2; }
.vcap span { display: block; font-size: 15px; opacity: .9; margin-top: 4px; }
@media (max-width: 900px) {
  .hero2 { padding: 40px 20px 48px; }
  .hero2-in { grid-template-columns: 1fr; gap: 32px; }
  .hero2 h1 { font-size: 40px; }
  .hero2-sub { font-size: 17px; }
  .hero2-proof { align-items: flex-start; flex-direction: column; gap: 10px; }
  .vplay { padding: 18px; }
  .vbtn { width: 56px; height: 56px; }
  .vcap strong { font-size: 17px; }
  .hero2-media::before { right: -60px; top: -60px; width: 220px; height: 220px; }
  .hero2-media::after { display: none; }
}
.faces { display: flex; padding-left: 14px; }
.faces img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 3px solid #ffffff; margin-left: -14px; box-shadow: 0 4px 12px rgba(1,54,104,0.12); background: #dbe7f3; }

.path-hero { padding-top: 56px; }
.hero2-back { display: inline-block; margin-bottom: 22px; color: #6b7280; font-size: 14px; text-decoration: none; }
.hero2-back:hover { color: #013668; }
.path-hero .hero2-sub { margin-bottom: 24px; }
.vcard.photo { margin: 0; }
.vquote { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 26px 28px; color: #ffffff; }
.vquote img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 3px solid #ffffff; }
.vquote q { display: block; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.3; quotes: "\201C" "\201D"; }
.vquote strong { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; opacity: .9; }
@media (max-width: 900px) { .vquote { padding: 18px; gap: 12px; } .vquote img { width: 48px; height: 48px; } .vquote q { font-size: 18px; } }

/* Blog hero: newest post card and filters */
.blog-feature { display: block; text-decoration: none; color: #ffffff; }
.blog-feature .bf-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; }
.bf-tag { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.bf-title { font-size: 24px; line-height: 1.25; }
.bf-meta { font-size: 15px; opacity: .9; }
.blog-feature:hover .bf-title { text-decoration: underline; }
.blog-filters button { font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.blog-list { scroll-margin-top: 90px; }
@media (max-width: 900px) { .blog-feature .bf-text { padding: 18px; } .bf-title { font-size: 19px; } }

/* Locations hero: the footprint map as the card */
.map-card { position: relative; z-index: 1; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 24px; padding: 28px 28px 18px; box-shadow: 0 24px 60px rgba(1,54,104,0.14); max-width: 440px; margin: 0 auto; }
.map-card .footprint-map { width: 100%; height: auto; display: block; max-height: 560px; }
.footprint-map .st path { fill: #eaf2f9; stroke: #ffffff; stroke-width: 2.5; }
.footprint-map .dots circle { fill: #013668; stroke: #ffffff; stroke-width: 2; }
.footprint-map .lbl text { font: 700 15px Inter, Arial, Helvetica, sans-serif; fill: #013668; paint-order: stroke; stroke: #ffffff; stroke-width: 4px; }
.footprint-map .lbl a text { text-decoration: underline; cursor: pointer; }
.footprint-map .lbl a:hover text { fill: #4a90d9; }
.map-hint { margin: 10px 0 0; text-align: center; font-size: 14px; color: #6b7280; }
@media (max-width: 900px) { .map-card { max-width: 360px; padding: 20px 20px 14px; } .map-card .footprint-map { max-height: 440px; } }
.map-card .footprint-map .lbl text { font-size: 23px; stroke-width: 5px; }
.map-card .footprint-map .dots circle { r: 7px; }

/* Small legal line on pages without a full footer */
.mini-legal { text-align: center; font-size: 13px; color: #6b7280; margin: 32px 0 24px; }
.mini-legal a { color: inherit; }
