/*!
 * TopRankedGuides.com - Main Stylesheet
 * Expert Product Reviews & Buying Guides
 * Version 1.0
 */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #f5a623;
    --green: #27ae60;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border: #e9ecef;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --max-width: 1140px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }

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

/* ========== HEADER ========== */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    background: var(--primary);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
}
.logo span { color: var(--primary); }

.nav { display: flex; gap: 5px; align-items: center; }
.nav a {
    color: var(--text);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.nav a:hover, .nav a.active {
    background: var(--primary);
    color: #fff;
}

.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
    padding: 5px;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 30%, #1a3a5c 60%, #1a5276 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(26,115,232,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245,166,35,0.1) 0%, transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    text-decoration: none;
}
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,115,232,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1.1rem; }

/* ========== SECTION COMMON ========== */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}
.about-image {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    font-size: 7rem;
}
.about-text h3 { font-size: 1.5rem; margin-bottom: 15px; }
.about-text p { color: var(--text-light); margin-bottom: 15px; font-size: 1.05rem; line-height: 1.8; }

/* ========== PROCESS SECTION ========== */
.process-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
@media (max-width: 768px) {
    .process-content { grid-template-columns: 1fr; }
}
.process-image {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    font-size: 7rem;
    order: 2;
}
@media (max-width: 768px) {
    .process-image { order: 0; }
}
.process-text { order: 1; }
.process-text h3 { font-size: 1.5rem; margin-bottom: 15px; }
.process-text p { color: var(--text-light); margin-bottom: 15px; font-size: 1.05rem; line-height: 1.8; }

/* ========== VALUES SECTION ========== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.value-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.value-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ========== TEAM SECTION ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.team-card {
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 5px; }
.team-card .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.team-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ========== PAGE HERO (Inner Pages) ========== */
.page-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #1a3a5c 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.page-hero p {
    opacity: 0.85;
    font-size: 1.05rem;
}

/* ========== CONTENT PAGES ========== */
.content-section {
    padding: 50px 0;
}
.content-body {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.content-body h2 {
    font-size: 1.4rem;
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.content-body p { line-height: 1.8; color: #444; margin-bottom: 15px; }
.content-body ul, .content-body ol { margin: 12px 0 20px; padding-left: 25px; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { margin-bottom: 8px; color: #444; }
.content-body a { color: var(--primary); text-decoration: underline; }

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
}
.contact-card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 8px; }
.contact-card a { font-weight: 600; }

.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}
.contact-form-wrap h3 { margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.footer-col ul li { padding: 6px 0; font-size: 0.9rem; }
.footer-col ul li a { color: #ccc; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-bottom a { color: #ccc; }
.footer-bottom a:hover { color: #fff; }

.footer-disclosure {
    background: rgba(255,255,255,0.05);
    padding: 15px 0;
    margin-top: 15px;
}
.footer-disclosure p {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    line-height: 1.6;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
    display: none;
}
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top.visible { display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .content-body { padding: 25px; }
}
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 45px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .mobile-toggle { display: block; }
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    .content-body { padding: 20px; }
}
