/* ============================================
   ESBT ENTERPRISE - MAIN STYLESHEET
   Design System: Corporate, Premium, Institutional
   ============================================ */

/* Root Color Variables */
:root {
    /* Primary Colors */
    --primary-dark-blue: #03235B;
    --primary-blue: #083A84;
    --primary-light-blue: #0B4AA5;
    
    /* CTA and Accent */
    --cta-orange: #F58220;
    --accent-green: #13A35A;
    
    /* Neutral Colors */
    --background: #F7F8FA;
    --cards: #FFFFFF;
    --border: #E6EAF0;
    --text-primary: #12233D;
    --text-secondary: #67768A;
    --text-light: #9BA8B8;
    --footer: #021A47;
    --shadow: rgba(3, 35, 91, 0.08);
    
    /* Typography */
    --font-family-titles: 'Poppins', sans-serif;
    --font-family-nav: 'Poppins', sans-serif;
    --font-family-text: 'Inter', sans-serif;
}

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

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-text);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-titles);
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 1rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cta-orange);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: var(--cards);
    box-shadow: 0 2px 8px var(--shadow);
    padding: 1rem 0;
    font-family: var(--font-family-nav);
    font-weight: 600;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.brand-logo img {
    width: 126px;
    height: auto;
    display: block;
}

.footer-logo img {
    width: 136px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cta-orange);
    border-bottom: 2px solid var(--cta-orange);
}

.btn-quote {
    background-color: var(--cta-orange);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background-color: #E06F00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

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

.hero-section {
    background: linear-gradient(135deg, rgba(3, 35, 91, 0.85) 0%, rgba(8, 58, 132, 0.85) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 2rem;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: left;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content h1 .highlight {
    color: var(--accent-green);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-dark-blue);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 35, 91, 0.3);
}

.btn-secondary {
    background-color: var(--cta-orange);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #E06F00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 130, 32, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    margin: 0;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--cards);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border-left: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(3, 35, 91, 0.12);
    border-left-color: var(--accent-green);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--cards);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(3, 35, 91, 0.12);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background-color: var(--background);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-family-titles);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.stat-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-carousel {
    position: relative;
}

.testimonial-item {
    background: var(--cards);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.testimonial-quote {
    font-size: 1.5rem;
    color: var(--cta-orange);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.85rem;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--cards);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(3, 35, 91, 0.12);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--cta-orange);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--footer);
    color: white;
    padding: 3rem 0 1rem;
    font-size: 0.9rem;
}

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

.footer-section h5 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--cta-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FORMS
   ============================================ */

.form-control {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: var(--font-family-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(8, 58, 132, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-family-nav);
}

.btn-success {
    background-color: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background-color: #0d8646;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-info {
    background-color: var(--primary-light-blue);
    color: white;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 4rem 1rem;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a,
    .hero-buttons button {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .quote-submit-row {
        justify-content: stretch;
    }

    .quote-submit-button {
        width: 100%;
        min-width: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .quote-status-form {
        min-width: 220px;
    }
}

/* UI refresh v3 - stronger visible layout updates */
.home-chain-track {
    display: none;
}

.home-chain-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1180px;
    margin: 2rem auto 0;
}

.home-chain-grid article {
    position: relative;
    min-height: 190px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(8, 58, 132, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 8%, rgba(19, 163, 90, 0.12), transparent 30%),
        linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 16px 38px rgba(5, 43, 99, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-chain-grid article::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-600), var(--orange-500));
    border-radius: 999px 999px 0 0;
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.home-chain-grid article:hover {
    transform: translateY(-7px);
    border-color: rgba(19, 163, 90, 0.32);
    box-shadow: 0 24px 56px rgba(5, 43, 99, 0.14);
}

.home-chain-grid article:hover::after {
    transform: scaleX(1);
}

.home-chain-grid i {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.35rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    box-shadow: 0 14px 28px rgba(5, 43, 99, 0.18);
}

.home-chain-grid strong {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    color: var(--navy-950);
    font-size: 1rem;
    line-height: 1.2;
}

.home-chain-grid span {
    margin-top: 0.55rem;
    color: #445064;
    font-size: 0.9rem;
    line-height: 1.55;
}

.service-value-chain-v2 {
    grid-template-columns: 0.34fr 1fr;
    padding: clamp(1.25rem, 2.4vw, 2rem);
    align-items: stretch;
}

.service-chain-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 1rem;
}

.service-chain-copy p {
    margin: 0.6rem 0 0;
    color: #445064;
}

.value-chain-timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
}

.value-chain-timeline article {
    position: relative;
    min-height: 155px;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(8, 58, 132, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(5, 43, 99, 0.06);
}

.value-chain-timeline article::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--navy-900), var(--green-600));
}

.value-chain-timeline strong {
    color: var(--orange-500);
    font-size: 1.35rem;
    line-height: 1;
}

.value-chain-timeline span {
    margin-top: 0.65rem;
    color: var(--navy-950);
    font-weight: 850;
    line-height: 1.2;
}

.value-chain-timeline small {
    margin-top: 0.55rem;
    color: #5b687a;
    line-height: 1.45;
}

