/* ── onlinehosting.org — global stylesheet ─────────────────────── */

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy:        #0b1f3a;
    --navy-light:  #14304f;
    --navy-mid:    #1f4068;
    --steel:       #3d5a80;
    --blue:        #2563eb;
    --blue-dark:   #1d4ed8;
    --blue-light:  #dbeafe;
    --orange:      #f59e0b;
    --orange-dark: #d97706;
    --orange-light:#fef3c7;
    --green:       #059669;
    --green-light: #d1fae5;
    --red:         #dc2626;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(11,31,58,.08), 0 4px 16px rgba(11,31,58,.06);
    --shadow-lg: 0 4px 12px rgba(11,31,58,.1), 0 12px 32px rgba(11,31,58,.1);
    --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.2rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.3rem; margin-bottom: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / nav ──────────────────────────────────────────────── */

.site-header {
    background: var(--navy);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }

.site-logo { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.site-logo:hover { text-decoration: none; }
.site-logo strong { color: var(--orange); font-weight: 800; }
.site-logo em { font-style: normal; color: var(--gray-300); font-size: .85em; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav > a, .nav-item > a { color: var(--gray-200); font-weight: 600; font-size: .95rem; padding: .4rem 0; }
.site-nav > a:hover, .nav-item > a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: var(--orange); }

.nav-item { position: relative; }
.nav-dropdown {
    display: none; position: absolute; top: 100%; left: -1rem;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: .5rem 0; min-width: 250px; max-height: 70vh; overflow-y: auto;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.open .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: .45rem 1.1rem; color: var(--gray-700); font-size: .92rem; font-weight: 500; }
.nav-dropdown a:hover { background: var(--gray-100); color: var(--navy); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--navy-light); flex-direction: column; align-items: stretch;
        gap: 0; padding: .5rem 0 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.3);
    }
    .site-nav.open { display: flex; }
    .site-nav > a, .nav-item > a { display: block; padding: .7rem 1.5rem; }
    .nav-dropdown { position: static; box-shadow: none; background: transparent; padding-left: 1rem; max-height: none; }
    .nav-dropdown a { color: var(--gray-300); }
    .nav-dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 70%, var(--steel) 100%);
    color: #fff; padding: 3.5rem 0 3rem; text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .9rem; }
.hero p { color: var(--gray-200); max-width: 720px; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.hero .hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.hero .hero-badges span {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px; padding: .35rem .95rem; font-size: .85rem; font-weight: 600;
}

.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%); color: #fff; padding: 2.4rem 0 2rem; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: var(--gray-200); max-width: 780px; margin-bottom: 0; }
.page-hero .breadcrumbs { margin-bottom: 1rem; }

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
    display: inline-block; padding: .7rem 1.5rem; border-radius: 8px;
    font-weight: 700; font-size: .95rem; text-align: center;
    transition: .15s; cursor: pointer; border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--gray-300); color: var(--gray-700); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-full { display: block; width: 100%; }

/* ── Rating badges & bars ──────────────────────────────────────── */

