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

:root {
    --primary-red: #d32f2f;
    --dark-red: #b71c1c;
    --dark-bg: #2c2c2c;
    --darker-bg: #1a1a1a;
    --light-gray: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 95px;
}

/* Prevent SVG icons from being massive */
svg {
    max-width: 100%;
    height: auto;
}

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

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: var(--dark-red);
    padding: 8px 0;
    font-size: 13px;
}

.header-info {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.header-info .contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.header-info .contact-info .phone,
.header-info .contact-info .separator,
.header-info .contact-info .hours {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.header-info .contact-info svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px;
    max-height: 14px;
    flex-shrink: 0;
}

.header-info .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.header-main {
    background: var(--primary-red);
    padding: 12px 0;
    position: relative;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:focus-visible {
    outline: 2px dashed var(--white);
    outline-offset: 4px;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo img {
    height: 45px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: var(--white);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin-top: -95px;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 20px;
    font-weight: 300;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.4);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
}

/* Section Styles */
section {
    padding: 80px 0;
    scroll-margin-top: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    gap: 50px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
}

.about-text .lead {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-text .closing-statement {
    font-weight: 500;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-red);
    padding-left: 20px;
    margin-top: 30px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-box {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.highlight-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
    stroke: var(--primary-red);
    stroke-width: 2;
    display: block;
}

.highlight-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.highlight-box p {
    color: var(--text-light);
    font-size: 14px;
}

/* Services Section */
.services-section {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
    stroke: var(--primary-red);
    stroke-width: 2;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-content .contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item h3 svg {
    stroke: var(--primary-red);
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    max-height: 18px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

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

.submit-btn {
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 50px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--dark-red);
}

/* Footer */
.main-footer {
    background: var(--darker-bg);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-text {
    text-align: right;
}

.footer-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-red);
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
        z-index: 1000;
    }

    .main-nav.open {
        max-height: 320px;
        padding-bottom: 20px;
    }

    .main-nav a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    section {
        scroll-margin-top: 150px;
    }
    
    .header-content {
        flex-direction: row;
        gap: 15px;
        width: 100%;
    }
    
    .header-info .contact-info {
        font-size: 12px;
        gap: 8px;
    }
    
    .hero-slider {
        height: 500px;
        margin-top: -120px;
    }

    .slide-content {
        top: 58%;
        padding: 0 32px;
        max-width: 520px;
    }

    .slide-content h1 {
        font-size: 26px;
        line-height: 1.25;
        letter-spacing: 0.5px;
    }

    .slide-content p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .services-grid,
    .technical-expertise {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slide-content {
        top: 60%;
        padding: 0 18px;
    }

    .slide-content h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-form {
        padding: 25px;
    }
}