.expertise-poles-v2 article {
    min-height: 175px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 92% 8%, rgba(245, 130, 32, 0.10), transparent 28%),
        #fff;
}

.expertise-poles-v2 small {
    display: block;
    margin-top: 0.8rem;
    color: #445064;
    line-height: 1.55;
}

body:has(.login-page) > .navbar,
body:has(.login-page) > footer {
    display: none;
}

.login-page {
    min-height: 100vh;
}

.login-card {
    transform: translateZ(0);
}

@media (max-width: 1100px) {
    .home-chain-grid,
    .value-chain-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-value-chain-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-chain-grid,
    .value-chain-timeline {
        grid-template-columns: 1fr;
    }

    .home-chain-grid article,
    .value-chain-timeline article {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .services-grid,
    .projects-grid,
    .news-grid {
        gap: 1rem;
    }
    
    .service-card,
    .project-card,
    .news-card {
        padding: 1rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

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

.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

.text-white {
    color: white;
}

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

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.opacity-75 {
    opacity: 0.75;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Global page animations */
.js-reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(4px);
    transition:
        opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    will-change: opacity, transform;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.service-card,
.project-card,
.news-card,
.testimonial-item,
.team-member,
.metric-card,
.dashboard-card,
.ui-card,
.contact-panel,
.form-shell,
.filter-bar,
.home-panel,
.home-about-point,
.home-project-card,
.quote-card,
.card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.service-card:hover,
.project-card:hover,
.news-card:hover,
.testimonial-item:hover,
.team-member:hover,
.metric-card:hover,
.dashboard-card:hover,
.ui-card:hover,
.contact-panel:hover,
.form-shell:hover,
.filter-bar:hover,
.home-panel:hover,
.home-about-point:hover,
.home-project-card:hover,
.quote-card:hover,
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 43, 99, 0.22);
    box-shadow: var(--shadow-hover, 0 22px 55px rgba(5, 43, 99, 0.14));
}

tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

tbody tr:hover {
    background: rgba(5, 150, 105, 0.045);
}

.quote-submit-row {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.quote-submit-button {
    min-width: 240px;
    min-height: 48px;
    padding: 0.75rem 2.5rem;
    font-size: 1.05rem;
}

.dashboard-table-wrap {
    width: 100%;
    border-radius: 8px;
}

.quote-status-form {
    min-width: 250px;
    display: flex;
    gap: 0.5rem;
}

.form-example {
    display: block;
    margin-top: 0.4rem;
    color: #6b778c;
    font-size: 0.84rem;
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal,
    .js-reveal.is-visible,
    .service-card,
    .project-card,
    .news-card,
    .testimonial-item,
    .team-member,
    .metric-card,
    .dashboard-card,
    .ui-card,
    .contact-panel,
    .form-shell,
    .filter-bar,
    .home-panel,
    .home-about-point,
    .home-project-card,
    .quote-card,
    .card,
    tbody tr {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
        animation: none;
    }
}

/* ============================================
   HOME PAGE - REFERENCE LANDING DESIGN
   ============================================ */

.home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0.74) 34%, rgba(246, 248, 251, 0.16) 66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 31, 77, 0.22));
}

.home-hero-content {
    max-width: 660px;
    padding: 4.5rem 0;
    animation: heroContentIn 0.8s ease both;
}

.home-eyebrow {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: var(--green-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero h1 {
    color: #071b3d;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.home-hero h1 span {
    color: var(--green-700);
}

.home-hero p {
    max-width: 520px;
    color: #163250;
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-hero-actions .btn {
    min-width: 180px;
    padding: 0.9rem 1.3rem;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f2749;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.hero-arrow-left {
    left: 1.8rem;
}

.hero-arrow-right {
    right: 1.8rem;
}

.hero-progress,
.home-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.hero-progress {
    position: absolute;
    bottom: 1.2rem;
    left: 0;
    right: 0;
}

.hero-progress span,
.home-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.hero-progress span {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
}

.hero-progress .active,
.home-dots .active {
    background: var(--navy-900);
}

.home-services-band {
    padding: 3rem 0 2rem;
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 22%, #ffffff 100%);
}

.home-about-section {
    padding: 3.2rem 0 2rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-about-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.8rem);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
        #fff;
    box-shadow: var(--shadow-soft);
}

.home-about-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--green-600), var(--orange-500));
}

.home-about-copy {
    max-width: 930px;
    margin: 0 auto 1.7rem;
    text-align: center;
}

.home-about-copy p {
    margin: 0 0 0.9rem;
    color: #26384f;
    font-size: clamp(0.98rem, 1.25vw, 1.08rem);
    line-height: 1.85;
}

