:root {
    --primary-navy: #002B49;
    --accent-orange: #F26522;
    --white: #FFFFFF;
    --light-gray: #F8FAFB;
    --dark-charcoal: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-charcoal);
    overflow-x: hidden; /* Prevents horizontal scrollbar from AOS animations */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-navy);
}

.btn-primary {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #d95b1e; /* Darker orange for hover */
    border-color: #d95b1e;
}

.bg-primary-navy {
    background-color: var(--primary-navy);
}

.text-accent-orange {
    color: var(--accent-orange);
}

/* Skip-link helper: visible when focused */
.visually-hidden-focusable {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.visually-hidden-focusable:focus, .visually-hidden-focusable:active {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    left: 0;
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a parallax-like effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 22, 40, 0.2); /* Overlay using a darker shade of navy */
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
    position: relative;
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Card hover effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Disable fixed background on small devices for performance/compatibility */
@media (max-width: 991px) {
    .hero-section {
        background-attachment: scroll;
        height: auto; /* let hero size naturally on small screens */
        padding: 4rem 0;
    }
}

/* Anchor offset for sticky navbar: ensure in-page links land at section start */
:root {
    --scroll-offset: 6rem; /* default offset equal to navbar height */
}
@media (max-width: 991px) {
    :root {
        --scroll-offset: 4.5rem; /* smaller offset for mobile */
    }
}
/* Apply scroll margin to common targetable elements */
section[id], header[id], [role="main"] > section, .hero-section, footer[id] {
    scroll-margin-top: var(--scroll-offset);
}

/* Contact form styles */
.contact-form input.form-control,
.contact-form textarea.form-control {
    border-radius: 6px;
}
.contact-form .btn-primary {
    width: 100%;
}