.rating-badge {
    display: inline-block; min-width: 2.6em; text-align: center;
    padding: .18em .45em; border-radius: 7px; font-weight: 800; font-size: .95rem;
    color: #fff; line-height: 1.3;
}
.rating-excellent { background: var(--green); }
.rating-great     { background: #0891b2; }
.rating-good      { background: var(--blue); }
.rating-fair      { background: var(--gray-500); }
.rating-lg { font-size: 1.35rem; padding: .25em .5em; border-radius: 9px; }

.host-stars { color: var(--orange); font-size: .9rem; letter-spacing: .1em; display: block; margin-top: .25rem; }

.rating-bars { margin: 1.2rem 0; }
.rating-bar-row { display: grid; grid-template-columns: 120px 1fr 42px; align-items: center; gap: .8rem; margin-bottom: .55rem; }
.rating-bar-label { font-size: .88rem; font-weight: 600; color: var(--gray-700); }
.rating-bar-track { background: var(--gray-200); border-radius: 100px; height: 10px; overflow: hidden; }
.rating-bar-fill { background: linear-gradient(90deg, var(--blue), var(--green)); height: 100%; border-radius: 100px; }
.rating-bar-score { font-weight: 700; font-size: .9rem; text-align: right; color: var(--navy); }

/* ── Ad slots (reserved space prevents CLS) ────────────────────── */

.ad-slot {
    min-height: 280px; margin: 2rem 0; display: flex; align-items: center; justify-content: center;
    background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: 8px; overflow: hidden;
}
.ad-slot ins { width: 100%; }

/* ── Disclosure note ───────────────────────────────────────────── */

.disclosure-note {
    background: var(--gray-50); border: 1px solid var(--gray-200); border-left: 4px solid var(--orange);
    border-radius: 8px; padding: .8rem 1.1rem; font-size: .86rem; color: var(--gray-500);
    margin: 1.4rem 0;
}

/* ── Breadcrumbs ───────────────────────────────────────────────── */

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; font-size: .85rem; }
.breadcrumbs li + li::before { content: '›'; margin-right: .35rem; color: var(--gray-300); }
.page-hero .breadcrumbs a { color: var(--gray-300); }
.page-hero .breadcrumbs span { color: #fff; }
.breadcrumbs a { color: var(--gray-500); }

/* ── Host cards ────────────────────────────────────────────────── */

.host-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.6rem; margin-bottom: 1.5rem;
    display: grid; grid-template-columns: 1fr 190px; gap: 1.5rem; position: relative;
}
.host-card-top { border: 2px solid var(--orange); box-shadow: var(--shadow-lg); }
.host-rank {
    position: absolute; top: -13px; left: 1.2rem;
    background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem;
    border-radius: 100px; padding: .2rem .9rem;
}
.host-card-top .host-rank { background: var(--orange); color: var(--navy); }

.host-card-head { display: flex; align-items: flex-start; gap: .9rem; }
.host-logo { font-size: 2.1rem; line-height: 1; }
.host-card-name { margin: 0; font-size: 1.3rem; }
.host-card-name a { color: var(--navy); }
.host-card-tagline { color: var(--gray-500); font-size: .9rem; margin: 0; }
.host-card-score { margin-left: auto; text-align: center; }

.host-card-bestfor { font-size: .92rem; margin: .8rem 0 .6rem; color: var(--gray-700); }

.host-card-specs { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; font-size: .87rem; color: var(--gray-500); margin-bottom: .9rem; }
.host-card-specs strong { color: var(--navy); }

.host-card-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pros-list, .cons-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.pros-list li, .cons-list li { padding-left: 1.4rem; position: relative; margin-bottom: .35rem; }
.pros-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cons-list li::before { content: '✕'; position: absolute; left: 0; color: var(--red); font-weight: 800; }

.host-card-actions { display: flex; flex-direction: column; gap: .6rem; justify-content: center; }

@media (max-width: 760px) {
    .host-card { grid-template-columns: 1fr; }
    .host-card-proscons { grid-template-columns: 1fr; gap: .4rem; }
    .host-card-head { flex-wrap: wrap; }
}

/* ── Tables ────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; min-width: 760px; }
.comparison-table th {
    background: var(--navy); color: #fff; text-align: left;
    padding: .75rem .9rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.comparison-table td { padding: .8rem .9rem; border-bottom: 1px solid var(--gray-200); vertical-align: middle; white-space: nowrap; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table tr:hover td { background: var(--gray-50); }
.comparison-table .row-top td { background: var(--orange-light); }
.comparison-table .row-top:hover td { background: var(--orange-light); }
.td-rank { font-weight: 800; color: var(--gray-500); }
.td-host a { font-weight: 700; color: var(--navy); }
.td-win { background: var(--green-light) !important; font-weight: 700; }

.vs-table { min-width: 640px; }
.vs-table td:first-child { font-weight: 600; color: var(--gray-700); white-space: normal; }

/* ── FAQ accordion ─────────────────────────────────────────────── */

