/* ============================================
   RHYA Corporate Engineering Website
   Industrial Design System - Professional Theme
   ============================================
   
   COLOR THEME: Modern Industrial Engineering
   
   Design Philosophy:
   - Deep ocean blue (#0a4a6e) represents precision, trust, and professionalism
   - Steel grey (#546e7a) conveys industrial strength and reliability
   - Bold orange (#ff6f00) creates energy and highlights call-to-action elements
   - Clean whites and light greys provide excellent readability
   - Dark navy backgrounds establish technical authority
   
   Key Features:
   ✓ High contrast for accessibility (WCAG AA compliant)
   ✓ Professional industrial aesthetic
   ✓ Clear visual hierarchy
   ✓ Energetic accent colors for user engagement
   ✓ Consistent color usage across all components
   
   ============================================ */

:root {
    /* ============================================
       Color Palette - Industrial Engineering Theme
       Orange, Brown & Blue - Professional & Technical
       ============================================ */
    
    /* Primary Colors - Industrial Blue */
    --primary-color: #1e7a5a;              /* Professional industrial blue */
    --primary-dark: #164763;                /* Darker blue for depth */
    --primary-light: #2c7ba0;               /* Lighter blue for accents */
    
    /* Secondary Colors - Industrial Brown */
    --secondary-color: #6b4423;             /* Rich industrial brown */
    --secondary-dark: #4a2f18;              /* Dark chocolate brown */
    --secondary-light: #8b5a33;             /* Light copper brown */
    
    /* Accent Colors - Energetic Orange */
    --accent-color: #e67e22;                /* Vibrant industrial orange */
    --accent-hover: #f39c12;                /* Bright orange for hover */
    --accent-dark: #d35400;                 /* Deep burnt orange */
    
    /* Tertiary - Bronze/Copper */
    --bronze-color: #b8733b;                /* Bronze metallic */
    --copper-color: #c77a3d;                /* Copper accent */
    
    /* Neutral Backgrounds */
    --background-primary: #ffffff;          /* Pure white for main content */
    --background-secondary: #f8f6f3;        /* Warm light beige for sections */
    --background-tertiary: #efe9e3;         /* Warm grey for depth */
    --background-dark: #121b35;             /* Deep brown for headers/footers */
    --background-darker: #432b1b;           /* Darkest brown background */
    
    /* Text Colors */
    --text-primary: #2c1810;                /* Deep brown for main text */
    --text-secondary: #5a4a3a;              /* Medium brown for body text */
    --text-tertiary: #7d6b5a;               /* Light brown for less emphasis */
    --text-muted: #9a8977;                  /* Muted warm text */
    --text-light: #b8a999;                  /* Very light text on dark backgrounds */
    --text-inverse: #ffffff;                /* White text on dark backgrounds */
    
    /* Border Colors */
    --border-color: #d9cfc2;                /* Warm border */
    --border-light: #e8e0d5;                /* Lighter warm border */
    --border-dark: #b5a394;                 /* Darker warm border */
    
    /* Status Colors */
    --success-color: #27ae60;               /* Industrial green for success */
    --warning-color: #e67e22;               /* Orange warning */
    --error-color: #c0392b;                 /* Bold red for errors */
    --info-color: #2c7ba0;                  /* Blue for information */
    
    /* Overlay & Shadow Colors */
    --overlay-dark-blue: rgba(23, 112, 126, 0.9); 
    --overlay-darker-blue: rgba(12, 47, 67, 0.95);
    --overlay-dark-red: rgba(136, 25, 10, 0.9); 
    --overlay-darker-red: rgba(26, 15, 8, 0.95);
    --overlay-dark: rgba(42, 44, 92, 0.9);  
    --overlay-darker: rgba(26, 15, 8, 0.95);
    --overlay-orange: rgba(149, 80, 37, 0.95);
    --overlay-darker-orange: rgba(26, 15, 8, 0.95);
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.12);
    --shadow-lg: 0 8px 32px rgba(44, 24, 16, 0.16);
    --shadow-xl: 0 12px 48px rgba(44, 24, 16, 0.2);
    
    /* Interactive States */
    --hover-overlay: rgba(230, 126, 34, 0.08);
    --active-overlay: rgba(230, 126, 34, 0.12);
    --focus-ring: rgba(230, 126, 34, 0.25);
    
    /* Typography */
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
    
    /* Spacing - Responsive */
    --section-padding: clamp(3rem, 8vw, 5rem) 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* ============================================
   Base & Reset
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-primary);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-color);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background-color: var(--background-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 150px;
    height: 50px;
    transition: var(--transition-base);
}

