/* =================================================================
   POLARIS DEVELOPMENT STYLE GUIDE
   =================================================================
   Consistent styles for all development pages
   Version: 1.0
   ================================================================= */

/* =================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ================================================================= */

:root {
    /* Colors */
    --primary-blue: #0a3690;
    --secondary-teal: #02c9a8;
    --text-primary: #0a3690;
    --text-secondary: #464e5f;
    --text-muted: #6c757d;
    --text-light: rgba(255, 255, 255, 0.9);
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient-primary: linear-gradient(90deg, #0a3690, #02c9a8);
    --bg-gradient-secondary: linear-gradient(135deg, #0a3690 0%, #1645a4 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(10, 54, 144, 0.08);
    --shadow-md: 0 15px 35px rgba(10, 54, 144, 0.08);
    --shadow-lg: 0 25px 50px rgba(10, 54, 144, 0.12);
    --shadow-hover: 0 8px 25px rgba(10, 54, 144, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Section Padding */
    --section-padding: 96px 0 120px 0;
    --section-padding-sm: 60px 0 80px 0;
    --section-padding-md: 80px 0 100px 0;
    
    /* Typography */
    --font-family-primary: 'Satoshi-Black', sans-serif;
    --font-family-secondary: 'Satoshi-Bold', sans-serif;
    --font-family-body: 'Satoshi-Medium', sans-serif;
    
    /* Transitions */
    --transition-default: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

/* =================================================================
   TYPOGRAPHY SCALE - CONSISTENT HEADING SIZES
   ================================================================= */

/* Main Section Headings (H1 equivalent) */
.section-heading,
.heading-1 {
    font-family: var(--font-family-primary);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}



/* Hero/Main Titles (H1 Large) */
.hero-heading,
.heading-hero {
    font-family: var(--font-family-primary);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

/* Subsection Headings (H2 equivalent) */
.subsection-heading,
.heading-2 {
    font-family: var(--font-family-secondary);
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* Card/Component Headings (H3 equivalent) */
.card-heading,
.heading-3 {
    font-family: var(--font-family-secondary);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

/* Small Headings (H4 equivalent) */
.small-heading,
.heading-4 {
    font-family: var(--font-family-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.1px;
    line-height: 1.4;
}

/* Tiny Headings (H5/H6 equivalent) */
.tiny-heading,
.heading-5 {
    font-family: var(--font-family-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

/* =================================================================
   TEXT STYLES
   ================================================================= */

/* Large Description Text */
.text-large,
.description-large {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* Regular Body Text */
.text-body,
.description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

/* Small Text */
.text-small {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

/* Muted Text */
.text-muted {
    color: var(--text-muted);
}

/* Primary Text Color */
.text-primary {
    color: var(--text-primary);
}

/* Secondary Text Color */
.text-secondary {
    color: var(--text-secondary);
}

/* =================================================================
   SECTION STYLES
   ================================================================= */

/* Standard Section Padding */
.section {
    padding: var(--section-padding);
}

.section-sm {
    padding: var(--section-padding-sm);
}

.section-md {
    padding: var(--section-padding-md);
}

/* Section with Background */
.section-bg-light {
    background: var(--bg-light);
}

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

.section-bg-gradient {
    background: var(--bg-gradient-primary);
    color: var(--text-light);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-heading {
    margin-bottom: 1rem;
}

.section-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================================
   CARD STYLES
   ================================================================= */

/* Base Card */
.card-base {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(10, 54, 144, 0.05);
    transition: var(--transition-default);
    overflow: hidden;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Standard Card */
.card-standard {
    @extend .card-base;
    padding: var(--spacing-xl);
}

/* Compact Card */
.card-compact {
    @extend .card-base;
    padding: var(--spacing-lg);
}

/* Card with Border Accent */
.card-accent {
    @extend .card-base;
    border-top: 4px solid var(--primary-blue);
}

.card-accent.teal {
    border-top-color: var(--secondary-teal);
}

/* Card Header */
.card-header {
    margin-bottom: var(--spacing-lg);
}

.card-header .card-title {
    margin-bottom: 0.5rem;
}

.card-header .card-accent-line {
    width: 60px;
    height: 4px;
    background: var(--bg-gradient-primary);
    border-radius: 2px;
}

/* =================================================================
   BUTTON STYLES
   ================================================================= */

/* Base Button */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-default);
    font-size: 1rem;
    line-height: 1.5;
}

/* Primary Button */
.btn-primary {
    @extend .btn-base;
    background: var(--bg-gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
    text-decoration: none;
}

/* Secondary Button */
.btn-secondary {
    @extend .btn-base;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* =================================================================
   LAYOUT UTILITIES
   ================================================================= */

/* Flexbox Utilities */
.d-flex {
    display: flex;
}

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

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

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

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

/* =================================================================
   SPACING UTILITIES
   ================================================================= */

/* Margins */
.mb-0 { margin-bottom: 0; }
.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); }
.mb-6 { margin-bottom: var(--spacing-2xl); }

.mt-0 { margin-top: 0; }
.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); }
.mt-6 { margin-top: var(--spacing-2xl); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

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

/* =================================================================
   COMMON COMPONENTS
   ================================================================= */

/* Accent Lines */
.accent-line {
    width: 60px;
    height: 4px;
    background: var(--bg-gradient-primary);
    border-radius: 2px;
    margin-bottom: var(--spacing-md);
}

.accent-line.center {
    margin: 0 auto var(--spacing-md);
}

.accent-line.teal {
    background: linear-gradient(90deg, #02c9a8, #1dd3b0);
}

/* Dividers */
.divider {
    height: 1px;
    background: rgba(10, 54, 144, 0.1);
    margin: var(--spacing-xl) 0;
}

/* Icons */
.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(10, 54, 144, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.icon-sm {
    width: 36px;
    height: 36px;
}

.icon-lg {
    width: 64px;
    height: 64px;
}

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

/* Hover Effects */
.hover-lift {
    transition: var(--transition-default);
}

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

.hover-scale {
    transition: var(--transition-default);
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

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

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

/* Mobile First Breakpoints */
@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .card-standard {
        padding: var(--spacing-lg);
    }
    
    .btn-base {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .section-header .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .section {
        padding: var(--section-padding-md);
    }
}

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

/* Visibility */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Width */
.w-100 { width: 100%; }
.w-auto { width: auto; }

/* Height */
.h-100 { height: 100%; }
.h-auto { height: auto; }

/* Z-index */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }
.z-999 { z-index: 999; }

/* =================================================================
   DEVELOPMENT HELPERS (Remove in production)
   ================================================================= */

.dev-border {
    border: 2px solid red !important;
}

.dev-bg {
    background: rgba(255, 0, 0, 0.1) !important;
}


/* =================================================================
   HERO IMAGE SECTION
   ================================================================= */

/* Hero Image Section - 70% Screen Height */
.hero-image-section {
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Image with Django Template Variables */
.hero-with-image {
    /* This will be overridden by inline styles with Django variables */
    background-image: linear-gradient(rgba(10, 54, 144, 0.4), rgba(10, 54, 144, 0.5));
}

/* Predefined Hero Backgrounds */
.hero-about {
    background-image: linear-gradient(rgba(10, 54, 144, 0.4), rgba(10, 54, 144, 0.5)), 
                      url('/static/img/hero/about-hero.jpg');
}

.hero-products {
    background-image: linear-gradient(rgba(10, 54, 144, 0.4), rgba(10, 54, 144, 0.5)), 
                      url('/static/img/hero/products-hero.jpg');
}

.hero-contact {
    background-image: linear-gradient(rgba(10, 54, 144, 0.4), rgba(10, 54, 144, 0.5)), 
                      url('/static/img/hero/contact-hero.jpg');
}

.hero-careers {
    background-image: linear-gradient(rgba(10, 54, 144, 0.4), rgba(10, 54, 144, 0.5)), 
                      url('/static/img/hero/careers-hero.jpg');
}

/* Hero without background image (solid color/gradient only) */
.hero-gradient-only {
    background: var(--bg-gradient-primary);
}

.hero-solid {
    background: var(--primary-blue);
}

/* Hero Variations */
.hero-image-section.hero-lg {
    height: 80vh;
    min-height: 600px;
}

.hero-image-section.hero-sm {
    height: 60vh;
    min-height: 400px;
}

.hero-image-section.hero-full {
    height: 100vh;
    min-height: 700px;
}

/* Responsive Design for Hero */
@media (max-width: 1024px) {
    .hero-image-section {
        height: 65vh;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-image-section {
        height: 70vh;
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .hero-image-section {
        height: 75vh;
        min-height: 450px;
    }
}