/**
 * Phillips Automotive - Custom Styles
 * Brand Identity: Two-Blue Palette (NAPA Blue + Sky Blue)
 * Theme: Light/Bright Professional with Premium Animations
 */

/* ============================================
   CSS Variables - Brand Colors
   ============================================ */
:root {
    /* Primary Colors (Two-Blue System) */
    --color-primary: #001489;
    --color-primary-dark: #000d5c;
    --color-primary-light: #1E3A8A;
    --color-secondary: #87CEEB;
    --color-secondary-light: #B0E0E6;

    /* Accent Colors */
    --color-accent: #FFC72C;
    --color-accent-hover: #E6B327;
    --color-signal-red: #C8102E;

    /* Success/Status */
    --color-success: #16A34A;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-off-white: #F8FAFC;
    --color-light-gray: #E2E8F0;
    --color-medium-gray: #64748B;
    --color-dark-gray: #334155;
    --color-near-black: #0F172A;

    /* Light Theme Backgrounds */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-section: #F1F5F9;
    --color-card-bg: #FFFFFF;
    --color-card-border: #E2E8F0;

    /* Text Colors */
    --color-text: #334155;
    --color-text-dark: #0F172A;
    --color-text-muted: #64748B;
    --color-text-decorative: #94A3B8; /* Low contrast - decorative use only, not for readable text */

    /* Typography */
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Animation Timings */
    --transition-fast: 0.15s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    z-index: 1001;
    transition: width 0.1s linear;
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   Skip Link
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Focus Indicators
   ============================================ */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 20, 137, 0.15);
}

.nav-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 20, 137, 0.1);
}

/* ============================================
   Typography
   ============================================ */
.font-display {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (forced-colors: active) {
    .text-gradient,
    .stat-number {
        -webkit-text-fill-color: unset;
        background: none;
        color: LinkText;
    }
}

/* ============================================
   Layout Components
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 20, 137, 0.08);
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 20, 137, 0.12);
}

/* Logo wrap */
.nav .nav-logo-wrap {
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled .nav-logo-wrap {
    background: transparent;
    padding: 0;
}

/* Nav links */
.nav-link {
    position: relative;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: all 0.3s var(--ease-out-expo);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
    color: var(--color-text);
    transition: color 0.3s ease;
}

/* ============================================
   Buttons - Enhanced
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    text-decoration: none;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 20, 137, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 20, 137, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(135, 206, 235, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 20, 137, 0.2);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-primary);
    background-color: rgba(0, 20, 137, 0.05);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button ripple effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   Cards - Enhanced
   ============================================ */
.card {
    background-color: var(--color-card-bg);
    border-radius: 1rem;
    border: 1px solid var(--color-card-border);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 20, 137, 0.1);
}

/* ============================================
   Hero Section - Enhanced
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: heroReveal 1s var(--ease-out-expo) forwards;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: white;
    margin-top: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Scroll Animations - Enhanced
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Scale in animation */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s var(--ease-out-expo);
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide in from sides */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-slide-left.visible,
.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Stats Section - Enhanced
   ============================================ */
.stat-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--color-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   Service Items - Enhanced
   ============================================ */
.service-item {
    padding: 1.25rem 0.75rem;
    border-bottom: 1px solid var(--color-light-gray);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    min-height: 44px;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.4s var(--ease-out-expo);
    transform: translateY(-50%);
}

.service-item:hover {
    padding-left: 1rem;
}

.service-item:hover::before {
    width: 0.5rem;
}

.service-item:last-child {
    border-bottom: none;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-dark);
    transition: color 0.3s ease;
}

.service-item:hover .service-title {
    color: var(--color-primary);
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ============================================
   Tilt Card Base - 3D hover effect
   ============================================ */
.tilt-card {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 25px 50px rgba(0, 20, 137, 0.15);
}

/* ============================================
   Testimonial Cards - Enhanced
   ============================================ */
.testimonial-card {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-card-border);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 20, 137, 0.1);
    border-color: var(--color-secondary);
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* ============================================
   Job Listings
   ============================================ */
.job-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.job-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 20, 137, 0.1);
    transform: translateY(-4px);
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--color-signal-red);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.job-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-signal-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--color-text-dark);
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.job-description {
    color: var(--color-text-muted);
    margin-top: 1rem;
    line-height: 1.7;
}

