/* 
 * RISK MANAGEMENT GROUP (RMG) 
 * Core Design System & Stylesheet
 * Custom HSL Palette, Premium Aesthetics, Glassmorphic UI & Micro-animations
 */

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

/* --- CUSTOM VARIABLES --- */
:root {
    /* Color Palette */
    --burgundy: hsl(357, 65%, 29%);
    --burgundy-light: hsl(357, 65%, 39%);
    --burgundy-dark: hsl(357, 65%, 19%);
    --burgundy-glow: hsla(357, 65%, 29%, 0.15);
    
    --forest-green: hsl(150, 61%, 20%);
    --forest-green-light: hsl(150, 61%, 28%);
    --forest-green-dark: hsl(150, 61%, 12%);
    --forest-green-glow: hsla(150, 61%, 20%, 0.15);
    
    --accent-yellow: hsl(45, 100%, 50%);
    
    /* Neutrals */
    --bg-dark: hsl(222, 25%, 10%);
    --bg-darker: hsl(222, 25%, 6%);
    --bg-light: hsl(210, 20%, 98%);
    --bg-card-light: hsl(0, 0%, 100%);
    --bg-card-dark: hsl(222, 25%, 12%);
    
    /* Text Colors */
    --text-dark: hsl(215, 25%, 15%);
    --text-dark-muted: hsl(215, 16%, 45%);
    --text-light: hsl(210, 40%, 98%);
    --text-light-muted: hsl(210, 20%, 80%);
    
    /* Layout & Shadows */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow-red: 0 0 20px rgba(122, 21, 26, 0.3);
    --shadow-glow-green: 0 0 20px rgba(19, 79, 48, 0.3);
    
    --glass-bg: rgba(15, 17, 21, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-backdrop: blur(16px);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-light);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2.green-title {
    color: var(--forest-green);
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-subtitle.red-sub {
    color: var(--burgundy);
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

.section.dark-alt {
    background-color: var(--bg-darker);
    color: var(--text-light);
}

.section.light-alt {
    background-color: hsl(210, 20%, 95%);
}

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

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

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

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background-color: var(--burgundy);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(122, 21, 26, 0.4);
}

.btn-primary:hover {
    background-color: var(--burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 21, 26, 0.6);
}

.btn-secondary {
    background-color: var(--forest-green);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(19, 79, 48, 0.4);
}

.btn-secondary:hover {
    background-color: var(--forest-green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 79, 48, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1.5rem 0;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    mix-blend-mode: screen;
    display: block;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.logo-link:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text .text-risk {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--burgundy-light);
    letter-spacing: 0.5px;
}

.nav-logo-text .text-mgmt {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--burgundy);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition-normal);
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 17, 21, 0.75), rgba(15, 17, 21, 0.85)), url('../extracted_images/businessman_hologram.png') no-repeat center center/cover;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../extracted_images/security_monitor_officer.png') no-repeat center center/cover;
    opacity: 0.15;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.hero-logo-large {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo-img {
    max-height: 140px;
    width: auto;
    mix-blend-mode: screen;
    margin-bottom: 2rem;
    border-radius: var(--border-radius-md);
    animation: fadeInUp 0.8s ease-out;
    transition: var(--transition-normal);
}

.hero-logo-img:hover {
    transform: scale(1.03);
}

.hero-title-group {
    border-left: 5px solid var(--burgundy);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title-group h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.hero-title-group h1 span {
    color: var(--burgundy-light);
}

.hero-title-group p {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--forest-green-light);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1.4s ease-out;
}

/* --- ABOUT US SECTION --- */
#about {
    overflow: hidden;
}

.about-text-content h3 {
    font-size: 1.8rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.about-text-content p {
    color: var(--text-dark-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-highlights {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 2.5rem;
    color: var(--text-light);
    border-left: 5px solid var(--forest-green);
    position: relative;
    overflow: hidden;
}

.about-highlights p {
    color: var(--text-light-muted);
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-highlights strong {
    color: var(--text-light);
    font-size: 1.25rem;
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-heading);
}

/* Risk Dial Visual */
.dial-container {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card-light);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.dial-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 40px rgba(0,0,0,0.12);
}

.dial-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

.dial-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--text-light);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.dial-overlay-text h4 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

/* --- TABS: VISION, MISSION, VALUES --- */
.tabs-wrapper {
    margin-top: 5rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    border-bottom: 2px solid hsl(210, 20%, 90%);
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    cursor: pointer;
    color: var(--text-dark-muted);
    transition: var(--transition-fast);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--burgundy);
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--burgundy);
}

.tab-btn.active {
    color: var(--burgundy);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.vision-mission-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.vm-icon {
    width: 80px;
    height: 80px;
    background-color: var(--burgundy-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-btn[data-tab="mission"] + .tab-btn.active ~ .tab-content .vm-icon {
    background-color: var(--forest-green-glow);
}

.vm-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--burgundy);
    stroke-width: 1.5;
}

.green-icon svg {
    stroke: var(--forest-green) !important;
}

.vm-text h4 {
    font-size: 1.75rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.vm-text h4.green-title {
    color: var(--forest-green);
}

.vm-text p {
    font-size: 1.1rem;
    color: var(--text-dark-muted);
    line-height: 1.7;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.value-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-md);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--burgundy);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: left;
}

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

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

.value-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--burgundy-glow);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.value-card h4 {
    font-size: 1.2rem;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
}

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

/* --- SERVICES SECTION --- */
#services {
    background-color: var(--bg-darker);
    color: var(--text-light);
}

#services h2 {
    color: var(--text-light);
}

.services-grid {
    margin-top: 3.5rem;
}

.service-card {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--burgundy-light);
    box-shadow: var(--shadow-glow-red);
}

.service-card.green-card:hover {
    border-color: var(--forest-green-light);
    box-shadow: var(--shadow-glow-green);
}

/* === Service image — always visible at top of card === */
.service-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.5s ease;
    position: relative;
}

.service-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card-dark), transparent);
}

.service-card:hover .service-card-image {
    transform: scale(1.05);
}

/* === Body below the image === */
.service-card-body {
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-icon-box {
    width: 52px;
    height: 52px;
    background-color: rgba(255,255,255,0.06);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
    background-color: var(--burgundy);
}

.service-card.green-card:hover .service-icon-box {
    background-color: var(--forest-green);
}

.service-icon-box svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-light);
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-light);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-learn-more {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--burgundy-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: var(--transition-fast);
}

.service-card.green-card .service-learn-more {
    color: var(--forest-green-light);
}

.service-card:hover .service-learn-more {
    gap: 0.75rem;
}

/* --- ACCREDITATIONS SECTION --- */
#accreditations {
    background-color: var(--bg-light);
}

.accreditations-intro {
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.accreditation-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-md);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition-normal);
}

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

.badge-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
}

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

.accreditation-card h3 {
    font-size: 1.25rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.accreditation-card h4 {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.accreditation-card p {
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    line-height: 1.6;
}

/* --- WHY RMG SECTION --- */
#why-rmg {
    background: linear-gradient(rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.92)), url('../extracted_images/classroom_training.png') no-repeat center center/cover;
    color: var(--text-light);
}

#why-rmg h2 {
    color: var(--text-light);
}

.why-grid {
    margin-top: 4rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    backdrop-filter: blur(5px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--burgundy);
    transform: scaleY(0);
    transition: var(--transition-normal);
    transform-origin: top;
}

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

.why-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.why-card.green-bar::before {
    background-color: var(--forest-green);
}

.why-card h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.why-card h3 svg {
    width: 24px;
    height: 24px;
    stroke: var(--burgundy-light);
    flex-shrink: 0;
}

.why-card.green-bar h3 svg {
    stroke: var(--forest-green-light);
}

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

/* --- CONTACT & LEADERSHIP SECTION --- */
#contact {
    background-color: var(--bg-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    margin-top: 4rem;
}

/* Contact Info Column */
.contact-info-col h3 {
    font-size: 1.75rem;
    color: var(--burgundy);
    margin-bottom: 2rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: var(--burgundy-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--burgundy);
}

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

.info-text h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.info-text p, .info-text a {
    font-size: 1rem;
    color: var(--text-dark-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-text a:hover {
    color: var(--burgundy);
}

/* Leadership */
.leadership-section h3 {
    font-size: 1.75rem;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

.leaders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.leader-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leader-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid hsl(210, 20%, 92%);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.leader-name h4 {
    font-size: 1.2rem;
    color: var(--burgundy);
}

.leader-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--forest-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: italic;
}

.leader-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.leader-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.leader-contact-item:hover {
    color: var(--burgundy);
}

.leader-contact-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--forest-green);
}

/* Contact Form Column */
.contact-form-col {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
}

.contact-form-col h3 {
    font-size: 1.75rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.contact-form-col p {
    color: var(--text-dark-muted);
    margin-bottom: 2.5rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid hsl(210, 20%, 85%);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: hsl(210, 20%, 99%);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--burgundy);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--burgundy-glow);
}

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

