/* ============================================
   EXCO SENEGAL — Premium Website Styles
   Brand Colors from EXCO Logo SVG:
   #006284 (Dark Blue) | #008FC3 (Blue)
   #1BA9CC (Teal) | #DA5914 (Orange)
   #F59A00 (Amber) | #575756 (Dark Gray)
   ============================================ */

:root {
    --blue-dark: #006284;
    --blue: #008FC3;
    --teal: #1BA9CC;
    --orange: #DA5914;
    --amber: #F59A00;
    --gray-dark: #575756;
    --gray-medium: #878787;

    --navy: #0a1628;
    --navy-light: #0f1f3d;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --light-gray: #e8ecf1;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --container: 1200px;
    --section-padding: 7rem;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.12);
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo { margin-bottom: 2rem; }

.preloader-logo-img {
    height: 60px;
    width: auto;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--teal), var(--amber));
    border-radius: 2px;
    animation: preloaderProgress 0.7s ease-in-out forwards;
}

@keyframes preloaderProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ==================== TOP BAR ==================== */
.topbar {
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.topbar.hidden { transform: translateY(-100%); }

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-left > * + * {
    margin-left: 1.5rem;
}

.topbar-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.topbar-item svg {
    margin-right: 0.35rem;
}

.topbar-item svg {
    width: 13px;
    height: 13px;
    opacity: 0.5;
}

.topbar-item:hover { color: var(--teal); }

.topbar-right {
    display: flex;
}

.topbar-right > * + * {
    margin-left: 1rem;
}

.topbar-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.02em;
}

.topbar-link:hover { color: var(--white); }

/* ==================== HEADER / NAV ==================== */
.header {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.header.scrolled { top: 0; }

.header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 101;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    opacity: 0.95;
    transition: opacity var(--transition);
}

.nav-logo:hover .logo-img {
    opacity: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > * + * {
    margin-left: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-link--cta {
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
}

.nav-link--cta:hover {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    z-index: 101;
}

.nav-actions > * + * {
    margin-left: 1rem;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
}

.lang-separator { opacity: 0.3; }

.lang-option {
    transition: var(--transition);
    cursor: pointer;
}

.lang-option.active {
    color: var(--white);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding-top: 110px;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
}

.hero-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg,
        rgba(10, 22, 40, 0.3) 0%,
        rgba(10, 22, 40, 0) 30%,
        rgba(10, 22, 40, 0) 70%,
        rgba(10, 22, 40, 0.6) 100%
    );
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 98, 132, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(27, 169, 204, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(0, 143, 195, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 70%, rgba(245, 154, 0, 0.06) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--teal);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    opacity: 0;
    -webkit-animation: fadeUp 1s ease-out 0.3s forwards;
    animation: fadeUp 1s ease-out 0.3s forwards;
}

.hero-badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
    opacity: 0;
    -webkit-animation: fadeUp 1s ease-out forwards;
    animation: fadeUp 1s ease-out forwards;
}

.title-line:nth-child(1) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; }
.title-line:nth-child(2) { -webkit-animation-delay: 0.7s; animation-delay: 0.7s; }
.title-line:nth-child(3) { -webkit-animation-delay: 0.9s; animation-delay: 0.9s; }

.hero-title-accent {
    background: linear-gradient(135deg, var(--teal), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    opacity: 0;
    -webkit-animation: fadeUp 1s ease-out 1.1s forwards;
    animation: fadeUp 1s ease-out 1.1s forwards;
}

.hero-cta {
    opacity: 0;
    -webkit-animation: fadeUp 1s ease-out 1.3s forwards;
    animation: fadeUp 1s ease-out 1.3s forwards;
}

.hero-cta .btn {
    margin: 0 0.4rem 0.5rem;
}

@-webkit-keyframes fadeUp {
    from { opacity: 0; -webkit-transform: translateY(24px); transform: translateY(24px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 143, 195, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 143, 195, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

.btn-full { width: 100%; justify-content: center; }

/* ==================== STATS BAR ==================== */
.stats-bar {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    z-index: 5;
}

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

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

.stats-center .stat-item {
    display: inline-block;
    vertical-align: top;
    margin: 0 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-medium);
    letter-spacing: 0.02em;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
    position: relative;
    padding: 0.4rem 1rem;
    background: rgba(0, 143, 195, 0.08);
    border-radius: 50px;
}

.section-tag--light {
    color: var(--teal);
    background: rgba(27, 169, 204, 0.15);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto;
}

.section-title--light { color: var(--white); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.section-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: 0.75rem;
    transition: all 0.3s ease;
}

.section-more:hover {
    color: var(--teal);
    gap: 0.5rem;
}

/* ==================== PAGE HERO (Sub-pages) ==================== */
.page-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 30%, var(--blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 25% 25%, var(--teal) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--amber) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(27,169,204,0.15);
    border-radius: 50px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
}

.page-content { padding: 5rem 0; }

.breadcrumb {
    display: -webkit-flex;
    display: flex;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2rem;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ==================== ABOUT ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.about-features {
    margin-top: 2.5rem;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.about-features > * + * {
    margin-top: 1.5rem;
}

.about-feature {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
}

.about-feature .feature-icon {
    margin-right: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0,143,195,0.1), rgba(27,169,204,0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.875rem;
    color: var(--gray-medium);
    margin-bottom: 0 !important;
}

.about-visual { position: relative; }

.about-image-wrapper { position: relative; }

.about-image-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
}

.about-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video embed */
.about-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-lg);
}

.about-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.about-float-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.float-card-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-medium);
    margin-top: 0.35rem;
}