.home-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.home-about-point {
    min-height: 160px;
    padding: 1.2rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-about-point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.home-about-point i {
    width: 42px;
    height: 42px;
    margin-bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    font-size: 1.1rem;
    border-radius: 8px;
    background: rgba(5, 150, 105, 0.1);
}

.home-about-point h3 {
    margin: 0 0 0.45rem;
    color: #071b3d;
    font-size: 1rem;
}

.home-about-point p {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.65;
}

.home-section-heading {
    margin-bottom: 1.3rem;
}

.home-section-heading span {
    color: var(--green-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-section-heading h2 {
    color: #071b3d;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    margin: 0.25rem 0 0;
}

.home-section-heading p {
    max-width: 680px;
    margin: 0.55rem auto 0;
    color: #64748b;
    font-size: 0.95rem;
}

.home-sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 2rem);
    align-items: stretch;
}

.home-sector-card {
    position: relative;
    min-height: 330px;
    padding: clamp(1.4rem, 3vw, 2.35rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1f2d3d;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 8px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    animation: serviceCardIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    will-change: transform;
}

.home-sector-card:nth-child(2) { animation-delay: 0.05s; }
.home-sector-card:nth-child(3) { animation-delay: 0.1s; }
.home-sector-card:nth-child(4) { animation-delay: 0.15s; }
.home-sector-card:nth-child(5) { animation-delay: 0.2s; }
.home-sector-card:nth-child(6) { animation-delay: 0.25s; }
.home-sector-card:nth-child(7) { animation-delay: 0.3s; }
.home-sector-card:nth-child(8) { animation-delay: 0.35s; }
.home-sector-card:nth-child(9) { animation-delay: 0.4s; }

.home-sector-card:hover {
    color: #1f2d3d;
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(5, 43, 99, 0.34);
    box-shadow: 0 28px 60px rgba(5, 43, 99, 0.14);
}

.home-sector-card.is-featured {
    border: 2px solid var(--navy-900);
    box-shadow: 0 26px 70px rgba(5, 43, 99, 0.16);
}

.sector-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.85rem;
    background: linear-gradient(135deg, var(--orange-500), #ef7d18);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
    transition: transform 0.28s ease, background 0.28s ease;
}

.home-sector-card:hover .sector-icon {
    transform: translateY(-4px) rotate(-2deg);
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
}

.home-sector-card strong {
    max-width: 290px;
    color: var(--navy-900);
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.18;
    font-weight: 750;
}

.home-sector-card small {
    max-width: 320px;
    margin-top: 1.25rem;
    color: #2f3b4d;
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    line-height: 1.85;
}

.home-stats-wrap {
    padding: 1.25rem 0 0.75rem;
    background: #fff;
}

.home-value-chain {
    padding: 3.5rem 0 2rem;
    background: #fff;
}

.home-chain-track,
.value-chain-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: center;
}

.home-chain-track span,
.value-chain-steps span {
    position: relative;
    padding: 0.75rem 1rem;
    color: var(--navy-900);
    font-weight: 750;
    border: 1px solid rgba(8, 58, 132, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    box-shadow: 0 10px 24px rgba(5, 43, 99, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-chain-track span:hover,
.value-chain-steps span:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 163, 90, 0.35);
    box-shadow: 0 16px 34px rgba(5, 43, 99, 0.12);
}

.service-value-chain {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.4rem;
    border: 1px solid rgba(8, 58, 132, 0.1);
    border-radius: 8px;
    background:
        radial-gradient(circle at 95% 10%, rgba(19, 163, 90, 0.1), transparent 30%),
        linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 14px 34px rgba(5, 43, 99, 0.07);
}

.service-value-chain span,
.home-section-heading span {
    color: var(--green-700);
    font-weight: 850;
    letter-spacing: 0.07em;
}

.service-value-chain h2 {
    margin: 0.3rem 0 0;
    color: var(--navy-950);
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.expertise-poles,
.about-catalogue-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.expertise-poles article,
.about-catalogue-card {
    min-height: 132px;
    padding: 1.15rem;
    border: 1px solid rgba(8, 58, 132, 0.11);
    border-radius: 8px;
    background: white;
    box-shadow: 0 12px 30px rgba(5, 43, 99, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise-poles article:hover,
.about-catalogue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(5, 43, 99, 0.12);
}

.expertise-poles strong {
    display: block;
    color: var(--orange-500);
    font-size: 1.5rem;
}

.expertise-poles span,
.about-catalogue-card span {
    display: block;
    margin-top: 0.45rem;
    color: var(--navy-900);
    font-weight: 800;
}

.about-catalogue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-catalogue-card p {
    margin: 0.75rem 0 0;
    color: #445064;
}

.about-values,
.about-sectors {
    padding: 1.4rem;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid rgba(8, 58, 132, 0.08);
}

.about-value-list,
.about-sector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.about-value-list span,
.about-sector-list span {
    padding: 0.65rem 0.9rem;
    color: var(--navy-900);
    font-weight: 750;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(8, 58, 132, 0.1);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-stat-item {
    position: relative;
    min-height: 128px;
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 18%, rgba(19, 163, 90, 0.24), transparent 32%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
    box-shadow: 0 18px 42px rgba(5, 43, 99, 0.16);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-stat-item::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--green-600), var(--orange-500));
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.home-stat-item:hover {
    transform: translateY(-8px);
    border-color: rgba(19, 163, 90, 0.38);
    box-shadow: 0 24px 58px rgba(5, 43, 99, 0.22);
}

.home-stat-item:hover::after {
    transform: scaleX(1);
}

.home-stat-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.home-stat-icon i {
    color: var(--green-600);
    font-size: 1.65rem;
}

.home-stat-item strong {
    display: block;
    color: white;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 800;
    line-height: 1;
}

.home-stat-item span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
}

.home-stat-copy span {
    display: block;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-insights {
    padding: 1rem 0 1.25rem;
    background: #fff;
}

.home-insight-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr 1.2fr;
    gap: 1.2rem;
}

.home-panel {
    padding: 1.35rem;
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h3 {
    margin: 0;
    color: #071b3d;
    font-size: 1.1rem;
}

.panel-header a {
    color: var(--navy-900);
    font-size: 0.78rem;
    font-weight: 800;
}

.home-project-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.home-project-card {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.home-project-card img {
    width: 100%;
    height: 125px;
    object-fit: cover;
}

.home-project-card div {
    padding: 0.85rem;
}

.home-project-card h4 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.home-project-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.76rem;
}

.home-news-list {
    display: grid;
    gap: 0.7rem;
}

.home-news-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line-soft);
}

.home-news-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.home-news-row img {
    width: 70px;
    height: 54px;
    object-fit: cover;
    border-radius: 7px;
}

.home-news-row strong {
    display: block;
    color: #071b3d;
    font-size: 0.82rem;
    line-height: 1.35;
}

.home-news-row small {
    color: #64748b;
    font-size: 0.72rem;
}

.testimonial-panel {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.home-testimonial {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-testimonial > i {
    color: var(--navy-900);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.home-testimonial p {
    max-width: 360px;
    color: #1f344e;
    font-size: 0.95rem;
    line-height: 1.65;
}

.testimonial-person {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.testimonial-person img,
.testimonial-person span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.testimonial-person img {
    object-fit: cover;
}

.testimonial-person span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--navy-900);
}

.testimonial-person strong {
    color: #071b3d;
    font-size: 0.86rem;
}

.home-cta {
    padding: 0 0 0.5rem;
    background: #fff;
}

.home-cta-inner {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px 8px 0 0;
    color: white;
    background:
        linear-gradient(135deg, rgba(0, 31, 77, 0.96), rgba(5, 43, 99, 0.94)),
        var(--navy-950);
    box-shadow: var(--shadow-soft);
}

.home-cta h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.home-cta p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.home-catalogue-section {
    padding: 0 0 1.5rem;
    background: #fff;
}

.home-catalogue-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(8, 58, 132, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 58, 132, 0.06), rgba(0, 166, 81, 0.06)),
        #fff;
    box-shadow: var(--shadow-soft);
}

.home-catalogue-copy span {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--green-600);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-catalogue-copy h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.home-catalogue-copy p {
    margin: 0.45rem 0;
    color: var(--text-muted);
}

.home-catalogue-copy small {
    color: var(--navy-700);
    font-weight: 700;
}

.footer-legal-id {
    display: grid;
    gap: 0.25rem;
    font-size: 0.82rem;
    opacity: 0.86;
}

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

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

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

@media (max-width: 1100px) {
    .home-insight-grid {
        grid-template-columns: 1fr;
    }

    .home-project-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-card-wide {
        grid-column: span 1;
    }

    .dashboard-chart-card {
        min-height: 300px;
    }

    .service-value-chain,
    .expertise-poles,
    .about-catalogue-grid {
        grid-template-columns: 1fr;
    }

    .analytics-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-tab {
        padding: 0.75rem 0.7rem;
    }

    .realtime-card .chart-card-header h3 {
        font-size: 2.35rem;
    }

    .home-hero {
        min-height: 540px;
    }

    .hero-arrow {
        display: none;
    }

    .home-stats {
        grid-template-columns: 1fr 1fr;
    }

    .home-about-grid {
        grid-template-columns: 1fr;
    }

    .home-stat-item {
        min-height: 124px;
    }

    .home-project-strip {
        grid-template-columns: 1fr;
    }

    .home-sector-grid {
        grid-template-columns: 1fr;
    }

    .home-sector-card {
        min-height: 280px;
    }

    .home-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================
   REFERENCE UI POLISH - ESBT MEMOIRE DESIGN
   ============================================ */

:root {
    --navy-950: #001f4d;
    --navy-900: #052b63;
    --navy-800: #063a78;
    --green-600: #059669;
    --green-700: #047857;
    --orange-500: #f97316;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line-soft: #e5edf5;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 22px 55px rgba(5, 43, 99, 0.14);
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(5, 150, 105, 0.05), transparent 28rem),
        radial-gradient(circle at 92% 10%, rgba(249, 115, 22, 0.05), transparent 26rem),
        #f6f8fb;
}

main {
    min-height: 70vh;
}

.container,
.container-fluid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.navbar {
    margin: 1.1rem auto 0;
    width: min(1180px, calc(100% - 2rem));
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    z-index: 1000;
}

.navbar-brand {
    font-size: 0.95rem;
    letter-spacing: 0;
}

.navbar .brand-logo {
    padding: 0;
}

.navbar-brand i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(5, 43, 99, 0.08);
}

.nav-link {
    margin: 0 0.15rem;
    border-radius: 999px;
    border-bottom: 0;
    font-size: 0.82rem;
    color: #24364f;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-700);
    background: rgba(5, 150, 105, 0.08);
    border-bottom: 0;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-search .form-control {
    width: 170px;
    min-height: 38px;
    font-size: 0.82rem;
}

.site-search .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.btn,
.btn-quote {
    border-radius: 7px;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-quote,
.btn-secondary {
    background: var(--orange-500);
}

.btn-quote:hover,
.btn-secondary:hover {
    background: #ea580c;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.btn-primary {
    background: var(--green-600);
}

.btn-primary:hover {
    background: var(--green-700);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.18);
}

.btn-outline-primary {
    color: var(--navy-900);
    border: 1px solid var(--line-soft);
    background: white;
}

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

.hero-section {
    width: min(1180px, calc(100% - 2rem));
    min-height: 390px;
    margin: 1rem auto 0;
    padding: 3.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--navy-950);
    box-shadow: var(--shadow-soft);
}

.hero-section::before {
    background:
        linear-gradient(90deg, rgba(0, 31, 77, 0.92), rgba(0, 31, 77, 0.68) 48%, rgba(0, 31, 77, 0.22)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.12));
    opacity: 1;
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    font-size: clamp(2.1rem, 4vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.hero-content p {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.75;
}

.hero-buttons .btn {
    min-width: 150px;
    padding: 0.8rem 1.1rem;
}

section {
    padding: 3rem 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    margin-bottom: 1.6rem;
}

.section-title h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.section-label {
    color: var(--green-700);
    letter-spacing: 0;
}

.services-grid,
.projects-grid {
    gap: 1.25rem;
}

.service-card,
.project-card,
.news-card,
.testimonial-item,
.ui-card,
.dashboard-card {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    background: var(--surface);
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.dashboard-chart-card {
    position: relative;
    min-height: 330px;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(5, 43, 99, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.98)),
        radial-gradient(circle at 90% 0%, rgba(26, 115, 232, 0.08), transparent 34%);
    box-shadow: 0 18px 48px rgba(5, 43, 99, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.dashboard-chart-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, var(--green-600), var(--orange-500));
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.dashboard-chart-card:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 43, 99, 0.18);
    box-shadow: 0 20px 48px rgba(5, 43, 99, 0.13);
}

.dashboard-chart-card:hover::before {
    transform: scaleX(1);
}

.dashboard-chart-card-wide {
    grid-column: span 2;
}

.chart-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.chart-card-header span {
    display: block;
    color: var(--green-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chart-card-header h3 {
    margin: 0.2rem 0 0;
    color: var(--navy-950);
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    font-weight: 800;
}

.chart-card-header i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--navy-800);
    border-radius: 8px;
    background: rgba(11, 74, 165, 0.09);
}

.dashboard-chart-card canvas {
    max-height: 260px;
}

.analytics-overview-card {
    min-height: 390px;
}

.analytics-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    margin: -0.3rem -0.2rem 1.1rem;
    border-bottom: 1px solid rgba(103, 118, 138, 0.16);
}

