/**
 * Custom CSS for Testproject Site Package
 * Modern template styles with Tailwind CSS utilities
 */

/* ============================================
   CSS Variables & Custom Properties
   ============================================ */
:root {
    /* Primary Colors - Orange/Rust theme */
    --color-primary: #C45A31;
    --color-primary-light: #E67E4F;
    --color-primary-dark: #A0451F;
    
    /* Secondary Colors - Blue theme */
    --color-secondary: #2C7FB8;
    --color-secondary-light: #4DA3D5;
    --color-secondary-dark: #0F1D3F;
    
    /* Neutral Colors */
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    
    /* Spacing */
    --spacing-container: 1rem;
    --spacing-section: 4rem;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-gray-900);
    margin: 0;
    padding: 0;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   Header Styles
   ============================================ */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 50;
}

.site-header.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.sticky.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.site-logo img {
    height: 3.5rem;
    width: auto;
}

.main-navigation a {
    color: var(--color-gray-700);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-gray-900);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

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

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
    text-decoration: none;
}

/* ============================================
   Hero Section Styles
   ============================================ */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0F1D3F 0%, #2C7FB8 50%, #ffffff 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 29, 63, 0.7) 0%,
        rgba(196, 90, 49, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section.text-left .hero-content {
    text-align: left;
}

.hero-section.text-center .hero-content {
    text-align: center;
}

.hero-section.text-right .hero-content {
    text-align: right;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 600px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 6rem 2rem;
    }
}

/* ============================================
   Features Section Styles
   ============================================ */
.features-section {
    padding: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-gray-900);
}

.feature-card p {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

/* ============================================
   CTA Section Styles
   ============================================ */
.cta-section {
    padding: 4rem 0;
}

.cta-section.bg-primary {
    background: var(--color-primary);
    color: white;
}

.cta-section.bg-gray-900 {
    background: var(--color-gray-900);
    color: white;
}

.cta-section.bg-gray-100 {
    background: var(--color-gray-100);
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    background: var(--color-gray-900);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-col h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(196, 90, 49, 0.3);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary {
    color: var(--color-primary);
}

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

.text-white {
    color: white;
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-400 {
    color: rgba(0, 0, 0, 0.4);
}

/* ============================================
   Responsive Grid Utilities
   ============================================ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================
   Content Blocks Specific Styles
   ============================================ */
.cb-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cb-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.cb-card__body {
    padding: 1.5rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   Modern Design Patterns
   ============================================ */

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
}

.bg-gradient-hero {
    background: linear-gradient(
        135deg,
        #0F1D3F 0%,
        #C45A31 30%,
        #2C7FB8 60%,
        #ffffff 100%
    );
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Animated Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(196, 90, 49, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-waves {
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(196, 90, 49, 0.05) 50%,
        transparent 70%
    );
    background-size: 100px 100px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .btn {
        display: none;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
