@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
    --primary: #c41e3a;
    --primary-light: #d64359;
    --black: #1a1a1a;
    --charcoal: #2c2c2c;
    --white: #ffffff;
    --off-white: #f8f8f6;
    --light-gray: #f2f2f0;
    --silver: #c0c0c0;
    --silver-light: #e0e0e0;
    --text: #333333;
    --text-light: #666666;
}

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

body {
    font-family: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--silver);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--black);
    letter-spacing: 1px;
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background: var(--light-gray);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 60px 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--black);
}

.hero h1 span {
    color: var(--primary);
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: var(--primary);
    margin: 30px auto;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--charcoal);
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-light {
    background: var(--off-white);
}

.section-gray {
    background: var(--light-gray);
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--black);
}

.section-dark .section-heading h2 {
    color: var(--white);
}

.section-heading p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.section-dark .section-heading p {
    color: rgba(255,255,255,0.7);
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 20px auto 0;
}

/* ===== SERVICES ===== */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-box {
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--silver);
    transition: all 0.3s;
}

.service-box:hover {
    border-color: var(--primary);
}

.section-dark .service-box {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.section-dark .service-box:hover {
    background: rgba(255,255,255,0.08);
}

.service-box h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.section-dark .service-box p {
    color: rgba(255,255,255,0.8);
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: var(--black);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-text .btn {
    margin-top: 20px;
}

.about-image {
    background: var(--light-gray);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--silver);
}

.about-image span {
    color: var(--primary);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 5rem;
    font-weight: 300;
}

/* ===== TEAM ===== */
.team-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    background: var(--light-gray);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--silver);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
}

.team-photo .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-size: 3rem;
}

.team-member h3 {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--black);
}

.team-member .title {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== INSIGHTS ===== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insight-card {
    background: var(--white);
    border: 1px solid var(--silver);
    transition: border-color 0.3s;
}

.insight-card:hover {
    border-color: var(--primary);
}

.insight-image {
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-image .placeholder {
    color: var(--silver);
    font-size: 2rem;
}

.insight-content {
    padding: 25px;
}

.insight-date {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.insight-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.4;
}

.insight-card h3 a {
    color: var(--black);
}

.insight-card h3 a:hover {
    color: var(--primary);
}

.insight-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--black);
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ===== PAGE HEADER ===== */
.page-hero {
    background:
        url("../images/topo-peaks.svg") center bottom / cover no-repeat,
        linear-gradient(135deg, var(--light-gray) 0%, var(--off-white) 50%, var(--light-gray) 100%);
    background-size: cover, 200% 200%;
    animation: subtleShift 8s ease infinite;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

@keyframes subtleShift {
    0% { background-position: center bottom, 0% 50%; }
    50% { background-position: center bottom, 100% 50%; }
    100% { background-position: center bottom, 0% 50%; }
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--black);
}

.page-hero .breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
}

.page-hero .breadcrumb a {
    color: var(--text-light);
}

.page-hero .breadcrumb a:hover {
    color: var(--primary);
}

/* ===== CONTACT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-details {
    background: var(--light-gray);
    padding: 40px;
    border: 1px solid var(--silver);
}

.contact-details h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--black);
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--primary);
    width: 20px;
    margin-right: 15px;
}

.contact-item span {
    color: var(--text);
}

.contact-form h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--black);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--silver);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 18px;
    margin-bottom: 25px;
    border-left: 3px solid;
}

.alert-success {
    background: #f0f9f0;
    border-color: #2e7d32;
    color: #2e7d32;
}

.alert-error {
    background: #fdf0f0;
    border-color: #c41e3a;
    color: #c41e3a;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--silver);
    font-size: 0.9rem;
}

.pagination a:hover,
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ===== ARTICLE SINGLE ===== */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.article-page img {
    width: 100%;
    margin-bottom: 35px;
}

.article-page h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--black);
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--silver);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 20px;
}

/* ===== MAP ===== */
.map-container {
    border: 1px solid var(--silver);
}

.map-container iframe {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .site-header {
        position: relative;
    }

    .main-nav {
        position: static;
    }

    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px 40px;
        gap: 15px;
        border-bottom: 1px solid var(--silver);
        z-index: 1000;
    }

    .main-nav ul.show {
        display: flex;
    }

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

    .section-heading h2 {
        font-size: 1.7rem;
    }

    .team-list {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* ===== TAX CALCULATOR ===== */
.tax-calculator {
    background: var(--white);
    border: 1px solid var(--silver);
    margin-bottom: 50px;
}

.calc-header {
    padding: 30px 40px;
    border-bottom: 1px solid var(--silver-light);
    background: var(--off-white);
}

.calc-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--black);
}

.calc-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.calc-form {
    padding: 30px 40px;
    border-right: 1px solid var(--silver-light);
}

.calc-results {
    padding: 30px 40px;
    background: var(--off-white);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.required-label {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.optional-label {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.method-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--silver);
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.method-btn:hover {
    border-color: var(--primary);
}

.method-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.method-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.calc-form .form-group {
    margin-bottom: 18px;
}

.calc-form .form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}

.calc-form .form-group input,
.calc-form .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--silver);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.calc-form .form-group input:focus,
.calc-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-form .form-group small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.calc-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Collapsible sections */
.collapsible .collapsible-header {
    cursor: pointer;
    user-select: none;
}

.collapsible .collapsible-header i {
    margin-left: auto;
    transition: transform 0.3s;
    color: var(--text-light);
}

.collapsible.open .collapsible-header i {
    transform: rotate(180deg);
}

.collapsible .collapsible-content {
    display: none;
    padding-top: 15px;
}

.collapsible.open .collapsible-content {
    display: block;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* Results panel */
.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: var(--text-light);
}

.results-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.results-placeholder p {
    font-size: 0.95rem;
}

.results-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--black);
}

.result-method {
    background: var(--white);
    padding: 12px 15px;
    border-left: 3px solid var(--primary);
    margin-bottom: 25px;
}

.result-method strong {
    display: block;
    font-size: 0.95rem;
    color: var(--black);
}

.result-method span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.result-breakdown {
    margin-bottom: 25px;
}

.breakdown-section {
    margin-bottom: 20px;
}

.breakdown-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--silver-light);
}

.breakdown-row span:first-child {
    color: var(--text-light);
}

.breakdown-row span:last-child {
    color: var(--text);
    font-weight: 400;
}

.breakdown-row.total {
    border-bottom: none;
    padding-top: 10px;
    margin-top: 5px;
    border-top: 1px solid var(--silver);
}

.breakdown-row.total span {
    font-weight: 600;
    color: var(--black);
}

.progressive-detail {
    margin-top: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--silver-light);
}

.progressive-detail h5 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.bracket-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.bracket-row span:last-child {
    text-align: right;
    color: var(--text);
}

.result-final {
    background: var(--white);
    padding: 20px;
    border: 1px solid var(--silver);
}

.final-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.final-row span:first-child {
    color: var(--text-light);
}

.final-row.highlight {
    background: var(--primary);
    color: var(--white);
    margin: 10px -20px;
    padding: 15px 20px;
}

.final-row.highlight span {
    color: var(--white);
    font-weight: 600;
}

.final-row.net span:last-child {
    color: #2e7d32;
    font-weight: 600;
}

.result-notes {
    margin-top: 20px;
    padding: 15px;
    background: var(--light-gray);
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

.result-notes strong {
    color: var(--text);
}

/* Tax info cards */
.tax-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-card {
    padding: 30px;
    background: var(--off-white);
    border: 1px solid var(--silver-light);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--black);
}

.info-card h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.7;
}

.tax-brackets,
.ptkp-list {
    list-style: none;
}

.tax-brackets li,
.ptkp-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--silver-light);
}

.tax-brackets li:last-child,
.ptkp-list li:last-child {
    border-bottom: none;
}

.tax-brackets li span:first-child,
.ptkp-list li span:first-child {
    color: var(--text-light);
}

