/* ============================================================
   FONCORD GROUP - Complete Stylesheet (PHP Integrated)
   ============================================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8E1636;
    --primary-dark: #6e1129;
    --primary-light: #b84a6a;
    --secondary: #5C666B;
    --secondary-light: #8a9499;
    --white: #FFFFFF;
    --gold: #c9a84c;
    --gold-light: #e8d28a;
    --text-dark: #1e2a3a;
    --text-medium: #4A5568;
    --text-light: #718096;
    --gray-bg: #f8f6f5;
    --gray-50: #F7FAFC;
    --gray-100: #EDF2F7;
    --gray-200: #E2E8F0;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 60px rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --primary-gradient: linear-gradient(135deg, #8E1636, #6e1129);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(142, 22, 54, 0.35);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(142, 22, 54, 0.5);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-light {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 11px 0;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(92, 102, 107, 0.08);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo – 20% larger & flush to the far left edge */
.logo {
    display: flex;
    align-items: center;
    margin-left: -24px;
    padding-left: 24px;
    height: 70px;
}
.logo-img {
    display: block;
    width: auto;
    height: 62px;
    max-width: 260px;
    object-fit: contain;
    object-position: left center;
    image-rendering: auto;
    transition: height 0.3s ease, transform 0.3s ease;
}
.navbar.scrolled .logo-img {
  height: 60px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 50px;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--primary);
    background: rgba(142, 22, 54, 0.07);
}
.nav-links a.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px rgba(142, 22, 54, 0.3);
}

/* ===== MEGA MENU DROPDOWNS ===== */
.nav-dropdown {
    cursor: pointer;
}
/* .mega-menu is positioned relative to .navbar (fixed, full viewport width)
   rather than this small trigger link, so it centers on the page instead of
   the link and can never run off-screen regardless of where the link sits. */

.dropdown-caret {
    font-size: 0.6rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-caret,
.nav-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    padding: 12px 20px 10px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    list-style: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    transition: var(--transition);
    max-width: 92vw;
    overflow: hidden;
}
.mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}
.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-menu li {
    padding: 0;
    border: none !important;
}
.mega-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    color: var(--text-medium);
    font-size: 0.85rem;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    border-left: none !important;
    white-space: nowrap;
}
.mega-menu li a i {
    width: 20px;
    color: var(--primary);
    opacity: 0.6;
    font-size: 0.9rem;
    text-align: center;
}
.mega-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 16px;
}

/* Companies Mega Menu – landscape layout, grouped by country */
.companies-mega {
    width: 900px;
    padding: 0;
}

.companies-mega-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 32px 16px;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--gray-100);
}
.companies-mega-header .section-tag {
    margin-bottom: 4px;
}
.companies-mega-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}
.companies-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    padding-bottom: 3px;
}

.companies-grid {
    display: grid;
    grid-template-columns: 230px repeat(4, 1fr);
    padding: 22px 32px;
}

.company-country {
    padding: 4px 20px;
    border-left: 1px solid var(--gray-100);
}
.companies-grid>.company-country:first-child {
    padding-left: 0;
    border-left: none;
}
.company-country--featured {
    grid-row: span 2;
    padding-right: 26px;
}
.company-country:nth-child(n+6) {
    border-top: 1px solid var(--gray-100);
    margin-top: 14px;
    padding-top: 14px;
}

.company-country h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    margin-bottom: 10px;
}
.flag-emoji {
    font-size: 1rem;
    line-height: 1;
}

.company-country ul {
    list-style: none;
}
.company-country li {
    margin-bottom: 2px;
}
.companies-mega .company-country a {
    display: block;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-size: 0.83rem;
    line-height: 1.35;
    white-space: normal;
    transition: var(--transition);
}
.companies-mega .company-country a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 12px;
}

.companies-mega-footer {
    padding: 14px 32px;
    background: var(--gray-bg);
    border-top: 1px solid var(--gray-100);
    text-align: right;
}
.companies-mega-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}
.companies-mega-footer a i {
    font-size: 0.72rem;
    transition: transform 0.3s ease;
}
.companies-mega-footer a:hover {
    color: var(--primary-dark);
    gap: 12px;
}
.companies-mega-footer a:hover i {
    transform: translateX(3px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SLIDER ===== */
.hero {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero-slides {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 100%;
}
.hero-slide {
    min-width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-oil {
    background-image: url('../images/oil.png');
}
.slide-gold-jewelry {
    background-image: url('../images/gold.png');
}
.slide-heavy-equip {
    background-image: url('../images/logistics.png');
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.05) 70%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px 24px 100px;
}
.hero-slide .hero-grid {
    max-width: 850px;
}

.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
}
.hero-content h1 span {
    display: inline-block;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 8px;
}
.hero-content .slide-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    max-width: 500px;
    margin-bottom: 16px;
    line-height: 1.7;
}
.hero-content .slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.hero-content .slide-tags span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-content .btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.slider-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
    align-items: center;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.slider-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.slider-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}
