/* Modern Dental Hygiene — lean theme, main stylesheet */

:root {
	--ink: #0e2a3d;
	--ink-soft: #4c6b7a;
	--bg: #f5fbfa;
	--bg-alt: #e9f6f3;
	--teal: #2bb6a3;
	--teal-deep: #15847a;
	--navy: #1c2d6b;
	--mint: #7fe0cf;
	--coral: #ff8a7a;
	--card-radius: 18px;
	--wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--bg);
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }

h1, h2, h3 { font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700; line-height: 1.15; margin: 0; }
.section-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--teal-deep); margin: 0 0 14px; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 999; }
.scroll-progress-bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--mint), var(--teal), var(--navy)); transition: width .1s linear; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(245,251,250,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(21,132,122,.1); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,42,61,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { height: 34px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .logo-mark { height: 28px; }
.logo-text { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: .95rem; line-height: 1.1; color: var(--navy); }
.logo-text em { font-style: normal; color: var(--teal-deep); font-size: .85em; }
.footer-logo .logo-text { color: #fff; font-size: 1.05rem; }
.footer-logo .logo-text em { color: var(--mint); }
.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; }
.primary-nav .menu a { color: var(--ink); }
.primary-nav .menu a:hover { color: var(--teal-deep); }
.search-form { display: flex; align-items: center; background: #fff; border: 1px solid rgba(21,132,122,.15); border-radius: 100px; padding: 6px 6px 6px 16px; }
.search-form input { border: none; outline: none; font-family: inherit; font-size: .9rem; width: 140px; background: transparent; }
.search-form button { border: none; background: var(--teal); color: #fff; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }
.nav-toggle, .menu-btn { display: none; }

/* Bubble hero */
.bubble-hero { position: relative; overflow: hidden; padding: 110px 0 90px; background: radial-gradient(circle at 25% 15%, var(--bg-alt), var(--bg) 60%); }
.bubble-field { position: absolute; inset: 0; z-index: 0; }
.bub { position: absolute; bottom: -80px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(127,224,207,.35) 60%, rgba(43,182,163,.15) 100%); opacity: .8; will-change: transform; animation: rise linear infinite; }
.bub-a { width: 46px; height: 46px; left: 8%; animation-duration: 12s; animation-delay: 0s; }
.bub-b { width: 70px; height: 70px; left: 20%; animation-duration: 16s; animation-delay: 2s; }
.bub-c { width: 34px; height: 34px; left: 38%; animation-duration: 10s; animation-delay: 4s; }
.bub-d { width: 58px; height: 58px; left: 62%; animation-duration: 14s; animation-delay: 1s; }
.bub-e { width: 40px; height: 40px; left: 78%; animation-duration: 11s; animation-delay: 3s; }
.bub-f { width: 80px; height: 80px; left: 90%; animation-duration: 18s; animation-delay: 5s; }
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: .8; } 50% { transform: translateY(-220px) translateX(14px); opacity: .9; } 100% { transform: translateY(-460px) translateX(-10px); opacity: 0; } }

.bubble-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.bubble-title { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 18px; color: var(--navy); }
.bubble-sub { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 32px; }
.bubble-search { display: flex; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 100px; padding: 8px 8px 8px 24px; box-shadow: 0 16px 40px rgba(21,132,122,.15); }
.bubble-search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 1rem; background: transparent; }
.bubble-search button { border: none; background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; font-weight: 700; border-radius: 100px; padding: 12px 26px; cursor: pointer; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Category cloud */
.cat-cloud { padding: 70px 0 40px; text-align: center; }
.cat-cloud-field { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; font-weight: 700; font-size: .95rem; color: #fff; animation: bob 6s ease-in-out infinite; }
.cat-pill:nth-child(2n) { animation-delay: -2s; }
.cat-pill:nth-child(3n) { animation-delay: -4s; }
.cat-pill-count { font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.3); border-radius: 100px; padding: 2px 8px; }
.cat-pill-0 { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); }
.cat-pill-1 { background: linear-gradient(135deg, var(--navy), #2c4490); }
.cat-pill-2 { background: linear-gradient(135deg, var(--coral), #ff6b5e); }
.cat-pill-3 { background: linear-gradient(135deg, #4fc9b8, var(--navy)); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Post rows with alternating bands */
.post-row { padding: 60px 0; position: relative; }
.post-row.band-1 { background: var(--bg-alt); }
.post-row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.post-row-viewall { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.post-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.entry-card { background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 6px 20px rgba(14,42,61,.06); transition: transform .3s ease, box-shadow .3s ease; }
/* Ezoic auto-inserts ad placeholders into any content block it detects, including these curated homepage cards; left unchecked they stack up and blow out card height/row alignment. Keep ads out of them (Ezoic still serves normally elsewhere on the page). */
.entry-card [id^="ezoic-pub-ad-placeholder"],
.entry-card ins.adsbygoogle,
.entry-card [class*="ezoic-ad"] { display: none !important; }
.entry-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(14,42,61,.14); }
.entry-card .thumb { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); }
.entry-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.entry-card:hover .thumb img { transform: scale(1.06); }
.entry-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.entry-title { font-size: 1.02rem; font-family: 'Quicksand', sans-serif; font-weight: 700; margin: 0; }
.entry-title a { color: var(--ink); }
.entry-excerpt { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }

/* Stat break */
.stat-break { padding: 90px 0; text-align: center; background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; background-attachment: fixed; background-size: cover; }
.stat-number { font-family: 'Quicksand', sans-serif; font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 0; }
.stat-label { margin: 6px 0 0; font-size: 1.1rem; opacity: .9; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 0%, #163a52, var(--ink) 55%); color: #c3dce0; padding: 0; margin-top: 30px; border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--mint), var(--teal), var(--navy), var(--coral)) 1; }
.footer-bubble-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.f-bub { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .25; }
.f-bub-a { width: 240px; height: 240px; top: -80px; right: -60px; background: radial-gradient(circle, var(--teal), transparent 70%); animation: bob 14s ease-in-out infinite; }
.f-bub-b { width: 160px; height: 160px; bottom: -40px; left: 8%; background: radial-gradient(circle, var(--mint), transparent 70%); animation: bob 10s ease-in-out infinite; }
.f-bub-c { width: 120px; height: 120px; bottom: 30px; right: 22%; background: radial-gradient(circle, var(--coral), transparent 70%); animation: bob 12s ease-in-out infinite; }
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 24px 44px; }
.footer-brand p { color: #9cc3cb; max-width: 300px; font-size: .9rem; line-height: 1.6; margin: 14px 0 0; }
.footer-col-title { color: #fff; font-family: 'Quicksand', sans-serif; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 18px; }
.footer-topic-list, .footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-topic-list a, .footer-menu a { color: #c3dce0; font-size: .92rem; transition: color .2s ease, padding-left .2s ease; }
.footer-topic-list a:hover, .footer-menu a:hover { color: #fff; padding-left: 6px; }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 24px; }
.copy { font-size: .8rem; color: #7ba2ab; margin: 0; }

/* Back to top */
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--teal); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; z-index: 80; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }

/* Single post */
.single-hero { position: relative; background: linear-gradient(135deg, var(--navy), var(--teal-deep)); color: #fff; overflow: hidden; }
.single-hero-img { aspect-ratio: 16/7; overflow: hidden; }
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-panel { padding: 34px 24px 30px; max-width: var(--wrap); margin: 0 auto; }
.single-hero-panel .kicker a { color: var(--mint); }
.single-hero-panel h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 6px 0 10px; }
.single-hero-panel .byline { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0 0 14px; }
.share-row { display: flex; gap: 10px; }
.share-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.share-row a:hover { background: rgba(255,255,255,.3); }

.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin: 24px 0 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.single-wrap { padding-bottom: 60px; }
.entry-content { max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.entry-content h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content img { border-radius: var(--card-radius); margin: 1.5em 0; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

.related { padding: 50px 0 10px; }
.related .section-title { margin-bottom: 20px; text-align: center; }
.related-grid { max-width: 920px; margin: 0 auto; }

/* Archive / search grids */
.archive-header { padding: 50px 0 10px; }
.archive-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 10px 0; }
.archive-desc { color: var(--ink-soft); max-width: 640px; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; padding: 30px 0 70px; }
.archive-grid .entry-card .thumb { aspect-ratio: 4/3; }
.archive-grid .entry-card .kicker { margin: 16px 18px 0; }
.archive-grid .entry-card .entry-title { padding: 6px 18px 20px; font-size: 1.12rem; }
.pagination { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: center; padding-top: 10px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--teal); color: #fff; }

@media (max-width: 860px) {
	.primary-nav { position: fixed; inset: 0 0 0 30%; background: #fff; transform: translateX(100%); transition: transform .3s ease; z-index: 95; padding: 90px 24px 24px; }
	.nav-toggle:checked ~ .primary-nav { transform: translateX(0); }
	.primary-nav .menu { flex-direction: column; }
	.menu-btn { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; z-index: 96; }
	.menu-btn span { width: 24px; height: 2px; background: var(--ink); }
	.search-form { display: none; }
	.footer-top { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px 36px; }
}