.analytics-tab {
    position: relative;
    padding: 0.8rem 1rem 0.9rem;
}

.analytics-tab::before {
    content: "";
    position: absolute;
    inset: 0.1rem 0.2rem auto;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: transparent;
}

.analytics-tab.is-active::before {
    background: #1a73e8;
}

.analytics-tab span {
    display: block;
    color: #445064;
    font-weight: 750;
}

.analytics-tab strong {
    display: block;
    margin-top: 0.4rem;
    color: #2f3b4d;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1;
    font-weight: 500;
}

.analytics-tab small {
    display: block;
    margin-top: 0.45rem;
    font-weight: 750;
}

.trend-down { color: #d93025; }
.trend-up { color: var(--green-700); }

.realtime-card {
    min-height: 390px;
}

.realtime-status {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    border: 1px solid rgba(19, 163, 90, 0.24);
    border-radius: 50%;
    background: white;
    box-shadow: 0 8px 22px rgba(19, 163, 90, 0.1);
}

.realtime-card .chart-card-header {
    padding-right: 3.2rem;
}

.realtime-card .chart-card-header h3 {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 500;
}

.realtime-list {
    margin-top: 1.25rem;
}

.realtime-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(103, 118, 138, 0.18);
}

.realtime-list span {
    position: relative;
    color: #2f3b4d;
    font-weight: 650;
}

