/*
Theme Name: KM Digital Solutions Theme
Theme URI: https://km-digitalsolutions.com
Author: KM Digital Solutions
Author URI: https://km-digitalsolutions.com
Description: Custom dark-mode WordPress theme for KM Digital Solutions. Built with GSAP ScrollTrigger animations, glassmorphism UI, SEO-optimized, mobile-first. Electric violet + cyan palette with neon mint accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://km-digitalsolutions.com/license
Text Domain: km-digital
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    /* Brand Palette */
    --primary: #6C3CE1;
    --primary-light: #8B5CF6;
    --secondary: #0EA5E9;
    --accent: #00E5A0;
    --bg: #050510;
    --bg-card: #0A0A1F;
    --bg-subtle: #111132;
    --text: #F0F0FF;
    --text-muted: #7C7C9A;
    --border: #1E1E3F;
    --gradient: linear-gradient(135deg, #6C3CE1, #0EA5E9);
    --gradient-accent: linear-gradient(135deg, #6C3CE1, #00E5A0);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 8rem);
    --container-max: 1200px;
    --container-wide: 1400px;

    /* Glass */
    --glass-bg: rgba(10, 10, 31, 0.6);
    --glass-border: rgba(108, 60, 225, 0.15);
    --glass-blur: 20px;

    /* Transitions */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    color: var(--text-muted);
    max-width: 65ch;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

a:hover {
    color: var(--accent);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container--wide {
    max-width: var(--container-wide);
}

section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease);
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(108, 60, 225, 0.5);
    color: #fff;
}

.btn--accent {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0, 229, 160, 0.2);
}

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 229, 160, 0.4);
    color: var(--bg);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.1);
    color: var(--text);
}

/* ============================================================
   Glassmorphism Card
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    transition: all 0.4s var(--ease);
}

.glass-card:hover {
    border-color: rgba(108, 60, 225, 0.4);
    box-shadow: 0 8px 40px rgba(108, 60, 225, 0.15);
    transform: translateY(-4px);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s var(--ease);
}

.site-header--scrolled {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.site-logo img,
.site-logo__img {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 0.625rem 1.5rem;
    background: var(--gradient);
    border-radius: 0.375rem;
    color: #fff !important;
    font-size: 0.8125rem;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s var(--ease);
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s var(--ease);
        border-left: 1px solid var(--border);
    }

    .nav-menu.is-open { right: 0; }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 16, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 999;
    }

    .nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: visible;
    padding-top: 5rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero__gradient-orb--violet {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -10%;
    right: -5%;
}

.hero__gradient-orb--cyan {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: 10%;
    left: -5%;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 52rem;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(108, 60, 225, 0.15);
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.hero__title {
    margin-bottom: 1.5rem;
}

.hero__title .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__rotate-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
}

.hero__rotate-text {
    display: inline-block;
}

.hero__description {
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 42rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================================
   Services Section
   ============================================================ */
.services {
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 4rem;
}

.section-header p {
    margin: 1rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.service-card__icon--violet { background: rgba(108, 60, 225, 0.15); color: var(--primary-light); }
.service-card__icon--cyan { background: rgba(14, 165, 233, 0.15); color: var(--secondary); }
.service-card__icon--mint { background: rgba(0, 229, 160, 0.15); color: var(--accent); }

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================================
   Particle Network Canvas
   ============================================================ */
.particle-canvas-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.particle-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================================
   Case Studies
   ============================================================ */
.case-studies {
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .case-studies-grid { grid-template-columns: 1fr; }
}

.case-card {
    overflow: hidden;
}

.case-card__header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.case-card__client {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.case-card__title {
    font-size: 1.125rem;
    font-weight: 600;
}

.case-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}

.case-card__metric {
    padding: 1.25rem;
    background: var(--bg-card);
    text-align: center;
}

.case-card__metric-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.case-card__metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Case Study Screenshots */
.case-screenshots__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .case-screenshots__grid { grid-template-columns: 1fr; }
}