.tax-brackets li span:last-child,
.ptkp-list li span:last-child {
    font-weight: 600;
    color: var(--primary);
}

/* ===== TAX TOOLS LANDING PAGE ===== */
.tax-tools-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--silver-light);
}

.category-title i {
    color: var(--primary);
    margin-right: 10px;
}

.tax-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tax-tool-card {
    display: block;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--silver);
    transition: border-color 0.3s;
    text-decoration: none;
}

.tax-tool-card:hover {
    border-color: var(--primary);
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.tax-tool-card h4 {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 10px;
}

.tax-tool-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.tool-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tool-link i {
    font-size: 0.75rem;
}

.tax-disclaimer {
    margin-top: 50px;
    padding: 25px 30px;
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 4px solid #ffcc02;
}

.tax-disclaimer h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
}

.tax-disclaimer h4 i {
    margin-right: 8px;
}

.tax-disclaimer p {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .tax-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tax-tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tax-tools-category {
        margin-bottom: 35px;
    }

    .category-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .tax-tool-card {
        padding: 20px;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }

    .tool-icon i {
        font-size: 1.1rem;
    }

    .tax-tool-card h4 {
        font-size: 1rem;
    }

    .tax-tool-card p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .tax-disclaimer {
        margin-top: 30px;
        padding: 20px;
    }

    .tax-disclaimer h4 {
        font-size: 0.9rem;
    }

    .tax-disclaimer p {
        font-size: 0.85rem;
    }
}

/* ===== TAX CALENDAR ===== */
.tax-calendar-intro {
    text-align: center;
    margin-bottom: 50px;
}

.tax-calendar-intro h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--black);
}

.tax-calendar-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.calendar-section {
    margin-bottom: 50px;
}

.calendar-section h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--silver-light);
}

.calendar-section h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.deadline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.deadline-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--silver);
    transition: border-color 0.3s;
}

.deadline-card:hover {
    border-color: var(--primary);
}

.deadline-card.annual {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

.deadline-card.quarterly {
    background: linear-gradient(135deg, #f5f0ff 0%, var(--white) 100%);
}

.deadline-date {
    min-width: 60px;
    padding: 10px 15px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deadline-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.deadline-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--white);
    border: 1px solid var(--silver);
    border-left: 4px solid var(--silver);
}

.upcoming-item.past {
    opacity: 0.6;
    border-left-color: var(--silver);
}

.upcoming-item.today {
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.05) 0%, var(--white) 100%);
}

.upcoming-item.upcoming {
    border-left-color: #2e7d32;
}

.upcoming-date {
    min-width: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.upcoming-info {
    flex: 1;
}

.upcoming-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 3px;
}

.upcoming-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.upcoming-status {
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.upcoming-item.past .upcoming-status {
    background: var(--light-gray);
    color: var(--text-light);
}

.upcoming-item.today .upcoming-status {
    background: var(--primary);
    color: var(--white);
}

.upcoming-item.upcoming .upcoming-status {
    background: #e8f5e9;
    color: #2e7d32;
}

.penalty-info {
    margin-top: 50px;
    padding: 30px;
    background: #fff8e1;
    border: 1px solid #ffcc02;
}

.penalty-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: 25px;
}

.penalty-info h3 i {
    margin-right: 10px;
}

.penalty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.penalty-card {
    padding: 20px;
    background: var(--white);
    border: 1px solid #ffcc02;
}

.penalty-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
}

.penalty-card p {
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .deadline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .penalty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tax-calendar-intro {
        margin-bottom: 30px;
    }

    .tax-calendar-intro h2 {
        font-size: 1.5rem;
    }

    .tax-calendar-intro p {
        font-size: 0.9rem;
    }

    .calendar-section {
        margin-bottom: 35px;
    }

    .calendar-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .deadline-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .deadline-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .deadline-date {
        width: fit-content;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .deadline-info h4 {
        font-size: 0.95rem;
    }

    .deadline-info p {
        font-size: 0.8rem;
    }

    .upcoming-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 20px;
    }

    .upcoming-date {
        font-size: 1.2rem;
    }

    .upcoming-info h4 {
        font-size: 0.95rem;
    }

    .upcoming-info p {
        font-size: 0.8rem;
    }

    .upcoming-status {
        padding: 4px 12px;
        font-size: 0.7rem;
    }

    .penalty-info {
        margin-top: 30px;
        padding: 20px;
    }

    .penalty-info h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .penalty-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .penalty-card {
        padding: 15px;
    }

    .penalty-card h4 {
        font-size: 0.85rem;
    }

    .penalty-card p {
        font-size: 0.8rem;
    }
}

/* NPWP Validator Styles */
.npwp-input {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .npwp-input {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

.result-method.valid strong {
    color: #2e7d32;
}

.result-method.invalid strong {
    color: #c41e3a;
}

.result-final.valid {
    border-color: #2e7d32;
}

.result-final.invalid {
    border-color: #c41e3a;
}

/* Legal References */
.legal-references {
    margin-top: 40px;
    padding: 30px;
    background: var(--off-white);
    border: 1px solid var(--silver-light);
}

.legal-references h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
}

.legal-references h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.legal-references ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.legal-references li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid var(--silver-light);
}

.legal-references li strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .legal-references ul {
        grid-template-columns: 1fr;
    }
}

/* Tax calculator responsive */
@media (max-width: 1024px) {
    .calc-body {
        grid-template-columns: 1fr;
    }

    .calc-form {
        border-right: none;
        border-bottom: 1px solid var(--silver-light);
    }

    .tax-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Calculator header */
    .calc-header {
        padding: 20px;
    }

    .calc-header h2 {
        font-size: 1.2rem;
    }

    .calc-header p {
        font-size: 0.85rem;
    }

    /* Calculator form */
    .calc-form,
    .calc-results {
        padding: 20px;
    }

    .form-section {
        margin-bottom: 25px;
    }

    .form-section h3 {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .calc-form .form-group {
        margin-bottom: 15px;
    }

    .calc-form .form-group label {
        font-size: 0.8rem;
    }

    .calc-form .form-group input,
    .calc-form .form-group select {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .calc-form .form-row {
        grid-template-columns: 1fr;
    }

    .method-toggle {
        flex-direction: column;
    }

    .method-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    /* Results panel */
    .results-placeholder {
        min-height: 200px;
    }

    .results-placeholder i {
        font-size: 2.5rem;
    }

    .results-content h3 {
        font-size: 1.1rem;
    }

    .result-method {
        padding: 10px 12px;
        margin-bottom: 20px;
    }

    .result-method strong {
        font-size: 0.9rem;
    }

    .result-method span {
        font-size: 0.8rem;
    }

    .breakdown-section h4 {
        font-size: 0.75rem;
    }

    .breakdown-row {
        padding: 6px 0;
        font-size: 0.85rem;
    }

    .bracket-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
    }

    .bracket-row span:last-child {
        text-align: left;
    }

    .result-final {
        padding: 15px;
    }

    .final-row {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .final-row.highlight {
        margin: 10px -15px;
        padding: 12px 15px;
    }

    .result-notes {
        padding: 12px;
        font-size: 0.75rem;
    }

    /* Tax info cards */
    .tax-info {
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .info-card p {
        font-size: 0.85rem;
    }

    .tax-brackets li,
    .ptkp-list li {
        padding: 6px 0;
        font-size: 0.8rem;
    }

    /* Legal references */
    .legal-references {
        padding: 20px;
        margin-top: 30px;
    }

    .legal-references h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .legal-references li {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    /* Page hero for tax tools */
    .page-hero {
        padding: 100px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero .breadcrumb {
        font-size: 0.8rem;
    }

    /* Progressive detail table */
    .progressive-detail {
        padding: 12px;
        margin-top: 12px;
    }

    .progressive-detail h5 {
        font-size: 0.75rem;
    }
}
