/*
 * Childfinity — base styles.
 * Colours and fonts read Elementor's Site Settings (global colours/fonts) first,
 * so changing them in Elementor → Site Settings re-themes the whole site.
 */

@font-face { font-family: "FNHimelBorno"; src: url("../fonts/FNHimelBorno.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "MehdiEkushey"; src: url("../fonts/MehdiEkushey.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

body {
	--cf-navy: var(--e-global-color-primary, #073B8A);
	--cf-pink: var(--e-global-color-secondary, #EE2A6B);
	--cf-ink: var(--e-global-color-text, #17345D);
	--cf-sky: var(--e-global-color-accent, #0A8FE6);
	--cf-yellow: var(--e-global-color-cf_yellow, #FACB10);
	--cf-green: var(--e-global-color-cf_green, #58B85F);
	--cf-teal: var(--e-global-color-cf_teal, #0BB8B2);
	--cf-cream: var(--e-global-color-cf_cream, #FDFCF8);
	--cf-blue: var(--e-global-color-cf_blue, #EAF5FD);
	--cf-pale: var(--e-global-color-cf_pale, #FFF0F5);
	--cf-muted: var(--e-global-color-cf_muted, #64748B);
	--cf-line: var(--e-global-color-cf_line, #E5EAF1);
	--cf-white: #FFFFFF;
	--cf-font-heading: var(--e-global-typography-primary-font-family, "FNHimelBorno"), "Hind Siliguri", system-ui, sans-serif;
	--cf-font-body: var(--e-global-typography-text-font-family, "MehdiEkushey"), "Hind Siliguri", system-ui, sans-serif;
	--cf-radius-sm: 10px;
	--cf-radius: 14px;
	--cf-radius-lg: 18px;
	--cf-radius-xl: 28px;
	--cf-shadow: 0 10px 28px rgba(7, 59, 138, .07);
	--cf-shadow-lg: 0 18px 40px rgba(7, 59, 138, .12);
	--cf-container: 1180px;

	margin: 0;
	background: var(--cf-cream);
	color: var(--cf-ink);
	font-family: var(--cf-font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cf-pink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--cf-font-heading); color: var(--cf-navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--cf-sky); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.cf-skip:focus { clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px; background: var(--cf-white); padding: 8px 14px; border-radius: 8px; }

.cf-container { width: min(var(--cf-container), calc(100% - 32px)); margin-inline: auto; }
.cf-section { padding-block: 48px; }
.cf-narrow { max-width: 760px; }
.cf-muted { color: var(--cf-muted); font-size: .9rem; }
.cf-page-title { margin-bottom: 24px; }
.cf-entry > *:last-child { margin-bottom: 0; }
.cf-empty { text-align: center; }

.cf-eyebrow { color: var(--cf-pink); font-weight: 700; margin-bottom: 8px; }
.cf-eyebrow:not(.elementor-widget)::before, .elementor-widget.cf-eyebrow .elementor-heading-title::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--cf-yellow); margin: 0 8px 4px 0; border-radius: 3px; vertical-align: middle; }

/* Buttons */
.cf-btn, .button, button.button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 13px;
	background: var(--cf-pink); color: var(--cf-white); font-weight: 700; line-height: 1.2;
	cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s;
}
.cf-btn:hover, .button:hover, input[type="submit"]:hover { transform: translateY(-2px); color: var(--cf-white); box-shadow: 0 8px 18px rgba(238, 42, 107, .25); }
.cf-btn--secondary { background: var(--cf-white); color: var(--cf-navy); border-color: #D7E4F2; }
.cf-btn--secondary:hover { color: var(--cf-navy); box-shadow: var(--cf-shadow); }

/* Announcement + header */
.cf-announcement { background: var(--cf-navy); color: var(--cf-white); text-align: center; padding: 6px 16px; font-size: .92rem; }
.cf-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 252, 248, .96); border-bottom: 1px solid var(--cf-line); backdrop-filter: blur(10px); }
.admin-bar .cf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cf-header { top: 0; } }
.cf-header__inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.cf-logo { font: 800 1.8rem/1 var(--cf-font-heading); white-space: nowrap; letter-spacing: -.01em; }
.cf-logo:hover { color: inherit; }
.cf-logo__c0 { color: var(--cf-navy); }
.cf-logo__c1 { color: var(--cf-sky); }
.cf-logo__c2 { color: var(--cf-pink); }
.custom-logo { max-height: 56px; width: auto; }

.cf-nav { margin-left: auto; }
.cf-nav__menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.cf-nav__menu > li { position: relative; }
.cf-nav__menu a { display: block; padding: 8px 0; font-weight: 600; color: var(--cf-navy); }
.cf-nav__menu a:hover, .cf-nav__menu .current-menu-item > a { color: var(--cf-pink); }
.cf-nav__menu .sub-menu { position: absolute; top: 100%; left: -14px; min-width: 240px; list-style: none; margin: 0; padding: 10px; background: var(--cf-white); border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.cf-nav__menu li:hover > .sub-menu, .cf-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cf-nav__menu .sub-menu a { padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.cf-nav__menu .sub-menu a:hover { background: var(--cf-blue); }

.cf-header__actions { display: flex; gap: 8px; }
body .cf-header .cf-icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; min-height: 0; border: 1px solid var(--cf-line); background: var(--cf-white); border-radius: 12px; color: var(--cf-navy); cursor: pointer; padding: 0; box-shadow: none; transform: none; }
body .cf-header .cf-icon-btn:hover, body .cf-header .cf-icon-btn:focus, body .cf-header .cf-icon-btn[aria-expanded="true"] { color: var(--cf-pink); background: var(--cf-white); border-color: #D7E4F2; }
.cf-cart-count { position: absolute; right: -6px; top: -7px; min-width: 19px; height: 19px; padding: 0 5px; background: var(--cf-pink); color: var(--cf-white); border-radius: 99px; font-size: .72rem; font-weight: 700; line-height: 19px; text-align: center; }
body .cf-header .cf-menu-toggle { display: none; }

.cf-search-panel { border-top: 1px solid var(--cf-line); background: var(--cf-white); padding: 14px 0; }
.cf-search-panel form { display: flex; gap: 8px; }
.cf-search-panel input[type="search"] { flex: 1; min-height: 46px; padding: 8px 14px; border: 1px solid #D7E4F2; border-radius: 12px; background: var(--cf-cream); }
body .cf-search-panel button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--cf-pink); color: var(--cf-white); font-weight: 700; cursor: pointer; }

.cf-drawer { background: var(--cf-white); border-top: 1px solid var(--cf-line); padding: 12px 16px 18px; }
.cf-drawer__menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-drawer__menu a { display: block; padding: 10px 12px; background: var(--cf-cream); border-radius: 10px; font-weight: 600; }
.cf-drawer__menu .sub-menu { list-style: none; padding: 6px 0 0 10px; margin: 0; display: grid; gap: 6px; }
.cf-drawer__menu .sub-menu a { background: none; padding: 4px 8px; font-weight: 500; }

@media (max-width: 1024px) {
	.cf-nav { display: none; }
	body .cf-header .cf-menu-toggle { display: inline-grid; }
	.cf-header__actions { margin-left: auto; }
}
@media (max-width: 560px) {
	.cf-logo { font-size: 1.5rem; }
	body .cf-header .cf-account-link { display: none; }
	.cf-drawer__menu { grid-template-columns: 1fr; }
}

/* Footer */
.cf-footer { background: var(--cf-navy); color: #DCE7F8; margin-top: 0; }
.cf-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-block: 48px 32px; }
.cf-footer__brand p { font-size: .95rem; max-width: 320px; margin-top: 14px; }
body .cf-footer .cf-footer__title { position: relative; padding-bottom: 8px; margin-bottom: 14px; color: var(--cf-white); font-size: 1.05rem; }
.cf-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--cf-yellow); }
body .cf-footer .cf-logo span { color: var(--cf-white); }
body .cf-footer .cf-logo span:nth-child(n+6) { color: var(--cf-yellow); }
.cf-footer__menu, .cf-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body .cf-footer .cf-footer__menu a, body .cf-footer .cf-footer__contact a { color: #DCE7F8; font-size: .95rem; }
body .cf-footer .cf-footer__menu a:hover, body .cf-footer .cf-footer__contact a:hover { color: var(--cf-yellow); }
.cf-footer__contact { margin-top: 12px; }
.cf-social { display: flex; gap: 8px; margin-top: 14px; }
body .cf-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 11px; background: rgba(255, 255, 255, .08); color: var(--cf-white); }
.cf-social a:hover { background: var(--cf-pink); color: var(--cf-white); }
.cf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .18); padding-block: 16px; font-size: .9rem; }
.cf-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cf-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-payments span { padding: 4px 10px; border: 1px solid var(--cf-line); border-radius: 8px; background: var(--cf-cream); font-weight: 600; font-size: .85rem; }
.cf-copy { margin: 0; color: var(--cf-muted); }
.cf-to-top { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.cf-to-top .cf-icon { width: 16px; height: 16px; }
@media (max-width: 1024px) { .cf-footer__grid { grid-template-columns: 1fr 1fr; } .cf-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cf-footer__grid { grid-template-columns: 1fr; } }

.cf-float-chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 99px; background: var(--cf-pink); color: var(--cf-white); font-weight: 700; box-shadow: 0 10px 24px rgba(238, 42, 107, .35); }
.cf-float-chat:hover { color: var(--cf-white); transform: translateY(-2px); }
@media (max-width: 560px) { .cf-float-chat span { display: none; } .cf-float-chat { padding: 14px; } }

/* Blog cards */
.cf-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cf-card { background: var(--cf-white); border: 1px solid rgba(7, 59, 138, .06); border-radius: var(--cf-radius-lg); overflow: hidden; }
.cf-card__body { padding: 16px; }
.cf-card__title { font-size: 1.15rem; }

/* Elementor helpers used by the starter pages */
.cf-elementor-page .cf-main { overflow-x: clip; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--cf-font-heading); }
.cf-hover-lift { transition: transform .2s, box-shadow .2s; }
.cf-hover-lift:hover { transform: translateY(-4px); box-shadow: var(--cf-shadow); }
.cf-editor-notice { padding: 14px 16px; border: 1px dashed #B8C5D8; border-radius: 12px; background: var(--cf-blue); color: var(--cf-navy); font-size: .9rem; }
.cf-footer .cf-copy { color: #DCE7F8; margin: 0; }
body .cf-footer .cf-to-top { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; color: var(--cf-white); }
body .cf-footer .cf-to-top:hover { color: var(--cf-yellow); }
.cf-footer .cf-payments span { color: var(--cf-navy); background: var(--cf-white); }