.case-screenshot {
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    position: relative;
}

.case-screenshot:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(108, 60, 225, 0.2);
}

.case-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.case-screenshot__label {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-card);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.case-screenshot:hover .case-screenshot__label {
    color: var(--primary-light);
}

/* ============================================================
   Process Section
   ============================================================ */
.process {
    background: var(--bg);
    position: relative;
    z-index: 1;
}

/* ── Process: Line-Draws-Circles ── */
.process-wave {
    position: relative;
    margin-top: 2rem;
    padding: 4rem 0 8rem;
    overflow: visible;
}

.process-wave__bgnums {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.process-wave__bgnum {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(8rem, 15vw, 14rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.08) 0%, transparent 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

/* Number 1: up-left of circle 1 */
.process-wave__bgnum:nth-child(1) {
    left: 8%;
    top: -8%;
}

/* Number 2: down-right of circle 2 */
.process-wave__bgnum:nth-child(2) {
    left: 52%;
    top: 55%;
}

/* Number 3: up-right of circle 3 */
.process-wave__bgnum:nth-child(3) {
    right: 5%;
    top: -8%;
}

.process-wave__svg-wrap {
    position: relative;
    z-index: 1;
}

.process-wave__svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.process-wave__path--main,
.process-wave__path--glow {
    /* stroke-dasharray/offset set by JS */
}

.process-wave__segment {
    /* stroke-dasharray/offset set by JS */
}

/* Enhanced marker glow — scale up + strong box-shadow */
.journey-timeline__marker {
    transition: box-shadow 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

.journey-timeline__marker--glowing {
    box-shadow: 0 0 16px rgba(108, 60, 225, 0.7), 0 0 32px rgba(14, 165, 233, 0.4), 0 0 48px rgba(108, 60, 225, 0.15);
    transform: scale(1.15);
    border-color: var(--primary-light);
}

.journey-timeline__marker--glowing .journey-timeline__num {
    font-size: 0.9rem;
    transition: font-size 0.4s ease;
}

.journey-timeline__marker--glowing.journey-timeline__marker--violet {
    box-shadow: 0 0 16px rgba(108, 60, 225, 0.8), 0 0 32px rgba(108, 60, 225, 0.4), 0 0 48px rgba(108, 60, 225, 0.15);
    border-color: var(--primary-light);
}

.journey-timeline__marker--glowing.journey-timeline__marker--cyan {
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.8), 0 0 32px rgba(14, 165, 233, 0.4), 0 0 48px rgba(14, 165, 233, 0.15);
    border-color: var(--secondary);
}

.journey-timeline__marker--glowing.journey-timeline__marker--mint {
    box-shadow: 0 0 16px rgba(0, 229, 160, 0.8), 0 0 32px rgba(0, 229, 160, 0.4), 0 0 48px rgba(0, 229, 160, 0.15);
    border-color: var(--accent);
}

/* Badge active state — glows green when line reaches the marker */
.journey-timeline__badge--active {
    background: rgba(0, 229, 160, 0.18);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 229, 160, 0.3);
    transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.journey-timeline__badge--active.journey-timeline__badge--mint {
    background: rgba(0, 229, 160, 0.25);
    box-shadow: 0 0 12px rgba(0, 229, 160, 0.4);
}

/* Build Phase Begins label glow */
.journey-timeline__branch-label-center {
    transition: text-shadow 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.journey-timeline__branch-label-center.journey-timeline__label--glowing {
    text-shadow: 0 0 8px rgba(108, 60, 225, 0.6), 0 0 16px rgba(14, 165, 233, 0.3);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(108, 60, 225, 0.2);
}

/* Icons inside circles - positioned over the SVG circle centers */
/* SVG viewBox: 0 0 1000 300. Circle centers: (200,80), (500,220), (800,80) */
/* Percentage X = cx / 1000 * 100, Percentage Y = cy / 300 * 100 */
/* Icons overlay is inside .process-wave__svg-wrap so % positions match SVG */
.process-wave__icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.process-wave__icon {
    position: absolute;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

/* Subtle breathing pulse — starts when .--visible is added by JS */
@keyframes iconPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.process-wave__icon--visible {
    animation: iconPulse 3s ease-in-out infinite;
}

.process-wave__icon--1 {
    left: 20%;        /* 200/1000 = 20% */
    top: 26.7%;       /* 80/300 = 26.7% */
    color: var(--primary-light);
}

.process-wave__icon--2 {
    left: 50%;        /* 500/1000 = 50% */
    top: 73.3%;       /* 220/300 = 73.3% */
    color: var(--secondary);
}

.process-wave__icon--3 {
    left: 80%;        /* 800/1000 = 80% */
    top: 26.7%;       /* 80/300 = 26.7% */
    color: var(--accent);
}

/* Step text — positioned inside .process-wave, keyed to SVG circle coords */
/* Steps are children of .process-wave (position: relative), percentages are
   relative to .process-wave__svg-wrap which determines the SVG area.
   We use JS-free approach: position relative to the wave container. */
.process-wave__step {
    position: absolute;
    z-index: 3;
    text-align: center;
    width: 240px;
    transform: translateX(-50%);
}

.process-wave__step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-wave__step p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 240px;
}

/* Step 1: below circle 1 — positioned by JS */
.process-wave__step--1 { color: var(--primary-light); }

/* Step 2: entire block above circle 2 — positioned by JS with negative offset */
.process-wave__step--2 { color: var(--secondary); }

/* Step 3: below circle 3 — positioned by JS */
.process-wave__step--3 { color: var(--accent); }

@media (max-width: 768px) {
    .process-wave__bgnums { display: none; }

    .process-wave__svg { height: 80px; }

    .process-wave__dots { display: none; }

    /* On mobile, stack steps below SVG instead of absolute positioning */
    .process-wave__step {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        margin: 1.5rem auto 0;
    }

    .process-wave__step p {
        max-width: none;
    }
}

/* ── Client Journey Timeline ── */
.journey-timeline__day-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.journey-timeline__track {
    position: relative;
    max-width: 52rem;
    margin: 0 auto;
}

.journey-timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.3;
    transform: translateX(-50%);
}

.journey-timeline__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    width: 50%;
}

.journey-timeline__item--left {
    padding-right: 2.5rem;
    justify-content: flex-end;
    text-align: right;
}

.journey-timeline__item--right {
    margin-left: 50%;
    padding-left: 2.5rem;
}

.journey-timeline__marker {
    position: absolute;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.journey-timeline__num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.journey-timeline__item--left .journey-timeline__marker {
    right: -1.375rem;
}

.journey-timeline__item--right .journey-timeline__marker {
    left: -1.375rem;
}

.journey-timeline__marker--violet { border-color: var(--primary); box-shadow: 0 0 12px rgba(108, 60, 225, 0.3); }
.journey-timeline__marker--cyan { border-color: var(--secondary); box-shadow: 0 0 12px rgba(14, 165, 233, 0.3); }
.journey-timeline__marker--mint { border-color: var(--accent); box-shadow: 0 0 12px rgba(0, 229, 160, 0.3); }

.journey-timeline__card {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.journey-timeline__card--violet { border-color: rgba(108, 60, 225, 0.3); }
.journey-timeline__card--cyan { border-color: rgba(14, 165, 233, 0.3); }
.journey-timeline__card--mint { border-color: rgba(0, 229, 160, 0.3); }

.journey-timeline__badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.journey-timeline__badge--violet { color: var(--primary-light); background: rgba(108, 60, 225, 0.12); }
.journey-timeline__badge--cyan { color: var(--secondary); background: rgba(14, 165, 233, 0.12); }
.journey-timeline__badge--mint { color: var(--accent); background: rgba(0, 229, 160, 0.12); }

.journey-timeline__card h4 {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.journey-timeline__card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Detail lists in branch cards */
.journey-timeline__detail-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.journey-timeline__detail-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.375rem;
}

.journey-timeline__detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.journey-timeline__card--violet .journey-timeline__detail-list li::before { background: var(--primary); opacity: 0.5; }
.journey-timeline__card--cyan .journey-timeline__detail-list li::before { background: var(--secondary); opacity: 0.5; }

/* Branch indicator */
.journey-timeline__branch {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.journey-timeline__branch--merge {
    margin: 1rem 0 2rem;
}

.journey-timeline__branch-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.journey-timeline__branch-label span {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.journey-timeline__branch-tracks {
    display: flex;
    gap: 0.5rem;
}

.journey-timeline__track-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.625rem;
    border-radius: 1rem;
}

.journey-timeline__track-tag--violet { color: var(--primary-light); background: rgba(108, 60, 225, 0.15); }
.journey-timeline__track-tag--cyan { color: var(--secondary); background: rgba(14, 165, 233, 0.15); }

/* Branch / Merge SVG visuals — flush with track (no gaps) */
.journey-timeline__branch-visual,
.journey-timeline__merge-visual {
    position: relative;
    max-width: 52rem;
    margin: -1px auto;
}

.journey-branch-svg {
    width: 100%;
    height: auto;
    display: block;
}

.journey-timeline__branch-label-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    white-space: nowrap;
}

/* Two-column split branch — same max-width as tracks for alignment */
.journey-timeline__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0 auto;
    max-width: 52rem;
    position: relative;
}

.journey-timeline__branch-col {
    position: relative;
    padding-top: 0.5rem;
    overflow: visible;
}

/* Vertical side labels alongside cards */
.journey-timeline__card-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.journey-timeline__side-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    writing-mode: vertical-lr;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    opacity: 0.7;
}

.journey-timeline__side-label--left {
    text-orientation: mixed;
    transform: rotate(180deg);
}

.journey-timeline__side-label--right {
    text-orientation: mixed;
}

.journey-timeline__branch-head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.journey-timeline__branch-head .journey-timeline__marker {
    position: relative;
    right: auto;
    left: auto;
    flex-shrink: 0;
    transition: box-shadow 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

.journey-timeline__branch-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

/* Timeline mobile */
@media (max-width: 768px) {
    .journey-timeline__line {
        left: 1.375rem;
    }

    .journey-timeline__item {
        width: 100%;
        padding-left: 3.75rem;
        padding-right: 0;
    }

    .journey-timeline__item--left {
        text-align: left;
        justify-content: flex-start;
    }

    .journey-timeline__item--right {
        margin-left: 0;
    }

    .journey-timeline__item--left .journey-timeline__marker,
    .journey-timeline__item--right .journey-timeline__marker {
        left: 0;
        right: auto;
    }

    .journey-timeline__split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Legacy process step classes (used by service pages) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .process-steps { grid-template-columns: 1fr; }
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step__number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 0.75rem;
}

/* Service page approach - compact 4-column layout */
.service-approach .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .service-approach .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .service-approach .process-steps { grid-template-columns: 1fr; }
}

.service-approach .process-step {
    text-align: left;
    padding: 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: border-color 0.3s var(--ease);
}

.service-approach .process-step:hover {
    border-color: var(--primary);
}

.service-approach .process-step__number {
    font-size: 1.5rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.service-approach .process-step h3 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.service-approach .process-step p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
    padding: 2rem;
}

.testimonial-card__quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-card__author {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================================
   Pricing Calculator
   ============================================================ */
.pricing-calc {
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.pricing-calc__form {
    padding: 2.5rem;
}

.pricing-calc__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .pricing-calc__grid { grid-template-columns: 1fr; }
}

.pricing-calc__category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricing-calc__cat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-light);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.pricing-calc__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-calc__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-calc__billing {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
}

.pricing-calc__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pricing-calc__radio {
    cursor: pointer;
    flex: 1;
    min-width: 7rem;
}

.pricing-calc__radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-calc__radio-box {
    display: block;
    padding: 0.625rem 0.875rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.3s var(--ease);
}

.pricing-calc__radio-box strong {
    display: block;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    margin-top: 0.125rem;
}

.pricing-calc__radio input:checked + .pricing-calc__radio-box {
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.12);
    color: var(--text);
    box-shadow: 0 0 20px rgba(108, 60, 225, 0.15);
}

