/* 
 * WOODIX main CSS
 * Daniels, 2025
 * Font: Montserrat + Open Sans from Google Fonts
 */

/* BASE STYLES */
body, html, div, span, p, a, img, h1, h2, h3, h4, h5, h6,
ul, ol, li, form, label, input, button, select, textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #1a202c;
    line-height: 1.6;
    background-color: #f7fafc;
    overflow-x: hidden;
    min-width: 320px;
}
/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UTILITY CLASSES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center !important;
    max-width: 800px;
    margin: 0 auto 3rem !important;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center !important;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    margin: 10px auto 0 !important;
    width: 60px;
    height: 4px;
    background: #b21f2d;
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.8;
    text-align: center !important;
    width: 100%;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #b21f2d 0%, #8f1823 100%);
    color: #ffffff;
    border-color: #b21f2d;
    box-shadow: 0 4px 12px rgba(178, 31, 45, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8f1823 0%, #6d1419 100%);
    border-color: #6d1419;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(178, 31, 45, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #b21f2d;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: #b21f2d;
    border-color: #b21f2d;
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(178, 31, 45, 0.1);
    border-color: #8f1823;
    color: #8f1823;
    box-shadow: 0 4px 12px rgba(178, 31, 45, 0.2);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* NAVIGATION */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #b21f2d;
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover {
    color: #8f1823;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-text {
    letter-spacing: 2px;
    color: #1a202c;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a202c;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: #b21f2d;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #1a202c;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f7fafc;
    color: #b21f2d;
    padding-left: calc(1.5rem + 5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a202c;
    border-radius: 2px;
    transition: 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 350px;
    max-height: 400px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/index_header.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, 
        rgba(178, 31, 45, 0.98) 0%, 
        rgba(178, 31, 45, 0.92) 20%,
        rgba(178, 31, 45, 0.75) 40%,
        rgba(178, 31, 45, 0.4) 70%,
        rgba(178, 31, 45, 0) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem 0;
    margin: 0 auto;
}

.hero-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero-primary {
    background: #b21f2d !important;
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border: 2px solid #b21f2d !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: #8f1823 !important;
    border-color: #8f1823 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background: transparent !important;
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: #ffffff !important;
    color: #b21f2d !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0 auto;
    padding: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.stat-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #b21f2d;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 1.125rem;
    color: #4a5568;
    font-weight: 600;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: #f7fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(178, 31, 45, 0.2);
    border-color: #b21f2d;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(178, 31, 45, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

.service-card:hover .service-icon {
    background: #b21f2d;
    transform: scale(1.1);
}

.service-card:hover .service-icon svg path,
.service-card:hover .service-icon svg circle,
.service-card:hover .service-icon svg rect {
    stroke: #ffffff;
}

.service-title {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.service-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: #b21f2d;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: 0.2s ease;
}

.service-link:hover {
    color: #8f1823;
    transform: translateX(5px);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #b21f2d 0%, #8f1823 100%);
    color: #ffffff;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    min-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.footer-column {
    padding: 0 1rem;
}

.footer-title {
    font-size: 1.75rem;
    color: #b21f2d;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.footer-text {
    color: #e2e8f0;
    line-height: 1.7;
}

.footer-heading {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #e2e8f0;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #b21f2d;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title { font-size: 2rem; }
    
    .hero { min-height: 550px; padding: 3rem 1.5rem; }
    .hero-logo { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.125rem; }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    /* mobile versija - parÄdÄs hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s ease;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        gap: 0;
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1.5rem;
        margin-top: 1rem;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Typography adjustments */
    html { font-size: 15px; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    
    /* Hero adjustments */
    .hero {
        min-height: 300px;
        max-height: 350px;
        height: 300px;
        padding: 2rem 1rem;
    }
    
    .hero-logo { font-size: 1.75rem; }
    .hero-title { font-size: 2.25rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; line-height: 1.5; }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        border-radius: 8px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
    }
    
    .service-hero {
        min-height: 250px;
        max-height: 280px;
        padding: 3rem 0 2rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
    }
    
    /* Sections padding */
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Footer responsive */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    
    h1 { font-size: 2rem; line-height: 1.2; }
    h2 { font-size: 1.75rem; line-height: 1.3; }
    h3 { font-size: 1.5rem; }
    
    .section-title { font-size: 1.75rem; margin-bottom: 1.5rem; }
    
    .hero { 
        min-height: 450px;
        padding: 2rem 0.75rem;
    }
    .hero-content { text-align: center; }
    .hero-logo { font-size: 1.5rem; margin-bottom: 1rem; }
    .hero-title { font-size: 1.875rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; line-height: 1.5; margin-bottom: 1.5rem; }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        display: inline-block;
        text-align: center;
        cursor: pointer;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Better touch targets */
    a, button, .btn {
        min-height: 44px;
    }
    
    /* Improved spacing */
    section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        padding: 1.5rem;
    }
    
    .nav-menu li {
        padding: 0.875rem 0;
    }
    
    /* Footer responsive */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-heading {
        font-size: 1.125rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #b21f2d;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #b21f2d;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animation classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .hero-buttons,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ============================================
   CALCULATOR PAGE STYLES
   ============================================ */
.calculator-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 3rem;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.calculator-header h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.calculator-header p {
    font-size: 1.125rem;
    color: #4a5568;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: 0.2s ease;
    background: #ffffff;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #b21f2d;
    box-shadow: 0 0 0 3px rgba(178, 31, 45, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: #b21f2d;
}

input[type="file"] {
    padding: 0.75rem;
    font-size: 0.9rem;
}

input[type="file"]::file-selector-button {
    background: #b21f2d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #8f1823;
}

.calculate-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

.result-container {
    margin-top: 2rem;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.result-container.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.result-label {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: #b21f2d;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    position: relative;
}

.result-value.blurred {
    filter: blur(12px);
    user-select: none;
}

.unlock-message {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.unlock-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 32, 44, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4a5568;
    cursor: pointer;
    transition: 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f7fafc;
    color: #b21f2d;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.75rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.modal-description {
    font-size: 1rem;
    color: #4a5568;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}

.calculation-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
    text-align: left;
    display: none;
}

.calculation-details.show {
    display: block;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.detail-label {
    color: #4a5568;
}

.detail-value {
    color: #1a202c;
    font-weight: 600;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-hero {
    background: linear-gradient(135deg, #b21f2d 0%, #8f1823 100%);
    color: #ffffff;
    padding: 4rem 0 3rem;
    text-align: center;
}

.contact-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #1a202c;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(178, 31, 45, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    stroke: #b21f2d;
}

.info-content h3 {
    color: #1a202c;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #4a5568;
    margin: 0;
}

.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: 0.2s ease;
    min-height: 150px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #b21f2d;
    box-shadow: 0 0 0 3px rgba(178, 31, 45, 0.1);
}

.map-container {
    margin-top: 4rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 400px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 968px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 2rem 1.5rem;
    }
    
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .result-value {
        font-size: 2.5rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   SERVICE PAGES STYLES
   ============================================ */
.service-hero {
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    min-height: 280px;
    max-height: 320px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.service-hero p {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.98;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.breadcrumb {
    padding: 1rem 0;
    background: #f7fafc;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list a {
    color: #4a5568;
    transition: 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #b21f2d;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: #4a5568;
}

.service-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-content h2 {
    color: #1a202c;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.main-content h3 {
    color: #1a202c;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.main-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #4a5568;
}

.main-content ul,
.main-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.main-content li {
    margin-bottom: 0.75rem;
    color: #4a5568;
    line-height: 1.7;
}

.main-content strong {
    color: #1a202c;
    font-weight: 600;
}

.highlight-box {
    background: #f7fafc;
    border-left: 4px solid #b21f2d;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h3 {
    margin-top: 0;
    color: #b21f2d;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.cta-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
}

.cta-card h3 {
    color: #1a202c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.cta-card .btn {
    width: 100%;
    text-align: center;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '✓';
    color: #b21f2d;
    font-weight: bold;
    font-size: 1.25rem;
}

/* ============================================
   ADMIN PAGE STYLES
   ============================================ */
body.admin-page {
    background: #f7fafc;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #b21f2d;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #4a5568;
}

.login-form-submit {
    width: 100%;
    margin-top: 1rem;
}

.login-footer-text {
    margin-top: 1.5rem;
    text-align: center;
    color: #4a5568;
    font-size: 0.875rem;
}

.admin-container {
    display: none;
    padding: 2rem 0;
}

.admin-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 2.5rem;
    border-bottom: 4px solid #b21f2d;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.logout-btn {
    padding: 0.75rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    border-left: 4px solid #b21f2d;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(178, 31, 45, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stat-label {
    font-size: 0.65rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -1px;
}

.data-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.admin-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.admin-page .section-title {
    font-size: 1.5rem;
    color: #1a202c;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.data-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: #1a202c;
    border-bottom: 2px solid #cbd5e0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
}

.action-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #4a5568;
}

.file-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    background-color: #eff6ff;
    border-radius: 0.25rem;
    display: inline-block;
    margin: 0.125rem;
}

.file-link:hover {
    background-color: #dbeafe;
    text-decoration: underline;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #b21f2d;
    background: linear-gradient(135deg, #faf5f5 0%, #f5eded 100%);
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: #4a5568;
}

.file-upload-label svg {
    color: #b21f2d;
    transition: transform 0.2s;
}

.file-upload-area:hover .file-upload-label svg {
    transform: scale(1.1);
}

.upload-text {
    font-weight: 600;
    color: #2d3748;
}

.file-input {
    display: none;
}

.upload-status {
    margin-top: 1rem;
    min-height: 1.5rem;
    font-weight: 600;
}

/* ============================================
   ADDITIONAL RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 968px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 1rem;
    }
}
