/* =================================================================
   LA TRÈVE GROUP — COMPLETE STYLESHEET
   Colors from logo: Deep Blue #1c3a7a | Vibrant Green #3aaa35 | White #fff
================================================================= */

/* ---- CSS Custom Properties ---- */
:root {
    --blue-deep: #1c3a7a;
    --blue-mid: #1e4596;
    --blue-light: #2762c8;
    --green-vivid: #3aaa35;
    --green-dark: #2a8627;
    --green-light: #4dc547;
    --white: #ffffff;
    --off-white: #f5f8ff;
    --text-dark: #0d1b3e;
    --text-body: #3a4a6a;
    --text-muted: #6b7ea8;
    --border: #dce5f5;
    --shadow-sm: 0 4px 16px rgba(28, 58, 122, 0.10);
    --shadow-md: 0 8px 32px rgba(28, 58, 122, 0.16);
    --shadow-lg: 0 20px 60px rgba(28, 58, 122, 0.20);
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --transition: all 0.36s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1240px;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-vivid);
    background: rgba(58, 170, 53, 0.12);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.text-green {
    color: var(--green-vivid);
}

.gradient-text {
    background: linear-gradient(135deg, var(--green-light) 0%, #a8f5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Container ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section Spacing ---- */
.section {
    padding: 100px 0;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 30px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--green-vivid);
    color: var(--white);
    border-color: var(--green-vivid);
    box-shadow: 0 6px 24px rgba(58, 170, 53, 0.35);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(58, 170, 53, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--blue-deep);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--blue-deep);
    border-color: var(--blue-deep);
}

.btn-ghost:hover {
    background: var(--blue-deep);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--blue-deep);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--off-white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.85rem;
}

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

/* ================================================================
   PRELOADER
================================================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.logo-pulse {
    animation: pulse 1.2s ease-in-out infinite alternate;
}

.logo-pulse img {
    width: 180px;
    filter: brightness(10);
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.8;
    }

    to {
        transform: scale(1.06);
        opacity: 1;
    }
}

.preloader-bar {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-vivid), var(--green-light));
    border-radius: 4px;
    animation: fill 2s ease forwards;
}

@keyframes fill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.preloader-text {
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ================================================================
   TOP BAR
================================================================ */
.topbar {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, 0.80);
    padding: 8px 0;
    font-size: 0.82rem;
    position: relative;
    z-index: 100;
}

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

.topbar-left {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-right {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--green-vivid);
    color: var(--white);
}

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 14px 0;
}

.nav-brand img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-body);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green-vivid);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-deep);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 28px);
}

.caret {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-body);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--off-white);
    color: var(--blue-deep);
    padding-left: 26px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

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

/* ================================================================
   HERO
================================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--blue-deep);
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(12, 25, 60, 0.82) 0%,
            rgba(28, 58, 122, 0.60) 50%,
            rgba(12, 25, 60, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    background: rgba(58, 170, 53, 0.18);
    border: 1px solid rgba(58, 170, 53, 0.4);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 32px;
    width: fit-content;
}

.hero-stat {
    text-align: center;
    padding: 0 24px;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    display: block;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Hero controls */
.hero-controls {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--green-vivid);
    border-color: var(--green-vivid);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--green-vivid);
    transform: scale(1.3);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    right: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--green-vivid);
    border-radius: 2px;
    animation: scroll-anim 1.6s ease-in-out infinite;
}

@keyframes scroll-anim {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* Hero slide animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active .animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s !important;
}

.delay-2 {
    transition-delay: 0.4s !important;
}

.delay-3 {
    transition-delay: 0.6s !important;
}

.delay-4 {
    transition-delay: 0.8s !important;
}

/* ================================================================
   FEATURE BELT
================================================================ */
.feature-belt {
    background: var(--blue-deep);
    padding: 0;
}

.feature-belt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 4px solid var(--green-vivid);
}

.feature-belt-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

.feature-belt-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-belt-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-belt-item h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.feature-belt-item p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* ================================================================
   ABOUT SECTION
================================================================ */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-badge-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--green-vivid);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.badge-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.badge-label {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 4px;
}

.about-accent-circle {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--blue-deep);
    opacity: 0.08;
    z-index: -1;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-body {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--green-vivid);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.about-btns {
    display: flex;
    gap: 14px;
}