.pricing-calc__radio input:checked + .pricing-calc__radio-box strong {
    color: var(--accent);
}

.pricing-calc__radio:hover .pricing-calc__radio-box {
    border-color: rgba(108, 60, 225, 0.4);
}

.pricing-calc__total-bar {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pricing-calc__total-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pricing-calc__summary {
    flex: 1;
    min-width: 200px;
}

.calc-summary__item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(30, 30, 63, 0.5);
}

.pricing-calc__total-nums {
    text-align: right;
}

.pricing-calc__total-monthly,
.pricing-calc__total-onceoff {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pricing-calc__total-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.25rem;
}

.pricing-calc__total-amount span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-calc__cta-btn {
    flex-shrink: 0;
}

.pricing-calc__disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .pricing-calc__form { padding: 1.5rem; }
    .pricing-calc__total-inner { flex-direction: column; text-align: center; }
    .pricing-calc__total-nums { text-align: center; }
    .pricing-calc__summary { min-width: 100%; }
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    background: var(--bg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section__inner {
    max-width: 44rem;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin: 0 auto 2rem;
}

/* CTA Tabs */
.cta-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.cta-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.cta-tab:hover {
    border-color: var(--primary);
    color: var(--text);
}

.cta-tab--active {
    background: rgba(108, 60, 225, 0.15);
    border-color: var(--primary);
    color: var(--text);
}

/* CTA Panels */
.cta-panel {
    display: none;
}

.cta-panel--active {
    display: block;
}

.cta-panel__content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2.5rem;
    text-align: center;
}

