/* ═══════════════════════════════════════════════
   SEORANKING Blog — Minimal Clean Design
   ═══════════════════════════════════════════════ */

:root {
    --bg: #ffffff;
    --bg-alt: #f7f7f5;
    --surface: #ffffff;
    --border: #e8e8e6;
    --border-hover: #d4d4d0;

    --text: #111;
    --text-secondary: #555;
    --text-muted: #999;

    --accent: #e8590c;
    --accent-hover: #d14b07;
    --accent-bg: #fef3ee;
    --accent-border: #fdd5bf;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --max-w: 1080px;
    --radius: 10px;
    --radius-sm: 6px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    color-scheme: light;
}

body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Layout ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.87rem;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

.btn-loader {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ════════════════════════════════════════
   HEADER
   ════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 54px;
    max-width: 1200px;
    flex-wrap: nowrap;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 1.2rem;
    margin-left: auto;
    flex-wrap: nowrap;
}

nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--text);
}

.header-actions {
    margin-left: 1rem;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
    padding: 5rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.1s;
}

.hero-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 0.75rem 1.6rem;
    font-size: 0.9rem;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.3s;
}

.hero-highlight-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.hero-highlight-card .tag {
    margin-bottom: 0.5rem;
}

.hero-highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.hero-highlight-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.hero-mini-stats {
    display: flex;
    gap: 1rem;
}

.hero-mini-stat {
    flex: 1;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.hero-mini-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.hero-mini-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ════════════════════════════════════════
   STATS STRIP
   ════════════════════════════════════════ */
.stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    background: var(--bg-alt);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat strong {
    color: var(--text);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ════════════════════════════════════════
   SECTION TOPS
   ════════════════════════════════════════ */
.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-top h2 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ════════════════════════════════════════
   FEATURED POST
   ════════════════════════════════════════ */
.featured-post {
    display: block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: border-color 0.2s;
}

.featured-post:hover {
    border-color: var(--accent-border);
}

.fp-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
}

.fp-body .tag {
    margin-bottom: 0.5rem;
}

.featured-post h3 {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
    max-width: 680px;
    line-height: 1.3;
}

.featured-post p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    max-width: 620px;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent);
}

/* ════════════════════════════════════════
   POST CARDS
   ════════════════════════════════════════ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    transition: border-color 0.2s;
}

.post-card:hover {
    border-color: var(--accent-border);
}

.tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.post-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════
   TOPICS
   ════════════════════════════════════════ */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.topic-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.topic-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.topic-emoji {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.6rem;
}

.topic-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.topic-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ════════════════════════════════════════
   POPULAR GUIDES
   ════════════════════════════════════════ */
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.guide-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.guide-row:first-child {
    border-top: 1px solid var(--border);
}

.guide-row:hover {
    background: var(--bg-alt);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: var(--radius);
}

.guide-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--border);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.guide-body {
    flex: 1;
}

.guide-body .tag {
    margin-bottom: 0.3rem;
}

.guide-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.guide-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.guide-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.guide-row:hover .guide-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ════════════════════════════════════════
   TRUST / WHY SEOS READ US
   ════════════════════════════════════════ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
}

.trust-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
}

.trust-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ════════════════════════════════════════
   CONTACT — Two-column card
   ════════════════════════════════════════ */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-left {
    padding: 2.5rem;
}

.contact-left h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.contact-left>p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-reasons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-reasons li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
}

.contact-reasons li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.contact-right {
    padding: 2.5rem;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-method-icon svg {
    stroke: var(--accent);
}

.contact-method-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.contact-email-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    transition: opacity 0.15s;
}

.contact-email-link:hover {
    opacity: 0.8;
}

.contact-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.contact-response {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-email {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.footer-email:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   RESOURCES
   ════════════════════════════════════════ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.resource-card:hover {
    border-color: var(--accent-border);
}

.resource-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.resource-body h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.resource-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.6rem;
}

.resource-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════ */
.about-section {
    max-width: 640px;
}

.about-text h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

/* ════════════════════════════════════════
   SUBSCRIBE
   ════════════════════════════════════════ */
.subscribe-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.subscribe-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.subscribe-card>p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.subscribe-form input:focus {
    border-color: var(--accent);
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-feedback {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.form-feedback.success {
    color: #16a34a;
}

.form-feedback.error {
    color: #dc2626;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer {
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand .logo {
    margin-bottom: 0.4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.83rem;
}

.footer-cols {
    display: flex;
    gap: 3rem;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 1.5rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════
   SCROLL REVEAL (non-hero)
   ════════════════════════════════════════ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════
   MOBILE NAV
   ════════════════════════════════════════ */
body.nav-open nav {
    display: flex;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-right {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    nav {
        display: none;
        position: fixed;
        top: 54px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.2rem 1.5rem;
        gap: 0.8rem;
        z-index: 99;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        padding: 3.5rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .stats-row {
        gap: 1.2rem;
    }

    .section-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .posts-grid,
    .trust-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-row {
        gap: 1rem;
    }

    .guide-num {
        font-size: 1.2rem;
        width: 30px;
    }

    .guide-body h3 {
        font-size: 0.95rem;
    }

    .featured-post {
        padding: 1.5rem;
    }

    .featured-post h3 {
        font-size: 1.15rem;
    }

    .fp-badge {
        top: 0.8rem;
        right: 0.8rem;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-right {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-cols {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .subscribe-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .hero-mini-stats {
        flex-direction: column;
    }

    .contact-left,
    .contact-right {
        padding: 1.5rem;
    }
}