/* PrimeSite Global Variables */
:root {
    --primary-black: #121212;
    --accent-gold: #C5A021;
    --text-grey: #333333;
    --bg-light: #F4F4F4;
    --white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --tertiary-grey: #888888;
}

body {
    font-family: var(--font-body);
    color: var(--text-grey);
    background-color: var(--white);
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header & Nav Layout */
.site-header {
    background-color: #000000 !important;
    width: 100%;
    position: fixed;    /* Use fixed for total stability */
    top: 0;
    left: 0;
    height: 80px;       /* Force a consistent height */
    z-index: 10000;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #C5A021;
    transition: none !important; /* Transitions can sometimes cause the 'vibration' */
}

body {
    padding-top: 80px; 
}

.header-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 60px;   
    display: flex;
    align-items: center;
}

/* Logo Styling - Added to fix sizing issues */
.logo-container img {
    height: 45px;       /* Forces the logo to stay within the nav bar height */
    width: auto;         /* Maintains the rectangular aspect ratio */
    display: block;      /* Removes extra whitespace below the image */
    object-fit: contain; /* Ensures the image isn't squashed */
}

/* Optional: Center the logo vertically in the header */
.logo-container a {
    display: flex;
    align-items: center;
}

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

.nav-item {
    color: #ffffff !important; 
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 15px;
    display: block;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--accent-gold) !important;
}

.main-nav {
    margin-left: 40px;   /* pushes nav slightly right, not to the edge */
    background-color: #000000;   /* Add this line */
}

/* Dropdown Logic */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right:auto;
    background-color: #1a1a1a !important; /* Darker grey-black for dropdowns */
    min-width: 250px;
    display: none; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    padding: 1rem 0;
    border-top: 3px solid #C5A021;
    z-index: 10001;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li { list-style: none; position: relative; }

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #ffffff !important; /* Force white text in dropdown */
    text-decoration: none;
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background-color: #333333 !important; /* Slight highlight on hover */
    color: #C5A021 !important;
}
/* Submenu Titles & Dividers */
.submenu-title {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.submenu-divider {
    height: 1px;
    background: var(--tertiary-grey);
    margin: 0.5rem 1.5rem;
}

.submenu-level-3 {
    position: absolute;
    top: 0;
    left: 100%;
    right: auto;
    display: none;
    background-color: #141414;
    min-width: 260px;
    padding: 0.5rem 0;
}

.has-submenu-right {
    position: relative;
}

.has-submenu-right:hover > .submenu-level-3 {
    display: block;
}

/* Sub-submenu on hover */
.has-submenu {
    position: relative;
}

.has-submenu > .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #1a1a1a;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 10002;
}

.has-submenu:hover > .submenu {
    display: block;
}

