:root {
    --primary-blue: #0a1e42; /* Deep blue from the card */
    --secondary-red: #c71f2d; /* Red from the shield */
    --light-blue: #1e3a6e;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --dark-text: #333333;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #a01823;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* LANGUAGE SWITCHER STYLES */
/* When body has class 'lang-es', hide english content */
body.lang-es .en-content { display: none !important; }
/* When body has class 'lang-en', hide spanish content */
body.lang-en .es-content { display: none !important; }

.lang-switch button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-weight: bold;
}
.lang-switch button.active {
    color: var(--secondary-red);
}

/* NAVIGATION */
.navbar {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-red);
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Internal Page Nav Fix */
.internal-nav {
    position: relative;
}


/* HERO SECTION (Homepage) */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; /* Account for fixed nav */
    background: linear-gradient(135deg, var(--primary-blue) 0%, #051024 100%); /* Fallback if ThreeJS fails */
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6; /* Subtlety is key */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #ddd;
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* HOMEPAGE SERVICES PREVIEW */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}


/* PAGE HEADERS (Internal Pages) */
.page-header {
    background: linear-gradient(rgba(10, 30, 66, 0.9), rgba(10, 30, 66, 0.9)), url('../assets/service-placeholder.jpg'); /* Use a generic business banner image here */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

/* SERVICES PAGE LIST STYLES */
.service-item-block {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.service-image {
    flex: 1;
    min-height: 300px;
}

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

.service-details {
    flex: 2;
    padding: 40px;
}

.service-details h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* CONTACT PAGE STYLES */
.contact-layout {
    display: flex;
    gap: 50px;
}

.contact-info-box, .contact-form-box {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-box h2, .contact-form-box h2 {
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    margin-top: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-red);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item a {
    color: var(--dark-text);
    text-decoration: none;
}

/* Modern Form Styles */
.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-blue);
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* FOOTER */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-info p {
    margin: 10px 0;
}
.footer-info i {
    margin-right: 10px;
    color: var(--secondary-red);
}

.footer-qr img {
    max-width: 150px;
    border-radius: 10px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}


/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--primary-blue);
        flex-direction: column;
        width: 70%;
        padding: 40px;
        transition: right 0.3s ease;
    }
    .nav-links.nav-active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .hamburger { display: block; }

    .service-item-block { flex-direction: column; }
    .service-image { min-height: 200px; }
    .contact-layout { flex-direction: column; }
    .footer-container { flex-direction: column; gap: 30px; }
}