/* ========================================
   ASP DIJITAL DESIGN SYSTEM
   Corporate, Minimalist, Modern, Mobile-First
   ======================================== */

:root {
    /* Color Palette - Refined for B2B/Industrial */
    --primary-color: #0093DE;
    --primary-dark: #0074b8;
    --primary-navy: #1e3a5f;
    --secondary-color: #6c757d;
    --accent-color: #176db8;
    --accent-slate: #374151;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #1793b8;
    
    /* Extended Palette */
    --white: #ffffff;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --border-color: #e0e6ed;
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --text-muted: #6b7b93;
    
    /* Typography - Inter-first with refined tracking */
    --font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Touch Targets */
    --touch-min: 44px;
    --touch-preferred: 48px;
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Paragraph and text */
p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.text-muted {
    color: var(--text-muted);
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ========================================
   BUTTON SYSTEM
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-height: 44px;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Primary Button - Refined navy gradient, no shine */
.btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.30) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover::before {
    display: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #162d4a 0%, #1e3a5f 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.35) !important;
    color: #fff !important;
}

/* Secondary Button - Slate charcoal, no shine */
.btn-secondary {
    color: #fff !important;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(55, 65, 81, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover::before {
    display: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(55, 65, 81, 0.30) !important;
    color: #fff !important;
}

/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

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

/* Light Button - Glassmorphism style */
.btn-light {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10) !important;
    position: relative;
    overflow: hidden;
}

.btn-light::before {
    display: none;
}

.btn-light:hover::before {
    display: none;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.20) !important;
    backdrop-filter: blur(14px) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 52px;
}

/* ========================================
   CARD SYSTEM
   ======================================== */

.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* Card hover - subtle refined lift */
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-color);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background-color: var(--light-color);
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

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

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-sm));
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
    min-width: 0;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Section Spacing */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

/* ========================================
   FORM SYSTEM
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

/* Form States */
.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
    color: var(--danger-color);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
    color: var(--success-color);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing */
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox */
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

/* Background Colors */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--light-color); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--dark-color); }

/* Text Colors */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-white { color: var(--white); }

/* Border */
.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-0 { border: 0; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .row {
        margin: 0 calc(-1 * var(--spacing-xs));
    }
    
    .col {
        padding: 0 var(--spacing-xs);
    }
    
    /* Mobile columns */
    .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn {
        padding: 14px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-sm {
        width: auto;
        display: inline-flex;
    }
    
    /* iOS Safari: Prevent zoom on input focus */
    .form-control {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xxl: 2rem;
        --spacing-xl: 1.5rem;
        --spacing-lg: 1.25rem;
        --spacing-md: 1rem;
        --spacing-sm: 0.625rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

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

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

/* Stagger animation for multiple elements */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   SCROLL REVEAL SYSTEM
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal variants */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.is-revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for scroll-reveal children */
.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }
.scroll-reveal-delay-5 { transition-delay: 0.5s; }
.scroll-reveal-delay-6 { transition-delay: 0.6s; }

/* ========================================
   UNIFIED PAGE HERO
   ======================================== */

.page-hero {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(45, 106, 159, 0.88) 100%),
                url("/media/pexels-mikael-blomkvist-6476248.jpg");
    background-size: cover;
    background-position: center;
    padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

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

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero p,
.page-hero .lead,
.page-hero .page-hero-subtitle {
    color: var(--white);
}

.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0 0;
    opacity: 0.85;
    flex-wrap: wrap;
    gap: 0;
}

.page-hero .breadcrumb li {
    display: inline-block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb li + li::before {
    content: "/";
    padding: 0 var(--spacing-sm);
    color: rgba(255, 255, 255, 0.65);
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .slide-up, .stagger-item,
    .scroll-reveal, .scroll-reveal-left, .scroll-reveal-right, .scroll-reveal-scale {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
} 