/* ==================== SERVICES ==================== */
.services { background: var(--off-white); }

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

.service-card {
    display: block;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, var(--blue)), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: var(--light-gray);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0,143,195,0.08), rgba(27,169,204,0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent, var(--blue));
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent, var(--blue)), var(--teal));
    color: var(--white);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--gray-medium);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.service-tags {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -0.2rem;
}

.service-tags span {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    margin: 0.2rem;
    background: var(--off-white);
    border-radius: 5px;
    color: var(--gray-medium);
}

/* Linked service cards (SDA) */
.service-card--linked {
    cursor: pointer;
    border: 1px solid rgba(0,143,195,0.15);
}

.service-card--linked:hover {
    border-color: var(--accent, var(--blue));
}

.service-link-badge {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    margin-top: 1rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(0,143,195,0.08), rgba(27,169,204,0.05));
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

a.service-link-badge:hover {
    background: linear-gradient(135deg, rgba(0,143,195,0.15), rgba(27,169,204,0.1));
    color: var(--blue);
}

.service-link-badge svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.service-card--linked:hover .service-link-badge svg {
    transform: translate(2px, -2px);
}

/* ==================== SECTORS ==================== */
.sectors-box {
    background: linear-gradient(135deg, rgba(0, 143, 195, 0.06), rgba(27, 169, 204, 0.1));
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.sectors-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sectors-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sector-pill {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    transition: var(--transition);
}

.sector-pill:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(0, 143, 195, 0.12);
}

/* Legacy sector-family styles removed — now using flat .sectors-box layout */
    color: var(--blue-dark);
}

/* Family icon colors */

/* ==================== NEWS ==================== */
.news { background: var(--off-white); }

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.news-card:hover {
    border-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-card--featured {
    grid-row: 1 / -1;
}

.news-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    background: var(--blue);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.75rem;
    color: var(--gray-medium);
}

.news-category-inline {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(0,143,195,0.08);
    color: var(--blue);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.news-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0.5rem 0;
    line-height: 1.35;
}

.news-card--featured .news-content h3 {
    font-size: 1.25rem;
}

.news-content p {
    font-size: 0.85rem;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ==================== TEAM ==================== */
.team-grid {
    display: grid;
    gap: 2rem;
}

.team-grid--partners {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 2rem;
}

.team-grid--managers {
    grid-template-columns: repeat(3, 1fr);
}

.team-card {
    display: -webkit-flex;
    display: flex;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    transition: all 0.4s ease;
}

.team-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.team-card--compact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.team-avatar { -webkit-flex-shrink: 0; flex-shrink: 0; margin-right: 2rem; }
.team-card--compact .team-avatar { margin-right: 0; margin-bottom: 1rem; }

.team-photo {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    object-fit: cover;
    object-position: top;
}

.team-card--compact .team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.team-role {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.team-tags {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -0.2rem;
}

.team-tags span {
    margin: 0.2rem;
}

.team-card--compact .team-tags { justify-content: center; }

.team-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    background: rgba(0,143,195,0.08);
    color: var(--blue-dark);
    border-radius: 5px;
}

/* ==================== NETWORK ==================== */
.network {
    background: linear-gradient(180deg, var(--navy) 0%, #0d2240 100%);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.network-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.network-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.network-logo {
    margin-bottom: 1.5rem;
}

.network-logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.kreston-logo-img {
    height: 40px;
    width: auto;
}

.kreston-badge-img {
    height: 30px;
    width: auto;
}

.network-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.network-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.network-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal);
    transition: var(--transition);
}