.realtime-list span::after {
    content: "";
    display: block;
    width: min(72%, 220px);
    height: 3px;
    margin-top: 0.42rem;
    background: #1a73e8;
    border-radius: 999px;
}

.realtime-list strong {
    color: #12233d;
    font-weight: 650;
}

.neon-card {
    color: #eef6ff;
    border-color: rgba(34, 211, 238, 0.18);
    background:
        radial-gradient(circle at 20% 18%, rgba(245, 130, 32, 0.25), transparent 26%),
        radial-gradient(circle at 86% 28%, rgba(34, 211, 238, 0.24), transparent 28%),
        linear-gradient(145deg, #07111f, #0b1730 62%, #111827);
    box-shadow: 0 24px 60px rgba(7, 17, 31, 0.2);
}

.neon-card .chart-card-header span,
.neon-card .chart-card-header h3 {
    color: #f8fbff;
}

.neon-card .chart-card-header i {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.kpi-ring-card canvas {
    filter: drop-shadow(0 18px 24px rgba(5, 43, 99, 0.12));
}

.login-page {
    position: relative;
    min-height: calc(100vh - 92px);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 4rem) 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(34, 211, 238, 0.16), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(19, 163, 90, 0.12), transparent 26%),
        linear-gradient(135deg, #051b44 0%, #083a84 52%, #0b4aa5 100%);
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%),
        url("../images/esbt/industrial-plant.88127e039f38.jpg") center/cover;
    opacity: 0.16;
    filter: saturate(0.8);
}

