/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: #5a6c7d;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #3c4f65 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34495e 0%, #4a5d75 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Modern Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    display: block;
}

.main-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

.main-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.15);
}

/* Subtle hover animation */
.logo:hover .main-logo {
    animation: logoGlow 0.5s ease;
}

@keyframes logoGlow {
    0%, 100% { filter: brightness(1.1) contrast(1.1); }
    50% { filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 5px rgba(44, 62, 80, 0.3)); }
}

/* Fallback text logo (hidden by default) */
.logo-text-fallback {
    display: none;
}

.logo-text-fallback h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.logo-text-fallback .established {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 400;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #34495e;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.emergency-contact i {
    animation: pulse 2s infinite;
}

.emergency-contact small {
    font-size: 0.75rem;
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)), url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1920&h=1080&fit=crop') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Overview */
.services-overview {
    padding: 6rem 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6c757d;
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    text-align: left;
    color: #2c3e50;
}

.about p {
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.experience-highlight {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.experience-item {
    text-align: center;
}

.experience-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.experience-item .text {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Detailed */
.services {
    padding: 6rem 0;
    background: #f8f9fa;
}

.services h2 {
    color: #2c3e50;
}

.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.service-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #2c3e50;
}

.service-detail-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-detail h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-detail p {
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-detail ul {
    list-style: none;
    padding: 0;
}

.service-detail li {
    color: #6c757d;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-detail li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Catalog Section */
.catalog {
    padding: 6rem 0;
    background: white;
}

.catalog h2 {
    color: #2c3e50;
}

.catalog-intro {
    text-align: center;
    color: #6c757d;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.catalog-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.catalog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-item:hover img {
    transform: scale(1.05);
}

.catalog-content {
    padding: 1.5rem;
}

.catalog-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.catalog-content p {
    color: #6c757d;
    margin-bottom: 0;
}

.catalog-cta {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #d1d5db;
}

.catalog-cta p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact h2 {
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-details p {
    color: #5a6c7d;
    margin-bottom: 0.25rem;
}

.contact-details small {
    color: #7f8c8d;
    font-style: italic;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

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

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    max-width: 150px;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
    transform: scale(1.02);
    filter: brightness(1.3) contrast(1.15);
}

.footer-info h3 {
    margin-bottom: 1rem;
}

.footer-info p {
    color: #bdc3c7;
    line-height: 1.7;
}

.footer-emergency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(231, 76, 60, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

.powered-by {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.powered-by a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .emergency-contact {
        order: -1;
        margin-right: auto;
    }

    /* Mobile logo adjustments */
    .main-logo {
        height: 40px;
        max-width: 160px;
    }

    .logo {
        gap: 0.5rem;
    }

    .footer-logo-img {
        height: 30px;
        max-width: 120px;
    }

    /* Show fallback text on very small screens if needed */
    @media (max-width: 400px) {
        .main-logo {
            height: 35px;
            max-width: 140px;
        }
        
        /* Fallback option if logo becomes too small */
        .logo-text-fallback {
            display: none; /* Keep image logo on mobile unless absolutely necessary */
        }
        
        .logo-text-fallback h1 {
            font-size: 1.2rem;
        }
        
        .logo-text-fallback .established {
            font-size: 0.7rem;
        }

        .footer-logo-img {
            height: 25px;
            max-width: 100px;
        }
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-highlight {
        justify-content: center;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

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

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

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .contact-form {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