.network-link:hover {
    color: var(--white);
    gap: 0.6rem;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.contact-card > * + * {
    margin-top: 2rem;
}

.contact-item {
    display: -webkit-flex;
    display: flex;
}

.contact-item > *:first-child {
    margin-right: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

.contact-item a {
    color: var(--blue);
    font-weight: 500;
}

.contact-item a:hover { color: var(--blue-dark); }

/* Contact Form */
.contact-form {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--gray-dark);
    background: var(--off-white);
    border: 1.5px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 143, 195, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23878787' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ==================== CAREERS TEASER ==================== */
.careers-teaser {
    background: var(--off-white);
}

.careers-teaser-inner {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
}

.careers-teaser-content {
    max-width: 520px;
}

.careers-teaser-content .section-tag {
    text-align: left;
}

.careers-teaser-text {
    font-size: 1rem;
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.careers-teaser-visual {
    display: -webkit-flex;
    display: flex;
}

.careers-teaser-visual > * + * {
    margin-left: 2rem;
}

.careers-teaser-stat {
    text-align: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(0,143,195,0.06), rgba(27,169,204,0.04));
    border-radius: var(--radius);
    border: 1px solid rgba(0,143,195,0.1);
}

.careers-teaser-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.careers-teaser-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-medium);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .careers-teaser-inner {
        -webkit-flex-direction: column;
        flex-direction: column;
        padding: 2.5rem 2rem;
        text-align: center;
    }
    .careers-teaser-content { max-width: 100%; }
    .careers-teaser-content .section-tag { text-align: center; }
    .careers-teaser-content .section-title { text-align: center !important; }
    .careers-teaser-visual { margin-top: 2rem; }
    .careers-teaser-visual > * + * { margin-left: 1rem; }
}

@media (max-width: 480px) {
    .careers-teaser-visual {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: center;
        justify-content: center;
        margin: 1.5rem -0.35rem 0;
    }
    .careers-teaser-visual > * + * { margin-left: 0; }
    .careers-teaser-stat { margin: 0.35rem; }
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    opacity: 0.9;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: -webkit-flex;
    display: flex;
}

.footer-social > * + * {
    margin-left: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--blue);
    color: var(--white);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links ul { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.footer-links ul > * + * { margin-top: 0.6rem; }

.footer-links li,
.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-links a:hover { color: var(--teal); }

.footer-bottom {
    padding-top: 2rem;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom > * + * {
    margin-left: 1rem;
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    -webkit-transition: opacity 0.7s ease, -webkit-transform 0.7s ease;
    transition: opacity 0.7s ease, transform 0.7s ease;
    /* CSS-only fallback: force visibility after 2.5s even if JS observer fails */
    -webkit-animation: revealFallback 0.7s ease 2.5s forwards;
    animation: revealFallback 0.7s ease 2.5s forwards;
}

.reveal.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    /* Cancel the fallback animation once JS has triggered */
    -webkit-animation: none;
    animation: none;
}

@-webkit-keyframes revealFallback {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .topbar-hours { display: none; }
    .hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-box { padding: 2rem 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .team-grid--managers { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .news-card--featured { grid-row: auto; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > :last-child { display: none; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4.5rem;
    }

    .topbar { display: none; }
    .header { top: 0; }

    .logo-img { height: 34px; }

    .lang-toggle { padding: 0.3rem 0.5rem; font-size: 0.75rem; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy);
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }

    .nav-menu > * + * {
        margin-top: 0.5rem;
    }

    .nav-menu.open { right: 0; }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .hero-content { padding: 0 1.5rem; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stats-center .stat-item {
        margin: 0 1.5rem;
    }

    .stat-number { font-size: 2.25rem; }

    .services-grid { grid-template-columns: 1fr; }

    .team-grid--partners { grid-template-columns: 1fr; }
    .team-grid--managers { grid-template-columns: 1fr 1fr; }

    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }

    .team-card--compact .team-photo {
        width: 80px;
        height: 80px;
    }

    .network-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .sectors-box { padding: 1.5rem 1.25rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid > :last-child { display: block; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-float-card {
        bottom: -10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }

    .hero-title { font-size: 2rem; }

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

    .hero-cta .btn { width: 100%; justify-content: center; }

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

    .stats-center .stat-item { margin: 0 1.25rem; }

    .stat-number { font-size: 2rem; }

    .sectors-tags { gap: 0.5rem; }
    .sector-pill { padding: 0.5rem 1rem; font-size: 0.8rem; }
}
