/* 
   Redline Tactix, LLC - Main Stylesheet
   Designed for High-End Performance & Seamless Squarespace Migration
   Based on Client Master Design & Development Specification
*/

/* -----------------------------------------
   1. Design System & CSS Variables
----------------------------------------- */
:root {
    /* Color Palette */
    --rt-navy: #0A192F;
    --rt-navy-light: #162E52;
    --rt-navy-dark: #050C16;
    --rt-silver: #F0F4F8;
    --rt-charcoal: #1A1A1A;
    --rt-red: #C8102E;
    --rt-red-hover: #9E0B20;
    
    /* Elements Backgrounds */
    --rt-light-bg: #F0F4F8;
    --rt-card-bg: #FFFFFF;
    --rt-text-dark: #1A1A1A;
    --rt-text-muted: #555555;
    --rt-text-light: #FFFFFF;
    --rt-border: rgba(10, 25, 47, 0.1);
    
    /* Typography */
    --rt-font-heading: 'Plus Jakarta Sans', sans-serif;
    --rt-font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --rt-container-width: 1200px;
    --rt-radius-sm: 6px;
    --rt-radius-md: 12px;
    --rt-radius-lg: 20px;
    
    /* Transitions */
    --rt-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -----------------------------------------
   2. Reset & General Styles
----------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--rt-font-body);
    background-color: var(--rt-silver);
    color: var(--rt-charcoal);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rt-font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--rt-transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--rt-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* -----------------------------------------
   3. Header Navigation
----------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--rt-navy);
    border-bottom: 1px solid rgba(240, 244, 248, 0.08);
    transition: var(--rt-transition);
}

/* Scrolled Header State */
.site-header.scrolled {
    background-color: rgba(7, 17, 32, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: var(--rt-container-width);
    margin: 0 auto;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: var(--rt-transition);
}

.site-header.scrolled .header-container {
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    transition: var(--rt-transition);
}

.site-header.scrolled .header-logo {
    height: 56px;
}

.logo-text {
    font-family: var(--rt-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--rt-text-light);
    letter-spacing: -0.5px;
}

.logo-subtext {
    color: var(--rt-red);
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: rgba(240, 244, 248, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rt-red);
    transition: var(--rt-transition);
}

.main-nav a:hover {
    color: var(--rt-text-light);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-button-header {
    background-color: var(--rt-red);
    color: var(--rt-text-light);
    padding: 10px 20px;
    border-radius: var(--rt-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.cta-button-header:hover {
    background-color: var(--rt-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--rt-text-light);
    border-radius: 2px;
    transition: var(--rt-transition);
}

/* -----------------------------------------
/* -----------------------------------------
   4. Hero Section (Navy with Split Screen & Grid Overlay)
----------------------------------------- */
.hero-section {
    position: relative;
    margin-top: 90px; /* Offset for desktop header */
    min-height: 75vh;
    background-color: var(--rt-navy);
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
}

/* Left panel: Copy */
.hero-content-panel {
    position: relative;
    width: 52%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 80px 48px 80px 10%;
    z-index: 10;
}

.hero-content-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--rt-navy);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 1;
}

.hero-content-inner {
    max-width: 540px;
    position: relative;
    z-index: 3;
}

.hero-tag {
    color: var(--rt-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--rt-text-light);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: rgba(240, 244, 248, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Right panel: Profile Image */
.hero-image-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Diagonal shape backgrounds matching mockup colors */
.hero-bg-shape-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--rt-navy-light);
    z-index: -1;
}

/* Skewed decorative accents on the content side (left of the split) */
.hero-accent-shape-1 {
    position: absolute;
    top: 0;
    right: 65px;
    width: 80px;
    height: 100%;
    background-color: var(--rt-navy-light);
    transform: skewX(-12deg);
    z-index: 2;
    opacity: 0.6;
}

.hero-accent-shape-2 {
    position: absolute;
    top: 0;
    right: 25px;
    width: 40px;
    height: 100%;
    background-color: var(--rt-red);
    transform: skewX(-12deg);
    z-index: 2;
    opacity: 0.8;
}

/* -----------------------------------------
   5. The Redline Difference Section
----------------------------------------- */
.difference-section {
    padding: 100px 0;
    background-color: var(--rt-silver);
}

.difference-header {
    text-align: center;
    margin-bottom: 50px;
}

.difference-header h2 {
    font-size: 2.5rem;
    color: var(--rt-navy);
    margin: 8px 0;
}

.difference-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--rt-navy);
    margin-bottom: 20px;
}