.cta-panel__content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta-panel__content p {
    margin: 0 auto 1.5rem;
    max-width: 30rem;
}

.cta-phone-btn {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

/* CTA Form */
.cta-form {
    text-align: left;
    max-width: 100%;
}

.cta-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .cta-form__row { grid-template-columns: 1fr; }
    .cta-tabs { flex-direction: column; align-items: center; }
}

.cta-form .form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237C7C9A' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.cta-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.cta-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.cta-form textarea {
    resize: vertical;
    min-height: 5rem;
}

/* Wide panel for enquiry form */
.cta-panel__content--wide {
    max-width: 48rem;
    margin: 0 auto;
    text-align: left;
}

.cta-panel__content--wide h3,
.cta-panel__content--wide > p {
    text-align: center;
}

/* Calculator Summary Banner */
.enquiry-calc-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(108, 60, 225, 0.1);
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.enquiry-calc-summary__icon {
    flex-shrink: 0;
    color: var(--accent);
}

.enquiry-calc-summary__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.enquiry-calc-summary__text strong {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enquiry-calc-summary__text span {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.enquiry-calc-summary__edit {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.enquiry-calc-summary__edit:hover {
    border-color: var(--primary);
    color: var(--text);
}

/* Booking Service Banner - shown when arriving from service page plan card */
.booking-service-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 229, 160, 0.08);
    border: 1px solid rgba(0, 229, 160, 0.3);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.booking-service-banner svg {
    flex-shrink: 0;
}

.booking-service-banner span {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

/* Service Selector - Multi-choice chips with tier dropdowns */
.service-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-selector .service-select-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: all 0.25s var(--ease);
    margin-bottom: 0;
}

.service-selector .service-select-row.service-select-row--active {
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.08);
}

.service-selector .service-chip {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.service-selector .service-chip input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    min-height: 1.125rem;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    position: static;
    opacity: 1;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

.service-selector .service-chip .service-chip__label {
    font-size: 0.9375rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline;
}

.service-selector select.service-tier-select {
    padding: 0.4375rem 2rem 0.4375rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%237C7C9A' d='M1.5 3.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    transition: all 0.2s;
    flex: 0 0 auto;
    width: auto;
    min-width: 9rem;
    max-width: 12rem;
}

.service-selector select.service-tier-select:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.service-selector select.service-tier-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Compact service selector for booking form (no tier dropdowns, just chips) */
.service-selector--compact {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.5rem;
}

.service-selector--compact .service-chip {
    flex: unset;
    padding: 0.5rem 0.875rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 2rem;
    transition: all 0.2s;
}

.service-selector--compact .service-chip:has(input:checked) {
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.12);
}

.service-selector--compact .service-chip__label {
    font-size: 0.8125rem;
}

/* Enquiry success state */
.enquiry-success {
    text-align: center;
    padding: 2rem 0;
}

.enquiry-success h4 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    color: var(--accent);
}

