/*
 * Holland Strategic Wealth Advisors - Theme Styles
 * Light professional theme matching hswa.money design
 */

/* Google Fonts - Inter (matching hswa.money) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* HSWA Color Palette - EXACT MATCH from hswa.money */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --bg-dark: #002335;
    --bg-dark-secondary: #064860;
    --accent-primary: #2ea3f2;
    --accent-secondary: #002335;
    --accent-teal: #328a7a;
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;
    --border-color: #dddddd;
    --border-light: #e2e2e2;
    --border-lighter: #eeeeee;
    --input-border: #bbbbbb;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    --shadow-inset: inset 0 0 7px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #666666;
    min-height: 100vh;
    line-height: 1.7em;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ===== ABSTRACT FINANCIAL PEAKS BACKGROUND ===== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Abstract mountain peaks as ascending financial chart lines */
    background:
        /* Top-right decorative peak cluster - more visible */
        linear-gradient(215deg, rgba(0, 35, 53, 0.08) 0%, transparent 50%),
        /* Bottom-left subtle peak - more visible */
        linear-gradient(35deg, rgba(46, 163, 242, 0.06) 0%, transparent 40%),
        /* Main background gradient */
        linear-gradient(180deg, #f8fafc 0%, #e8f4fc 100%);
}

/* SVG Pattern overlay for grid/graph paper effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23002335' stroke-width='0.4' opacity='0.12'%3E%3Cpath d='M0 30 L60 30'/%3E%3Cpath d='M30 0 L30 60'/%3E%3C/g%3E%3C/svg%3E");
}

/* Abstract Financial Peaks - Bottom decoration */
.page-peaks-decoration {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 280px;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Layer 1 - Distant peaks (slowest, largest) */
.page-peaks-decoration::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 280' preserveAspectRatio='none'%3E%3Cpath d='M0,280 L0,180 L100,160 L200,120 L300,140 L400,80 L500,100 L600,60 L700,90 L800,50 L900,70 L1000,100 L1100,130 L1200,180 L1200,280 Z' fill='%23002335' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
    animation: peaksScroll1 60s linear infinite;
}

/* Layer 2 - Mid-distance peaks */
.page-peaks-decoration::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 70%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0,200 L0,140 L80,120 L160,90 L240,110 L320,70 L400,85 L480,50 L560,75 L640,40 L720,60 L800,80 L880,100 L960,120 L1040,140 L1120,160 L1200,140 L1200,200 Z' fill='%23328a7a' fill-opacity='0.10'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
    animation: peaksScroll2 45s linear infinite;
}

/* Layer 3 - Near peaks (via span element) */
.page-peaks-decoration .peaks-layer-3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 45%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 130' preserveAspectRatio='none'%3E%3Cpath d='M0,130 L0,90 L60,80 L120,60 L180,75 L240,50 L300,65 L360,40 L420,55 L480,35 L540,50 L600,60 L660,75 L720,85 L780,95 L840,80 L900,65 L960,50 L1020,60 L1080,75 L1140,90 L1200,90 L1200,130 Z' fill='%232ea3f2' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
    animation: peaksScroll3 30s linear infinite;
}

/* Layer 4 - Foreground hills */
.page-peaks-decoration .peaks-layer-4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 25%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 L0,50 L100,45 L200,35 L300,40 L400,30 L500,35 L600,25 L700,30 L800,35 L900,40 L1000,45 L1100,50 L1200,50 L1200,70 Z' fill='%23001a28' fill-opacity='0.06'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
    animation: peaksScroll4 20s linear infinite;
}

/* Horizontal scroll animations - different speeds create parallax depth */
@keyframes peaksScroll1 {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes peaksScroll2 {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes peaksScroll3 {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes peaksScroll4 {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Accessibility - Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-peaks-decoration::before,
    .page-peaks-decoration::after,
    .page-peaks-decoration .peaks-layer-3,
    .page-peaks-decoration .peaks-layer-4 {
        animation: none;
    }
}

/* ===== ACCESSIBILITY FEATURES ===== */

/* Skip Navigation Link - WCAG 2.4.1 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 3px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced Focus Indicators - WCAG 2.4.7 */
*:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(46, 163, 242, 0.15);
}

button:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(46, 163, 242, 0.2);
}

a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ===== LAYOUT ===== */

.container {
    max-width: 1080px;
    width: 80%;
    margin: 0 auto;
    padding: 4%;
    position: relative;
    z-index: 1;
}

/* ===== SITE HEADER - MULTI-PART STRUCTURE ===== */

/* Top Utility Bar - Dark navy with phone/links */
.utility-bar {
    background: #002335;
    padding: 8px 0;
    font-size: 13px;
}

.utility-bar .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.utility-bar-phone {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.utility-bar-phone svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.utility-bar-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.utility-bar-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.utility-bar-links a:hover {
    color: #2ea3f2;
}

.utility-bar-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* Main Header - Dark navy background matching hswa.money */
.site-header {
    background: #002335;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 20px 0;
    border-bottom: none;
}

.header-container {
    max-width: 1080px;
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 80px;
    width: auto;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Navigation Bar */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #328a7a;
}

/* Contact Button in Nav */
.nav-contact-btn {
    background: #328a7a !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: background 0.3s !important;
}

.nav-contact-btn:hover {
    background: #2a7568 !important;
    color: #ffffff !important;
}

/* ===== PAGE HERO SECTION ===== */

.page-hero {
    background: linear-gradient(135deg, #002335 0%, #064860 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-hero .container {
    padding-top: 0;
    padding-bottom: 0;
}

.page-hero h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero .description,
.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
}

.page-hero .back-link {
    color: #2ea3f2;
}

.page-hero .back-link:hover {
    color: #328a7a;
}

/* ===== PAGE HEADER (light version) ===== */

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 30px;
    color: #002335;
    font-weight: 700;
}

.page-header .description,
.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: gap 0.2s;
}

