/* ==========================================================================
   Eduardo Mendez Dev - Theme Styles
   ========================================================================== */

:root {
    /* Dark theme tokens (HSL components), derived from the hero video:
       night sky indigo (~rgb 19,14,29), mauve horizon (~rgb 115,86,97),
       warm amber laptop glow */
    --background: 258 32% 10%;
    --foreground: 0 0% 100%;
    --muted-foreground: 285 18% 76%;
    --primary: 0 0% 100%;
    --primary-foreground: 258 35% 8%;
    --secondary: 258 28% 15%;
    --muted: 258 28% 15%;
    --accent: 28 65% 84%;
    --border: 258 20% 28%;
    --input: 258 20% 28%;

    /* Dusk gradient stops (from the video's first frame) */
    --dusk-indigo: hsl(258 35% 9%);
    --dusk-violet: hsl(270 30% 14%);
    --dusk-mauve: hsl(315 26% 19%);
    --dusk-rose: hsl(345 32% 24%);
    --dusk-ember: hsl(22 60% 45%);

    /* Fonts */
    --font-display: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;

    /* Legacy variable mapping onto the dark theme */
    --color-primary: hsl(var(--primary));
    --color-primary-dark: hsl(var(--accent)); /* warm peach hover, from the dusk glow */
    --color-primary-light: hsl(258 25% 18%);
    --color-primary-bg: hsl(var(--secondary));
    --color-text: hsl(var(--foreground));
    --color-text-secondary: hsl(var(--muted-foreground));
    --color-text-muted: hsl(var(--muted-foreground));
    --color-white: #ffffff;
    --color-contrast: hsl(var(--primary-foreground));
    --color-surface: hsl(258 30% 16% / 0.55); /* translucent, lets the dusk gradient breathe through */
    --color-bg: hsl(var(--background));
    --color-bg-alt: hsl(258 30% 12% / 0.35);
    --color-border: hsl(var(--border));
    --color-dark: hsl(258 38% 6%);

    --font-family: var(--font-body);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --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);

    --container-max: 1200px;
    --header-height: 0px; /* header is no longer fixed */
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    /* Dusk backdrop sampled from the hero video's first frame:
       starry indigo sky melting into a warm mauve/ember horizon */
    background-image:
        radial-gradient(110% 65% at 50% 108%, hsl(22 60% 45% / 0.22) 0%, hsl(345 32% 24% / 0.12) 45%, transparent 70%),
        linear-gradient(180deg,
            var(--dusk-indigo) 0%,
            var(--dusk-violet) 45%,
            var(--dusk-mauve) 78%,
            var(--dusk-rose) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 400;
    font-family: var(--font-display);
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-inline: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

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

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

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

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

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

.btn--white:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-contrast);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-sm);
}

.btn--full {
    width: 100%;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: 1.5rem 0; /* py-6 */
}

.site-header .container {
    max-width: 80rem; /* max-w-7xl */
    padding-inline: 2rem; /* px-8 */
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav__logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px hsl(285 55% 65% / 0.5));
}

.nav__logo-mark {
    display: block;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__menu .nav__item a,
.nav__menu li a {
    display: block;
    padding: 0.25rem 0;
    color: hsl(var(--muted-foreground));
    font-size: var(--font-size-sm);
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav__menu .nav__item a:hover,
.nav__menu li a:hover {
    color: hsl(var(--foreground));
    background-color: transparent;
}

.nav__cta {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    padding: 0.625rem 1.5rem; /* px-6 py-2.5 */
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: hsl(var(--foreground));
    border-radius: var(--radius-full);
    /* violet → ember gradient from the dusk palette */
    background: linear-gradient(120deg, hsl(265 60% 48%) 0%, hsl(320 55% 46%) 55%, hsl(22 80% 52%) 100%);
    background-size: 170% 100%;
    background-position: 0% 0;
    box-shadow: 0 4px 16px hsl(280 60% 40% / 0.35), inset 0 1px 1px rgb(255 255 255 / 0.25);
    overflow: hidden;
    transition: transform 0.3s ease, background-position 0.45s ease, box-shadow 0.3s ease;
}

.nav__cta:hover {
    transform: scale(1.05);
    background-position: 100% 0; /* gradient slides toward the ember end */
    box-shadow: 0 6px 22px hsl(22 75% 48% / 0.45), inset 0 1px 1px rgb(255 255 255 / 0.25);
    color: hsl(var(--foreground));
}

.nav__cta:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px hsl(280 60% 40% / 0.5), inset 0 2px 6px rgb(0 0 0 / 0.3);
}

/* click ripple: a light burst that expands from the center on press */
.nav__cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgb(255 255 255 / 0.4) 0%, transparent 65%);
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.nav__cta:active::after {
    opacity: 1;
    transform: scale(1.5);
    transition: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background-color: hsl(var(--foreground));
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* Fullscreen background video (first viewport, behind nav + hero) */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 1.5rem;
    min-height: calc(100svh - 6.5rem); /* fill the rest of the first screen below the nav */
}

