/*
Theme Name: Freedom IT
Theme URI: https://freedomit.com
Author: Freedom IT
Author URI: https://freedomit.com
Description: A modern, professional theme for Freedom IT - Veteran owned MSP providing IT solutions that set you free.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freedomit
*/

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    /* Colors - Light theme with dark accent cards */
    --background: hsl(210, 20%, 98%);
    --foreground: hsl(220, 40%, 10%);
    
    /* Dark accent cards */
    --card: hsl(220, 40%, 12%);
    --card-foreground: hsl(200, 20%, 95%);
    
    /* Cyan primary from logo */
    --primary: hsl(187, 100%, 42%);
    --primary-foreground: hsl(0, 0%, 100%);
    
    --secondary: hsl(210, 15%, 92%);
    --secondary-foreground: hsl(220, 40%, 15%);
    
    --muted: hsl(210, 15%, 90%);
    --muted-foreground: hsl(220, 15%, 40%);
    
    --border: hsl(210, 15%, 85%);
    
    /* Custom Freedom IT colors */
    --glow-cyan: hsl(187, 100%, 42%);
    --glow-blue: hsl(210, 90%, 50%);
    --dark-navy: hsl(220, 45%, 12%);
    --gradient-start: hsl(187, 100%, 42%);
    --gradient-end: hsl(210, 90%, 50%);
    --accent-red: hsl(348, 83%, 39%);
    --brand-cyan: hsl(195, 97%, 45%);
    
    /* Spacing */
    --radius: 0.75rem;
    --container-max: 1400px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   GLOBAL LINK RESET - REMOVE TEXT UNDERLINES
   ============================================ */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effects */
.glow-cyan {
    box-shadow: 0 0 20px hsla(187, 100%, 42%, 0.4),
                0 0 40px hsla(187, 100%, 42%, 0.2),
                0 0 60px hsla(187, 100%, 42%, 0.1);
}

.glow-text {
    text-shadow: 0 0 20px hsla(187, 100%, 42%, 0.6),
                 0 0 40px hsla(187, 100%, 42%, 0.3);
}

/* Card styles */
.glass-card {
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(220, 30%, 20%);
}

.light-card {
    background: hsl(0, 0%, 100%);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px hsla(220, 40%, 10%, 0.08);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsla(220, 40%, 12%, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* BRAND - Has red underline via border-bottom */
.navbar-brand { font-size: 1.25rem; font-weight: 700; border-bottom: 2px solid var(--accent-red); padding-bottom: 0.125rem; }
.brand-freedom { color: #fff !important; }
.brand-it { color: var(--brand-cyan) !important; }

.navbar-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-nav a,
.navbar-nav li a {
    color: hsla(200, 20%, 95%, 0.8) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav a:hover,
.navbar-nav li a:hover {
    color: var(--primary) !important;
}

.navbar-cta {
    display: inline-flex;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--primary-foreground) !important;
    transition: opacity 0.3s ease;
}

.navbar-cta:hover {
    opacity: 0.9;
}

/* Mobile menu */
.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--card-foreground);
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: hsla(200, 20%, 95%, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary) !important;
}

.mobile-menu .navbar-cta {
    text-align: center;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
    
    .navbar-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-logo {
    width: 15rem;
    height: auto;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 42rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--primary-foreground) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 2px solid var(--accent-red) !important;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--foreground) !important;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: hsla(348, 83%, 39%, 0.1);
}

.hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 48rem;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
}

.trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.trust-item span {
    font-weight: 500;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-logo {
        width: 20rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .hero-trust {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 6rem 0;
    position: relative;
    background: hsla(210, 15%, 90%, 0.3);
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--background), hsla(210, 15%, 90%, 0.2), var(--background));
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    border-radius: 1rem;
    padding: 2rem;
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: hsla(187, 100%, 42%, 0.5);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
    box-shadow: 0 0 20px hsla(187, 100%, 42%, 0.4);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-foreground);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--card-foreground);
}

.service-card p {
    color: hsla(200, 20%, 95%, 0.7);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    padding: 6rem 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.why-us-content > p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background: hsla(187, 100%, 42%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.benefit-item h3 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Stats card */
.stats-wrapper {
    position: relative;
}

.stats-card {
    border-radius: 1.5rem;
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: hsla(200, 20%, 95%, 0.7);
}

.stats-glow {
    position: absolute;
    inset: -1rem;
    background: hsla(187, 100%, 42%, 0.05);
    border-radius: 1.5rem;
    filter: blur(24px);
    z-index: -1;
}

@media (min-width: 768px) {
    .why-us-content h2 {
        font-size: 3rem;
    }
    
    .stats-card {
        padding: 3rem;
    }
    
    .stat-value {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 6rem 0;
    position: relative;
    background: hsla(210, 15%, 90%, 0.3);
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(210, 15%, 90%, 0.3), var(--background));
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info > p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-foreground);
}

.contact-item-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.contact-item-value {
    font-weight: 500;
    color: var(--foreground);
}

/* Contact form */
.contact-form-wrapper {
    border-radius: 1rem;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-submit svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--card);
    padding: 3rem 0;
    background: var(--card);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* FOOTER BRAND - Has red underline via border-bottom */
.footer-brand { font-size: 1.25rem; font-weight: 700; border-bottom: 2px solid var(--accent-red); padding-bottom: 0.125rem; display: inline-block; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.footer-nav a,
.footer-nav li a {
    font-size: 0.875rem;
    color: hsla(200, 20%, 95%, 0.7) !important;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav li a:hover {
    color: var(--primary) !important;
}

.footer-copyright {
    font-size: 0.875rem;
    color: hsla(200, 20%, 95%, 0.7);
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   FORM SUCCESS/ERROR MESSAGES
   ============================================ */
.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: hsla(142, 76%, 36%, 0.1);
    color: hsl(142, 76%, 36%);
    border: 1px solid hsl(142, 76%, 36%);
}

.form-message.error {
    background: hsla(0, 84%, 60%, 0.1);
    color: hsl(0, 84%, 60%);
    border: 1px solid hsl(0, 84%, 60%);
}

/* ============================================
   INTERSECTION OBSERVER ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}