.back-link:hover,
.back-link:focus {
    gap: 0.75rem;
    color: #328a7a;
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* ===== CALCULATOR GRID ===== */

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 981px) {
    .calculator-grid {
        grid-template-columns: 420px 1fr;
    }
}

/* ===== INPUT SECTION ===== */

.input-section,
.results-section {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 3px;
    box-shadow: var(--shadow-inset);
    border: 1px solid var(--border-color);
}

.input-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.input-section h2,
.results-section h2 {
    color: #002335;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
}

.input-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .input-columns {
        grid-template-columns: 1fr;
    }
}

.input-column h3 {
    color: var(--text-secondary);
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* ===== FORM ELEMENTS ===== */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.percent {
    position: absolute;
    right: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    padding-left: 30px !important;
}

.input-wrapper input:has(+ .percent) {
    padding-right: 30px !important;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: 3px;
    color: #666666;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.1);
}

input[type="range"] {
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    margin-top: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(46, 163, 242, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(46, 163, 242, 0.3);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Form Group Small Text */
.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== VALIDATION & ERROR STATES ===== */

.input-error {
    border-color: var(--accent-error) !important;
    background: rgba(239, 68, 68, 0.03) !important;
}

.input-error:focus {
    border-color: var(--accent-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid var(--accent-error);
    border-radius: 3px;
    color: var(--accent-error);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== BUTTONS ===== */

.calculate-btn,
.btn-primary {
    width: 100%;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    background: #32373c;
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: inherit;
}

.calculate-btn:hover,
.btn-primary:hover {
    background: #32373c;
    border-color: #32373c;
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.05);
}

.calculate-btn:active,
.btn-primary:active {
    transform: translateY(1px);
}

.print-btn,
.btn-secondary {
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    background: transparent;
    color: #2ea3f2;
    border: 2px solid #2ea3f2;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: inherit;
}

.print-btn:hover,
.btn-secondary:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group .calculate-btn {
    flex: 1;
}

/* ===== RESULTS SECTION ===== */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.result-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-inset);
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.result-value.highlight {
    color: var(--accent-primary);
}

/* ===== CHARTS ===== */

.chart-container {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 3px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.chart-container canvas {
    max-height: 400px;
}

/* ===== BREAKDOWN SECTION ===== */

.breakdown-section {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 3px;
    box-shadow: var(--shadow-inset);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.breakdown-section h2 {
    color: var(--accent-secondary);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Breakdown sections span full width (both input + results columns) */
.container > .breakdown-section,
.calculator-grid ~ .breakdown-section,
main .breakdown-section {
    max-width: 100%;
    width: 100%;
}

/* ===== TABLES ===== */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-tertiary);
}

th {
    padding: 14px 16px;
    text-align: left;
    color: var(--accent-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.9rem;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: var(--bg-tertiary);
}

/* ===== SITE FOOTER ===== */

.site-footer {
    margin-top: 4rem;
    padding: 0;
    background: #002335;
    border-top: none;
}

/* Footer Contact Info Bar - Matches live site screenshot */
.footer-contact-bar {
    background: #003347;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-bar .header-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.footer-contact-icon {
    width: 50px;
    height: 50px;
    background: #328a7a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.footer-contact-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.footer-contact-value a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-value a:hover {
    color: #2ea3f2;
}

/* Footer Main Content */
.footer-container {
    max-width: 1080px;
    width: 80%;
    margin: 0 auto;
    padding: 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo-img {
    max-width: 280px;
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo svg {
    width: 32px;
    height: 32px;
}

.tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-column a:hover,
.footer-column a:focus {
    color: #2ea3f2;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.disclaimer-text strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== RESPONSIVE ===== */

@media (min-width: 768px) and (max-width: 980px) {
    .container {
        width: 80%;
        padding: 50px;
    }
}

@media (max-width: 767px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    /* Utility bar mobile */
    .utility-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .utility-bar .header-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .utility-bar-links {
        gap: 10px;
    }

    .header-container {
        width: 95%;
        padding: 0 12px;
        flex-wrap: wrap;
    }

    .header-main {
        padding: 12px 0;
    }

    .logo-img {
        height: 50px;
    }

    .main-nav {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .nav-contact-btn {
        padding: 8px 14px !important;
        font-size: 11px !important;
    }

    .logo-text {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .input-section {
        position: relative;
        top: 0;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 1.3rem;
    }

    /* Footer mobile */
    .footer-contact-bar {
        padding: 20px 0;
    }

    .footer-contact-bar .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-contact-icon {
        width: 40px;
        height: 40px;
    }

    .footer-contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-contact-value {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    /* Larger touch targets for mobile */
    button,
    .calculate-btn,
    .print-btn {
        min-height: 44px;
        min-width: 44px;
    }

    input[type="number"],
    input[type="text"],
    select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.2rem;
    }

    .calculate-btn {
        font-size: 0.95rem;
        padding: 12px;
    }

    .result-card {
        padding: 16px;
    }

    .result-value {
        font-size: 1.1rem;
    }
}

/* ===== UTILITY CLASSES ===== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== BLOCKQUOTE ===== */

blockquote {
    margin: 20px 0 30px 0;
    padding-left: 20px;
    border-left: 5px solid #2ea3f2;
    color: #666666;
    font-style: italic;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