/* ================================================================
   COMPANIES / SERVICES
================================================================ */
.companies-section {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(28, 58, 122, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(58, 170, 53, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.company-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.company-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.company-card:hover .company-card-img img {
    transform: scale(1.07);
}

.company-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 25, 60, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.company-card:hover .company-card-overlay {
    opacity: 1;
}

.company-card-body {
    padding: 24px;
}

.company-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-vivid);
    background: rgba(58, 170, 53, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.company-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.company-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue-deep);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.company-link span {
    transition: transform 0.3s ease;
}

.company-link:hover {
    color: var(--green-vivid);
}

.company-link:hover span {
    transform: translateX(4px);
}

/* ================================================================
   WHY CHOOSE US
================================================================ */
.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-deep), var(--green-vivid));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

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

.why-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ================================================================
   STATS SECTION
================================================================ */
.stats-section {
    position: relative;
    padding: 80px 0;
    background:
        url('../images/hero-1.png') center/cover no-repeat;
    background-attachment: fixed;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 25, 60, 0.90) 0%, rgba(28, 58, 122, 0.85) 100%);
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    display: inline-block;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-vivid);
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 8px;
    letter-spacing: 0.05em;
}

/* ================================================================
   PROJECTS SECTION
================================================================ */
.projects-section {
    background: var(--off-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: 280px;
}

.project-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(12, 25, 60, 0.95) 0%,
            rgba(12, 25, 60, 0.70) 50%,
            transparent 100%);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(30%);
    transition: transform 0.4s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--green-light);
    margin-bottom: 8px;
}

.project-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.project-card:hover .project-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.project-card:hover .project-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   TESTIMONIALS — CARD GRID
================================================================ */
.testimonials-section {
    background: var(--off-white);
    position: relative;
}

.testimonials-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* Base card */
.t-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.t-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-deep), var(--green-vivid));
    transition: width 0.4s ease;
}

.t-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.t-card:hover::after {
    width: 100%;
}

/* Featured (middle) card */
.t-card--featured {
    background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
}

.t-card--featured::after {
    background: linear-gradient(90deg, var(--green-light), var(--green-vivid));
}

.t-card--featured:hover {
    transform: translateY(-18px);
    box-shadow: 0 28px 60px rgba(28, 58, 122, 0.35);
}

/* Giant opening quote */
.t-card-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4.5rem;
    line-height: 0.6;
    color: var(--green-vivid);
    opacity: 0.35;
    user-select: none;
}

.t-card--featured .t-card-quote {
    color: var(--green-light);
    opacity: 0.5;
}

/* Quote text */
.t-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
    flex: 1;
}

.t-card--featured .t-card-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Author row */
.t-card-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.t-card--featured .t-card-author {
    border-top-color: rgba(255, 255, 255, 0.15);
}

/* Initials avatar */
.t-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.t-card--featured .t-card-avatar {
    background: linear-gradient(135deg, var(--green-dark), var(--green-vivid));
}

.t-card-author strong {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.t-card--featured .t-card-author strong {
    color: var(--white);
}

.t-card-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.t-card--featured .t-card-author span {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
    .testimonials-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .t-card--featured {
        transform: none;
    }
}

@media (max-width: 640px) {
    .testimonials-cards-grid {
        grid-template-columns: 1fr;
    }

    .t-card--featured {
        transform: none;
    }
}


/* ================================================================
   TEAM SECTION
================================================================ */
.team-section {
    background: var(--off-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
    gap: 24px;
    justify-content: center;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.team-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

.team-card:hover .team-card-img img {
    transform: scale(1.06);
}


/* Always-visible LinkedIn badge — bottom-right corner of each team photo */
.team-linkedin-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-vivid);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    letter-spacing: 0;
}

.team-linkedin-badge:hover {
    background: #15803d;
    transform: scale(1.12);
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.6);
}

.team-card-info {
    padding: 18px 16px;
    text-align: center;
}

.team-card-info h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.team-card-info span {
    font-size: 0.8rem;
    color: var(--green-vivid);
    font-weight: 500;
}

/* ================================================================
   QUOTE / CONTACT SECTION
================================================================ */
.quote-section {
    position: relative;
    padding: 0;
    background: url('../images/hero-3.png') center/cover no-repeat;
    background-attachment: fixed;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 25, 60, 0.93) 0%, rgba(28, 58, 122, 0.88) 100%);
}

.quote-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 100px 0;
}

.quote-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.quote-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 28px;
}

.quote-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.quote-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.quote-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
}

.quote-form-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.quote-form-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    background: var(--off-white);
    transition: var(--transition);
    resize: vertical;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-deep);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(28, 58, 122, 0.08);
}

