/* =====================================================
   Tax Suite by Bliven — Main Stylesheet
   ===================================================== */

/* ─── CSS Variables ────────────────────────────────── */
:root {
    --color-primary: #1a6b3c;
    --color-primary-dark: #145530;
    --color-primary-light: #e8f5ee;
    --color-accent: #e63946;
    --color-blue: #457b9d;
    --color-teal: #2a9d8f;
    --color-gold: #d4a017;
    --color-purple: #6a0572;
    --color-dark: #1a1a2e;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-border: #e5e5e5;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #1a1a2e;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --container-width: 1200px;
    --transition: 0.2s ease;
}

/* ─── Reset ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ─── Container ────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn--lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ─── Top Bar ──────────────────────────────────────── */
.topbar {
    background: var(--color-bg-dark);
    color: #ccc;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar__social { display: flex; gap: 1rem; }
.topbar__social a { color: #aaa; font-size: 0.75rem; font-weight: 600; }
.topbar__social a:hover { color: #fff; }

/* ─── Header ───────────────────────────────────────── */
.header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.header__logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.header__logo-main {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
}
.header__logo-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.header__nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.header__nav a:hover,
.header__nav a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.header__search-btn {
    color: var(--color-text-light);
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    transition: all var(--transition);
}
.header__search-btn:hover { color: var(--color-primary); background: var(--color-primary-light); }

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #16213e 100%);
    color: #fff;
    padding: 4rem 0;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__badge {
    display: inline-block;
    background: rgba(26, 107, 60, 0.3);
    color: #6fda97;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero__highlight { color: #6fda97; }
.hero p {
    font-size: 1.1rem;
    color: #b0b8c8;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Cards */
.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hero__card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}
.hero__card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}
.hero__card-icon { font-size: 2rem; }
.hero__card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.hero__card p { font-size: 0.8rem; color: #8b95a8; margin: 0; }

/* ─── Category Pills ───────────────────────────────── */
.categories-bar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}
.categories-bar__list {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}
.categories-bar__list::-webkit-scrollbar { display: none; }
.cat-pill {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid;
    transition: all var(--transition);
}
.cat-pill--red { color: #e63946; border-color: #e6394633; background: #e639460a; }
.cat-pill--red:hover { background: #e63946; color: #fff; }
.cat-pill--blue { color: #457b9d; border-color: #457b9d33; background: #457b9d0a; }
.cat-pill--blue:hover { background: #457b9d; color: #fff; }
.cat-pill--teal { color: #2a9d8f; border-color: #2a9d8f33; background: #2a9d8f0a; }
.cat-pill--teal:hover { background: #2a9d8f; color: #fff; }
.cat-pill--gold { color: #d4a017; border-color: #d4a01733; background: #d4a0170a; }
.cat-pill--gold:hover { background: #d4a017; color: #fff; }
.cat-pill--dark { color: #264653; border-color: #26465333; background: #2646530a; }
.cat-pill--dark:hover { background: #264653; color: #fff; }
.cat-pill--purple { color: #6a0572; border-color: #6a057233; background: #6a05720a; }
.cat-pill--purple:hover { background: #6a0572; color: #fff; }

/* ─── Sections ─────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}
.section__header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-dark);
}
.section__header--center { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.section__link { font-size: 0.9rem; font-weight: 600; color: var(--color-primary); }

/* ─── Article Cards ────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary-light), #d4f0e0);
}
.card__body { padding: 1.25rem; }
.card__category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0.5rem 0;
    line-height: 1.35;
}
.card__excerpt {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.card__meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ─── Journal CTA ──────────────────────────────────── */
.journal-cta {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 4rem 0;
}
.journal-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.journal-cta__badge {
    display: inline-block;
    background: rgba(106, 5, 114, 0.3);
    color: #d4a0ff;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.journal-cta h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.journal-cta p { color: #b0b8c8; line-height: 1.7; margin-bottom: 2rem; }

/* Journal Mockup */
.journal-cta__graphic { display: flex; justify-content: center; }
.journal-cta__mockup {
    width: 220px;
    height: 300px;
    perspective: 800px;
}
.journal-cta__cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--color-primary), #0d4f28);
    border-radius: 4px 12px 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.4), -2px 0 8px rgba(0,0,0,0.2);
    transform: rotateY(-8deg);
    transition: transform 0.4s ease;
    border-left: 4px solid rgba(0,0,0,0.2);
}
.journal-cta__cover:hover { transform: rotateY(0deg); }
.journal-cta__cover span { font-size: 0.9rem; color: #6fda97; letter-spacing: 0.2em; font-weight: 600; }
.journal-cta__cover strong { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.journal-cta__cover small { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ─── Features Grid ────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.feature {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); margin-bottom: 0.5rem; }
.feature p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.5; }

/* ─── Newsletter ───────────────────────────────────── */
.newsletter {
    background: var(--color-primary);
    color: #fff;
    padding: 3rem 0;
}
.newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.newsletter h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.3rem; }
.newsletter p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.newsletter__form {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.newsletter__form input[type="email"] {
    padding: 0.7rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    width: 280px;
    outline: none;
    transition: border var(--transition);
}
.newsletter__form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__form input[type="email"]:focus { border-color: #fff; }
.newsletter__form .btn { background: #fff; color: var(--color-primary); border-color: #fff; }
.newsletter__form .btn:hover { background: #e8f5ee; }

/* ─── Footer ───────────────────────────────────────── */
.footer { background: var(--color-bg-dark); color: #b0b8c8; padding: 3rem 0 0; }
.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.footer__logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer__logo .header__logo-main { color: #fff; }
.footer__brand p { font-size: 0.88rem; line-height: 1.6; max-width: 300px; }
.footer__links h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer__links a, .footer__links p {
    display: block;
    color: #8b95a8;
    font-size: 0.88rem;
    padding: 0.25rem 0;
    transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    font-size: 0.82rem;
    color: #666;
}

/* ─── Flash Messages ───────────────────────────────── */
.flash {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid;
}
.flash--success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.flash--error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.flash--warning { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.flash--info { background: #d1ecf1; color: #0c5460; border-color: #bee5eb; }
.flash__close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}
.flash__close:hover { opacity: 1; }

/* ─── Responsive ───────────────────────────────────── */

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero p { max-width: 100%; }
    .hero__actions { justify-content: center; }
    .hero__visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .hero__card { flex: 1; min-width: 200px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .journal-cta__inner { grid-template-columns: 1fr; text-align: center; }
    .journal-cta__graphic { margin-top: 1rem; }
}

@media (max-width: 768px) {
    /* Show hamburger */
    .header__hamburger { display: flex; }
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .header__nav.open { display: flex; }
    .header__nav a { padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
    .header__inner { position: relative; }

    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero__card { min-width: 100%; }

    .articles-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }

    .newsletter__inner { flex-direction: column; text-align: center; }
    .newsletter__form { flex-direction: column; width: 100%; }
    .newsletter__form input[type="email"] { width: 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.65rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .section__header { flex-direction: column; gap: 0.5rem; }
}
