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

:root {
    /* Color Palette */
    --color-primary: #0F172A;
    /* Deep Navy Blue */
    --color-primary-light: #1E293B;
    /* Lighter Navy */
    --color-accent: #C7A144;
    /* Muted Gold/Bronze for prestige */
    --color-text-main: #1E293B;
    /* Dark Slate for body text */
    --color-text-light: #64748B;
    /* Slate Gray for secondary text */
    --color-bg-white: #FFFFFF;
    --color-bg-offwhite: #F8FAFC;
    /* Very light slate */
    --color-bg-dark: #020617;
    /* Very dark navy for footer/contrast */
    --color-border: #E2E8F0;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --section-padding: 5rem 0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding);
}

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

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

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

/* Invert headings on dark backgrounds */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-dark p,
.bg-primary p,
.footer-bottom p,
.footer-brand p {
    color: white !important;
}

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

.text-accent {
    color: var(--color-accent);
}

.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-medium);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-medium);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../images/hero-placeholder.jpg');
    /* Need to ensure this path is handled or color fallback */
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    color: #E2E8F0;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Cards & Content */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* News/Pubs Preview */
.post-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--color-accent);
    gap: 0.75rem;
}

/* Footer */
footer {
    background-color: var(--color-bg-dark);
    color: #94A3B8;
    padding-top: 5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #334155;
    background: #0F172A;
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        transition: transform var(--transition-medium);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Animations - Simple Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- New Additions for Branding & Updates --- */

/* Logo Updates */
.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Header Socials */
.header-socials {
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
    align-items: center;
}

.header-socials a {
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.header-socials a:hover {
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .header-socials {
        display: none;
        /* Hide on smaller screens or move to mobile menu if requested */
    }
}

/* Footer Updates */
.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.footer-brand-header img {
    height: 50px;
    width: auto;
}

.footer-brand-header span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-full-name {
    color: #CBD5E1;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Homepage Image Border */
.img-subtle-border {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
}

/* Values Section (White Theme Override) */
.values-section-light .card {
    background: white;
    /* Ensure card is white */
    border: 1px solid var(--color-border);
    /* Default border */
    color: var(--color-text-main);
    /* Dark text */
}

.values-section-light .card h3 {
    color: var(--color-primary);
    /* Dark heading */
}

.values-section-light .card p {
    color: var(--color-text-main);
    /* Dark body text */
}

.values-section-light .card-icon {
    /* Icon color can remain accent or primary */
    color: var(--color-accent);
}

/* Custom Core Values Responsive Layout */
.core-values-desktop {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.core-values-mobile {
    display: none;
}

@media (max-width: 992px) {
    .core-values-desktop {
        display: none;
    }
    
    .core-values-mobile {
        display: grid;
        gap: 2rem;
    }
}

/* === Language Selector === */
#lang-selector {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    font-family: var(--font-body);
}

#lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-medium);
}

#lang-toggle:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#lang-toggle i {
    font-size: 1rem;
}

#lang-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-medium);
    min-width: 160px;
}

#lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-main);
    transition: background var(--transition-fast);
    text-align: left;
    font-family: var(--font-body);
}

.lang-option:hover {
    background: var(--color-bg-offwhite);
}

.lang-option.active {
    background: var(--color-bg-offwhite);
    font-weight: 600;
    color: var(--color-primary);
}

.lang-code {
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--color-bg-offwhite);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    min-width: 2rem;
    text-align: center;
}

.lang-option.active .lang-code {
    background: var(--color-primary);
    color: white;
}

@media (max-width: 768px) {
    #lang-selector {
        bottom: 1rem;
        left: 1rem;
    }

    #lang-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}