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

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --secondary: #c9302c;
    --accent: #f5a623;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-alt: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: var(--shadow);
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image:
        linear-gradient(
            135deg,
            rgba(30, 58, 95, 0.85) 0%,
            rgba(21, 42, 69, 0.85) 100%
        ),
        url("../images/Website-Combined-Wide.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 140px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero-logo {
    height: 150px;
    width: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 1.4rem;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #a82824;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Section Styles */
.section-title {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-brand {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-card p:last-child {
    color: var(--text-light);
    line-height: 1.7;
}

.service-card-centered {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}

/* Partners Section */
.partners {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.partners h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.partners-logos img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition);
}

.partners-logos img.est-logo {
    height: 150px;
    max-width: 300px;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Service Detail Pages */
.service-hero {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    padding: 140px 0 80px;
    text-align: center;
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-hero-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.service-hero-logo.no-invert {
    filter: none;
}

.service-hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.service-hero-icon svg {
    width: 100%;
    height: 100%;
    color: white;
}

.service-hero-logo.est-logo {
    height: 180px;
}

.service-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.service-detail {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.service-detail-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-detail-content h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.service-detail-content h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}

.service-detail-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-detail-content a {
    color: var(--secondary);
}

.service-detail-content a:hover {
    text-decoration: underline;
}

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

.service-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.service-features span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-benefits {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.service-benefits li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.service-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.service-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.service-cta .btn-primary {
    color: white;
}

.service-cta .btn-secondary {
    border-color: var(--primary);
    color: var(--primary);
}

.service-cta .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.service-detail-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.sidebar-card.highlight {
    background: var(--primary);
    color: white;
}

.sidebar-card.highlight h4 {
    color: white;
}

.sidebar-card.highlight p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.sidebar-phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.sidebar-phone:hover {
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text .section-title {
    text-align: left;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.about-highlights li {
    text-align: center;
    flex: 1;
}

.about-highlights strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.about-highlights span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-alt);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Reveal Protection */
.contact-reveal {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.reveal-message svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.reveal-message h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.reveal-message p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-info.revealed {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item svg {
    width: 32px;
    height: 32px;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--secondary);
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.email-list a {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.email-list a:hover {
    color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 0;
}

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

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.7;
    line-height: 1.7;
}

.footer-links h4,
.footer-services h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-services a {
    opacity: 0.7;
    transition: opacity var(--transition);
}

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

.footer-services li {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-logo {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .service-card-centered {
        max-width: 100%;
    }

    .service-hero {
        padding: 120px 0 60px;
    }

    .service-hero h1 {
        font-size: 1.75rem;
    }

    .service-hero-logo {
        height: 45px;
    }

    .service-detail {
        padding: 50px 0;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-sidebar {
        position: static;
    }

    .service-benefits {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 120px 0 80px;
        min-height: auto;
        background-image:
            linear-gradient(
                135deg,
                rgba(30, 58, 95, 0.85) 0%,
                rgba(21, 42, 69, 0.85) 100%
            ),
            url("../images/Website-Combined.png");
        background-size: cover;
        background-position: center;
        width: 100%;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .hero-logo {
        height: 100px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
    }

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

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

    .btn {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

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

    .about-highlights {
        flex-direction: column;
        gap: 1.5rem;
    }

    .partners-logos {
        gap: 2rem;
    }

    .partners-logos img {
        height: 40px;
        max-width: 140px;
    }

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

    .footer-logo {
        grid-column: auto;
    }

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

    .services,
    .about,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    * {
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
    }

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

    .service-card {
        padding: 1.75rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}