.slider-arrow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* ===== SECTION COMMON ===== */
section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-title .foncord {
    color: var(--primary);
}

.section-sub {
    color: #5a6a7e;
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 40px;
}
.section-center {
    text-align: center;
}
.section-center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.brand-line {
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 4px;
    margin: 16px 0 24px;
}
.section-center .brand-line {
    margin: 16px auto 24px;
}

.section-tag {
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 120px 0 60px;
    background: var(--primary);
    background-image: radial-gradient(ellipse at 20% 50%, #7a162e 0%, #5c0e1f 80%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.page-hero h1 span {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 8px;
}
.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 12px auto 0;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-text p {
    color: #3d4e62;
    margin-bottom: 18px;
    font-size: 1.02rem;
}
.about-text .highlight-box {
    background: var(--gray-bg);
    padding: 24px 28px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin-top: 20px;
}
.about-text .highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stat-card {
    background: var(--gray-bg);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.stat-card .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}
.stat-card .label {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-top: 4px;
}

/* ===== CHAIRMAN SECTION ===== */
.chairman-section {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 48px 44px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    box-shadow: var(--shadow-hover);
}
.chairman-avatar {
    text-align: center;
}
.chairman-avatar .avatar-placeholder {
    width: 224px;
    height: 224px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.chairman-avatar .chairman-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chairman-avatar .chairman-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}
.chairman-avatar .chairman-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
.chairman-message .quote-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
}
.chairman-message blockquote {
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 12px;
}
.chairman-message .divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 12px 0 16px;
}
.chairman-message p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ===== MISSION & VISION ===== */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mv-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}
.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.mv-card .icon {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.mv-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.mv-card p {
    color: #4a5a6e;
    line-height: 1.7;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(142, 22, 54, 0.1);
}
.service-card .icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}
.service-card h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.service-card p {
    color: #5a6a7e;
    font-size: 0.92rem;
    line-height: 1.6;
}
.service-card .badge {
    display: inline-block;
    margin-top: 14px;
    background: var(--gray-bg);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
}

/* ===== SUBSIDIARIES ===== */
#subsidiaries {
    background: var(--white);
}
.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.subsidiary-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.subsidiary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.subsidiary-card .logo-placeholder {
    height: 160px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}
.subsidiary-card .logo-placeholder .group-logo {
    height: 90px;
    width: auto;
    opacity: 0.85;
    object-fit: contain;
}
.subsidiary-card .logo-placeholder .logo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}
.subsidiary-card .card-body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.subsidiary-card .card-body .company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
}
.subsidiary-card .card-body .established {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.subsidiary-card .card-body .description {
    color: #4a5a6e;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 10px;
}
.subsidiary-card .card-body .location {
    font-size: 0.8rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 12px;
    margin-top: 4px;
}
.subsidiary-card .card-body .location i {
    color: var(--primary);
    opacity: 0.6;
}
.subsidiary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.subsidiary-tags span {
    background: var(--gray-bg);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary);
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 12px;
}
.learn-more-link {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.3px;
    transition: var(--transition);
}
.learn-more-link i {
    transition: var(--transition);
}
.learn-more-link:hover {
    color: var(--primary-dark);
}
.learn-more-link:hover i {
    transform: translateX(4px);
}

/* ===== WHY CHOOSE US ===== */
#why {
    background: var(--white);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.why-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: var(--transition);
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.why-card .icon {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}
.why-card h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.why-card p {
    color: #5a6a7e;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== GLOBAL PRESENCE (UPDATED LAYOUT WITH TALLER MAP) ===== */
.global-presence {
    background: var(--white);
}

.global-presence-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.map-column {
    flex: 0 0 55%;
    max-width: 55%;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f0f2f5;
    height: 480px;
    /* Increased height by ~30% compared to auto */
}

.map-wrapper .map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows full map without cropping */
}

.locations-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.locations-column .location-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.locations-column .location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.locations-column .location-card .loc-number {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.75rem;
    margin-bottom: 2px;
    background: rgba(142, 22, 54, 0.08);
    padding: 2px 10px;
    border-radius: 20px;
}

.locations-column .location-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.locations-column .location-card .loc-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.locations-column .location-card p {
    font-size: 0.85rem;
    color: #4a5a6e;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== CLIENTS ===== */
#clients {
    background: var(--white);
    padding: 60px 0;
}
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.client-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 240px;
}
.client-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.client-item .logo-placeholder {
    width: 100%;
    max-width: 195px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.client-item .logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s ease;
}
.client-item:hover .logo-placeholder img {
    transform: scale(1.06);
}
.client-item .client-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.3;
    max-width: 160px;
    margin-top: 4px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-detail .contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-detail strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.contact-detail p {
    color: #5a6a7e;
    font-size: 0.95rem;
    line-height: 1.5;
}
.contact-detail a {
    color: var(--primary);
}
.contact-detail a:hover {
    text-decoration: underline;
}