.navbar-brand img:hover {
    opacity: 0.85;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

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

/* Sticky CTA in Header */
.header-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ============================================
   Mobile Navbar Enhancements
   ============================================ */

/* Navbar toggler improvements */
.navbar-toggler {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--focus-ring);
    border-color: var(--primary-color);
}

.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");
    transition: all 0.2s ease;
}

.navbar-toggler[aria-expanded="true"] .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='m6 8l18 18M24 8l-18 18'/%3e%3c/svg%3e");
}

/* Mobile navbar collapse behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
        padding: 1rem 0;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    
    /* Custom scrollbar for navbar collapse */
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 3px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }
    
    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-collapse.collapsing {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    /* Mobile nav links styling */
    .navbar-nav {
        margin: 0;
        padding: 0 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
        border-radius: 4px;
        transition: all 0.2s ease;
        font-size: clamp(0.95rem, 2vw, 1rem);
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: var(--hover-overlay);
        color: var(--accent-color);
    }
    
    /* Mobile dropdown menus - only when navbar is collapsed */
    .navbar-collapse.show .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        box-shadow: var(--shadow-md);
        max-height: 60vh;
        overflow-y: auto;
        padding: 0.5rem 0;
        background-color: var(--background-primary);
        transition: all 0.2s ease;
    }
    
    /* Custom scrollbar for dropdowns */
    .navbar-collapse.show .navbar-nav .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-menu::-webkit-scrollbar-track {
        background: var(--background-secondary);
        border-radius: 3px;
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 3px;
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
        border-radius: 0;
        font-size: clamp(0.9rem, 2vw, 0.95rem);
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-item:hover,
    .navbar-collapse.show .navbar-nav .dropdown-item:focus {
        background-color: var(--hover-overlay);
        color: var(--accent-color);
    }
    
    /* Mobile CTA button repositioning */
    .header-cta {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
        order: 999; /* Ensure it appears at bottom */
    }
    
    .header-cta .btn-primary-custom {
        width: 100%;
        justify-content: center;
        max-width: none;
    }
}

/* Extra small screens (≤576px) */
@media (max-width: 576px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 36px;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-collapse {
        padding: 0.75rem 0;
        max-height: 70vh;
    }
    
    .navbar-nav {
        padding: 0 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-menu {
        max-height: 50vh;
        margin: 0.25rem 0.75rem 0.5rem;
        padding: 0.25rem 0;
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .header-cta {
        padding: 0.75rem;
        margin-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .header-cta .btn-primary-custom {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary-custom {
    background-color: var(--accent-color);
    color: var(--text-inverse);
    border: 2px solid var(--accent-color);
    padding: clamp(0.75rem, 3vw, 0.875rem) clamp(1.5rem, 6vw, 2rem);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-base);
    display: inline-block;
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    min-height: 44px; /* Touch-friendly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-custom {
    background-color: rgb(148, 35, 35);
    color: var(--text-inverse);
    border: 2px solid rgb(148, 35, 35);
    padding: clamp(0.75rem, 3vw, 0.875rem) clamp(1.5rem, 6vw, 2rem);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-base);
    display: inline-block;
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    min-height: 44px; /* Touch-friendly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-custom:hover {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.btn-download {
    background-color: var(--secondary-color);
    color: var(--text-inverse);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--overlay-dark) 0%, var(--overlay-darker) 100%), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-inverse);
    padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--text-inverse);
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: clamp(1rem, 4vw, 1.35rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stats {
    display: flex;
    gap: clamp(1.5rem, 6vw, 3rem);
    margin-top: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

.section-title h2 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.section-grey {
    background-color: var(--background-secondary);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 2rem);
    transition: var(--transition-base);
    height: auto; /* Remove fixed height */
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem; /* Add margin for mobile spacing */
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-icon {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background-color: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    color: var(--text-inverse);
    flex-shrink: 0;
}

.service-card h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-card ul li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-card .btn-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-top: auto; /* Push to bottom */
}

.service-card .btn-link:hover {
    color: var(--accent-color);
    gap: 0.75rem;
}

/* Equal height rows for service cards in training section */
.equal-height-cards {
    display: flex;
    align-items: stretch;
}

.equal-height-cards > [class*="col-"] {
    display: flex;
}

.equal-height-cards > [class*="col-"] > .service-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Standards & Codes Section
   ============================================ */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 25vw, 200px), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-top: 2rem;
}

.standard-badge {
    background-color: var(--background-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: clamp(0.75rem, 3vw, 1.25rem);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition-base);
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.standard-badge:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Sector Cards
   ============================================ */
.sector-card {
    background-color: var(--background-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    margin-bottom: 1rem; /* Add margin for mobile */
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.sector-image {
    width: 100%;
    height: clamp(150px, 30vw, 220px);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--text-inverse);
}

.sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.sector-content {
    padding: clamp(1.5rem, 4vw, 2rem);
}

.sector-content h3 {
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    margin-bottom: 1rem;
}

.sector-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.sector-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.sector-content ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.sector-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    padding: clamp(3rem, 8vw, 4rem) 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--text-inverse);
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-banner .btn-primary-custom,
.cta-banner .btn-secondary-custom {
    margin: 0.25rem;
}

.cta-banner .btn-primary-custom {
    background-color: var(--accent-color);
    color: var(--text-inverse);
    border-color: var(--accent-color);
}

.cta-banner .btn-primary-custom:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-inverse);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: clamp(3rem, 8vw, 4rem) 0 clamp(2rem, 5vw, 2.5rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 40vw, 250px), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-inverse);
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    margin-bottom: 1.5rem;
}
.footer-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    transition: var(--transition-base);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.certifications-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cert-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   Tables
   ============================================ */