.form-group textarea {
    min-height: 110px;
}

/* ================================================================
   CTA STRIP
================================================================ */
.cta-strip {
    background: var(--green-vivid);
    padding: 40px 0;
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
}

.cta-strip-text h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 4px;
}

.cta-strip-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.cta-strip-contacts {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}

.cta-contact-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-contact-item strong {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
}

.cta-contact-item span {
    font-size: 1rem;
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.65);
}

/* ---- Sponsor / event banner strip ---- */
.footer-banner-strip {
    background: rgba(0, 0, 0, 0.25);
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-banner-link {
    display: block;
    text-decoration: none;
}

.footer-banner-img {
    display: block;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.footer-banner-link:hover .footer-banner-img {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55);
}

.footer-upper {
    padding: 80px 0 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 48px;
}

.footer-logo {
    /* height: 42px; */
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(10);
    opacity: 0.9;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social-icon:hover {
    background: var(--green-vivid);
    color: var(--white);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--green-vivid);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '→';
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-vivid);
    padding-left: 6px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-list span {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.newsletter-form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    border-color: var(--green-vivid);
    background: rgba(255, 255, 255, 0.10);
}

.footer-lower {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
}

.footer-lower-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-lower-links {
    display: flex;
    gap: 20px;
}

.footer-lower-links a {
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.footer-lower-links a:hover {
    color: var(--green-vivid);
}

/* ================================================================
   BACK TO TOP
================================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-deep);
    color: var(--white);
    border: 2px solid var(--green-vivid);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--green-vivid);
    transform: translateY(-4px);
}

/* ================================================================
   SCROLL ANIMATIONS
================================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate="fade-right"] {
    transform: translateX(-28px);
}

[data-animate="fade-left"] {
    transform: translateX(28px);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

[data-animate].animated {
    opacity: 1;
    transform: none;
}

/* ================================================================
   RESPONSIVE — TABLET (≤ 1024px)
================================================================ */
@media (max-width: 1024px) {
    .feature-belt-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-grid {
        gap: 48px;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤ 768px)
================================================================ */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .topbar {
        display: none;
    }

    /* Navbar */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(320px, 100vw);
        background: var(--blue-deep);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 40px;
        margin: 0;
        transition: right 0.4s ease;
        z-index: 9998;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
        align-items: stretch;
        overflow-y: auto;
    }

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

    .nav-link {
        padding: 14px 28px;
        border-radius: 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
    }

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

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.7);
        padding: 10px 40px;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 9999;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

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

    .scroll-indicator {
        display: none;
    }

    /* Feature belt */
    .feature-belt-grid {
        grid-template-columns: 1fr;
    }

    .feature-belt-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-badge-card {
        bottom: -20px;
        right: -10px;
        padding: 16px 20px;
    }

    /* Companies */
    .companies-grid {
        grid-template-columns: 1fr;
    }

    /* Why */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stats-section {
        background-attachment: scroll;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .project-card--wide {
        grid-column: 1;
    }

    .project-overlay {
        transform: translateY(15%);
    }

    /* Testimonials */
    .testimonials-bg {
        display: none;
    }

    .testimonials-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .testimonials-img {
        aspect-ratio: 16/9;
        max-height: 280px;
    }

    .testimonial-quote {
        color: var(--text-dark);
    }

    .testimonial-author strong,
    .testimonial-author span {
        color: var(--text-dark);
    }

    .t-btn {
        background: rgba(28, 58, 122, 0.15);
        border-color: rgba(28, 58, 122, 0.3);
        color: var(--blue-deep);
    }

    .t-dot {
        background: rgba(28, 58, 122, 0.2);
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Quote */
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }

    .quote-section {
        background-attachment: scroll;
    }

    .quote-form-card {
        padding: 28px 24px;
    }

    /* CTA */
    .cta-strip-contacts {
        flex-direction: column;
        gap: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .footer-lower-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-controls {
        bottom: 60px;
    }
}

/* ================================================================
   INNER PAGE HERO
================================================================ */
.inner-hero {
    position: relative;
    padding: 140px 0 80px;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.inner-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 25, 60, 0.88) 0%, rgba(28, 58, 122, 0.80) 100%);
}

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

.inner-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.inner-hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: var(--green-vivid);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ================================================================
   COMPANY DETAIL ROWS (companies.php)
================================================================ */
.company-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border);
}

.company-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.company-detail-row--reverse {
    direction: rtl;
}

.company-detail-row--reverse>* {
    direction: ltr;
}