.difference-text-grid p {
    color: var(--rt-text-muted);
    margin-bottom: 16px;
}

.difference-actions {
    margin-top: 32px;
}

/* -----------------------------------------
   6. Redline Divider Accent
----------------------------------------- */
.redline-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rt-border) 20%, var(--rt-border) 80%, transparent);
    position: relative;
    margin: 20px 0;
    width: 100%;
}

.redline-divider::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 3px;
    height: 13px;
    background-color: var(--rt-red);
    transform: translateX(-50%) rotate(25deg);
}

/* -----------------------------------------
   7. About Kristie Section
----------------------------------------- */
.about-section {
    padding: 100px 0;
    background-color: var(--rt-silver);
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h2 {
    font-size: 2.5rem;
    color: var(--rt-navy);
    margin: 8px 0;
}

.about-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rt-text-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.executive-quote {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    color: var(--rt-navy);
    line-height: 1.6;
    border-left: 4px solid var(--rt-red);
    padding-left: 24px;
    margin-bottom: 40px;
}

.strengths-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.strength-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.strength-icon {
    font-size: 1.5rem;
    color: var(--rt-red);
    background-color: rgba(200, 16, 46, 0.05);
    width: 48px;
    height: 48px;
    border-radius: var(--rt-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.strength-info h3 {
    font-size: 1.15rem;
    color: var(--rt-navy);
    margin-bottom: 8px;
}

.strength-info p {
    color: var(--rt-text-muted);
    font-size: 0.95rem;
}

.narrative-box {
    background-color: var(--rt-navy);
    color: var(--rt-text-light);
    padding: 48px;
    border-radius: var(--rt-radius-lg);
    border-left: 6px solid var(--rt-red);
    height: fit-content;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.1);
}

.narrative-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--rt-text-light);
}

.narrative-box p {
    color: rgba(240, 244, 248, 0.85);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.narrative-box p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   8. The Track Record Section (Flip Cards)
----------------------------------------- */
.track-record-section {
    padding: 100px 0;
    background-color: var(--rt-silver);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--rt-text-muted);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* 3D Flip Card Effect */
.flip-card {
    background-color: transparent;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: var(--rt-radius-md);
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.04);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--rt-radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
}

.flip-card-front {
    background-color: var(--rt-card-bg);
    color: var(--rt-navy);
    border: 1px solid var(--rt-border);
}

.flip-card-front .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rt-navy);
    line-height: 1;
    margin-bottom: 12px;
    font-family: var(--rt-font-heading);
}

.flip-card-front .stat-label {
    font-size: 0.95rem;
    color: var(--rt-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hover-indicator {
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--rt-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-card-back {
    background-color: var(--rt-navy);
    color: var(--rt-text-light);
    transform: rotateY(180deg);
    border: 1px solid rgba(240, 244, 248, 0.08);
}

.flip-card-back h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--rt-text-light);
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(240, 244, 248, 0.9);
}

/* -----------------------------------------
   9. Tactical Capabilities (Glassmorphism)
----------------------------------------- */
.capabilities-section {
    padding: 100px 0;
    background-color: var(--rt-silver);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

/* White Glassmorphism Cards */
.capability-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: var(--rt-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.02);
    transition: var(--rt-transition);
}

.capability-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.12);
}

.capability-icon {
    font-size: 1.75rem;
    color: var(--rt-red);
    margin-bottom: 24px;
}

