/* Global Variables */
:root {
    --primary-color: #0d1b2a;
    /* Deep Navy Blue */
    --secondary-color: #1b263b;
    /* Slightly Lighter Navy */
    --accent-color: #e0e1dd;
    /* Off-white/Platinum */
    --gold-color: #d4af37;
    /* Metallic Gold for highlights */
    --text-color: #333333;
    --light-text: #ffffff;
    --section-bg: #f8f9fa;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* For a premium feel */
    --transition: all 0.3s ease;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold-color);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold-color);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.7) 100%), url('../images/hero_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #fff, transparent);
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--gold-color);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 5px;
    left: 0;
    background-color: var(--gold-color);
    opacity: 0.6;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--gold-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--gold-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--gold-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Main Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--gold-color);
    bottom: 0;
    left: 25%;
}

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

/* Page Header (Hero for subpages) */
.page-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    margin-bottom: 2rem;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.7);
    /* Dark overlay */
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content p {
    font-size: 1.2rem;
    color: var(--gold-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Specific Backgrounds */
.bg-about {
    background-image: url('../images/about_hero_1.jpg');
}

.bg-services {
    background-image: url('../images/services_hero_1.jpg');
}

.bg-contact {
    background-image: url('../images/contact_hero_1.jpg');
}

.bg-legal {
    background-image: url('../images/legal_hero_1.jpg');
}

/* Products/Services Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: var(--transition);
}

.card:hover .card-img::after {
    opacity: 1;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.card-content p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--gold-color);
    min-width: 30px;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}


.custom-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.custom-contact-form .form-group {
    margin-bottom: 0;
}

.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.custom-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.custom-contact-form .form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.custom-contact-form .form-control:focus {
    border-color: var(--gold-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-group input {
    margin-top: 4px;
    accent-color: var(--gold-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--gold-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-color);
    color: var(--gold-color);
}

@media (max-width: 768px) {
    .custom-contact-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .col-span-1,
    .col-span-2 {
        grid-column: span 1;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-content h4 {
    color: var(--gold-color);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-logo {
    color: var(--gold-color);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--gold-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}