.contact-map h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.contact-map .map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.contact-map .map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background: #1a2530;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand-col .foncord {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 0.5px;
}
.footer-brand-col .group {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
}
.footer-desc {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: #fff;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: var(--transition);
    line-height: 1.5;
}
.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

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

/* Tablets & Small Laptops */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-slide .hero-grid {
        max-width: 100%;
        text-align: center;
    }
    .hero-content .slide-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content .slide-tags {
        justify-content: center;
    }
    .hero-content .btn-group {
        justify-content: center;
    }

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

    .chairman-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
    }
    .chairman-avatar .avatar-placeholder {
        margin: 0 auto 12px;
    }
    .chairman-message .divider {
        margin: 12px auto 16px;
    }

    .section-title {
        font-size: 2rem;
    }
    .subsidiaries-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .subsidiary-card .logo-placeholder .group-logo {
        height: 80px;
    }
    .page-hero h1 {
        font-size: 2.6rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .client-item .logo-placeholder {
        max-width: 160px;
        height: 100px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
    .footer-desc {
        max-width: 100%;
    }

    /* Global presence layout switches to column on tablet */
    .global-presence-layout {
        flex-direction: column;
    }
    .map-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .locations-column {
        width: 100%;
    }
    /* Reduce map height on tablet */
    .map-wrapper {
        height: 380px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        padding: 24px 28px;
        border-radius: var(--radius);
        position: absolute;
        top: 68px;
        left: 24px;
        right: 24px;
        gap: 16px;
        border: 1px solid rgba(142, 22, 54, 0.12);
        box-shadow: var(--shadow-hover);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }

    /* Logo adjustments for mobile – keep 20% larger & left-aligned */
    .logo {
         margin-left: -16px;
        padding-left: 16px;
        height: 64px;
    }
    .logo-img {
       height: 56px;
        max-width: 230px;
    }
    .navbar.scrolled .logo-img {
          height: 48px;
    }

    /* Mobile dropdown fix: force mega-menu to show on click */
    .nav-dropdown .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        background: transparent;
    }
    .nav-dropdown.open .mega-menu {
        display: block;
    }
    .nav-dropdown:hover .mega-menu {
        transform: none;
    }
    /* Mobile: plain flat list — the country-grouped landscape grid is desktop-only */
    .companies-mega {
        width: 100%;
        padding-left: 0;
    }
    .companies-mega-header {
        padding: 12px 4px 8px;
        background: transparent;
        border-bottom: none;
    }
    .companies-mega-header .section-tag,
    .companies-count {
        display: none;
    }
    .companies-mega-header h4 {
        font-size: 1rem;
    }
    .companies-grid {
        display: block;
        padding: 0 4px;
    }
    .company-country {
        border-left: none;
        border-top: none;
        padding: 0;
        margin: 0;
        grid-row: auto;
    }
    .company-country h5 {
        display: none;
    }
    .company-country:nth-child(n+6) {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
    .companies-mega .company-country a {
        padding: 9px 8px;
        margin: 0;
        font-size: 0.85rem;
    }
    .companies-mega-footer {
        padding: 10px 4px;
        background: transparent;
        border-top: 1px solid var(--gray-100);
        text-align: left;
    }

    .hero {
        min-height: 100vh;
        height: auto;
    }
    .hero-slide .container {
        padding: 80px 16px 80px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content .slide-description {
        font-size: 1rem;
    }
    .slider-controls {
        bottom: 16px;
        gap: 12px;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    .hero-slide::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    }

    .section-title {
        font-size: 1.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .subsidiaries-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .chairman-section {
        padding: 30px 24px;
    }
    .chairman-avatar .avatar-placeholder {
        width: 180px;
        height: 180px;
    }

    .page-hero {
        padding: 100px 0 40px;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .page-hero p {
        font-size: 1rem;
    }

    .contact-map .map-wrapper iframe {
        height: 280px;
    }
    .contact-detail {
        flex-direction: column;
        gap: 4px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }
    .client-item {
        min-height: 200px;
    }
    .client-item .logo-placeholder {
        max-width: 140px;
        height: 90px;
    }

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

    .subsidiary-card .logo-placeholder {
        height: 130px;
    }
    .subsidiary-card .logo-placeholder .group-logo {
        height: 70px;
    }

    /* Further reduce map height on mobile */
    .map-wrapper {
        height: 280px;
    }
}

/* Small Mobile */
@media (max-width: 768px) {
    .nav-dropdown .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* hidden by default */
        width: 100%;
        background: transparent;
    }
    .nav-dropdown.open .mega-menu {
        display: block;
        /* shown when .open is toggled */
    }
    .nav-dropdown:hover .mega-menu {
        transform: none;
    }
    /* Mobile: plain flat list — the country-grouped landscape grid is desktop-only */
    .companies-mega {
        width: 100%;
        padding-left: 0;
    }
    .companies-mega-header {
        padding: 12px 4px 8px;
        background: transparent;
        border-bottom: none;
    }
    .companies-mega-header .section-tag,
    .companies-count {
        display: none;
    }
    .companies-mega-header h4 {
        font-size: 1rem;
    }
    .companies-grid {
        display: block;
        padding: 0 4px;
    }
    .company-country {
        border-left: none;
        border-top: none;
        padding: 0;
        margin: 0;
        grid-row: auto;
    }
    .company-country h5 {
        display: none;
    }
    .company-country:nth-child(n+6) {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
    .companies-mega .company-country a {
        padding: 9px 8px;
        margin: 0;
        font-size: 0.85rem;
    }
    .companies-mega-footer {
        padding: 10px 4px;
        background: transparent;
        border-top: 1px solid var(--gray-100);
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-slide .container {
        padding: 60px 12px 60px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content .slide-description {
        font-size: 0.95rem;
    }
    .slider-controls {
        bottom: 12px;
        gap: 8px;
    }
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
    section {
        padding: 50px 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-card .num {
        font-size: 1.8rem;
    }

    .chairman-avatar .avatar-placeholder {
        width: 140px;
        height: 140px;
    }
    .chairman-section {
        padding: 24px 16px;
    }
    .chairman-message blockquote {
        font-size: 1rem;
    }

    .subsidiary-card .logo-placeholder {
        height: 110px;
    }
    .subsidiary-card .logo-placeholder .group-logo {
        height: 60px;
    }
    .subsidiary-card .card-body {
        padding: 18px 20px 22px;
    }
    .subsidiary-card .card-body .company-name {
        font-size: 1rem;
    }

    .contact-detail {
        flex-direction: column;
        gap: 4px;
    }
    .contact-detail .contact-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 0.9rem;
    }
    .contact-map .map-wrapper iframe {
        height: 200px;
    }

    .logo {
        margin-left: -12px;
        padding-left: 12px;
    }
    .logo-img {
        height: 52px;
        /* was 36px → +20% */
    }
    .navbar.scrolled .logo-img {
        height: 41px;
        /* was 28px → +20% */
    }
    .navbar {
        padding: 9px 0;
    }
    .navbar.scrolled {
        padding: 4px 0;
    }

    .page-hero {
        padding: 80px 0 30px;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 24px 20px;
    }
    .service-card .icon {
        font-size: 2.2rem;
    }
    .why-card {
        padding: 24px 20px;
    }
    .why-card .icon {
        font-size: 2.2rem;
    }

    .client-item {
        min-height: 160px;
        padding: 16px;
    }
    .client-item .logo-placeholder {
        max-width: 120px;
        height: 80px;
    }

    .locations-column .location-card {
        padding: 14px 16px;
    }
    .locations-column .location-card h4 {
        font-size: 0.95rem;
    }
    .locations-column .location-card p {
        font-size: 0.8rem;
    }

    .map-wrapper {
        height: 220px;
    }
}

/* ============================================================
   ADDITIONAL RESPONSIVE GRID CLASSES (for subsidiary pages)
   ============================================================ */

/* Diffusers (Be Scent) */
.diffusers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Services (Castwell) – overrides the inline style */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Team (Castwell) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Projects (Castwell) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Amenities (Platinum) */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Why Choose (Platinum) – overrides the inline style */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Accommodation (Platinum) */
.accommodation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Hero logo wrapper – for mobile scaling */
.logo-wrapper {
    flex: 0 0 auto;
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.logo-wrapper img {
    max-height: 156px;
    max-width: 286px;
    width: auto;
    height: auto;
    display: block;
}

/* ===== RESPONSIVE OVERRIDES FOR NEW GRIDS ===== */
@media (max-width: 992px) {
    .diffusers-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .team-grid      { grid-template-columns: repeat(2, 1fr); }
    .projects-grid  { grid-template-columns: repeat(2, 1fr); }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .diffusers-grid,
    .services-grid,
    .team-grid,
    .projects-grid,
    .amenities-grid,
    .why-grid,
    .accommodation-grid {
        grid-template-columns: 1fr !important;
    }

    .logo-wrapper {
        max-width: 70%;
        margin: 0 auto;
        padding: 8px 16px;
    }
    .logo-wrapper img {
        max-height: 120px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        max-width: 80%;
        padding: 6px 12px;
    }
    .logo-wrapper img {
        max-height: 100px;
        max-width: 160px;
    }
}