/*
Theme Name: FindNChoose
Theme URI: https://findnchoose.com/
Description: GeneratePress child theme for FindNChoose: comparisons, reviews and calculators for web hosting, AI tools and website software.
Author: FindNChoose
Template: generatepress
Version: 1.0.0
Text Domain: fncchild
*/

html:root {
	--contrast: #161a3a;
	--contrast-2: #4b5175;
	--contrast-3: #dfe2ee;
	--base: #f3f5fa;
	--base-2: #f7f8fc;
	--base-3: #ffffff;
	--accent: #283088;
	--fnc-navy: #283088;
	--fnc-navy-dark: #1b2166;
	--fnc-red: #d81f26;
	--fnc-red-dark: #b3161d;
	--fnc-ink: #161a3a;
	--fnc-muted: #5a6080;
	--fnc-line: #e3e6f0;
	--fnc-soft: #eef0fa;
	--fnc-green: #0f7a55;
	--fnc-green-soft: #e8f6f0;
	--fnc-amber-soft: #fff6e0;
	--fnc-radius: 12px;
	--fnc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--fnc-font); font-size: 18px; line-height: 1.7; color: var(--fnc-ink); background: var(--base-2); }
a { color: var(--fnc-navy); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--fnc-red-dark); }
h1, h2, h3, h4 { font-family: var(--fnc-font); color: var(--fnc-ink); letter-spacing: -0.01em; }
h1, .entry-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.15; }
.entry-content h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-top: 2em; scroll-margin-top: 90px; }
.entry-content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { margin-left: 1.3em; }
:focus-visible { outline: 3px solid var(--fnc-red); outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--fnc-line); box-shadow: 0 1px 0 rgba(22, 26, 58, 0.03); }
.inside-header { padding-top: 10px; padding-bottom: 10px; }
.site-logo img, .header-image { height: 48px; width: auto; }
.main-navigation, .main-navigation ul ul { background: #fff; }
.main-navigation .main-nav > ul > li > a { color: var(--fnc-ink); font-weight: 650; font-size: 0.98rem; padding-left: 14px; padding-right: 14px; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li.current-menu-item > a, .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--fnc-navy); background: transparent; box-shadow: inset 0 -3px 0 var(--fnc-red); }
.main-navigation ul ul { border: 1px solid var(--fnc-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(22, 26, 58, 0.12); padding: 6px 0; width: 250px; }
.main-navigation .main-nav ul ul li a { color: var(--fnc-ink); font-size: 0.95rem; font-weight: 500; padding: 9px 16px; line-height: 1.4; }
.main-navigation .main-nav ul ul li:hover > a { background: var(--fnc-soft); color: var(--fnc-navy); box-shadow: none; }
.main-navigation .menu-toggle, .main-navigation .menu-bar-item > a { color: var(--fnc-navy); }
.navigation-search input[type="search"] { background: #fff; color: var(--fnc-ink); border-bottom: 2px solid var(--fnc-navy); }

/* Layout */
.separate-containers .inside-article, .one-container .site-content { background: #fff; }
.separate-containers .inside-article { border: 1px solid var(--fnc-line); border-radius: var(--fnc-radius); }
.entry-meta { color: var(--fnc-muted); font-size: 0.9rem; }
.rank-math-breadcrumb { font-size: 0.85rem; color: var(--fnc-muted); margin: 18px 0 10px; }
.rank-math-breadcrumb a { color: var(--fnc-muted); }
.sidebar .widget { background: #fff; border: 1px solid var(--fnc-line); border-radius: var(--fnc-radius); padding: 20px; font-size: 0.95rem; }
.sidebar .widget-title { font-size: 1rem; font-weight: 800; }
.sidebar .widget ul { margin-left: 0; list-style: none; }
.sidebar .widget li { padding: 6px 0; border-bottom: 1px solid var(--fnc-line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.inside-right-sidebar { position: sticky; top: 20px; }

/* Archive hubs */
.page-header { background: #fff; border: 1px solid var(--fnc-line); border-radius: var(--fnc-radius); padding: 28px; margin-bottom: 20px; }
.page-header .page-title { font-size: clamp(1.8rem, 3.2vw, 2.3rem); font-weight: 800; }
.taxonomy-description { color: var(--fnc-muted); }
.archive .inside-article, .blog .inside-article, .search .inside-article { padding: 24px; }
.archive .entry-title, .search .entry-title { font-size: 1.3rem; }

/* Buttons */
.fnc-btn, a.fnc-btn { display: inline-block; background: var(--fnc-red); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 10px; text-decoration: none; line-height: 1.2; transition: background 0.15s; }
.fnc-btn:hover, .fnc-btn:focus { background: var(--fnc-red-dark); color: #fff; }
.fnc-btn--ghost, a.fnc-btn--ghost { background: #fff; color: var(--fnc-navy); border: 2px solid var(--fnc-navy); }
.fnc-btn--ghost:hover { background: var(--fnc-soft); color: var(--fnc-navy); }
.fnc-btn--sm, a.fnc-btn--sm { padding: 7px 12px; font-size: 0.85rem; }
.fnc-cta { margin: 1.5em 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fnc-cta__note { color: var(--fnc-muted); font-size: 0.85rem; }

/* Dates, disclosure, notes */
.fnc-dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.fnc-badge { font-size: 0.8rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--fnc-soft); color: var(--fnc-navy); }
.fnc-badge--tested { background: var(--fnc-green-soft); color: var(--fnc-green); }
.fnc-badge--updated { background: #f1f2f6; color: var(--fnc-muted); }
.fnc-disclosure { font-size: 0.85rem; color: var(--fnc-muted); border-left: 3px solid var(--fnc-line); padding-left: 12px; margin-bottom: 1.6em; }
.fnc-note { background: var(--fnc-amber-soft); border: 1px solid #f2d79a; border-radius: var(--fnc-radius); padding: 16px 20px; margin: 1.5em 0; font-size: 0.97rem; }
.fnc-note p:last-child { margin-bottom: 0; }
.fnc-chip { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--fnc-green); background: var(--fnc-green-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* Verdict */
.fnc-verdict { background: linear-gradient(180deg, var(--fnc-soft), #fff 70%); border: 1px solid #d5d9f0; border-left: 6px solid var(--fnc-navy); border-radius: var(--fnc-radius); padding: 22px 24px; margin: 1.2em 0 2em; }
.fnc-verdict__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fnc-verdict__head strong { font-size: 1.15rem; color: var(--fnc-navy); }
.fnc-score { background: var(--fnc-navy); color: #fff; font-weight: 800; font-size: 1.3rem; border-radius: 10px; padding: 4px 12px; }
.fnc-score small { font-size: 0.75rem; opacity: 0.8; }
.fnc-verdict__body p:last-child { margin-bottom: 0.6em; }
.fnc-verdict__fit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 0; }
.fnc-verdict__fit div { background: #fff; border: 1px solid var(--fnc-line); border-radius: 10px; padding: 10px 14px; }
.fnc-verdict__fit dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fnc-muted); font-weight: 700; }
.fnc-verdict__fit dd { margin: 2px 0 0; font-size: 0.95rem; }
.fnc-verdict__cta { margin: 14px 0 0; }

/* Pros and cons */
.fnc-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5em 0; }
.fnc-proscons > div { border-radius: var(--fnc-radius); padding: 18px 20px; border: 1px solid var(--fnc-line); }
.fnc-pros { background: var(--fnc-green-soft); }
.fnc-cons { background: #fdf0f0; }
.fnc-proscons h3 { margin: 0 0 8px; font-size: 1rem; }
.fnc-proscons ul { margin: 0 0 0 1.1em; font-size: 0.97rem; }

/* Tables */
.fnc-table-wrap { overflow-x: auto; margin: 1.2em 0 0.4em; border: 1px solid var(--fnc-line); border-radius: var(--fnc-radius); -webkit-overflow-scrolling: touch; }
.fnc-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 0; border: 0; }
.fnc-table caption { text-align: left; font-weight: 700; padding: 12px 14px 0; }
.fnc-table th, .fnc-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--fnc-line); text-align: left; vertical-align: top; }
.fnc-table thead th { background: var(--fnc-navy); color: #fff; font-weight: 700; white-space: nowrap; }
.fnc-table tbody tr:nth-child(even) { background: var(--base-2); }
.fnc-table tbody th { font-weight: 700; color: var(--fnc-ink); }
.fnc-table small { display: block; color: var(--fnc-muted); font-size: 0.78rem; font-weight: 400; }
.fnc-table-note { font-size: 0.8rem; color: var(--fnc-muted); margin-bottom: 1.6em; }
.entry-content table:not(.fnc-table) { border-collapse: collapse; font-size: 0.93rem; }
.entry-content table:not(.fnc-table) th { background: var(--fnc-soft); }

/* Test box, TOC, FAQ, sources */
.fnc-testbox { background: var(--fnc-green-soft); border: 1px solid #bfe3d3; border-radius: var(--fnc-radius); padding: 18px 22px; margin: 1.6em 0; font-size: 0.97rem; }
.fnc-testbox h3 { margin-top: 0; color: var(--fnc-green); }
.fnc-toc { background: var(--base-2); border: 1px solid var(--fnc-line); border-radius: var(--fnc-radius); padding: 16px 22px; margin: 1.5em 0 2em; font-size: 0.95rem; }
.fnc-toc ol { margin: 8px 0 0 1.2em; columns: 2; column-gap: 28px; }
.fnc-toc li { margin-bottom: 4px; break-inside: avoid; }
.fnc-faq__item { border: 1px solid var(--fnc-line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.fnc-faq__item summary { cursor: pointer; list-style: none; padding: 14px 0; }
.fnc-faq__item summary::-webkit-details-marker { display: none; }
.fnc-faq__item summary h3 { display: inline; font-size: 1.02rem; margin: 0; }
.fnc-faq__item summary::after { content: "+"; float: right; font-weight: 800; color: var(--fnc-navy); }
.fnc-faq__item[open] summary::after { content: "\2212"; }
.fnc-sources { font-size: 0.85rem; color: var(--fnc-muted); }
.fnc-sources h2 { font-size: 1.1rem !important; }
.fnc-sources a { word-break: break-word; }

/* Author box and related */
.fnc-author { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--fnc-line); margin-top: 2.5em; padding-top: 22px; font-size: 0.93rem; }
.fnc-author img { border-radius: 12px; flex: 0 0 56px; }
.fnc-author p { margin: 4px 0 0; color: var(--fnc-muted); }
.fnc-related { margin-top: 2em; }
.fnc-related h2 { font-size: 1.3rem !important; }

/* Cards */
.fnc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.2em 0 2em; }
.fnc-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--fnc-line); border-radius: var(--fnc-radius); padding: 18px; text-decoration: none; color: var(--fnc-ink); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.fnc-card:hover, .fnc-card:focus { border-color: var(--fnc-navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40, 48, 136, 0.1); color: var(--fnc-ink); }
.fnc-card__kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--fnc-red-dark); }
.fnc-card__title { font-size: 1.05rem; line-height: 1.35; }
.fnc-card__excerpt { font-size: 0.9rem; color: var(--fnc-muted); line-height: 1.5; }

/* Homepage */
.fnc-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(240, 32, 32, 0.08), transparent 60%), linear-gradient(135deg, #ffffff 0%, var(--fnc-soft) 100%); border: 1px solid var(--fnc-line); border-radius: 18px; padding: clamp(28px, 5vw, 56px); margin: 10px 0 28px; }
.fnc-hero__kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fnc-red-dark); margin-bottom: 10px; }
.fnc-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; margin: 0 0 14px; max-width: 820px; }
.fnc-hero p { font-size: 1.15rem; color: var(--fnc-muted); max-width: 700px; }
.fnc-search { display: flex; gap: 10px; max-width: 640px; margin: 22px 0 10px; }
.fnc-search input[type="search"] { flex: 1; border: 2px solid #cfd3e6; border-radius: 10px; padding: 13px 16px; font-size: 1rem; background: #fff; }
.fnc-search input[type="search"]:focus { border-color: var(--fnc-navy); outline: none; }
.fnc-search button { background: var(--fnc-navy); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.fnc-search button:hover { background: var(--fnc-navy-dark); }
.fnc-hero__links { font-size: 0.92rem; color: var(--fnc-muted); }
.fnc-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 34px; }
.fnc-pillar { background: #fff; border: 1px solid var(--fnc-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.fnc-pillar h2 { font-size: 1.3rem !important; margin: 0 !important; }
.fnc-pillar h2 a { text-decoration: none; color: var(--fnc-ink); }
.fnc-pillar p { color: var(--fnc-muted); font-size: 0.95rem; margin: 0; }
.fnc-pillar ul { list-style: none; margin: 6px 0 0; font-size: 0.95rem; }
.fnc-pillar li { padding: 5px 0; border-top: 1px solid var(--fnc-line); }
.fnc-pillar__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--fnc-navy); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.fnc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 34px; counter-reset: step; }
.fnc-step { background: #fff; border: 1px solid var(--fnc-line); border-radius: 16px; padding: 22px; }
.fnc-step strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.fnc-step strong::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fnc-red); color: #fff; font-size: 0.85rem; margin-right: 10px; }
.fnc-step p { margin: 0; color: var(--fnc-muted); font-size: 0.95rem; }
.fnc-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 10px 0 30px; }
.fnc-trust div { background: #fff; border: 1px solid var(--fnc-line); border-radius: 14px; padding: 16px; font-size: 0.9rem; color: var(--fnc-muted); }
.fnc-trust strong { display: block; color: var(--fnc-ink); font-size: 1rem; }
.fnc-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; }
.fnc-section-head h2 { margin: 0 !important; }

/* Calculators */
.fnc-tool { background: #fff; border: 2px solid var(--fnc-navy); border-radius: 16px; padding: clamp(18px, 3vw, 28px); margin: 1.5em 0 2em; }
.fnc-tool__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; margin-bottom: 18px; }
.fnc-field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.fnc-field input, .fnc-field select { width: 100%; border: 2px solid #cfd3e6; border-radius: 10px; padding: 10px 12px; font-size: 1rem; background: #fff; }
.fnc-field input:focus, .fnc-field select:focus { border-color: var(--fnc-navy); outline: none; }
.fnc-field small { display: block; color: var(--fnc-muted); font-size: 0.78rem; margin-top: 4px; }
.fnc-tool__answer { background: var(--fnc-navy); color: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.fnc-tool__answer span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.fnc-tool__answer strong { display: block; font-size: 1.6rem; line-height: 1.2; margin: 2px 0 4px; }
.fnc-tool__answer small { opacity: 0.85; font-size: 0.85rem; }

/* Ads (rendered only when configured) */
.fnc-ad { margin: 2em 0; text-align: center; min-height: 280px; }
.fnc-ad__label { display: block; font-size: 0.7rem; color: var(--fnc-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

/* Forms (Contact Form 7) */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea, .wpcf7 select { width: 100%; border: 2px solid #cfd3e6; border-radius: 10px; padding: 10px 12px; }
.wpcf7 input[type="submit"] { background: var(--fnc-red); color: #fff; border: 0; border-radius: 10px; padding: 12px 24px; font-weight: 700; }

/* Footer */
.site-footer .footer-widgets { background: var(--fnc-navy-dark); color: #dfe2f4; font-size: 0.93rem; }
.site-footer .footer-widgets a { color: #fff; text-decoration: none; }
.site-footer .footer-widgets a:hover { text-decoration: underline; }
.site-footer .footer-widgets .widget-title { color: #fff; font-size: 1rem; font-weight: 800; }
.site-footer .footer-widgets ul { list-style: none; margin: 0; }
.site-footer .footer-widgets li { padding: 3px 0; }
.site-info { background: #141851; color: #b9bde0; font-size: 0.85rem; }
.site-info a { color: #fff; }
.fnc-footer-logo { background: #fff; border-radius: 10px; padding: 8px 10px; display: inline-block; margin-bottom: 10px; }
.fnc-footer-logo img { height: 34px; width: auto; display: block; }

@media (max-width: 900px) {
	.fnc-pillars, .fnc-steps { grid-template-columns: 1fr; }
	.fnc-trust { grid-template-columns: 1fr 1fr; }
	.fnc-proscons, .fnc-verdict__fit { grid-template-columns: 1fr; }
	.fnc-toc ol { columns: 1; }
}
@media (max-width: 768px) {
	body { font-size: 17px; }
	.site-logo img, .header-image { height: 40px; }
	.fnc-search { flex-direction: column; }
	.fnc-search button { padding: 12px; }
	.inside-right-sidebar { position: static; }
}