.table-technical {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.table-technical thead {
    background-color: var(--primary-color);
    color: var(--text-inverse);
}

.table-technical th,
.table-technical td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.table-technical tbody tr:nth-child(even) {
    background-color: var(--background-secondary);
}

.table-technical tbody tr:hover {
    background-color: var(--hover-overlay);
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-control {
    width: 100%;
    padding: clamp(0.625rem, 2.5vw, 0.75rem) clamp(0.875rem, 3vw, 1rem);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition-base);
    min-height: 44px; /* Touch-friendly */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-select {
    width: 100%;
    padding: clamp(0.625rem, 2.5vw, 0.75rem) clamp(0.875rem, 3vw, 1rem);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background-color: var(--background-primary);
    transition: var(--transition-base);
    min-height: 44px; /* Touch-friendly */
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-right: 0.75rem;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumb-section {
    background-color: var(--background-secondary);
    padding: 1.5rem 0;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-steel {
    color: var(--secondary-color);
}

.bg-dark-blue {
    background-color: var(--primary-color);
}

.bg-light-grey {
    background-color: var(--background-secondary);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.mt-section {
    margin-top: clamp(3rem, 8vw, 5rem);
}

.mb-section {
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

/* ============================================
   Responsive Images & Media
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe,
video,
embed {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Accessibility & Touch-Friendly
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .sector-card:hover,
    .standard-badge:hover,
    .btn-primary-custom:hover,
    .btn-secondary-custom:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Ensure touch targets are at least 44px */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* Small phones (320px - 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: space-around;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .standards-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .sector-image {
        height: 120px;
        font-size: 2rem;
    }
    
    .sector-content {
        padding: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certifications-list {
        justify-content: center;
    }
}

/* Medium phones and small tablets (481px - 768px) */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn-primary-custom,
    .hero-cta .btn-secondary-custom {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .sector-card {
        margin-bottom: 1.5rem;
    }
    
    .cta-banner .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-banner .btn-primary-custom,
    .cta-banner .btn-secondary-custom {
        width: 100%;
        max-width: 300px;
        margin: 0.25rem 0;
    }
}

/* Tablets and small desktops (769px - 992px) */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .standards-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Large screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .cta-banner,
    .btn-primary-custom,
    .btn-secondary-custom {
        display: none;
    }
}

/* ============================================
   Event Announcement Banner
   ============================================ */
.event-announcement {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    padding: clamp(1.5rem, 4vw, 2rem) 0;
    position: relative;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--accent-color);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="event-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23event-pattern)"/></svg>');
    opacity: 0.3;
}

.event-announcement .container {
    position: relative;
    z-index: 1;
}

.event-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.event-info {
    flex: 1;
    min-width: 300px;
}

.event-icon {
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-inverse);
    flex-shrink: 0;
}

.event-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-inverse);
}

.event-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.event-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.85);
}

.event-detail i {
    color: var(--accent-color);
    font-size: 1.1em;
}

.event-cta {
    flex-shrink: 0;
}

.event-announcement .btn-primary-custom {
    background-color: var(--text-inverse);
    color: var(--primary-color);
    border-color: var(--text-inverse);
    font-weight: 700;
    padding: clamp(0.875rem, 4vw, 1rem) clamp(2rem, 8vw, 2.5rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

.event-announcement .btn-primary-custom:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.event-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .event-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .event-details {
        justify-content: center;
    }
    
    .event-cta {
        width: 100%;
    }
    
    .event-announcement .btn-primary-custom {
        width: 100%;
        max-width: 300px;
    }
    
    .event-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}
