/* HVAC Calculator - Global Styles */

.lang-switch {
    background: rgba(0,0,0,0.03);
}
.lang-switch a {
    color: #0f766e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.lang-switch a:hover {
    text-decoration: underline;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
    color: white;
}

.site-header h1 {
    color: white;
    font-weight: 700;
}

.site-header .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-intro {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1rem;
    line-height: 1.7;
}

.site-intro p {
    margin-bottom: 0;
}

.site-intro strong {
    color: rgba(255, 255, 255, 0.95);
}

.site-about p {
    line-height: 1.7;
    color: #495057;
}

.site-footer {
    margin-top: auto;
}

/* Calculator Page Header */
.calculator-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
    color: white;
    padding: 30px 0;
}

.calculator-page-header h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.calculator-page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.calculator-page-header .back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.calculator-page-header .back-link:hover {
    color: white;
    text-decoration: underline;
}

.calculator-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border-radius: 12px;
}

.calculator-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.result-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-error {
    border: 1px solid #f1aeb5;
    border-radius: 8px;
    font-weight: 500;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #495057;
    font-weight: 500;
}

.result-value {
    color: #0f766e;
    font-size: 1.3rem;
    font-weight: 700;
}

.result-unit {
    color: #6c757d;
    margin-left: 4px;
    font-weight: 500;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.calculator-card-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.calculator-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.16);
    text-decoration: none;
    color: inherit;
}

.calculator-card-item h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.calculator-card-item p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.guide-link {
    display: block;
    padding: 16px 18px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.guide-link:hover {
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.35);
}

.badge-category {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
    border: none;
}

.calculator-card-item-wrapper {
    position: relative;
}

.container {
    max-width: 1000px;
}

/* Form elements enhancements */
.form-control:focus, .form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.18);
}

.btn-primary {
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border-width: 2px;
    font-weight: 500;
}

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

    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-value {
        margin-top: 6px;
    }
    
    .calculator-page-header {
        padding: 24px 0;
    }
}

.calculator-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.calculator-content h2,
.calculator-content h3 {
    color: #0f172a;
}

.calculator-content p,
.calculator-content li {
    color: #475569;
    line-height: 1.72;
}

.calculator-content a,
.footer-links a,
.guide-page a:not(.btn) {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.calculator-content a:hover,
.footer-links a:hover,
.guide-page a:not(.btn):hover {
    text-decoration: underline;
}

.guide-page {
    max-width: 860px;
}

.guide-page h1 {
    color: #0f172a;
    font-weight: 750;
}

.guide-page .lead {
    color: #475569;
}

/* Gray CTA for lead generation */
.cta-lead-gen {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
}
.cta-lead-gen p {
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}
.cta-lead-gen a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}
.cta-lead-gen a:hover {
    text-decoration: underline;
}

/* Commercial mode toggle */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}
.mode-toggle label {
    cursor: pointer;
    color: #475569;
    margin: 0;
}
.mode-toggle input[type="checkbox"] {
    cursor: pointer;
    accent-color: #0f766e;
}