.capability-card h3 {
    font-size: 1.25rem;
    color: var(--rt-navy);
    margin-bottom: 16px;
}

.capability-card p {
    color: var(--rt-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* -----------------------------------------
   10. Contact Section & Hours (Navy Canvas)
----------------------------------------- */
.contact-section {
    background-color: var(--rt-navy);
    color: var(--rt-text-light);
    padding: 100px 0 60px 0;
    border-top: 1px solid rgba(240, 244, 248, 0.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-info-panel h2 {
    font-size: 2.25rem;
    margin-bottom: 40px;
    color: var(--rt-text-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.15rem;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--rt-red);
    width: 32px;
}

.contact-details a:hover {
    color: var(--rt-red);
}

.office-hours h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--rt-text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.office-hours h3 i {
    color: var(--rt-red);
}

.office-hours ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid rgba(240, 244, 248, 0.15);
    padding-left: 20px;
}

.office-hours li {
    font-size: 1rem;
    color: rgba(240, 244, 248, 0.85);
}

.office-hours li strong {
    color: var(--rt-text-light);
}

.office-hours .note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
}

.contact-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--rt-red);
    margin-bottom: 12px;
}

.brand-main {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--rt-text-light);
}

.disclaimer-area {
    border-top: 1px solid rgba(240, 244, 248, 0.08);
    padding-top: 40px;
    text-align: center;
}

.disclaimer-note {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--rt-red);
    max-width: 800px;
    margin: 0 auto;
}

/* -----------------------------------------
   11. Footer
----------------------------------------- */
.site-footer {
    background-color: var(--rt-navy-dark);
    padding: 30px 0;
    border-top: 1px solid rgba(240, 244, 248, 0.05);
    color: rgba(240, 244, 248, 0.5);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--rt-red);
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--rt-text-light);
    text-decoration: underline;
}

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

/* -----------------------------------------
   12. Scroll Animations
----------------------------------------- */
.animate-up, .animate-left, .animate-right, .animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-up {
    transform: translateY(30px);
}

.animate-left {
    transform: translateX(-30px);
}

.animate-right {
    transform: translateX(30px);
}

.animate-fade-in {
    transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* -----------------------------------------
   13. Responsive Media Queries
----------------------------------------- */
@media (max-width: 1024px) {
    .hero-section {
        margin-top: 90px; /* Offset for tablet header */
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content-panel {
        width: 100%;
        min-height: auto;
        padding: 120px 24px 60px 24px;
        text-align: center;
        justify-content: center;
        clip-path: none;
        background-color: var(--rt-navy);
    }
    
    .hero-content-bg {
        display: none;
    }
    
    .hero-content-inner {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-panel {
        position: relative;
        width: 100%;
        height: 500px;
        top: auto;
        right: auto;
    }
    
    .hero-accent-shape-1, .hero-accent-shape-2 {
        display: none;
    }
    
    .hero-bg-shape-1 {
        display: none;
    }
    
    .difference-text-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .contact-brand-panel {
        align-items: center;
        text-align: center;
    }
    
    .office-hours ul {
        border-left: none;
        border-top: 1px solid rgba(240, 244, 248, 0.15);
        padding-left: 0;
        padding-top: 16px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 80px;
    }
    
    .header-logo {
        height: 52px;
    }
    
    .site-header.scrolled .header-container {
        height: 70px;
    }
    
    .site-header.scrolled .header-logo {
        height: 48px;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--rt-navy);
        padding: 40px 24px;
        transition: var(--rt-transition);
        border-top: 1px solid rgba(240, 244, 248, 0.08);
    }
    
    .site-header.scrolled .main-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .main-nav.nav-open {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .main-nav a {
        font-size: 1.25rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.toggle-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.toggle-active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.toggle-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .cta-button-header {
        display: none; /* Hide header CTA button on mobile (phone number in footer contact is easy click) */
    }
    
    .hero-section {
        margin-top: 80px; /* Offset for mobile header */
        min-height: 60vh;
    }
}
