/* ═══════════════════════════════════════════════════════════
   K9 ATF — Law Enforcement Portal CSS
   Design: Tactical, Authoritative, High-Contrast
   Colors: Midnight Navy + Tactical Gold + Stark White
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    /* Tactical Palette */
    --navy-black: #020617;
    --navy-deep: #0f172a;
    --navy-tactical: #1e293b;
    --gold: #facc15;
    --gold-dark: #eab308;
    --white: #f8fafc;
    --slate: #94a3b8;
    --crimson: #ef4444;

    /* Spacing & Layout */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --container-max: 1240px;
    --shadow-tactical: 0 10px 40px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

/* ═══════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════ */
.site-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-text small {
    display: block;
    font-size: 0.65rem;
    color: var(--gold);
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.btn-login {
    background: var(--gold);
    color: var(--navy-black);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn-login:hover {
    background: white;
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════
   HERO & CAROUSEL
   ═══════════════════════════════════════════ */
.hero-carousel {
    position: relative;
    height: 700px;
    background: #000;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active { opacity: 0.6; }

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.carousel-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.carousel-content h1 span { color: var(--gold); }

.carousel-content p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════ */
.content-section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 1rem auto;
}

.section-title span { color: var(--gold); }

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

.service-card {
    background: var(--navy-tactical);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    transition: transform 0.3s, background 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    background: #2d3748;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-display);
}

/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 84px);
}

.login-form-side {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--navy-deep);
}

.login-image-side {
    background-image: url('/images/k9-hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.login-card {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.login-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--navy-black);
    border: 1px solid var(--navy-tactical);
    color: white;
    border-radius: 4px;
}

.form-group input:focus {
    border-color: var(--gold);
    outline: none;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background: var(--navy-black);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(250, 204, 21, 0.1);
}

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

.footer-col h4 {
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    color: var(--slate);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--slate);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .login-split { grid-template-columns: 1fr; }
    .login-image-side { display: none; }
}