.company-detail-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.company-detail-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.company-detail-img:hover img {
    transform: scale(1.04);
}

.company-detail-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--green-vivid);
    padding: 6px 16px;
    border-radius: 100px;
}

.company-detail-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.company-detail-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ---- Subsidiaries block ---- */
.company-subsidiaries {
    margin-bottom: 28px;
    padding: 20px 22px;
    background: var(--off-white, #f6f8fb);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.subsidiaries-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--green-vivid);
    margin-bottom: 14px;
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.subsidiary-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px);
    transition: var(--transition);
}

.subsidiary-badge:hover {
    border-color: var(--green-vivid);
    box-shadow: 0 4px 14px rgba(58, 170, 53, 0.12);
    transform: translateY(-2px);
}

.subsidiary-flag {
    width: 36px;
    height: auto;
    border-radius: 3px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
}

.subsidiary-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.subsidiary-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subsidiary-country {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.subsidiary-email-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--green-vivid);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
}

.subsidiary-email-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .company-detail-row {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 48px;
        padding-bottom: 48px;
    }

    .company-detail-row--reverse {
        direction: ltr;
    }
}

/* ================================================================
   SERVICES DETAIL GRID (services.php)
================================================================ */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 20px;
}

.service-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-deep), var(--green-vivid));
    transform: scaleY(0);
    transition: transform 0.35s ease;
    border-radius: 0;
}

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

.service-detail-card:hover::before {
    transform: scaleY(1);
}

.service-detail-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-detail-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.service-detail-card p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li::before {
    content: '→';
    color: var(--green-vivid);
    font-weight: 700;
    flex-shrink: 0;
}

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

/* ================================================================
   CONTACT DETAIL ITEMS (contact.php)
================================================================ */
.contact-detail-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    font-size: 1.6rem;
    width: 52px;
    height: 52px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.contact-detail-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ================================================================
   DIRECT CONTACT ACTION BUTTONS  —  #dcc
================================================================ */
#dcc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 24px;
}

/* Base button */
#dcc .direct-contact-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(28, 58, 122, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Sliding colour accent on the left */
#dcc .direct-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

#dcc .direct-contact-btn:hover {
    transform: translateY(-3px) translateX(4px);
    box-shadow: 0 8px 28px rgba(28, 58, 122, 0.16);
}

#dcc .direct-contact-btn:hover::before {
    width: 6px;
}

/* ---- Call ---- */
#dcc .direct-contact-btn--call::before {
    background: var(--green-vivid);
}

#dcc .direct-contact-btn--call:hover {
    background: linear-gradient(135deg, rgba(58, 170, 53, 0.06) 0%, #fff 100%);
}

/* ---- Email ---- */
#dcc .direct-contact-btn--email::before {
    background: var(--blue-deep);
}

#dcc .direct-contact-btn--email:hover {
    background: linear-gradient(135deg, rgba(28, 58, 122, 0.06) 0%, #fff 100%);
}

/* ---- WhatsApp ---- */
#dcc .direct-contact-btn--whatsapp::before {
    background: #25D366;
}

#dcc .direct-contact-btn--whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, #fff 100%);
}

/* Icon bubble */
#dcc .direct-btn-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#dcc .direct-contact-btn:hover .direct-btn-icon {
    transform: scale(1.12) rotate(-4deg);
}

/* Per-type icon backgrounds */
#dcc .direct-contact-btn--call .direct-btn-icon {
    background: rgba(58, 170, 53, 0.12);
}

#dcc .direct-contact-btn--email .direct-btn-icon {
    background: rgba(28, 58, 122, 0.10);
}

#dcc .direct-contact-btn--whatsapp .direct-btn-icon {
    background: rgba(37, 211, 102, 0.14);
}

/* Text block */
#dcc .direct-btn-text {
    flex: 1;
    min-width: 0;
}

#dcc .direct-btn-text strong {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dcc .direct-btn-text span {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Arrow */
#dcc .direct-btn-arrow {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

#dcc .direct-contact-btn:hover .direct-btn-arrow {
    transform: translateX(5px);
    color: var(--blue-deep);
}

#dcc .direct-contact-btn--call:hover .direct-btn-arrow {
    color: var(--green-vivid);
}

#dcc .direct-contact-btn--whatsapp:hover .direct-btn-arrow {
    color: #25D366;
}

/* Availability note */
.contact-availability {
    font-size: 0.83rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    letter-spacing: 0.02em;
}


.text-black {
    color: var(--text-dark);
}