/* Layout Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Section */
.page-hero {
    background-color: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
    border-bottom: 5px solid var(--accent-gold);
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--accent-gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* About Section Styles */
.gold-text {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.card {
    background: var(--bg-light);
    padding: 2rem;
    border-left: 4px solid var(--accent-gold);
    margin-bottom: 2rem;
}

.text-block p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Services Section Styling */
.services-container {
    background-color: var(--white);
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.gold-line {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.gold-line::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

.service-pillar {
    border: 1px solid var(--tertiary-grey);
    transition: all 0.3s ease;
    background: #fff;
}

.service-pillar:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.pillar-header {
    background-color: var(--primary-black);
    padding: 20px;
    text-align: center;
}

.pillar-header h3 {
    color: var(--accent-gold);
    margin: 0;
    font-size: 1.2rem;
}

.service-list {
    list-style: none;
    padding: 30px;
    margin: 0;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--text-grey);
}

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

.gold-bullet {
    color: var(--accent-gold);
    font-weight: bold;
    margin-right: 10px;
}

/* Product Hub Styling */
.products-container {
    background-color: var(--primary-black); /* Dark theme for Products */
    color: var(--white);
    padding: 80px 0;
}

.products-container .section-title h2 {
    color: var(--white);
}

.products-container .section-title p {
    color: var(--tertiary-grey);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.product-card {
    background: #1e1e1e; /* Slightly lighter than the background */
    padding: 40px;
    border: 1px solid #333;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card.featured {
    border: 1px solid var(--accent-gold);
    position: relative;
}

.product-card:hover {
    background: #252525;
    border-color: var(--accent-gold);
    transform: translateY(-10px);
}

.product-icon {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.product-card h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.product-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: letter-spacing 0.3s ease;
}

.product-link:hover {
    letter-spacing: 1px;
}

/* Library Section Styling */
.library-container {
    background-color: var(--bg-light); /* Soft grey background */
    padding: 80px 0;
}

.library-header {
    margin-bottom: 50px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
}

.library-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.library-item {
    background: var(--white);
    padding: 30px;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s ease;
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 30px;
}

.library-item:hover {
    background: #fafafa;
}

.item-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.library-item h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.library-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.read-more {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 2px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .library-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Events Section Styling */
.events-container {
    background-color: var(--white);
    padding: 80px 0;
}

.events-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.column-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--white);
    background: var(--primary-black);
    padding: 5px 15px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.event-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.event-date {
    background: var(--bg-light);
    color: var(--primary-black);
    border: 1px solid var(--accent-gold);
    min-width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.event-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-black);
}

.event-info p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.location {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
}

.more-events {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary-black);
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-black);
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .events-wrapper { grid-template-columns: 1fr; }
}

/* Contact Page Specifics */
.contact-page {
    background-color: var(--white);
    min-height: 80vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Form Styles */
.contact-form-area h2 { margin-bottom: 10px; }
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-gold {
    background-color: var(--primary-black);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

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

/* RFP CTA Styles */
.rfp-box {
    background-color: var(--primary-black);
    padding: 50px;
    border-top: 8px solid var(--accent-gold);
    color: var(--white);
}

.white-text { color: var(--white); margin-bottom: 5px; }
.gold-text { color: var(--accent-gold); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.rfp-desc { color: #ccc; margin-bottom: 30px; line-height: 1.6; }

.btn-rfp {
    display: block;
    text-align: center;
    background-color: var(--accent-gold);
    color: var(--primary-black);
    padding: 15px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.rfp-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* Footer Styling */
.site-footer {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 80px 0 0 0;
    border-top: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes the logo white for dark bg */
}

.footer-brand p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--accent-gold);
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid #333;
    padding: 5px 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

#rfp-form input,
#rfp-form select,
#rfp-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #444; /* Subtle border */
    background-color: #fff;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--primary-black);
    transition: border-color 0.3s ease;
    /* This removes the clunky default browser appearance for the dropdown */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Add a custom arrow for the dropdown since we removed the default one */
#rfp-form .form-group:has(select) {
    position: relative;
}

#rfp-form .form-group:has(select)::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--accent-gold);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#rfp-form input:focus,
#rfp-form select:focus,
#rfp-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.btn-rfp {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-gold);
    color: var(--primary-black);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-rfp:hover {
    background-color: #c49b2d; /* Slightly darker gold */
}

/* Full-Width Hero */
.hero-fullscreen {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px); /* Use min-height so it doesn't collapse */
    /* Ensure the path below is exactly where your image is saved */
    background: #121212 url('../assets/images/cover.jpg') no-repeat center center/cover !important;
    display: flex;
    align-items: center;
    padding-left: 10%;
    margin-top: 0 !important;
    z-index: 1;
    background-size: cover !important;     /* Corrects the squashed look */
    background-position: center !important; /* Keeps the brain image centered */
}

/* Ensure the overlay doesn't block the image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Sits on top of the overlay */
    background: rgba(0, 0, 0, 0.6); 
    padding: 40px;
    border-left: 5px solid var(--accent-gold);
    max-width: 650px;
}
.hero-title {
    font-size: 3.5rem;
    color: rgb(128, 127, 126);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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



/* Button variants */
.btn-outline {
    padding: 0.8rem 2rem;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    margin-left: 1rem;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-black);
}


html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 60px;
}




/* 1. Updated Variables */
:root {
    --prime-green: #1b633e;
    --prime-gold: #FFD700;
    --prime-black: #1a1a1a;
    --prime-white: #ffffff;
}

/* 2. Hero Section - Reduced padding to bring content closer to edges */
.hero-split {
    position: relative;
    padding: 40px 2%; /* Reduced from 80px */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

/* 3. The Border Box - Reduced curve and tightened space */
.hero-background-shape {
    position: absolute;
    width: 96%;   /* Makes the box wider */
    height: 90%;
    z-index: 1;
    background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.05), transparent),
                radial-gradient(circle at bottom right, rgba(27, 99, 62, 0.05), transparent);
    border: 1.5px solid var(--prime-gold);
    border-radius: 40px; /* Reduced from 80px for a cleaner, modern look */
    pointer-events: none;
}

/* 4. Container - Closing the gap between text and image */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px; /* Reduced gap between text and image */
    padding: 0 40px;
}

/* 5. Text Adjustments */
.hero-text-content {
    flex: 1;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--prime-black);
}

.text-green {
    color: var(--prime-green);
}

/* 6. Image Wrapper - Bigger Image, Softer Shadow */
.hero-image-wrapper {
    flex: 1.3; /* Increased from 1.2 to make image larger */
    display: flex;
    justify-content: center;
}

.image-border-glow {
    width: 100%; /* Ensures it fills the flex container */
    max-width: 650px; /* Adjust this to make image bigger or smaller */
    border-radius: 20px; /* Reduced curve for the image itself */
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures image fills the area cleanly */
}

/* 7. Button Fix */
.btn-green {
    background-color: var(--prime-green);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}