/*
 * KIOI Geostrategic Institute
 * Shared Stylesheet (style.css)
 * Author: Antigravity AI
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables for Design System */
:root {
    --primary-color: #0F2850;      /* Deep Navy */
    --secondary-color: #C9A84C;    /* Gold */
    --bg-color: #FFFFFF;           /* Main Background */
    --section-bg: #F4F5F7;         /* Light Cool Gray */
    --body-text: #2C2C2A;          /* Near-Black */
    --muted-text: #6B6B68;         /* Medium Gray */
    --light-navy: #1A3A6B;         /* Light Navy (LinkedIn box) */
    --white: #FFFFFF;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 960px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--body-text);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

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

.section {
    padding: 80px 0;
}

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

.section-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Header & Sticky Navigation */
.header-nav {
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed);
}

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

/* Logo Wordmark */
.logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-link .logo-line1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

.logo-link .logo-separator {
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 3px 0 4px 0;
}

.logo-link .logo-line2 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    line-height: 1;
}

/* Color versions of Logo */
.logo-light .logo-line1 {
    color: var(--white);
}
.logo-light .logo-line2 {
    color: var(--secondary-color);
}

.logo-dark .logo-line1 {
    color: var(--primary-color);
}
.logo-dark .logo-line2 {
    color: var(--secondary-color);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 0;
    border-bottom: 2px transparent solid;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    border-bottom-color: var(--secondary-color);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition-speed);
}

/* Active Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 0; /* Strict Sharp Corners */
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-gold {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-gold:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

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

.btn-white-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-text);
    margin-bottom: 1.2rem;
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted-text);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.12; /* Subtle low opacity graphic */
    transition: opacity var(--transition-speed);
}

.hero-graphic:hover {
    opacity: 0.18;
}

.hero-graphic svg {
    max-width: 100%;
    height: auto;
}

/* Who We Are Section */
.who-we-are-intro {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

.who-we-are-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.column-card {
    position: relative;
    padding-top: 24px;
}

.column-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: var(--secondary-color); /* Gold thin line accent above column heading */
}

.column-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Global Focus Areas */
.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.focus-card {
    background-color: var(--white);
    padding: 32px;
    border-left: 2px solid var(--primary-color); /* Thin navy border on left side */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.focus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15, 40, 80, 0.05);
}

.focus-card-number {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color); /* Gold number top-left */
    margin-bottom: 1rem;
}

.focus-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.focus-card p {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin: 0;
}

/* Call to Action Strip */
.cta-strip {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 48px 0;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.cta-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
}

/* Services Page CSS */
.page-header {
    padding: 80px 0 40px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--section-bg);
}

.page-header h1 {
    font-size: 3rem;
    margin-top: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.15rem;
    color: var(--muted-text);
    max-width: 720px;
    font-weight: 300;
}

/* Alternating Services Rows */
.service-row {
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color); /* Bold gold number on the left */
    line-height: 1;
}

.service-content h2 {
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.service-activities-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-activities {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-activities li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    font-weight: 300;
}

.service-activities li::before {
    content: "—"; /* Small gold dash instead of standard bullets */
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Global Reach Map styling */
.reach-map-container {
    margin-top: 40px;
    background-color: var(--white);
    padding: 40px;
    border: 1px solid rgba(15, 40, 80, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reach-map {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.reach-regions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
}

.reach-regions li {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reach-regions li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-list {
    list-style: none;
    margin-top: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0; /* Prevents the flexbox layout from squishing the icon box */
    background-color: var(--section-bg);
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all var(--transition-speed);
}

.contact-info-item:hover .contact-info-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-info-text h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-info-text p, .contact-info-text a {
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
    color: var(--body-text);
}

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

/* Form Styles */
.contact-form-wrapper {
    background-color: var(--section-bg);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 40, 80, 0.15);
    color: var(--body-text);
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    border-color: var(--secondary-color);
}

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

/* LinkedIn Connection Box */
.linkedin-connection-box {
    margin-top: 60px;
    background-color: var(--light-navy);
    color: var(--white);
    padding: 32px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 24px;
    align-items: center;
}

.linkedin-icon-large {
    font-size: 2.5rem;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedin-box-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
}

/* Footer Section */
.footer {
    background-color: var(--primary-color);
    border-top: 1px solid var(--secondary-color); /* Thin gold line at the very top of the footer */
    padding: 40px 0;
    color: var(--white);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-graphic {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .who-we-are-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .linkedin-connection-box {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .service-activities {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        gap: 24px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-number {
        font-size: 2.5rem;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-container .logo-link {
        align-items: center;
    }
}

/* Extra Mobile Responsiveness (< 480px) */
@media (max-width: 480px) {
    .logo-link .logo-line1 {
        font-size: 1.4rem;
    }
    .logo-link .logo-line2 {
        font-size: 0.45rem;
        letter-spacing: 0.12em;
    }
    .nav-container {
        height: 80px;
    }
    .nav-menu {
        top: 80px;
    }
    h1 {
        font-size: 2rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .section {
        padding: 50px 0;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%; /* Full width buttons on very small viewports */
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .linkedin-connection-box {
        padding: 24px 16px;
    }
    .reach-map-container {
        padding: 20px 10px;
    }
}
