/* Blackwell Project - Main Stylesheet */

/* --- VARIABLES --- */
:root {
    --primary-black: #1a1a1a;
    --steel-blue: #4a6fa5;
    --gunmetal-gray: #2c3e50;
    --silver: #c0c0c0;
    --white: #ffffff;
    --accent-blue: #3498db;
    --body-bg: var(--primary-black);
    --text-color: var(--silver);
    --heading-color: var(--white);
    --border-color: #3e4c5a;
    --header-font: 'Oswald', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* --- CUSTOM CURSOR --- */
html {
    cursor: url('../images/crosshairs.svg') 16 16, auto;
}

/* --- Restore pointer for clickable elements for better UX --- */
a, 
button, 
.btn, 
input[type="submit"], 
.lightbox-trigger, 
.faq-item summary,
.mobile-nav-toggle {
    cursor: pointer;
}

/* --- GLOBAL & RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--body-font);
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 {
    font-family: var(--header-font);
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-blue); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--white); }
ul { list-style-type: none; }
img { max-width: 100%; height: auto; }

/* --- UTILITIES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--header-font);
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}
.btn-primary { background-color: var(--steel-blue); color: var(--white); }
.btn-primary:hover { background-color: #3e5a8e; }
.btn-accent { background-color: var(--accent-blue); color: var(--white); }
.btn-accent:hover { background-color: #2980b9; }
.btn-secondary { border-color: var(--steel-blue); color: var(--steel-blue); }
.btn-secondary:hover { background-color: var(--steel-blue); color: var(--white); }

.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; color: var(--silver); }
.content-section { padding: 80px 0; }
.alternate-bg { background-color: var(--gunmetal-gray); }

/* --- HEADER --- */
.main-header {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul { display: flex; align-items: center; }
.main-nav li { margin-left: 25px; }
.main-nav a {
    color: var(--silver);
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--header-font);
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--white);
    border-bottom-color: var(--accent-blue);
}
.main-nav a.btn { border: none; padding: 12px 28px; }
.main-nav a.btn.active { background-color: #3e5a8e; color: var(--white); } 
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* --- FIX FOR FIXED HEADER OVERLAP --- */
main > *:first-child {
    margin-top: 70px;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    color: var(--white);
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 26, 0.7); }
.hero-section .container { position: relative; z-index: 2; }
.hero-title { font-size: 4.5rem; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.3rem; max-width: 700px; margin: 0 auto 2rem auto; color: var(--silver); }

/* --- PAGE SECTIONS --- */
.tagline-section { background: var(--gunmetal-gray); padding: 30px 0; text-align: center; }
.tagline-section h2 { font-size: 1.5rem; letter-spacing: 4px; color: var(--steel-blue); }

.services-overview-section { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background-color: var(--gunmetal-gray);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.service-card h3 { margin-bottom: 1rem; color: var(--accent-blue); }
.service-card .read-more { display: inline-block; margin-top: 1rem; font-weight: bold; }

.stats-section { background-color: var(--gunmetal-gray); padding: 60px 0; }
.stats-section .container { display: flex; justify-content: space-around; text-align: center; }
.stat-number { display: block; font-family: var(--header-font); font-size: 3rem; color: var(--accent-blue); }
.stat-label { font-size: 1.1rem; color: var(--silver); }

.cta-section { text-align: center; padding: 80px 0; background-color: var(--primary-black); }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 600px; margin: 0 auto 2rem; }

.testimonials-section { padding: 80px 0; background-color: var(--gunmetal-gray); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: var(--primary-black);
    padding: 30px;
    border-left: 4px solid var(--steel-blue);
}
.testimonial-card blockquote { font-style: italic; margin-bottom: 1rem; }
.testimonial-card cite { font-weight: bold; color: var(--silver); }

/* --- GENERIC PAGE HEADER --- */
.page-header {
    padding: 80px 0 60px; /* Adjusted top padding to work with header fix */
    background: var(--gunmetal-gray);
    text-align: center;
}
.page-header h1 { font-size: 3.5rem; }
.page-header p { font-size: 1.2rem; color: var(--silver); }

/* --- ABOUT PAGE --- */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.content-sidebar .sidebar-widget { background: var(--gunmetal-gray); padding: 20px; margin-bottom: 20px; border-radius: 4px; }
.sidebar-image { margin-bottom: 1rem; border-radius: 4px; }
.about-logo-container {
    text-align: center;
    margin-bottom: 3rem;
}
.about-logo-container img {
    max-width: 150px;
    height: auto;
}
.content-main h2:not(:first-of-type) {
    margin-top: 2.5rem;
}

/* --- SERVICES PAGE --- */
.service-item { display: flex; gap: 30px; margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border-color); }
.service-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-item:nth-child(even) { flex-direction: row-reverse; }
.service-image { flex: 0 0 40%; max-width: 40%; object-fit: cover; border-radius: 4px; }
.service-content ul { list-style: disc; padding-left: 20px; margin: 1rem 0; }
.service-content h2 { margin-bottom: 1rem; }

/* --- GALLERY PAGE --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 4px; display: block; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-family: var(--header-font); font-size: 1.2rem; }
.lightbox { display: none; position: fixed; z-index: 1001; padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; max-width: 80%; max-height: 80%; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }

/* --- RESOURCES PAGE --- */
.resource-list { display: grid; gap: 20px; }
.resource-item { background: var(--gunmetal-gray); padding: 25px; border-radius: 4px; }
.faq-item summary { font-weight: bold; cursor: pointer; padding: 15px; background: var(--gunmetal-gray); border-radius: 4px; margin-bottom: 5px; position: relative; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; font-size: 1.5rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 15px; background: var(--primary-black); border-radius: 0 0 4px 4px; }

/* --- CONTACT PAGE --- */
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; }
.contact-info-container h3 { margin-bottom: 1.5rem; }
.contact-info-container p { margin-bottom: 1.5rem; }
.map-placeholder { height: 250px; background: var(--gunmetal-gray); display: flex; align-items: center; justify-content: center; border-radius: 4px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    background: var(--gunmetal-gray);
    border: 1px solid var(--border-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.checkbox-group label { display: block; margin-bottom: 5px; }
.form-group .error-message { color: #e74c3c; font-size: 0.9rem; margin-top: 5px; display: none; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #e74c3c; }
#form-status { margin-top: 20px; text-align: center; }
#form-status.success { color: #2ecc71; }
#form-status.error { color: #e74c3c; }

/* --- FOOTER --- */
.main-footer { background: var(--gunmetal-gray); padding: 60px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: center; 
}
.footer-col h4 { margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--silver); }
.footer-col a:hover { color: var(--accent-blue); }

.footer-logo {
    max-width: 180px;
    height: auto;
}

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 0.9rem; }
.footer-bottom a { color: var(--silver); }

/* --- PRINT STYLES --- */
@media print {
    body { background-color: #fff; color: #000; }
    .main-header, .main-footer, .btn, .page-header { display: none; }
    .container { max-width: 100%; padding: 0; }
    h1, h2, h3 { color: #000; }
    a { color: #000; text-decoration: none; }
    .service-item, .contact-layout { display: block; }
    .service-image { display: none; }
}