.job-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.job-perk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Forms - Enhanced
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--color-signal-red);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--color-white);
    border: 2px solid var(--color-light-gray);
    border-radius: 0.5rem;
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s var(--ease-out-expo);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 20, 137, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-decorative);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.375rem;
}

.form-error {
    color: var(--color-signal-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-bg-section);
    border-top: 1px solid var(--color-light-gray);
    padding: 3rem 0 2rem;
}

.footer-link {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--color-primary);
}

/* ============================================
   Notification Toasts - Enhanced
   ============================================ */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    animation: slideIn 0.5s var(--ease-out-expo) forwards;
    border-left: 4px solid var(--color-primary);
}

.notification-success {
    border-left-color: var(--color-success);
}

.notification-error {
    border-left-color: var(--color-signal-red);
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes slideOut {
    to { transform: translateX(120%); opacity: 0; }
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--color-text-dark);
}

/* ============================================
   Image Hover Effects
   ============================================ */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.img-hover-zoom img {
    transition: transform 0.6s var(--ease-out-expo);
}

.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* ============================================
   Floating Elements
   ============================================ */
.float-element {
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================
   Cursor Trail (optional enhancement)
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* ============================================
   Link Underline Animation
   ============================================ */
.link-animated {
    position: relative;
    text-decoration: none;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s var(--ease-out-expo);
}

.link-animated:hover::after {
    width: 100%;
}

/* ============================================
   Admin Styles (Light Theme)
   ============================================ */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    left: 0;
    top: 0;
}

.admin-main {
    margin-left: 250px;
    min-height: 100vh;
    padding: 2rem;
    background-color: #f8fafc;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #64748b;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background-color: #f1f5f9;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.admin-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.admin-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.admin-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    font-weight: 600;
    background-color: #f8fafc;
}

.admin-table tr:hover td {
    background-color: #f8fafc;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.status-active, .status-new { background-color: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-draft, .status-reviewed { background-color: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.status-closed, .status-rejected { background-color: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-interviewed { background-color: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-hired { background-color: rgba(168, 85, 247, 0.2); color: #a855f7; }

/* ============================================
   Confirm Modal
   ============================================ */
#confirmModal .modal-backdrop {
    transition: opacity 0.2s ease;
}

#confirmModal .modal-content {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#confirmModal.hidden .modal-backdrop {
    opacity: 0;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Hiring CTA */
.hiring-cta {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, var(--color-bg-alt) 100%);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    color: var(--color-text-dark);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding-top: 5rem; /* Account for fixed mobile header (4rem height + 1rem gap) */
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 14vw, 4.5rem);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }

    .notification-container {
        left: 10px;
        right: 10px;
    }

    .notification {
        width: 100%;
    }

    /* Disable hover-only effects on mobile */
    .service-item:hover {
        padding-left: 0.75rem;
    }

    .service-item:hover::before {
        width: 0;
    }
}

/* Touch device: enlarge touch targets */
@media (pointer: coarse) {
    .nav-link {
        padding: 0.75rem 0;
    }

    .footer-link {
        padding: 0.25rem 0;
    }

    .service-item {
        padding: 1.5rem 0.75rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .nav,
    .mobile-menu,
    .scroll-progress,
    .btn,
    .hiring-cta,
    .accent-band,
    iframe,
    #notifications {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        color: #000;
    }

    .hero-title span {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        opacity: 1 !important;
    }

    .hero-subtitle {
        color: #333 !important;
        opacity: 1 !important;
    }

    .section {
        padding: 1.5rem 0;
        break-inside: avoid;
    }

    .animate-on-scroll,
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
    }

    img {
        max-width: 100%;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="tel"]::after,
    a[href^="#"]::after,
    a[href^="javascript"]::after,
    .nav a::after {
        content: none;
    }

    .footer {
        border-top: 1px solid #ccc;
        padding: 1rem 0;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-scale,
    .animate-slide-left,
    .animate-slide-right,
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-title span {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero-subtitle {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-dark { color: var(--color-text-dark); }

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

.border-light { border-color: var(--color-light-gray); }

/* ============================================
   Texture & Depth
   ============================================ */
.bg-section-bg,
.section.bg-section-bg {
    position: relative;
}

/* Diagonal section divider */
.section-divider {
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

/* Full-bleed accent band */
.accent-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.accent-band::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(15deg);
    pointer-events: none;
}

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

/* Smooth reveal for lazy-loaded images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}
