@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;400;500;700&display=swap');

/* --- Design Tokens (CS Design System v5.3 - Consulting/Corporate Tune) --- */
:root {
    /* Colors - HSL */
    /* Backgrounds: Shifted from cold blue-gray to warmer "Paper" tones */
    --background: 40 10% 98%;
    /* Warm paper white */
    --surface: 0 0% 100%;
    --foreground: 215 20% 15%;
    /* Deep technical dark blue/grey */

    /* Primary - CairnShift Green/Teal */
    --primary: 192 48% 16%;
    --primary-foreground: 0 0% 100%;
    --primary-light: 192 20% 96%;
    /* Desaturated light tint */
    --primary-hover: 192 48% 12%;

    /* Secondary - Warm Neutral */
    --secondary: 40 10% 94%;
    /* Warm grey/beige */
    --secondary-foreground: 215 20% 20%;

    /* UI Elements */
    --muted: 210 10% 96%;
    --muted-foreground: 215 10% 40%;
    /* Higher contrast for professional readability */
    --border: 215 10% 85%;
    --input: 215 15% 92%;

    /* Status */
    --success: 150 60% 35%;
    --warning: 35 85% 55%;
    --error: 0 75% 55%;
    --accent: 35 85% 55%;

    /* Spacing & Radius - Tighter, more professional */
    --radius-sm: 2px;
    --radius-md: 4px;
    /* Squarer look */
    --radius-lg: 6px;
    --radius-xl: 12px;

    /* Shadows - Subtle, printed feel */
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* reduced harshness */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.15;
    font-weight: 700;
    color: hsl(var(--foreground));
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography Classes */
.display-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: hsl(var(--primary));
    /* Brand color for headings */
}

.heading-l {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.heading-m {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.heading-s {
    font-size: 1.125rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
    line-height: 1.6;
}

.text-gradient {
    color: hsl(var(--accent));
    /* Solid accent instead of gradient for clearer reading */
    background: none;
    -webkit-text-fill-color: initial;
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.text-sm {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

/* Colors Utility Classes */
.text-primary {
    color: hsl(var(--primary));
}

.text-white {
    color: white;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.85);
}

/* Backgrounds */
.bg-primary {
    background-color: hsl(var(--primary));
}

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

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

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

.bg-secondary-soft {
    background-color: hsl(var(--secondary));
}

.text-blue-500,
.text-green-500,
.text-amber-500 {
    color: hsl(var(--primary));
}

/* Layout Utilities - Same as before */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tighter container */
.section {
    padding: 6rem 0;
    position: relative;
}

/* More breathable vertical spacing */
.pt-32 {
    padding-top: 8rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-auto {
    margin-top: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2.25rem;
}

/* More padding in cards */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.flex {
    display: flex;
}

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

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

.items-start {
    align-items: flex-start;
}

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

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

.flex-wrap {
    flex-wrap: wrap;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-12 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:col-span-4 {
    grid-column: span 1;
}

.md\:col-span-8 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .md\:col-span-4 {
        grid-column: span 4;
    }

    .md\:col-span-8 {
        grid-column: span 8;
    }
}

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

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

.btn-solid {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 1px solid hsl(var(--primary));
    box-shadow: 0 2px 4px rgba(24, 62, 69, 0.2);
}

.btn-solid:hover {
    background-color: hsl(var(--primary-hover));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 62, 69, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--foreground));
    /* Stronger contrast for outline */
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--foreground));
    color: hsl(var(--surface));
}

.card {
    background-color: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

/* Make value-add text readable */
.card.bg-primary,
.card.bg-green-600,
.card.bg-blue-600,
.card.bg-amber-500 {
    background-color: hsl(var(--primary)) !important;
    color: white !important;
    border: none;
    box-shadow: var(--shadow-card);
}

.card.bg-primary *,
.card.bg-green-600 *,
.card.bg-blue-600 *,
.card.bg-amber-500 * {
    color: white !important;
    opacity: 0.98;
}

.card:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* Headers / Section Titles - More Editorial */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    color: hsl(var(--primary));
    border-bottom: 2px solid hsl(var(--accent));
    border-radius: 0;
    margin-bottom: 1rem;
}

.chip-primary,
.chip-warning,
.chip-blue {
    background: transparent;
    color: hsl(var(--primary));
    border: none;
    border-bottom: 2px solid hsl(var(--accent));
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(var(--background), 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}

.navbar-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--foreground));
    letter-spacing: -0.03em;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

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

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary));
}

/* Nav Dropdown */
.nav-dropdown-trigger {
    position: relative;
    cursor: pointer;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.nav-dropdown-trigger:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    padding: 0.75rem 1rem;
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
}

.sticky {
    position: sticky;
}

.top-24 {
    top: 6rem;
}

.relative {
    position: relative;
}

.opacity-60 {
    opacity: 0.6;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

/* Hero */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 50% 10%, hsl(var(--secondary)) 0%, transparent 60%);
}

/* Consulting/Editorial Layouts */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}