/* Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.service-card {
    background: white;
    border: 4px solid #f1f5f9;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary);
}

.card-image-wrapper {
    height: 256px;
    position: relative;
    overflow: hidden;
}

.card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: transform 0.5s;
}

.service-card:hover .card-bg {
    transform: scale(1.1);
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
}

.learn-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 900;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Card (Engineering) */
.custom-card {
    background: rgba(14, 74, 134, 0.05);
    border-style: dashed;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.icon-large {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

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

/* Forms */
.quote-section {
    background: var(--primary);
    padding: 5rem 0;
}

.quote-box {
    background: white;
    padding: 4rem;
    position: relative;
    border-top: 8px solid var(--accent);
}

.quote-badge {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 2rem;
    font-weight: 900;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input,
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
    outline: none;
}

input:focus {
    border-color: var(--primary);
}

.btn-accent {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 1.25rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 32px;
    color: var(--primary);
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 768px) {

    .quote-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Detailed Section Styling */
.detail-section {
    padding: 100px 0;
    background: white;
}

.detail-section.alt-bg {
    background: #f1f5f9;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* This creates the alternating "zig-zag" effect */
.detail-grid.reverse {
    direction: rtl;
}

.detail-grid.reverse .detail-content {
    direction: ltr;
    /* Reset text direction for content */
}

.detail-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-left: 12px solid var(--primary);
    box-shadow: 20px 20px 0px rgba(14, 74, 134, 0.1);
}

.alt-bg .detail-image {
    border-left: none;
    border-right: 12px solid var(--accent);
}

.detail-label {
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.accent-bar {
    width: 60px;
    height: 5px;
    background: var(--accent);
    margin-bottom: 2rem;
}

.detail-content p {
    font-size: 1.1rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
}

.detail-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.detail-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 12px;
    font-weight: 700;
    color: #334155;
}

.detail-list li::before {
    content: "check_circle";
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 22px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {

    .detail-grid,
    .detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .detail-image {
        height: 350px;
    }
}