/* ===================================
   TruNav LLC Website - Main Styles
   =================================== */

/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
    /* Colors */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --neutral-dark: #1f2937;
    --neutral-gray: #6b7280;
    --neutral-light: #f3f4f6;
    --white: #ffffff;
    --text-dark: #111827;
    --text-light: #4b5563;

    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 6rem;      /* 96px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Container */
    --container-max-width: 1200px;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-light);
}

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

ul {
    list-style: none;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    color: var(--neutral-dark);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-base);
}

.logo-img:hover {
    opacity: 0.8;
}

/* Legacy text-based logo styles (kept for backwards compatibility) */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-gray);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-menu a:not(.btn-nav):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-base);
}

.nav-menu a:not(.btn-nav):hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--neutral-dark);
    transition: var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0ea5e9 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(14, 165, 233, 0.75) 100%),
        url('../images/hero/main-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
    color: var(--white);
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--neutral-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

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

.btn-light:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

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

/* ===================================
   Features Section
   =================================== */
.features {
    background-color: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: var(--space-2xl);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--neutral-light);
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--neutral-dark);
    margin-bottom: var(--space-md);
}

.feature-card p {
    color: var(--text-light);
}

/* ===================================
   Solutions Preview Section
   =================================== */
.solutions-preview {
    background-color: var(--neutral-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-2xl);
}

.solution-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.solution-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.solution-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: var(--neutral-light);
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 64, 175, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.solution-card:hover .solution-overlay {
    opacity: 1;
}

.solution-content {
    padding: var(--space-2xl);
}

.solution-content h3 {
    color: var(--neutral-dark);
    margin-bottom: var(--space-sm);
}

.solution-tagline {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.solution-features {
    list-style: none;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

.solution-features i {
    color: var(--accent-color);
}

/* ===================================
   Industries Section
   =================================== */
.industries {
    background-color: var(--white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.industry-card {
    text-align: center;
    padding: var(--space-2xl);
    transition: var(--transition-base);
}

.industry-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
    background-color: var(--neutral-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: var(--transition-base);
}

.industry-card:hover .industry-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: scale(1.1);
}

.industry-card h3 {
    color: var(--neutral-dark);
    margin-bottom: var(--space-md);
}

/* ===================================
   News/Awards Section
   =================================== */
.news-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.news-content {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.award-badge {
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.news-text h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.news-text p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: var(--space-lg);
}

.news-text .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.news-text .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ===================================
   Clients Section
   =================================== */
.clients {
    background-color: var(--neutral-light);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    align-items: center;
}

.client-logo {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: var(--transition-base);
}

.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.client-logo img {
    max-width: 150px;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-base);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--neutral-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}
