/* 
  Mexto Consulting - Global Style & Design System (2026 Core)
  Tech Stack: Raw HTML5/CSS3/Vanilla JS
*/

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

:root {
    /* Color Palette */
    --primary: #0D8B84;
    --primary-rgb: 13, 139, 132;
    --dark-navy: #1E2F45;
    --dark-navy-rgb: 30, 47, 69;
    --accent: #22C7B8;
    --accent-rgb: 34, 199, 184;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --bg-dark-rgb: 15, 23, 42;
    --text-dark: #111827;
    --text-light: #F8FAFC;
    --text-muted-light: #94A3B8;
    --text-muted-dark: #6B7280;
    --border-light: rgba(30, 47, 69, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(34, 199, 184, 0.15);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Shadow */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

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

/* Layout Utilities */
section {
    padding: 5.5rem 2rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    section {
        padding: 3.5rem 1rem;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Dark Mode Overrides (for specific premium panels) */
.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4 {
    color: var(--text-light);
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
}

.dark-theme p {
    color: var(--text-muted-light);
}

p.lead {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 300;
    max-width: 800px;
    line-height: 1.5;
}

/* Grid & Layout systems */
.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: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Alignments & Flex */
.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

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

/* Animations Trigger Classes (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delay helper classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Selection color */
::selection {
    background-color: var(--accent);
    color: var(--bg-dark);
}

/* --- FAQ Accordion Styles --- */
details.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

details.faq-item summary {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark-navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(34, 199, 184, 0.05);
}

details.faq-item[open] summary svg {
    transform: rotate(180deg);
}

details.faq-item p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted-dark);
    cursor: default;
}
