/* Modern Spring Fresh Redesign - 2025 */
/* Color palette: Professional dark grey header with red accents */
/* To change header/footer color, update --secondary-color variable */

:root {
    /* Primary Color - Fixed (Logo Color) */
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --light-red: #EF5350;
    --accent-red: #E53935;
    
    /* Secondary Color - Customizable (Header/Footer) */
    /* Uncomment ONE of the color schemes below or create your own */
    
    /* 1. Slate Grey (Professional & Neutral) */
    /* --secondary-color: #2C3E50;
    --secondary-color-light: #34495E;
    --secondary-color-dark: #1A252F; */

    /* 2. Navy Blue (Classic & Trustworthy) - ACTIVE */
    /* --secondary-color: #1A237E;
    --secondary-color-light: #283593;
    --secondary-color-dark: #0D1642; */

    /* 3. Forest Green (Eco-Friendly & Natural) */
    /* --secondary-color: #2E7D32;
    --secondary-color-light: #388E3C;
    --secondary-color-dark: #1B5E20; */

    /* 4. Deep Teal (Modern & Sophisticated) */
    /* --secondary-color: #006064;
    --secondary-color-light: #00838F;
    --secondary-color-dark: #004D40; */

    /* 5. Burgundy/Wine (Elegant & Luxurious) */
    /* --secondary-color: #5D1049;
    --secondary-color-light: #6A1B4D;
    --secondary-color-dark: #42032C; */

    /* 6. Charcoal Black (Bold & Dramatic) */
    /* --secondary-color: #212121;
    --secondary-color-light: #424242;
    --secondary-color-dark: #000000; */

    /* 7. Deep Purple (Creative & Unique) */
    /* --secondary-color: #4A148C;
    --secondary-color-light: #6A1B9A;
    --secondary-color-dark: #311B92; */

    /* 8. Ocean Blue (Calm & Professional) */
    /* --secondary-color: #01579B;
    --secondary-color-light: #0277BD;
    --secondary-color-dark: #003C71; */

    /* 9. Steel Blue (Industrial & Strong) */
    /* --secondary-color: #37474F;
    --secondary-color-light: #546E7A;
    --secondary-color-dark: #263238; */

    /* 10. Dark Olive (Earthy & Grounded) */
    /* --secondary-color: #33691E;
    --secondary-color-light: #558B2F;
    --secondary-color-dark: #1B5E20; */
    /* 11. Silver (Sleek & Modern) */
    /* --secondary-color: #757575;
    --secondary-color-light: #9E9E9E;
    --secondary-color-dark: #616161; */

    /* 12. Graphite (Contemporary & Premium) */
    --secondary-color: #455A64;
    --secondary-color-light: #607D8B;
    --secondary-color-dark: #37474F;

    /* 13. Midnight Black (Ultra-Modern & Minimalist) */
    /* --secondary-color: #1C1C1C;
    --secondary-color-light: #2C2C2C;
    --secondary-color-dark: #0A0A0A; */

    /* 14. Platinum (Luxury & Refined) */
    /* --secondary-color: #546E7A;
    --secondary-color-light: #78909C;
    --secondary-color-dark: #455A64; */

    /* 15. Jet Black & White (High Contrast & Bold) */
    /* --secondary-color: #263238;
    --secondary-color-light: #37474F;
    --secondary-color-dark: #000000; */

    /* 16. Gunmetal (Industrial Chic) */
    /* --secondary-color: #424242;
    --secondary-color-light: #616161;
    --secondary-color-dark: #212121; */

    /* 17. Cool Grey (Minimal & Clean) */
    /* --secondary-color: #90A4AE;
    --secondary-color-light: #B0BEC5;
    --secondary-color-dark: #78909C; */

    /* 18. Dark Slate (Tech & Futuristic) */
    /* --secondary-color: #263238;
    --secondary-color-light: #455A64;
    --secondary-color-dark: #1C313A; */



    /* Legacy variables for backwards compatibility */
    --header-dark: var(--secondary-color);
    --header-slate: var(--secondary-color-light);
    --accent-dark: var(--secondary-color-dark);
    
    --grey-dark: #424242;
    --grey-medium: #757575;
    --grey-light: #BDBDBD;
    --grey-lighter: #E0E0E0;
    --grey-lightest: #F5F5F5;
    
    --text-dark: #212121;
    --text-gray: #757575;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --border-color: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Arial Unicode MS', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', -apple-system, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Floated Images - Add proper spacing */
img[style*="float: left"],
img[style*="float:left"] {
    margin: 0 20px 15px 0;
    display: inline;
}

img[style*="float: right"],
img[style*="float:right"] {
    margin: 0 0 15px 20px;
    display: inline;
}

/* Clearfix utility */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clearfix {
    overflow: auto;
}

/* Article content images */
.jsk-postcontent img {
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow);
}

.jsk-postcontent p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.modern-header {
    background: linear-gradient(135deg, var(--header-dark) 0%, var(--header-slate) 100%);
    color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-title {
    font-size: 2.65rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--bg-white);
    margin: 0;
    line-height: 1.2;
    opacity: 0.95;
}

/* Navigation */
.modern-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.modern-nav a {
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.modern-nav a:hover,
.modern-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Dropdown Menu */
.modern-nav .dropdown {
    position: relative;
    display: inline-block;
}

.modern-nav .dropdown-label {
    color: var(--bg-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    cursor: default;
    display: inline-block;
}

.modern-nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: 0 8px 16px var(--shadow-dark);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 0;
}

.modern-nav .dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.modern-nav .dropdown-content a:hover {
    background-color: var(--grey-lightest);
    border-left-color: var(--primary-red);
    padding-left: 20px;
}

.modern-nav .dropdown:hover .dropdown-content {
    display: block;
}

.modern-nav .dropdown-label::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 4px;
}

/* Image Carousel/Slider */
.image-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-indicator.active {
    background: var(--bg-white);
    border-color: var(--primary-red);
    transform: scale(1.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.92) 0%, rgba(183, 28, 28, 0.92) 100%),
                url('images/header.jpg') center/cover;
    color: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-red);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--grey-lightest);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-dark);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Content Lists */
.content-list {
    padding-left: 4rem;
    list-style-type: disc;
}

.content-list li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Homepage Layout with Sidebar */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.services-sidebar {
    position: sticky;
    top: 100px;
}

.services-infographic {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.content-section {
    background: var(--bg-white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.content-section h2 {
    color: var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-dark);
    border-color: var(--primary-red);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.service-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.service-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-red);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-card a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Contact Section */
.contact-info {
    background: var(--grey-lightest);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contact-item strong {
    color: var(--grey-dark);
    min-width: 100px;
}

/* Form Styles */
.modern-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background-color: var(--primary-red);
    color: var(--bg-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-dark);
}

/* Footer */
.modern-footer {
    background: linear-gradient(135deg, var(--header-dark) 0%, var(--header-slate) 100%);
    color: var(--bg-white);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
    color: var(--grey-lighter);
    line-height: 1.8;
}

.footer-section a {
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--light-red);
}

.footer-bottom {
    border-top: 1px solid var(--grey-medium);
    padding-top: 1rem;
    text-align: center;
    color: var(--grey-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-nav {
        justify-content: center;
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack sidebar on mobile */
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    
    .services-sidebar {
        position: static;
        order: -1;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .modern-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-red { color: var(--primary-red); }
.text-grey { color: var(--text-gray); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 1.5rem; }

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