.enquiry-success p {
    color: var(--text-muted);
    max-width: 24rem;
    margin: 0 auto;
}

/* Responsive adjustments for service selector */
@media (max-width: 640px) {
    .service-select-row {
        flex-wrap: wrap;
    }

    .service-tier-select {
        width: 100%;
        min-width: unset;
    }

    .enquiry-calc-summary {
        flex-wrap: wrap;
    }

    .enquiry-calc-summary__edit {
        width: 100%;
        justify-content: center;
    }

    .service-selector--compact .service-chip {
        flex: 0 0 auto;
    }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.footer-col h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ============================================================
   Blog / Archive
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
    overflow: hidden;
}

.blog-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__body {
    padding: 1.5rem;
}

.blog-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.blog-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    text-decoration: none;
}

.blog-card__category:hover {
    color: var(--accent);
}

.blog-card__categories .blog-card__category:not(:last-child)::after {
    content: '·';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.blog-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card__title a {
    color: var(--text);
}

.blog-card__title a:hover {
    color: var(--primary-light);
}

.blog-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Single Post */
.single-post__header {
    max-width: 48rem;
    margin: 0 auto 3rem;
    text-align: center;
    padding-top: 8rem;
}

.single-post__content {
    max-width: 48rem;
    margin: 0 auto;
}

.single-post__content p {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.single-post__content h2 {
    margin: 3rem 0 1rem;
    font-size: 1.75rem;
}

.single-post__content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.375rem;
}

.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.single-post__content ul,
.single-post__content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.single-post__content li {
    margin-bottom: 0.5rem;
}

/* Blog Post Tables */
.single-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border: 1px solid rgba(108, 60, 225, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}

.single-post__content thead {
    background: rgba(108, 60, 225, 0.15);
}

.single-post__content th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary, #e0e0f0);
    border-bottom: 2px solid rgba(108, 60, 225, 0.3);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.single-post__content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #8888aa);
}

.single-post__content tbody tr:nth-child(even) {
    background: rgba(108, 60, 225, 0.05);
}

.single-post__content tbody tr:hover {
    background: rgba(108, 60, 225, 0.1);
}

@media (max-width: 640px) {
    .single-post__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .single-post__content th,
    .single-post__content td {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* ============================================================
   Landing Page Template
   ============================================================ */
.landing-page {
    min-height: 100vh;
}

.landing-page .site-header,
.landing-page .site-footer {
    display: none;
}

.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.landing-hero__inner {
    max-width: 36rem;
}

.landing-form {
    margin-top: 2rem;
}

.landing-form input,
.landing-form textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s;
}

.landing-form input:focus,
.landing-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================================
   404 Page
   ============================================================ */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-404__code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ============================================================
   Page Header (for inner pages)
   ============================================================ */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--bg);
}

.page-header p {
    margin: 1rem auto 0;
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
    max-width: 36rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