.login-bg-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    pointer-events: none;
}

.login-bg-orbit-one {
    width: 520px;
    height: 520px;
    left: -160px;
    bottom: -220px;
}

.login-bg-orbit-two {
    width: 380px;
    height: 380px;
    right: -130px;
    top: 8%;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: clamp(1.5rem, 4vw, 2.2rem);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(5, 27, 68, 0.58);
    box-shadow: 0 28px 80px rgba(0, 16, 45, 0.34);
    backdrop-filter: blur(16px);
    animation: loginCardIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.35rem;
}

.login-brand img {
    width: 150px;
    max-height: 58px;
    object-fit: contain;
}

.login-heading {
    text-align: center;
    margin-bottom: 1.35rem;
}

.login-heading span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 0.3rem 0;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    font-weight: 750;
}

.login-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field label {
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.86rem;
    font-weight: 700;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    z-index: 2;
    color: rgba(255, 255, 255, 0.68);
    transform: translateY(-50%);
}

.login-input-wrap .form-control {
    min-height: 48px;
    padding-left: 2.75rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-input-wrap .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-input-wrap .form-control:focus {
    color: #fff;
    border-color: rgba(34, 211, 238, 0.58);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.13);
}

.login-input-wrap .password-toggle {
    color: rgba(255, 255, 255, 0.74);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.login-remember input {
    accent-color: var(--green-600);
}

.login-options a,
.login-footer-note a {
    color: #fff;
    font-weight: 750;
}

.login-submit {
    min-height: 48px;
    color: #fff;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange-500), #ff9b3d);
    box-shadow: 0 14px 30px rgba(245, 130, 32, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(245, 130, 32, 0.36);
}

.login-footer-note {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.login-error {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.22);
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Public pages polish - unified spacing, text rhythm and card layout */
.public-section {
    background:
        radial-gradient(circle at 96% 0%, rgba(11, 74, 165, 0.045), transparent 28%),
        linear-gradient(180deg, #fff, #f8fbff);
}

.public-section > .container,
.public-section > .container-fluid {
    max-width: 1240px;
}

.page-intro {
    max-width: 780px;
    margin-bottom: 2rem;
}

.page-intro.compact {
    margin-bottom: 1.25rem;
}

.page-intro span,
.panel-title span {
    display: block;
    color: var(--green-700, #13A35A);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-intro h1,
.page-intro h2 {
    margin: 0.3rem 0 0.75rem;
    color: var(--navy-950, #03235B);
    letter-spacing: 0;
}

.page-intro p {
    max-width: 680px;
    color: #445064;
    font-size: 1.02rem;
}

.hero-section {
    min-height: 300px !important;
    justify-content: flex-start;
}

.hero-section .container-fluid {
    width: min(100%, 1240px);
    margin: 0 auto;
}

.hero-content {
    max-width: 760px;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    letter-spacing: 0;
}

.hero-content p {
    max-width: 620px;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.filter-pills,
.filter-bar {
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(8, 58, 132, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(5, 43, 99, 0.05);
}

.filter-pills {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.services-grid {
    align-items: stretch;
}

.service-card,
.project-card,
.news-card,
.contact-panel,
.detail-panel,
.modern-content-card {
    border: 1px solid rgba(8, 58, 132, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(5, 43, 99, 0.07);
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem;
}

.service-card-image,
.news-image,
.project-card img,
.detail-hero-image {
    width: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.service-card-image {
    height: 200px;
    margin-bottom: 1rem;
}

.service-card h3,
.project-card h4,
.news-card h4 {
    color: var(--navy-950, #03235B);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.25;
}

.service-card p,
.project-card p,
.news-card p {
    color: #445064;
    line-height: 1.7;
}

.service-card-detail {
    margin-bottom: 1.25rem;
    font-size: 0.94rem;
}

.modern-card-grid {
    gap: 1.25rem;
}

.project-card,
.news-card {
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover,
.news-card:hover,
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(5, 43, 99, 0.13);
}

.news-content,
.project-card-content {
    padding: 1.25rem;
}

.detail-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-hero-image {
    max-height: 460px;
    margin-bottom: 1.5rem;
}

.detail-copy {
    max-width: 820px;
}

.detail-copy p {
    color: #334155;
    font-size: 1.03rem;
    line-height: 1.9;
}

.section-soft {
    background: #f7f9fc;
}

.related-card {
    min-height: 96px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--navy-900, #083A84);
    border: 1px solid rgba(8, 58, 132, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(5, 43, 99, 0.06);
}

.related-card span {
    font-weight: 750;
}

.contact-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.panel-title {
    margin-bottom: 1.4rem;
}

.panel-title h3 {
    margin: 0.35rem 0 0;
    color: var(--navy-950, #03235B);
}

.contact-info-row {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(103, 118, 138, 0.14);
}

.contact-info-row > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange-500, #F58220), #ff9b3d);
}

.contact-info-row h5 {
    margin-bottom: 0.25rem;
    color: var(--navy-900, #083A84);
}

.contact-info-row p {
    margin-bottom: 0;
}

.contact-info-row a {
    color: var(--orange-500, #F58220);
    font-weight: 750;
}

.contact-social-title {
    margin-top: 1.4rem;
    color: var(--navy-900, #083A84);
}

.map-section {
    padding: 0 0 3rem;
    background: #f8fbff;
}

.map-frame {
    width: min(100% - 2rem, 1180px);
    height: 380px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(8, 58, 132, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(5, 43, 99, 0.08);
}

.home-about-copy {
    max-width: 860px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.home-about-copy p {
    color: #334155;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.home-section-heading {
    max-width: 820px;
    margin-inline: auto;
}

.home-section-heading h2 {
    letter-spacing: 0;
}

.home-section-heading p {
    max-width: 680px;
    margin-inline: auto;
}

.home-sector-card {
    justify-content: flex-start;
    padding-top: clamp(1.5rem, 2.6vw, 2.2rem);
}

.home-sector-card strong {
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-sector-card small {
    min-height: 4.8em;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem !important;
        min-height: 260px !important;
    }

    .filter-pills,
    .filter-bar {
        padding: 0.75rem;
    }

    .contact-info-row {
        grid-template-columns: 40px 1fr;
    }

    .map-frame {
        height: 300px;
    }

    .home-sector-card strong,
    .home-sector-card small {
        min-height: auto;
    }
}

.service-card {
    padding: 1rem;
    text-align: left;
    border-left: 0;
}

.service-card:hover,
.project-card:hover,
.news-card:hover,
.testimonial-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-card > img {
    height: 175px !important;
    border-radius: 7px !important;
}

.service-icon {
    width: 42px;
    height: 42px;
    margin: 0.4rem 0 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    font-size: 1.15rem;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 7px;
}

.service-card h3,
.project-card h4,
.news-card h4 {
    font-size: 1rem;
    line-height: 1.35;
}

.service-card p,
.project-card p,
.news-card p {
    font-size: 0.86rem;
    line-height: 1.65;
}

.project-card img,
.news-image {
    height: 210px;
}

.project-card-content,
.news-content {
    padding: 1rem;
}

.project-tag {
    color: var(--green-700);
    background: rgba(5, 150, 105, 0.09);
    border-radius: 999px;
}

.read-more {
    color: var(--green-700);
    font-size: 0.9rem;
}

.stats-section {
    border-radius: 8px;
    padding: 2.3rem;
    background:
        linear-gradient(135deg, rgba(0, 31, 77, 0.98), rgba(5, 43, 99, 0.96)),
        var(--navy-950);
    box-shadow: var(--shadow-soft);
}

.stat-item {
    padding: 1.2rem;
}

.stat-number {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 7px;
    border-color: var(--line-soft);
    min-height: 44px;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(5, 150, 105, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.12);
}

.form-shell,
.contact-panel {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.form-shell {
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.contact-panel {
    padding: 1.5rem;
}

footer {
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto 1rem;
    border-radius: 8px;
    padding: 2.2rem 0 1rem;
    background:
        linear-gradient(135deg, rgba(0, 31, 77, 0.99), rgba(2, 26, 71, 0.98)),
        var(--footer);
}

.footer-content {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 1.5rem;
}

.footer-section p,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.74);
}

.table,
table {
    vertical-align: middle;
}

.table thead th,
table thead th {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #f8fafc;
}

.table tbody td,
table tbody td {
    color: #26384f;
    font-size: 0.9rem;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 0.85rem;
}

.dashboard-hero {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
    box-shadow: var(--shadow-soft);
}

.metric-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.filter-bar {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 1rem;
    background: white;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

@media (max-width: 991px) {
    .navbar {
        width: calc(100% - 1rem);
        margin-top: 0.5rem;
        padding: 0.65rem 0.75rem;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }

    .navbar-nav {
        width: 100%;
        align-items: stretch !important;
        gap: 0.25rem;
    }

    .nav-link {
        width: 100%;
        margin: 0;
        padding: 0.75rem 0.85rem;
        border-radius: 7px;
    }

    .dropdown-menu {
        width: 100%;
        margin-top: 0.25rem;
        border-radius: 7px;
        box-shadow: none;
    }

    .site-search {
        width: 100%;
        margin-left: 0 !important;
        align-items: stretch;
    }

    .site-search .form-control {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .btn-quote {
        width: 100%;
        min-height: 46px;
        margin: 0.75rem 0 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section {
        width: calc(100% - 1rem);
        min-height: 420px;
        padding: 2.5rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Home agency hero */
.agency-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(0, 31, 77, 0.78), rgba(5, 43, 99, 0.46) 52%, rgba(5, 150, 105, 0.12)),
        var(--navy-950);
}

.agency-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 31, 77, 0.76) 0%, rgba(0, 31, 77, 0.46) 44%, rgba(0, 31, 77, 0.08) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 31, 77, 0.2));
}

.agency-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 45%;
    background: linear-gradient(180deg, rgba(0, 31, 77, 0), rgba(0, 31, 77, 0.5));
    pointer-events: none;
}

.agency-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    opacity: 0.94;
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.08) brightness(0.94);
    will-change: transform, opacity, filter;
    transition: opacity 0.52s ease, filter 0.52s ease;
    animation: agencyImageDrift 18s ease-in-out infinite alternate;
}

.agency-hero-bg.is-switching {
    opacity: 0.55;
    filter: saturate(1.02) contrast(1.02) brightness(0.86);
}

.agency-nav {
    position: relative;
    z-index: 3;
    width: min(1220px, calc(100% - 4rem));
    height: 108px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agency-logo img {
    width: 178px;
    height: auto;
    display: block;
}

.home-floating-logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1030;
    width: 112px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(0, 31, 77, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(12px);
}

.home-floating-logo.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.home-floating-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.agency-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2.4rem);
}

.agency-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.8rem 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.agency-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.35rem;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.agency-links a:hover,
.agency-links a.active {
    color: #fff;
    transform: translateY(-1px);
}

.agency-links a:hover::after,
.agency-links a.active::after {
    transform: scaleX(1);
}

.agency-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.agency-hero-content {
    position: relative;
    z-index: 2;
    width: min(1040px, calc(100% - 3rem));
    min-height: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: agencyContentIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.agency-slide {
    display: none;
    max-width: 1040px;
}

.agency-slide.is-active {
    display: block;
    animation: agencySlideIn 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.agency-eyebrow {
    margin-bottom: 1rem;
    color: #8ef0be;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.agency-hero-content h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 5.4vw, 5rem);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: 0;
    text-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.agency-hero-content h1 span {
    color: #8ef0be;
}

.agency-hero-content p {
    max-width: 760px;
    margin: 1.25rem auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.72;
}

.agency-actions {
    margin-top: 2.1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.agency-cta,
.agency-secondary {
    min-width: 190px;
    min-height: 58px;
    padding: 1rem 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.agency-cta {
    color: #fff;
    background: var(--orange-500);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.26);
}

.agency-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.09);
}

.agency-cta:hover,
.agency-secondary:hover {
    color: #fff;
    transform: translateY(-3px);
}

.agency-cta:hover {
    background: #ea580c;
    box-shadow: 0 24px 44px rgba(249, 115, 22, 0.32);
}

.agency-secondary:hover {
    background: rgba(5, 150, 105, 0.32);
}

.agency-arrow {
    position: absolute;
    top: 54%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.agency-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
}

.agency-arrow-left {
    left: 2rem;
}

.agency-arrow-right {
    right: 2rem;
}

.agency-progress {
    position: absolute;
    left: 50%;
    bottom: 2.1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.agency-progress span {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    overflow: hidden;
}

.agency-progress .active {
    background: #fff;
}

.agency-progress .active::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-green);
    animation: agencyProgress 4s ease-in-out infinite;
}

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

@keyframes agencyImageDrift {
    from {
        transform: scale(1.045) translate3d(-1%, 0, 0);
    }
    to {
        transform: scale(1.1) translate3d(1.4%, -0.6%, 0);
    }
}

@keyframes agencySlideIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes agencyProgress {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 991px) {
    .agency-hero {
        min-height: 660px;
    }

    .agency-nav {
        width: min(100% - 2rem, 680px);
        height: 88px;
    }

    .agency-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .agency-links {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: rgba(0, 31, 77, 0.96);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    }

    .agency-links.is-open {
        display: flex;
    }

    .agency-links a {
        padding: 0.85rem 0.9rem;
    }

    .agency-actions {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .agency-cta,
    .agency-secondary {
        flex: 1 1 220px;
    }

    .agency-arrow {
        display: none;
    }
}

@media (max-width: 576px) {
    .agency-hero {
        min-height: 620px;
    }

    .agency-logo img {
        width: 142px;
    }

    .agency-hero-content {
        width: min(100% - 1.4rem, 480px);
        min-height: 460px;
        padding-top: 1rem;
    }

    .agency-hero-content h1 {
        font-size: clamp(2.05rem, 11vw, 3rem);
        line-height: 1.06;
    }

    .agency-hero-content p {
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .agency-actions {
        width: 100%;
        gap: 0.75rem;
    }

    .agency-cta,
    .agency-secondary {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 380px) {
    .navbar .brand-logo img {
        max-width: 118px;
    }

    .navbar-toggler {
        padding: 0.35rem 0.5rem;
    }

    .agency-logo img {
        width: 124px;
    }

    .agency-hero-content h1 {
        font-size: clamp(1.85rem, 10vw, 2.45rem);
    }
}
