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

body {
    font-family: 'Inter', 'Arial', 'Calibri', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem 0;
    border-bottom: 3px solid #cc040b; /* SAJ Red */
}

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

.logo-section {
    flex: 0 0 auto;
}

.company-logo {
    height: 225px;
    width: auto;
}

.tagline-section {
    flex: 1;
    text-align: center;
}

.tagline {
    color: #cc040b; /* SAJ Red */
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    color: #17166e; /* SAJ Blue */
    font-size: 1.3rem;
    font-weight: 500;
}

/* Navigation */
.navigation {
    background-color: #17166e; /* SAJ Blue */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-button {
    background-color: #cc040b !important; /* SAJ Red */
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.cta-button:hover {
    background-color: #a0030a !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.hero-text h2 {
    color: #17166e; /* SAJ Blue */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #cc040b; /* SAJ Red */
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.hero-image {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: #17166e; /* SAJ Blue */
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: #ffffff;
}

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

.service-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #cc040b; /* SAJ Red */
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-title {
    color: #17166e; /* SAJ Blue */
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.service-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-list i {
    color: #cc040b; /* SAJ Red */
    font-size: 0.9rem;
}

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    background: linear-gradient(135deg, #cc040b, #a0030a); /* SAJ Red gradient */
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    color: #17166e; /* SAJ Blue */
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #17166e 0%, #131259 100%); /* SAJ Blue gradient */
    color: white;
}

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

.contact-info .section-title {
    color: white;
}

.contact-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    background: linear-gradient(135deg, #cc040b, #a0030a); /* SAJ Red */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.contact-item p {
    opacity: 0.9;
    margin-bottom: 0;
}

.contact-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-card {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 400px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}

.cta-card h3 {
    color: #17166e; /* SAJ Blue */
    margin-bottom: 1rem;
}

.cta-button-large {
    background: linear-gradient(135deg, #cc040b, #a0030a); /* SAJ Red gradient */
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    transition: all 0.3s;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 4, 11, 0.3);
}

.cta-button-secondary {
    background: linear-gradient(135deg, #17166e, #131259); /* SAJ Blue gradient */
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.cta-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 22, 110, 0.3);
}

/* Quote Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #f5f5f5;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background-color: #f5f5f5;
    padding: 20px 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.text-red {
    color: #cc040b;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #cc040b;
    text-decoration: none;
}

.quote-form {
    padding: 30px;
    background-color: #f5f5f5;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #cc040b;
    box-shadow: 0 0 5px rgba(204, 4, 11, 0.3);
}

.form-status {
    margin-top: 20px;
    font-weight: 600;
    min-height: 24px;
}

.form-status.info {
    color: #1e40af;
}

.form-status.success {
    color: #166534;
}

.form-status.error {
    color: #b91c1c;
}

.services-section {
    margin: 30px 0;
}

.services-section > label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    font-size: 1rem;
}

.service-category {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    overflow: hidden;
}

.category-title {
    background: linear-gradient(135deg, #cc040b 0%, #17166e 100%);
    color: white;
    padding: 12px 15px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 15px;
}

.service-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-column label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 0;
}

.service-column label:hover {
    background-color: #e8f4f8;
    border-color: #cc040b;
}

.service-column input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
    accent-color: #cc040b;
    width: auto;
}

.service-column input[type="checkbox"]:checked {
    background-color: #cc040b;
}

/* Responsive design for services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 0.9rem;
        padding: 10px;
    }
}

.file-upload-section {
    margin: 30px 0;
}

.file-upload-section > label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: white;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: #cc040b;
}

.upload-content p {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.1rem;
}

.upload-content button {
    background-color: #17166e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.upload-content button:hover {
    background-color: #131259;
}

.file-list {
    margin-top: 15px;
    text-align: left;
}

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

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

.file-remove {
    color: #cc040b;
    cursor: pointer;
    font-weight: bold;
}

.form-actions {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    background-color: #f5f5f5;
}

.send-button {
    background-color: #cc040b;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 120px;
}

.send-button:hover {
    background-color: #a0030a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .quote-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .services-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

.cta-note {
    margin-top: 1.5rem;
}

.cta-note p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-note i {
    color: #cc040b; /* SAJ Red */
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    text-align: center;
    flex: 1;
}

.footer-text p {
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .tagline {
        font-size: 2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .tagline {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .service-category {
        padding: 1.5rem;
    }

    .cta-card {
        padding: 2rem;
        margin: 0 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .navigation {
        display: none;
    }

    .header {
        border-bottom: 2pt solid #cc040b;
        page-break-after: avoid;
    }

    .section-header {
        page-break-after: avoid;
    }

    .service-category,
    .feature-card,
    .project-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .contact {
        background: #f8f9fa !important;
        color: #333 !important;
    }

    .contact .section-title {
        color: #17166e !important;
    }

    .footer {
        background: #f8f9fa !important;
        color: #333 !important;
        border-top: 1pt solid #e5e7eb;
    }

    a {
        color: inherit !important;
        text-decoration: underline !important;
    }

    .cta-button,
    .cta-button-large {
        background: #cc040b !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
