/* ============================================================================
   CORPORATE WEBSITE STYLESHEET
   European Professional Design System
   ============================================================================ */

/* ============================================================================
   TABLE OF CONTENTS
   ============================================================================
   1. CSS Variables & Color Palette
   2. Base Typography & Resets
   3. Utility Classes
   4. Layout Components
      - Navigation
      - Hero/Carousel
      - Sections
   5. UI Components
      - Buttons
      - Cards
      - Lists
      - Images & Frames
   6. Feature Sections
      - Gallery
      - Team
      - Locations
      - Facilities
   7. Footer
   8. Media Queries
   ============================================================================ */


/* ============================================================================
   1. CSS VARIABLES & COLOR PALETTE
   ============================================================================ */

:root {
    /* Brand Colors - Matched to Logo */
    --brand-primary: #04486d;        /* Deep Ocean Blue */
    --brand-secondary: #c42728;      /* Corporate Red */
    --brand-danger: #c62f2f;         /* Alert Red */
    --brand-light: #f4f7f9;          /* Light Gray/Blue Background */
    --brand-text: #2c3e50;           /* Dark Slate Text */
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================================
   2. BASE TYPOGRAPHY & RESETS
   ============================================================================ */

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Section Titles */
.section-title {
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-secondary);
    margin: 0 auto;
}

.text-start .section-title::after {
    margin: 0;
}


/* ============================================================================
   3. UTILITY CLASSES
   ============================================================================ */

/* Text Colors */
.text-primary,
.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-secondary,
.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.text-danger {
    color: var(--brand-danger) !important;
}

/* Background Colors */
.bg-light {
    background-color: var(--brand-light) !important;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

/* Spacing */
.section-padding {
    padding: var(--spacing-lg) 0;
}


/* ============================================================================
   4. LAYOUT COMPONENTS - NAVIGATION
   ============================================================================ */

.navbar {
    background: transparent;
    padding: 20px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

/* Brand Logo */
.navbar-brand img {
    height: 70px;
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    padding: 5px;
}

/* Nav Links */
.nav-link {
    color: #fff;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition-base);
    font-size: 0.95rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-secondary);
}

.navbar.scrolled .nav-link {
    color: var(--brand-text);
    text-shadow: none;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--brand-primary);
}

/* Mobile Toggle */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ============================================================================
   4. LAYOUT COMPONENTS - HERO/CAROUSEL
   ============================================================================ */

.carousel-item {
    height: 85vh;
    min-height: 600px;
    background-color: #000;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    bottom: 30%;
    text-align: left;
    left: 10%;
    right: 10%;
    padding-top: 60px;
    z-index: 2;
}

.carousel-caption h1 {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-caption .lead {
    color: #fff;
    font-size: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-caption span {
    color: var(--brand-secondary);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: var(--transition-base);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Carousel Indicators */
.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-round);
    margin: 0 6px;
    opacity: 0.6;
}

.carousel-indicators button.active {
    opacity: 1;
}


/* ============================================================================
   5. UI COMPONENTS - BUTTONS
   ============================================================================ */

.btn-primary-corp {
    background-color: var(--brand-secondary);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition-base);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary-corp:hover {
    background-color: #d93435;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 39, 40, 0.3);
}

.btn-brand-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    font-weight: 600;
}

.btn-brand-primary:hover {
    background-color: #055578;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-brand-primary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
}

.btn-outline-brand-primary:hover,
.btn-check:checked + .btn-outline-brand-primary {
    background-color: var(--brand-primary);
    color: white;
}


/* ============================================================================
   5. UI COMPONENTS - CARDS
   ============================================================================ */

.location-card {
    transition: var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(4, 72, 109, 0.12) !important;
    border-color: var(--brand-secondary);
}

.problem-box {
    background: #fff;
    border-left: 5px solid var(--brand-danger);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.expansion-alert {
    background: white;
    border-left: 5px solid var(--brand-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


/* ============================================================================
   5. UI COMPONENTS - LISTS
   ============================================================================ */

/* Problem List */
.list-problem li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    list-style: none;
    color: #555;
}

.list-problem li::before {
    content: '\f057';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-danger);
    font-size: 1.2rem;
}

/* Benefit List */
.list-benefit li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    list-style: none;
}

.list-benefit li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-primary);
    font-size: 1.2rem;
}

/* Check List */
.list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    list-style: none;
}

.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--brand-secondary);
}

/* Facilities List */
.list-check-facilities {
    list-style: none;
    padding-left: 0;
}

.list-check-facilities li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.list-check-facilities li:hover {
    transform: translateX(5px);
}

.list-check-facilities li i {
    font-size: 1.4rem;
    color: var(--brand-secondary);
    margin-right: 15px;
    margin-top: 3px;
    min-width: 30px;
    text-align: center;
}

.list-check-facilities li span {
    color: var(--brand-text);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}