.faq-list { margin: 1.2rem 0; }
.faq-item { border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: .7rem; background: #fff; }
.faq-item summary {
    cursor: pointer; padding: .95rem 1.2rem; font-weight: 700; color: var(--navy);
    list-style: none; position: relative; padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.1rem; top: .8rem; font-size: 1.3rem; color: var(--blue); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 1.2rem 1rem; margin: 0; color: var(--gray-700); font-size: .95rem; }

/* ── Layout: content + sidebar ─────────────────────────────────── */

.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.content-with-sidebar > * { min-width: 0; } /* let the 1fr track shrink below nowrap-table min-content */
.content-sidebar { position: sticky; top: 90px; }
@media (max-width: 900px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .content-sidebar { display: none; }
}

.sidebar-card {
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.4rem; margin-bottom: 1.2rem;
}
.sidebar-card h3 { margin-top: 0; font-size: 1.05rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: .55rem; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

.sidebar-cta { background: var(--navy); color: #fff; text-align: center; }
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: var(--gray-300); font-size: .88rem; }

/* ── Sections / grids ──────────────────────────────────────────── */

.section { padding: 3rem 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--gray-500); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; margin: 1.6rem 0; }
.category-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.3rem; box-shadow: var(--shadow); transition: .15s; display: block; color: inherit;
}
.category-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--blue); }
.category-card .cat-icon { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.category-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.category-card p { color: var(--gray-500); font-size: .86rem; margin: 0; }

.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin: 1.6rem 0; }
.compare-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.2rem 1.3rem; box-shadow: var(--shadow); display: block; color: inherit; transition: .15s;
}
.compare-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-color: var(--blue); }
.compare-card .vs-names { font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.compare-card .vs-badge { color: var(--orange); font-weight: 800; padding: 0 .4rem; }
.compare-card p { color: var(--gray-500); font-size: .85rem; margin: .4rem 0 0; }

/* ── Review page specifics ─────────────────────────────────────── */

.review-summary-box {
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.5rem; margin: 1.5rem 0; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center;
}
@media (max-width: 640px) { .review-summary-box { grid-template-columns: 1fr; text-align: center; } }
.review-score-big { text-align: center; }
.review-score-big .rating-badge { font-size: 2.2rem; padding: .3em .45em; }

.verdict-box {
    border-left: 4px solid var(--blue); background: var(--blue-light);
    border-radius: 0 8px 8px 0; padding: 1.1rem 1.3rem; margin: 1.4rem 0; font-size: .98rem;
}

.plans-table th:first-child { min-width: 130px; }

.proscons-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin: 1.4rem 0; }
@media (max-width: 700px) { .proscons-cols { grid-template-columns: 1fr; } }
.proscons-cols h3 { margin-top: 0; }

/* ── Prose pages ───────────────────────────────────────────────── */

.prose { max-width: 800px; }
.prose h2 { border-bottom: 2px solid var(--gray-200); padding-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.prose table th, .prose table td { border: 1px solid var(--gray-200); padding: .6rem .8rem; text-align: left; }
.prose table th { background: var(--gray-100); }

/* ── Footer ────────────────────────────────────────────────────── */

.site-footer { background: var(--navy); color: var(--gray-300); margin-top: 4rem; padding: 3rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-col h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: var(--gray-300); }
.footer-col a:hover { color: var(--orange); }
.footer-logo { margin-bottom: .8rem; }
.footer-about p { font-size: .86rem; }
.footer-about a { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--navy-mid); padding-top: 1.4rem; font-size: .8rem; color: var(--gray-500); }
.footer-bottom p { margin: 0; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
