/* ===========================
   Shared Page Styles
   Extracted from inline <style> blocks
   =========================== */

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
    z-index: 1001;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

/* Hamburger Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Sections --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-small {
    padding: 6rem 0 3rem;
    text-align: center;
    background: var(--primary-dark);
    color: white;
}

.hero-small h1,
.hero-small h2,
.hero-small p {
    color: white;
}

/* --- Calculator Styles --- */
.calculator-wrapper {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

/* --- Results Styles --- */
.results-container {
    margin-top: 2rem;
    padding: 2rem;
}

.results-container.hidden {
    display: none;
}

.result-highlight {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.result-highlight .value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.result-item {
    padding: 0.5rem 0;
}

.savings-banner {
    background: rgba(21, 152, 149, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--primary-dark);
}

.savings-banner.visible {
    display: flex;
}

.chart-container {
    margin-top: 2rem;
}

/* --- Grids --- */
.features-grid,
.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    padding: 2rem;
    text-align: center;
}

/* --- Content Pages (Articles, Sobre, etc.) --- */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
}

.content-section h2 {
    margin-top: 2rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: disc;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4,
.footer-col h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer-col ul {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-secondary);
}

.comparison-table th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: rgba(26, 95, 122, 0.03);
}

.comparison-table .highlight-row {
    background: rgba(21, 152, 149, 0.08);
    font-weight: 600;
}

/* --- Utility --- */
.text-secondary {
    color: var(--text-secondary);
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pt-5 {
    padding-top: 3rem;
}

/* --- Extracted Inline Styles --- */
.calc-header {
    padding-top: 2rem;
}

.trust-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    padding: 1.5rem;
    background: white;
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.85rem;
}

.profession-card {
    padding: 1.5rem;
    display: block;
    background: white;
}

.profession-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.profession-card p {
    font-size: 0.9rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-secondary);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.full-width-btn {
    width: 100%;
    margin-top: 1rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--bg-secondary);
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .result-highlight .value {
        font-size: 2.2rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-grid .result-item[style*="grid-column: span 2"] {
        grid-column: span 1;
    }

    .features-grid,
    .professions-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .content-section {
        padding: 1.5rem;
    }

    .hero-small {
        padding: 5rem 0 2rem;
    }

    .trust-item {
        min-width: 100%;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-form {
        padding: 1rem;
    }

    .result-highlight .value {
        font-size: 1.8rem;
    }

    .glass-card {
        border-radius: 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }
}