/* ============================================================================
   5. UI COMPONENTS - IMAGE FRAMES
   ============================================================================ */

.image-frame-modern {
    position: relative;
    margin: 20px 20px 20px 0;
}

.image-frame-modern img {
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: var(--transition-base);
}

.image-frame-modern::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 5px);
    height: calc(100% + 5px);
    border: 2px solid var(--brand-secondary);
    border-radius: var(--radius-xl);
    z-index: 1;
}

.image-frame-modern::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: linear-gradient(284deg, var(--brand-secondary), var(--brand-primary));
    border-radius: var(--radius-xl);
    z-index: 0;
}

.image-frame-modern:hover img {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}


/* ============================================================================
   6. FEATURE SECTIONS - GALLERY
   ============================================================================ */

.gallery-scroll-container {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-xs);
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 100%;
    max-width: 100%;
    height: 360px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    scroll-snap-align: start;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: #fff;
    opacity: 0.95;
}

.gallery-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-round);
    background: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--brand-primary);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-nav-btn:hover {
    background: var(--brand-secondary);
    transform: scale(1.1);
    color: white;
}


/* ============================================================================
   6. FEATURE SECTIONS - TEAM
   ============================================================================ */

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}


/* ============================================================================
   6. FEATURE SECTIONS - LOCATIONS
   ============================================================================ */

.icon-wrapper {
    background: linear-gradient(135deg, var(--brand-primary), #055578);
    color: white;
    transition: var(--transition-base);
}

.location-card:hover .icon-wrapper {
    background: var(--brand-secondary);
    color: white;
}

.icon-wrapper-small {
    background-color: var(--brand-light);
    color: var(--brand-primary);
    transition: var(--transition-base);
}

.location-item {
    padding: 20px;
    border-left: 4px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
}

.location-item:hover {
    background-color: var(--brand-light) !important;
    border-left-color: var(--brand-secondary);
}

.location-item.active {
    background-color: var(--brand-primary) !important;
    border-left-color: var(--brand-secondary);
}

.location-item.active h6 {
    color: white !important;
}

.location-item.active p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.location-item.active .icon-wrapper-small {
    background-color: var(--brand-secondary);
    color: var(--brand-primary);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--brand-primary);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}


/* ============================================================================
   6. FEATURE SECTIONS - ANIMATIONS
   ============================================================================ */

.view-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================================
   7. FOOTER
   ============================================================================ */

footer {
    background-color: var(--brand-light);
    padding-top: 80px;
    padding-bottom: 30px;
    border-top: 1px solid #e1e1e1;
}


/* ============================================================================
   8. MEDIA QUERIES
   ============================================================================ */

/* --- Desktop Large (1200px+) --- */
@media (min-width: 1200px) {
    .carousel-caption h1 {
        font-size: 3.5rem;
    }
    
    .gallery-card {
        flex: 0 0 420px;
        max-width: 420px;
    }
}

/* --- Desktop (992px - 1199px) --- */
@media (max-width: 1199px) {
    .carousel-caption h1 {
        font-size: 3.2rem;
    }
}

/* --- Tablet (768px - 991px) --- */
@media (max-width: 991px) {
    .carousel-caption {
        bottom: 25%;
        left: 8%;
        right: 8%;
    }

    .carousel-caption h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile Navigation */
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .nav-link {
        color: var(--brand-text) !important;
        text-shadow: none !important;
    }
    
    .gallery-card {
        flex: 0 0 400px;
        max-width: 400px;
        height: 450px;
    }
}

/* --- Mobile Large (577px - 767px) --- */
@media (max-width: 767px) {
    .carousel-caption {
        bottom: 20%;
        left: 6%;
        right: 6%;
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .carousel-caption .lead {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .carousel-indicators {
        margin-bottom: 1rem;
    }

    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* --- Mobile (481px - 576px) --- */
@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
        margin-bottom: 0.7rem;
    }

    .carousel-caption .lead {
        font-size: 0.95rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .gallery-card {
        flex: 0 0 100%;
        max-width: 100%;
        height: 420px;
    }
}

/* --- Mobile Small (390px - 480px) --- */
@media (min-width: 390px) and (max-width: 480px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

/* --- Mobile Extra Small (below 390px) --- */
@media (max-width: 389px) {
    .carousel-caption h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption .lead {
        font-size: 0.85rem;
    }

    .carousel-indicators {
        margin-bottom: 0.5rem;
    }
}

/* --- Gallery Responsive --- */
@media (min-width: 576px) {
    .gallery-card {
        flex: 0 0 100%;
        max-width: 100%;
        height: 420px;
    }
}

@media (min-width: 768px) {
    .gallery-card {
        flex: 0 0 400px;
        max-width: 400px;
        height: 450px;
    }
}

/* --- Hover Effects (Desktop Only) --- */
@media (hover: hover) {
    .gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    }

    .gallery-card:hover img {
        transform: scale(1.05);
    }
}


/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */