/* 
   Michael Stevens Consulting Ghana Stylesheet
   Design Theme: Slate Blue Corporate & Polished Gold Accents
   Features: Light & Dark Modes, Custom Scrollbars, Glassmorphism, Responsive Grid
*/

/* ----------------------------------------------------
   1. CUSTOM PROPERTIES & DESIGN TOKENS
   ---------------------------------------------------- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme-independent colors */
    --color-whatsapp: #25d366;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Layout & Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    --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.12), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(197, 160, 89, 0.3);
    --max-width: 1280px;

    /* Light Theme (Default) */
    --primary: hsl(214, 40%, 30%);           /* #2E4766 (Matches RGB 48, 74, 107) */
    --primary-dark: hsl(214, 50%, 18%);      /* #16263B (Matches RGB 31, 59, 95) */
    --primary-light: hsl(214, 40%, 93%);
    --accent: hsl(38, 50%, 54%);             /* #C5A059 Gold */
    --accent-hover: hsl(38, 50%, 44%);
    --accent-light: hsl(38, 45%, 93%);
    --background: hsl(210, 20%, 97%);        /* Off-white */
    --surface: hsl(0, 0%, 100%);             /* Pure White */
    --surface-card: hsl(210, 16%, 95%);      /* Light gray */
    --text-main: hsl(209, 40%, 14%);         /* Dark Slate */
    --text-muted: hsl(208, 15%, 45%);        /* Medium Slate */
    --border: hsl(210, 15%, 88%);
    --backdrop-blur: rgba(255, 255, 255, 0.75);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(214, 50%, 18%) 0%, hsl(214, 55%, 12%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(38, 50%, 58%) 0%, hsl(38, 50%, 48%) 100%);
    --gradient-card-hover: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(197, 160, 89, 0.05) 100%);
    
    /* Scroll progress bar */
    --scroll-bar-color: var(--accent);
}

/* Dark Theme Variables */
body.dark-mode {
    --primary: hsl(214, 45%, 40%);           
    --primary-dark: hsl(214, 55%, 12%);      
    --primary-light: hsl(214, 30%, 18%);
    --accent: hsl(38, 55%, 58%);             
    --accent-hover: hsl(38, 55%, 48%);
    --accent-light: hsl(38, 25%, 18%);
    --background: hsl(215, 30%, 7%);         /* Deep space */
    --surface: hsl(215, 25%, 12%);           /* Dark panel */
    --surface-card: hsl(215, 20%, 17%);      /* Lighter dark panel */
    --text-main: hsl(210, 20%, 96%);         /* Crisp white-gray */
    --text-muted: hsl(215, 12%, 70%);        /* Slate gray */
    --border: hsl(215, 18%, 20%);
    --backdrop-blur: rgba(15, 23, 42, 0.85);

    --gradient-hero: linear-gradient(135deg, hsl(214, 55%, 12%) 0%, hsl(214, 60%, 8%) 100%);
    --gradient-card-hover: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(197, 160, 89, 0.03) 100%);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Scroll Progress indicator */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--scroll-bar-color);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Reusable Containers & Layouts */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border);
}

/* Grid helper classes */
.grid {
    display: grid;
    gap: 32px;
}
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Section Header styling */
.section-header {
    margin-bottom: 64px;
    max-width: 700px;
}
.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   3. BUTTONS & UI COMPONENT BASE
   ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
}
.btn-secondary:hover {
    background: var(--surface-card);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}
.btn-block {
    width: 100%;
}
.btn-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}
.btn-text .arrow {
    margin-left: 6px;
    transition: transform var(--transition-fast);
}
.btn-text:hover .arrow {
    transform: translateX(5px);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background-image: var(--gradient-card-hover);
}

/* ----------------------------------------------------
   4. HEADER & NAVIGATION
   ---------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--backdrop-blur);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-normal);
}
.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
}
.main-header.scrolled .logo-img {
    height: 44px;
}
.logo:hover .logo-img {
    transform: scale(1.03);
}
.footer-logo .logo-img {
    height: 40px;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
    line-height: 1.1;
}
.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.nav-menu {
    display: block;
}
.nav-list {
    display: flex;
    gap: 32px;
}
.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle styles */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--surface-card);
}
.theme-toggle .moon-icon { display: none; }
body.dark-mode .theme-toggle .sun-icon { display: none; }
body.dark-mode .theme-toggle .moon-icon { display: block; }

.btn-header-cta {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Hamburger mobile button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}
.hamburger .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
}

/* Mobile Drawer Overlay */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--surface);
    z-index: 999;
    padding: 40px 24px;
    transition: left var(--transition-normal);
    border-top: 1px solid var(--border);
}
.mobile-nav.open {
    left: 0;
}
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}
.mobile-cta {
    margin-top: 24px;
    text-align: center;
}

/* Hamburger transition to close cross */
.hamburger.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ----------------------------------------------------
   5. HOME / HERO SECTION
   ---------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 30, 48, 0.82) 0%, rgba(10, 16, 26, 0.88) 100%), url('headerimage.jpg') no-repeat center center / cover;
    color: var(--color-white);
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}
.hero-shapes .shape {
    position: absolute;
    border-radius: var(--border-radius-full);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
}
.hero-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background-color: var(--accent);
    top: -100px;
    right: -100px;
}
.hero-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background-color: hsl(207, 80%, 45%);
    bottom: -150px;
    left: -100px;
}
.hero-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.hero-content {
    animation: fadeInUp var(--transition-slow) forwards;
}
.badge-tag {
    display: inline-flex;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 6px 16px;
    border-radius: var(--border-radius-full);
    margin-bottom: 24px;
}
.badge-tag span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}
.accent-text {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    text-stroke: 1.5px var(--accent);
}
body.dark-mode .accent-text {
    background: linear-gradient(135deg, var(--accent) 0%, hsl(38, 55%, 70%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: none;
}
.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 580px;
}
.hero-ctas {
    display: flex;
    gap: 16px;
}
.hero-ctas .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}
.hero-ctas .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Interactive SVG Graph Illustration */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: fadeInUp var(--transition-slow) 0.2s forwards;
    opacity: 0;
}
.illustration-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}
.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: var(--accent);
    border-radius: var(--border-radius-full);
    filter: blur(80px);
    opacity: 0.2;
    top: -50px;
    left: -50px;
}
.card-header-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.card-header-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
}
.card-header-bar .dot.red { background-color: #ff5f56; }
.card-header-bar .dot.yellow { background-color: #ffbd2e; }
.card-header-bar .dot.green { background-color: #27c93f; }
.card-bar-title {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}
.card-body-content {
    padding: 24px;
}
.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.card-bold-text {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 4px;
}
.card-sub-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}
.badge-accent {
    background-color: rgba(197, 160, 89, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
}
.custom-chart {
    height: 130px;
    margin-bottom: 24px;
    position: relative;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}
.stat-col {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}
.stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Floating badges details */
.floating-badge {
    position: absolute;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: floatAnimation 4s ease-in-out infinite;
}
.badge-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.badge-icon {
    font-size: 1.25rem;
}
.badge-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white);
}
.badge-subtitle {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}
.floating-badge.badge-1 {
    top: 30px;
    left: -20px;
}
.floating-badge.badge-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: 2s;
}

/* Quick Features Strip */
.hero-bottom-strip {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    padding: 24px 0;
    margin-top: auto;
}
.strip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.strip-item {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 330px;
}
.strip-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}
.strip-text h4 {
    font-size: 0.95rem;
    color: var(--color-white);
    margin-bottom: 2px;
}
.strip-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}
.strip-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

/* ----------------------------------------------------
   6. ABOUT US SECTION
   ---------------------------------------------------- */
.about-section {
    background-color: var(--background);
}
.about-content {
    align-items: flex-start;
    margin-bottom: 80px;
}

.about-text-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}
.paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.client-standards-box {
    margin-top: 32px;
    padding: 24px;
    background-color: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.client-standards-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}
.client-standards-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.about-vision-mission {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.card-icon-round {
    width: 50px;
    height: 50px;
    background-color: var(--accent-light);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.vision-card h3, .mission-card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}
.vision-card p {
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-main);
}
.mission-card ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mission-card li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.li-icon {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}
.mission-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Values styles */
.values-wrapper {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    padding-top: 80px;
}
.subsection-title {
    font-size: 2rem;
    margin-bottom: 12px;
}
.subsection-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}
.values-grid {
    margin-bottom: 60px;
}
.value-card {
    text-align: center;
    padding: 32px 24px;
}
.value-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 16px;
    transition: transform var(--transition-fast);
}
.value-card:hover .value-icon {
    transform: scale(1.15);
}
.value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Strategic Alliances Sub-grid */
.alliances-wrapper {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 80px;
}
.alliances-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.alliance-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.alliance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.alliance-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    letter-spacing: 0.05em;
}
.alliance-card h4 {
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 4px;
    color: var(--text-main);
}
.alliance-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   7. SERVICES SECTION (CORE COMPETENCIES)
   ---------------------------------------------------- */
.services-section {
    background-color: var(--surface);
}

.services-grid {
    margin-top: 48px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: var(--background);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.service-card:hover .service-icon {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm), var(--shadow-glow);
    background-color: var(--primary-dark);
}
body.dark-mode .service-card:hover .service-icon {
    background-color: var(--background);
}
.service-card:hover .service-icon svg {
    stroke: var(--accent);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border);
    transition: color var(--transition-fast);
}
.service-card:hover .service-number {
    color: var(--accent);
}

.service-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.service-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ----------------------------------------------------
   8. CLIENTELE SECTION
   ---------------------------------------------------- */
.clientele-section {
    background-color: var(--background);
}

/* Infinitely Scrolling Marquee for Logos */
.marquee-container {
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}
.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--surface) 0%, transparent 100%);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--surface) 0%, transparent 100%);
}

.marquee {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marqueeAnimation 40s linear infinite;
}
.marquee:hover {
    animation-play-state: paused;
}
.client-logo-item {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    background: var(--background);
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    user-select: none;
}
.client-logo-item:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Statistics row */
.clientele-stats {
    gap: 24px;
}
.c-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.c-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}
.c-stat-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   9. CONTACT & CONSULTATION
   ---------------------------------------------------- */
.contact-section {
    background-color: var(--surface);
}
.contact-grid {
    align-items: flex-start;
}

/* Left Panel: Info Cards */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.info-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.info-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}
.office-location-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.c-method-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.c-icon-box {
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.c-method-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-main);
}
.c-method-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-whatsapp);
    font-weight: 600;
}
.whatsapp-badge {
    background: rgba(37, 211, 102, 0.15);
    color: var(--color-whatsapp);
    font-size: 0.65rem;
    padding: 1px 8px;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
}

.socials-box h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Map Mockup Styling */
.map-mockup-card {
    height: 200px;
    background: radial-gradient(circle at 70% 30%, var(--primary-light) 0%, var(--border) 100%);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
body.dark-mode .map-mockup-card {
    background: radial-gradient(circle at 70% 30%, var(--primary-light) 0%, hsl(215, 30%, 8%) 100%);
}
.map-grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}
.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.marker-pin {
    font-size: 2rem;
    z-index: 2;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
}
.marker-pulse {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.4);
    border-radius: var(--border-radius-full);
    z-index: 1;
    animation: pulseAnimation 2s infinite;
}
.map-details-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    z-index: 2;
}
.map-details-tag strong {
    font-size: 0.8rem;
    color: var(--text-main);
}
.map-details-tag span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Right Panel: Form Styling */
.form-card {
    position: relative;
    overflow: hidden;
}
.form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}
.form-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity var(--transition-normal);
}
.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}
.form-group label .required {
    color: hsl(0, 75%, 50%);
}
.form-group input, 
.form-group select, 
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    transition: all var(--transition-fast);
    outline: none;
    width: 100%;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(197, 160, 89, 0.15);
}
.form-group textarea {
    resize: vertical;
}

/* Validation Error Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: hsl(0, 75%, 55%);
    background-color: hsl(0, 75%, 98%);
}
body.dark-mode .form-group.error input,
body.dark-mode .form-group.error select,
body.dark-mode .form-group.error textarea {
    background-color: hsl(0, 40%, 15%);
}
.error-msg {
    color: hsl(0, 75%, 55%);
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
    margin-top: 4px;
}
.form-group.error .error-msg {
    display: block;
}

/* Form spinner loader inside submit button */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-full);
    border-top-color: var(--color-white);
    animation: spinAnimation 1s linear infinite;
    margin-left: 12px;
}

/* Success Card Overlay */
.form-success-alert {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 10px;
    animation: scaleUp var(--transition-normal) forwards;
}
.success-icon {
    width: 72px;
    height: 72px;
    background: rgba(37, 211, 102, 0.15);
    border: 2px solid var(--color-whatsapp);
    color: var(--color-whatsapp);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 24px;
}
.form-success-alert h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-main);
}
.form-success-alert p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 420px;
}

/* ----------------------------------------------------
   10. INTERACTIVE DETAIL MODAL
   ---------------------------------------------------- */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.service-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.service-modal-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(40px);
    transition: transform var(--transition-normal);
}
.service-modal-overlay.open .service-modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    z-index: 10;
}
.modal-close:hover {
    background-color: var(--accent);
    color: var(--color-white);
    border-color: var(--accent);
}

.modal-body {
    padding: 48px;
}

.modal-icon-header {
    width: 72px;
    height: 72px;
    background-color: var(--accent-light);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.modal-icon-header svg {
    stroke: var(--accent);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.modal-content-area {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 36px;
}
.modal-content-area p {
    margin-bottom: 16px;
}
.modal-content-area h4 {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 12px;
}
.modal-content-area ul {
    margin-bottom: 16px;
    padding-left: 20px;
    list-style-type: disc;
}
.modal-content-area li {
    margin-bottom: 8px;
}

.modal-footer-cta {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
}
.modal-footer-cta p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 16px;
}

/* ----------------------------------------------------
   11. FLOATING WHATSAPP BUTTON
   ---------------------------------------------------- */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 998;
    color: var(--color-white);
    transition: all var(--transition-fast);
}
.whatsapp-floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: pulseAnimation 2s infinite;
}
.whatsapp-floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: var(--text-main);
    color: var(--surface);
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}
.whatsapp-floating-btn:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------------------
   12. FOOTER SECTION
   ---------------------------------------------------- */
.footer-area {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    border-bottom: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.about-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.footer-logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
}
.footer-desc {
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-address {
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-tel {
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 24px;
}
.legal-links {
    display: flex;
    gap: 16px;
}
.legal-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: underline;
}
.legal-link:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-copy p {
    color: rgba(255, 255, 255, 0.4);
}
.footer-credits p {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

@keyframes spinAnimation {
    to {
        transform: rotate(360deg);
    }
}

@keyframes marqueeAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

/* ----------------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .alliances-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-illustration {
        max-width: 450px;
        margin: 0 auto;
    }
    .hero-bottom-strip {
        display: none; /* Hide on mobile/tablet to reduce clutter */
    }
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
    .about-vision-mission {
        margin-top: 32px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .btn-header-cta {
        display: none; /* Hide on mobile navbar, shown inside hamburger menu */
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .clientele-stats {
        grid-template-columns: 1fr;
    }
    .form-group-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .alliances-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-modal-container {
        width: 95%;
        border-radius: var(--border-radius-md);
    }
    .modal-body {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .alliances-grid {
        grid-template-columns: 1fr;
    }
    .logo-title {
        font-size: 0.95rem;
    }
    .logo-subtitle {
        font-size: 0.65rem;
    }
    .c-stat-number {
        font-size: 2.75rem;
    }
}
