/* MyTCoat Website - Main Stylesheet */

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #2c2c2a;
    background: #fafafa;
}

/* ===================================
   BRAND COLORS
   =================================== */
:root {
    --brand-navy: #003B5C;
    --brand-navy-light: #004d78;
    --brand-navy-dark: #002a42;

    --text-primary: #2c2c2a;
    --text-secondary: #5f5e5a;
    --text-tertiary: #888780;

    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #fafafa;

    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.15);

    --blue: #378ADD;
    --green: #639922;
    --red: #E24B4A;
    --amber: #EF9F27;
    --teal: #1D9E75;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 2.25rem; /* 36px */
}

h2 {
    font-size: 1.75rem; /* 28px */
}

h3 {
    font-size: 1.375rem; /* 22px */
}

h4 {
    font-size: 1.125rem; /* 18px */
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.site-header {
    background: var(--brand-navy);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: white;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: white;
    opacity: 0.95;
    font-size: 0.9375rem;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 1;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Fallback image when video ends or on mobile */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

/* Blue overlay on top of video/image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 59, 92, 0.85) 0%, rgba(0, 77, 120, 0.75) 100%);
    z-index: 1;
}

/* Decorative circles on overlay */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: translate(-20%, 20%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* Hide video on mobile to save bandwidth */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }

    .hero-image {
        opacity: 1;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.0625rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    opacity: 0.9;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--brand-navy);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-primary);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #E6F1FB 0%, #B5D4F4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

.feature-icon.green {
    background: linear-gradient(135deg, #EAF3DE 0%, #C0DD97 100%);
}

.feature-icon.amber {
    background: linear-gradient(135deg, #FAEEDA 0%, #FAC775 100%);
}

.feature-icon.teal {
    background: linear-gradient(135deg, #E1F5EE 0%, #9FE1CB 100%);
}

.feature-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   CATEGORY CARDS
   =================================== */
.categories-section {
    padding: 4rem 0;
    background: var(--bg-tertiary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-primary);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
}

.category-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(0, 59, 92, 0.15);
}

.category-content {
    padding: 1.5rem;
}

.category-meta {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.category-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

/* ===================================
   VALUE PROPS SECTION
   =================================== */
.value-props {
    background: var(--bg-primary);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 4rem 0;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.value-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.value-icon.blue {
    background: var(--bg-secondary);
    color: var(--blue);
}

.value-icon.green {
    background: #EAF3DE;
    color: var(--green);
}

.value-icon.amber {
    background: #FAEEDA;
    color: var(--amber);
}

.value-icon.teal {
    background: #E1F5EE;
    color: var(--teal);
}

.value-title {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.value-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section h4 {
    color: white;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .categories-grid,
    .features-grid,
    .value-props-grid {
        grid-template-columns: 1fr;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}