.hero__eyebrow {
    font-size: var(--font-size-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.hero__heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 6rem); /* text-5xl → sm:text-7xl → md:text-8xl */
    line-height: 0.95;
    letter-spacing: -2.46px;
    max-width: 80rem; /* max-w-7xl */
    margin: 0;
    color: hsl(var(--foreground));
}

.hero__heading em {
    font-style: normal; /* not-italic */
    /* violet → ember gradient text, echoing the dusk horizon */
    background: linear-gradient(100deg, hsl(285 55% 80%) 0%, hsl(340 60% 78%) 50%, hsl(25 85% 74%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__description {
    font-size: var(--font-size-base);
    line-height: 1.625; /* leading-relaxed */
    color: hsl(var(--muted-foreground));
    max-width: 42rem; /* max-w-2xl */
    margin: 2rem 0 0; /* mt-8 */
}

@media (min-width: 640px) {
    .hero__description {
        font-size: var(--font-size-lg);
    }
}

.hero__cta {
    display: inline-block;
    margin-top: 3rem; /* mt-12 */
    padding: 1.25rem 3.5rem; /* px-14 py-5 */
    font-size: var(--font-size-base);
    color: hsl(var(--foreground));
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero__cta:hover {
    transform: scale(1.03);
    color: hsl(var(--foreground));
}

/* ==========================================================================
   Liquid Glass Effect
   ========================================================================== */

.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-rise {
    animation: fade-rise 0.8s ease-out both;
}

.animate-fade-rise-delay {
    animation: fade-rise 0.8s ease-out 0.2s both;
}

.animate-fade-rise-delay-2 {
    animation: fade-rise 0.8s ease-out 0.4s both;
}

/* ==========================================================================
   Story / About Section
   ========================================================================== */

.story {
    padding: 5rem 0;
    background-color: transparent;
}

.story__video-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.story__video-trigger {
    display: block;
    position: relative;
    width: 100%;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story__video-trigger:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.2);
}

.story__video-trigger:hover .story__play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-primary-dark);
}

.story__video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
}

