/* =============================================
   GLOBAL CSS - Blackwatch Security
   Shared styles: reset, typography, header, footer, utilities
   ============================================= */

/* ---- CSS Variables ---- */
:root {
    --red: #E31E24;
    --red-dark: #b91519;
    --black: #0d0d0d;
    --dark: #1a1a1a;
    --dark-2: #222222;
    --gray: #555555;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --footer-bg: #1c2028;
    --font-main: 'Barlow', sans-serif;
    --font-heading: 'Barlow Condensed', sans-serif;
    --header-height: 70px;
    --transition: 0.3s ease;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.03em;
}

/* ---- Utilities ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title .accent {
    color: var(--red);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 48px;
    max-width: 600px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 12px 0 40px 0;
    border-radius: 2px;
}

.title-underline.center {
    margin: 12px auto 40px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--red);
}

/* ---- Page Banner (used on inner pages globally) ---- */
.page-banner {
    height: 140px;
    background: #7a7a7a !important; /* solid flat gray like in the image */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 90px;
}

.page-banner::before,
.page-banner-bg {
    display: none !important;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-banner-content h1 {
    font-size: 26px;
    font-weight: 700;
    text-transform: none; /* Changed from uppercase to match image */
    letter-spacing: 0;
    margin-bottom: 5px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--white);
    opacity: 0.9;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb span {
    color: var(--white);
    opacity: 0.7;
    margin: 0 4px;
}

/* ==============================================
   HEADER
   ============================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: height 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.site-header.inner-page {
    background: #ffffff;
}

/* Logos & Red V Area */
.logo-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-large-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100px;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 1001;
}

.logo-large-link img {
    width: 100%;
    max-width: 240px;
    height: auto;
    z-index: 2;
    position: relative;
    display: block;
}

/* Scrolled state hides the huge red V */
.site-header.scrolled .logo-large-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

/* Small Logo */
.logo-small-link {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.logo-small-link img {
    height: 44px;
    width: auto;
}

.site-header.scrolled .logo-small-link {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) translateX(0);
}

/* Navigation */
.main-nav {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-list li a {
    color: #111;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 12px;
    transition: color var(--transition);
}

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

/* Social icons in header */
.header-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.header-social a {
    color: #111;
    font-size: 0.95rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.header-social a:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 16px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Open State Fix */
.main-nav.open .nav-list li a {
    color: #ffffff;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    gap: 48px;
}

.footer-logo img {
    max-width: 220px;
    margin-bottom: 24px;
}

.footer-certs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 0;
}

.footer-nav-columns {
    display: flex;
    gap: 32px;
}

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

.footer-nav-columns ul li a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
    font-size: 0.88rem;
}

.footer-nav-columns ul li a:hover {
    color: var(--red);
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    font-size: 0.9rem;
}

.contact-info-list li i {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
    font-size: 1rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.contact-info-list li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.contact-info-list li a:hover {
    color: var(--red);
}

.footer-bottom {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
    color: var(--red);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: background var(--transition);
}

.footer-social a:hover {
    background: var(--red);
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #333333;
    color: var(--white);
    border: none;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    transform: translateY(10px);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--red-dark);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        letter-spacing: 0.04em;
    }

    .title-underline {
        margin: 10px 0 28px 0;
    }

    .page-banner {
        height: 240px;
    }

    .page-banner-content h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        letter-spacing: 0.05em;
    }

    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .site-header {
        padding: 0 20px;
    }

    .logo-large-container {
        display: none !important;
    }

    .logo-small-link {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(-50%) translateX(0) !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--black);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--transition);
        margin-left: 0;
        padding: 90px 20px 20px;
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nav-list li a {
        font-size: 1.1rem;
        padding: 8px 16px;
    }

    .hamburger {
        display: flex;
        z-index: 10;
    }

    .header-social {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-nav-columns {
        flex-direction: column;
        gap: 8px;
    }

    .contact-info-list li {
        font-size: 0.85rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0 14px;
    }

    .nav-list li a {
        font-size: 1rem;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}