/* --- FOOTER --- */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    color: var(--text-light-muted);
    padding: 4rem 0 2rem;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    mix-blend-mode: screen;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.footer-logo-container:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo-text .text-risk {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--burgundy-light);
    letter-spacing: 0.5px;
}

.footer-logo-text .text-mgmt {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1.5px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-light);
}

.footer-bottom {
    background-color: var(--forest-green);
    color: var(--text-light);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-container a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-container a:hover {
    text-decoration: underline;
}

/* --- MODAL DIALOGS (SERVICES DETAILS) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 17, 21, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    position: relative;
}

.modal-overlay.active .modal-content-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: hsl(210, 20%, 90%);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: var(--burgundy);
    color: var(--text-light);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-header-banner {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.modal-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 17, 21, 0.95), rgba(15, 17, 21, 0.4));
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

.modal-header-text h3 {
    font-size: 2rem;
    color: var(--text-light);
}

.modal-header-text p {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--forest-green-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
    letter-spacing: 1px;
}

.modal-body {
    padding: 3rem;
}

.modal-body p.intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.modal-body h4 {
    font-size: 1.25rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
    border-bottom: 2px solid hsl(210, 20%, 92%);
    padding-bottom: 0.5rem;
}

.modal-bullets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
}

.modal-bullets li {
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    line-height: 1.6;
    position: relative;
    padding-left: 1.75rem;
}

.modal-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--forest-green);
}

/* Success Modal specific styles */
.success-modal-body {
    padding: 4rem 3rem;
    text-align: center;
}

.success-icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--forest-green-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon-box svg {
    width: 40px;
    height: 40px;
    stroke: var(--forest-green);
    stroke-width: 2;
}

.success-modal-body h3 {
    font-size: 2rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.success-modal-body p {
    color: var(--text-dark-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- RESPONSIVE BREAKPOINTS --- */

@media (max-width: 1024px) {
    h2 {
        font-size: 2.2rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .accreditations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .section {
        padding: 4rem 0;
    }
    .hero-title-group h1 {
        font-size: 2.6rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-overlay {
        display: none;
    }
    .nav-links {
        display: none; /* Mobile menu logic in JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 0.5rem;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
        border: 1px solid hsl(210, 20%, 90%);
        border-radius: var(--border-radius-sm);
    }
    .tab-btn::after {
        display: none;
    }
    .tab-btn.active {
        background-color: var(--burgundy);
        color: var(--text-light);
        border-color: var(--burgundy);
    }
    .vision-mission-card {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-card {
        grid-column: span 1 !important;
    }
    .accreditations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .modal-bullets {
        grid-template-columns: 1fr;
    }
    .modal-body {
        padding: 2rem 1.5rem;
    }
    .modal-header-overlay {
        padding: 1.5rem;
    }
    .footer-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }
    .section {
        padding: 3rem 0;
    }
    .hero-title-group h1 {
        font-size: 2.1rem;
    }
    .hero-title-group p {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .hero-logo-img {
        max-height: 100px;
    }
    .nav-logo-text .text-mgmt {
        display: none;
    }
    .nav-logo-text .text-risk {
        font-size: 1.1rem;
    }
    .nav-logo-img {
        height: 38px;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-col {
        padding: 2rem 1.5rem;
    }
    .map-container {
        height: 300px !important;
        margin-top: 2rem !important;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =====================================================
   FLOATING WHATSAPP BUTTON
   ===================================================== */
#whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    animation: wa-pulse 2.5s ease-in-out infinite;
}

#whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: #fff;
    transition: transform 0.3s ease;
}

.whatsapp-float-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.4s ease, opacity 0.3s ease;
}

#whatsapp-float:hover {
    background-color: #1da851;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.3);
    animation: none;
}

#whatsapp-float:hover .whatsapp-float-label {
    max-width: 200px;
    opacity: 1;
}

#whatsapp-float:hover svg {
    transform: scale(1.15) rotate(-5deg);
}

@keyframes wa-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.25);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.75), 0 0 0 10px rgba(37, 211, 102, 0.08);
    }
}

/* WhatsApp icon in contact info list */
.whatsapp-icon-box {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    border-color: rgba(37, 211, 102, 0.2) !important;
}

.whatsapp-icon-box svg {
    fill: #fff;
    width: 22px;
    height: 22px;
}

/* Responsive – smaller screens */
@media (max-width: 480px) {
    #whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        padding: 0.75rem;
        border-radius: 50%;
    }
    .whatsapp-float-label {
        display: none;
    }
}