.story__video-thumb--placeholder {
    width: 100%;
    border-radius: var(--radius-xl);
    aspect-ratio: 16 / 9;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.story__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    color: var(--color-contrast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.story__play-btn svg {
    margin-left: 3px;
}

.story__mentoring-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1rem;
    background-color: var(--color-primary);
    color: var(--color-contrast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.story__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.story__heading {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 1rem;
}

.story__content p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.story__badges {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.5rem;
}

.story__badge {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.story__badge-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-bg);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

.story__badge strong {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.story__badge p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* unstyled link: same color as the text, only underlined */
.story__badge-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.story__badge-link:hover {
    color: inherit;
    text-decoration-thickness: 2px;
}

/* Video Modal */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.88);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 960px;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.is-open .video-modal__content {
    transform: scale(1);
}

.video-modal__close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.video-modal__close:hover {
    opacity: 1;
}

.video-modal__player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #000;
}

.video-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-modal__content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .video-modal__player {
        border-radius: 0;
        width: 100%;
    }

    .video-modal__close {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 10001;
    }
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-section {
    padding: 5rem 0;
    background-color: transparent;
}

.blog-section__subtitle {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.blog-section__featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.blog-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-section__cta {
    text-align: center;
    margin-top: 2rem;
}

.blog-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.blog-card--featured {
    padding: 2rem;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-card__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-primary-bg);
    color: var(--color-primary-dark);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.blog-card__date,
.blog-card__read-time {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.blog-card__title {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card__title a {
    color: var(--color-text);
}

.blog-card__title a:hover {
    color: var(--color-primary);
}

.blog-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card__link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
}

.blog-card__link:hover {
    color: var(--color-primary-dark);
}

.blog-card__image img {
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    padding: 5rem 0;
    background-color: var(--color-bg-alt);
}

.services__category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 2rem;
    justify-content: center;
    color: var(--color-text);
}

.services__category-title svg {
    color: var(--color-primary);
}

.services__courses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.course-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.course-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.services__courses-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.services__notice {
    text-align: center;
    padding: 2rem;
    margin-bottom: 3rem;
    background-color: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.course-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.course-card__meta {
    display: flex;
    gap: 1rem;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.course-card__price {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.course-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-card__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.course-card__features svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.services__mentoring {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.mentoring-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.2s ease;
}

.mentoring-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.mentoring-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mentoring-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.mentoring-card__price {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.mentoring-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.mentoring-card__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.mentoring-card__features svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
    padding: 4rem 0;
    background:
        linear-gradient(120deg,
            hsl(258 40% 18% / 0.85) 0%,
            hsl(315 30% 22% / 0.75) 55%,
            hsl(22 55% 34% / 0.65) 100%);
    border-top: 1px solid hsl(315 25% 35% / 0.4);
    border-bottom: 1px solid hsl(315 25% 35% / 0.4);
    text-align: center;
    color: hsl(var(--foreground));
}

.cta-banner__title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-banner__text {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    padding: 5rem 0;
    background-color: transparent;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact__info-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact__method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact__method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact__method-icon--email {
    background-color: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.contact__method-icon--call {
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
}

.contact__method-icon--chat {
    background-color: rgba(244, 114, 182, 0.15);
    color: #f472b6;
}

.contact__method strong {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.contact__method p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

.contact__method-note {
    font-size: var(--font-size-xs) !important;
    color: var(--color-text-muted) !important;
}

.contact__expect {
    background-color: var(--color-primary-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact__expect h4 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

.contact__expect ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact__expect li {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.contact__expect li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.contact__form {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact__form-group {
    margin-bottom: 1.25rem;
}

.contact__form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: hsl(var(--input) / 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.contact__form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.contact__form-group input::placeholder,
.contact__form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.contact__form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form .btn {
    margin-top: 0.5rem;
}

.contact__form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    display: none;
}

.contact__form-message.success {
    display: block;
    background-color: var(--color-primary-bg);
    color: var(--color-primary-dark);
}

.contact__form-message.error {
    display: block;
    background-color: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    color: #d1d5db;
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer__logo .nav__logo-icon {
    color: var(--color-primary);
}

.footer__logo .nav__logo-text {
    color: var(--color-white);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.footer__tagline {
    font-size: var(--font-size-sm);
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #9ca3af;
    transition: all 0.2s ease;
}

.footer__social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-contrast);
}

.footer__heading {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__list a {
    font-size: var(--font-size-sm);
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer__list a:hover {
    color: var(--color-primary);
}

.footer__newsletter p {
    font-size: var(--font-size-sm);
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer__subscribe {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
}

.footer__input::placeholder {
    color: #6b7280;
}

.footer__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__lang {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__lang-link {
    font-size: var(--font-size-sm);
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer__lang-link:hover {
    color: hsl(var(--foreground));
}

.footer__lang-link.is-active {
    color: hsl(var(--foreground));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__bottom p {
    font-size: var(--font-size-sm);
    color: #6b7280;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a {
    font-size: var(--font-size-sm);
    color: #6b7280;
}

.footer__legal a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post {
    padding: calc(var(--header-height) + 3rem) 0 4rem;
}

.single-post__header {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.single-post__title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-post__content {
    max-width: 720px;
    margin: 0 auto;
}

.single-post__content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.single-post__content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.single-post__content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.single-post__content ul,
.single-post__content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.single-post__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    list-style: disc;
}

.single-post__content code {
    background-color: var(--color-bg-alt);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.single-post__content pre {
    background-color: var(--color-dark);
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.single-post__content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.single-post__content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.single-post__content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Course Detail Page
   ========================================================================== */

.course-hero {
    padding: 3rem 0;
    background-color: var(--color-bg-alt);
}

.course-hero__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.course-hero__tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.course-hero__title {
    font-size: clamp(1.75rem, 4vw, var(--font-size-4xl));
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.course-hero__excerpt {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.course-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.course-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.course-hero__meta-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Course Sidebar Card */

.course-sidebar {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.admin-bar .course-sidebar {
    top: calc(var(--header-height) + 32px + 1.5rem);
}

.course-sidebar__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.course-sidebar__price {
    padding: 1.25rem 1.5rem 0;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-primary);
}

.course-sidebar__action {
    padding: 1rem 1.5rem;
}

.course-sidebar__action .lp-button,
.course-sidebar__action .button-enroll,
.course-sidebar__action button,
.course-sidebar__action a.button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.75rem;
    background-color: var(--color-primary);
    color: var(--color-contrast);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.course-sidebar__action .lp-button:hover,
.course-sidebar__action .button-enroll:hover,
.course-sidebar__action button:hover,
.course-sidebar__action a.button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-contrast);
}

.course-sidebar__details {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.course-sidebar__details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.course-sidebar__details li:last-child {
    border-bottom: none;
}

.course-sidebar__label {
    color: var(--color-text-secondary);
}

.course-sidebar__value {
    font-weight: 600;
    color: var(--color-text);
}

/* Course Detail Body */

.course-detail {
    padding: 3rem 0 4rem;
}

.course-detail__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

.course-detail__section {
    margin-bottom: 3rem;
}

.course-detail__section:last-child {
    margin-bottom: 0;
}

.course-detail__heading {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary-light);
}

.course-detail__content {
    max-width: none;
    margin: 0;
}

/* LearnPress curriculum overrides */

.course-detail__curriculum .learnpress-course-curriculum,
.course-detail__curriculum .curriculum-sections {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.course-detail__curriculum .section-header,
.course-detail__curriculum .section-title {
    background-color: var(--color-bg-alt);
    padding: 1rem 1.25rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    text-align: left;
}

.course-detail__curriculum .course-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease;
}

.course-detail__curriculum .course-item:last-child {
    border-bottom: none;
}

.course-detail__curriculum .course-item:hover {
    background-color: var(--color-primary-bg);
}

/* Related Courses */

.course-related {
    padding: 4rem 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.course-related .section-title {
    margin-bottom: 2rem;
}

/* Course Detail Responsive */

@media (max-width: 1024px) {
    .course-hero__grid {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }

    .course-detail__grid {
        grid-template-columns: 1fr;
    }

    .course-detail__aside {
        display: none;
    }
}

@media (max-width: 768px) {
    .course-hero__grid {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: static;
    }

    .course-hero__meta {
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Archive / Blog Grid
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: calc(var(--header-height) + 2rem) 0 2rem;
}

.pagination {
    padding: 2rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-contrast);
    border-color: var(--color-primary);
}

/* ==========================================================================
   Case Studies Page
   ========================================================================== */

.cs-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 72svh;
    overflow: hidden;
}

.cs-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* darkens the left side so the text stays readable over any image */
.cs-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        hsl(258 35% 8% / 0.92) 0%,
        hsl(258 35% 8% / 0.6) 45%,
        hsl(258 35% 8% / 0.15) 75%,
        transparent 100%);
}

.cs-hero--no-image {
    background:
        radial-gradient(90% 70% at 85% 100%, hsl(22 60% 45% / 0.25) 0%, transparent 60%),
        linear-gradient(120deg, var(--dusk-indigo) 0%, var(--dusk-violet) 55%, var(--dusk-mauve) 100%);
}

.cs-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: 6rem;
}

.cs-hero__text {
    max-width: 40rem;
    text-align: left;
}

.cs-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
}

.cs-hero__title em {
    font-style: normal;
    background: linear-gradient(100deg, hsl(285 55% 80%) 0%, hsl(340 60% 78%) 50%, hsl(25 85% 74%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cs-hero__subtext {
    margin-top: 1.5rem;
    max-width: 34rem;
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.cs-projects {
    padding: 5rem 0;
    background-color: transparent;
}

.cs-projects__intro {
    max-width: 42rem;
    margin-bottom: 3rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

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

.cs-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.5);
    border-color: hsl(315 25% 40% / 0.6);
}

.cs-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.cs-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-card:hover .cs-card__media img {
    transform: scale(1.04);
}

.cs-card__media-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, var(--dusk-violet) 0%, var(--dusk-mauve) 60%, var(--dusk-rose) 100%);
}

.cs-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
}

.cs-card__title {
    font-size: var(--font-size-2xl);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.cs-card__title a {
    color: hsl(var(--foreground));
}

.cs-card__title a:hover {
    color: hsl(var(--accent));
}

.cs-card__excerpt {
    font-size: var(--font-size-sm);
    color: hsl(var(--muted-foreground));
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.cs-card__link {
    margin-top: auto;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: hsl(var(--accent));
}

.cs-card__link:hover {
    color: hsl(var(--foreground));
}

.cs-empty {
    text-align: center;
    padding: 3rem 0;
    color: hsl(var(--muted-foreground));
}

@media (max-width: 768px) {
    .cs-hero {
        min-height: 60svh;
    }

    .cs-hero__overlay {
        background: linear-gradient(180deg,
            hsl(258 35% 8% / 0.55) 0%,
            hsl(258 35% 8% / 0.85) 100%);
    }

    .cs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Breath Page
   ========================================================================== */

.breath__screen {
    min-height: calc(100svh - 6.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.breath__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

.breath__hint {
    color: hsl(var(--muted-foreground));
    font-size: var(--font-size-base);
    margin-top: 1rem;
    max-width: 28rem;
}

.breath__circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin-top: 4rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%,
        hsl(285 55% 62% / 0.55) 0%,
        hsl(340 55% 55% / 0.4) 55%,
        hsl(22 80% 55% / 0.3) 100%);
    box-shadow: 0 0 60px hsl(285 55% 55% / 0.35), inset 0 1px 1px rgb(255 255 255 / 0.3);
    animation: breathe 8s ease-in-out infinite;
}

.breath__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--foreground));
    opacity: 0;
}

.breath__label--in {
    animation: breath-label-in 8s ease-in-out infinite;
}

.breath__label--out {
    animation: breath-label-out 8s ease-in-out infinite;
}

.breath__content {
    max-width: 42rem;
    margin-top: 3rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px hsl(285 55% 55% / 0.25), inset 0 1px 1px rgb(255 255 255 / 0.3);
    }
    50% {
        transform: scale(1.45);
        box-shadow: 0 0 90px hsl(285 55% 55% / 0.5), inset 0 1px 1px rgb(255 255 255 / 0.3);
    }
}

@keyframes breath-label-in {
    0%, 45%, 100% { opacity: 0; }
    15%, 35% { opacity: 1; }
}

@keyframes breath-label-out {
    0%, 50%, 95%, 100% { opacity: 0; }
    65%, 85% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .breath__circle,
    .breath__label--in,
    .breath__label--out {
        animation: none;
    }

    .breath__label--in {
        opacity: 1;
    }
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    padding: calc(var(--header-height) + 4rem) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404__code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.error-404__text {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .services__courses {
        grid-template-columns: 1fr 1fr;
    }

    .blog-section__grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .nav__menu,
    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 20;
        background-color: hsl(var(--background));
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }

    .story__body {
        grid-template-columns: 1fr;
    }

    .blog-section__featured {
        grid-template-columns: 1fr;
    }

    .blog-section__grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .services__courses {
        grid-template-columns: 1fr;
    }

    .services__mentoring {
        grid-template-columns: 1fr;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }

    .single-post__title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: var(--font-size-2xl);
    }
}
