:root {
    /* Color Palette - Brand Guide */
    /* Core */
    --color-base: #1A1B1F;
    /* Carbon */
    --color-accent: #D4FF00;
    /* Volt */
    --color-neutral: #F0F2F5;
    /* Vapor/Concrete */
    --color-secondary: #3D3E42;
    /* Smoke */

    /* Secondary Accents - Brights */
    --color-blue: #0057FF;
    /* Electric Blue */
    --color-coral: #FF4F00;
    /* Neon Coral */
    --color-violet: #8A2BE2;
    /* Electric Violet */

    /* Text */
    --color-text: #F0F2F5;
    --color-text-muted: #FFFFFF;
    --color-darker: #131417;

    /* Typography - Inter (Neo-grotesque) */
    --font-main: 'Inter', sans-serif;
    /* Modular Scale (Base 16px, Ratio 1.25 approx) */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-md: 1.25rem;
    /* 20px */
    --font-size-lg: 1.75rem;
    /* 28px */
    --font-size-xl: 2.25rem;
    /* 36px */
    --font-size-2xl: 3rem;
    /* 48px */
    --font-size-3xl: 4rem;
    /* 64px */

    /* Beat Grid Spacing (Base 8px/4px) */
    --beat-1: 0.25rem;
    /* 4px */
    --beat-2: 0.5rem;
    /* 8px */
    --beat-3: 0.75rem;
    /* 12px */
    --beat-4: 1rem;
    /* 16px */
    --beat-6: 1.5rem;
    /* 24px */
    --beat-8: 2rem;
    /* 32px */
    --beat-12: 3rem;
    /* 48px */
    --beat-16: 4rem;
    /* 64px */
    --beat-24: 6rem;
    /* 96px */
    --beat-32: 8rem;
    /* 128px */

    /* Layout */
    --container-width: 1200px;
    --border-radius: 4px;

    /* Spacing Aliases (Beat Grid) */
    --spacing-sm: var(--beat-4);
    /* 16px */
    --spacing-md: var(--beat-8);
    /* 32px */
    --spacing-lg: var(--beat-16);
    /* 64px */
    --spacing-xl: var(--beat-24);
    /* 96px */
}

/* Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0.6;
}

/* Lenis Recommended CSS */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-base);
    color: var(--color-text);
    line-height: 1.5;
    font-size: var(--font-size-base);
}

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

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

ul {
    list-style: none;
}

/* WordPress Core Alignments */
.alignleft {
    float: left;
    margin-right: var(--beat-4);
    margin-bottom: var(--beat-4);
}

.alignright {
    float: right;
    margin-left: var(--beat-4);
    margin-bottom: var(--beat-4);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1400px;
}

.alignfull {
    max-width: 100%;
}

/* WordPress Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--beat-8);
}

/* Scroll Reveal States */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Typewriter cursor with blink animation */
.typewriter-cursor {
    color: var(--color-accent);
    opacity: 1;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    text-shadow: 0 0 10px rgba(212, 255, 0, 0.5);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

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

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

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

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

.text-large {
    font-size: var(--font-size-md);
    line-height: 1.6;
}

/* Buttons with "Tick" hover effect */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--beat-3) var(--beat-8);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Musical ease */
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn--primary:hover {
    background-color: #b8e600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 255, 0, 0.2);
}


/* Force black text on active contact button */
#menu-item-93 > a,
#menu-item-93 > a:hover,
#menu-item-93 > a:focus {
    color: #000000;
}

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

.btn--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn--sm {
    align-self: flex-start;
    padding: var(--beat-2) var(--beat-4);
    font-size: 0.75rem;
}

/* Header */
.header {
    padding: var(--beat-4) 0;
    position: sticky;
    top: 0;
    background-color: rgba(26, 27, 31, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-secondary);
}

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

/* Logo System */
.logo {
    display: flex;
    align-items: center;
    gap: var(--beat-2);
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.logo__symbol {
    display: flex;
    gap: 2px;
    height: 22px;
    align-items: flex-end;
}

.logo__bar {
    width: 3px;
    background-color: var(--color-text);
    border-radius: 1px;
    transition: height 0.2s ease-out;
    /* Animate bars */
}

.logo__bar:nth-child(1) {
    height: 60%;
}

.logo__bar:nth-child(2) {
    height: 100%;
}

.logo__bar:nth-child(3) {
    height: 40%;
}

.logo__bar:nth-child(4) {
    height: 80%;
}

.logo:hover .logo__bar {
    background-color: var(--color-accent);
}

.logo:hover .logo__bar:nth-child(1) {
    height: 80%;
}

.logo:hover .logo__bar:nth-child(2) {
    height: 40%;
}

.logo:hover .logo__bar:nth-child(3) {
    height: 100%;
}

.logo:hover .logo__bar:nth-child(4) {
    height: 60%;
}

/* Navigation */
.nav__list {
    display: flex;
    gap: var(--beat-8);
    align-items: center;
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.nav__link:hover {
    color: var(--color-accent);
}


/* WordPress Menu Classes */
.menu-item {
    display: inline-block;
}

.current-menu-item .nav__link,
.current_page_item .nav__link {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    padding: var(--beat-24) 0;
    /* Huge spacing */
    text-align: left;
}

.hero__container {
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6rem);
    /* Responsive typography */
    line-height: 1.1;
    margin-bottom: var(--beat-8);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: var(--font-size-md);
    color: #FFFFFF;
    max-width: 600px;
    margin-bottom: var(--beat-12);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: var(--beat-4);
    flex-wrap: wrap;
}

/* Sections General */
.section {
    padding: var(--beat-24) 0;
    position: relative;
}

/* Bar Motif Divider */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--beat-8);
    /* Indented line */
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, transparent 100%);
    opacity: 0.5;
}

.section--darker {
    background-color: var(--color-darker);
}

.section-header {
    margin-bottom: var(--beat-16);
    max-width: 800px;
}

.section-label {
    display: block;
    font-family: var(--font-main);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--beat-4);
}

.section-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--beat-4);
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: #FFFFFF;
    font-size: var(--font-size-md);
}

/* About Section */
.about__content {
    display: grid;
    gap: var(--beat-8);
    font-size: var(--font-size-md);
    max-width: 800px;
    border-left: 1px solid var(--color-secondary);
    padding-left: var(--beat-8);
}

/* Services Section */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--beat-8);
    margin-bottom: var(--beat-8);
}

.service-card {
    background-color: var(--color-base);
    padding: var(--beat-8);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* For the glow */
}

/* Smart Glow Effect */
.service-card::before,
.why-us__list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(212, 255, 0, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::before,
.why-us__list li:hover::before {
    opacity: 1;
}

.service-card>* {
    position: relative;
    /* Bring content above glow */
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.service-card__icon {
    margin-bottom: var(--beat-4);
}

.service-card__title {
    font-size: var(--font-size-md);
    margin-bottom: var(--beat-4);
    color: var(--color-text);
}

.service-card__title a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

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

.service-card__excerpt {
    margin-bottom: var(--beat-4);
    color: var(--color-text-muted);
    flex-grow: 1;
}

.service-card__list {
    margin-bottom: var(--beat-4);
    margin-top: var(--beat-4);
}

.service-card__list li {
    margin-bottom: var(--beat-2);
    padding-left: var(--beat-4);
    position: relative;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.service-card__list li::before {
    content: "/";
    color: var(--color-secondary);
    position: absolute;
    left: 0;
    font-weight: 700;
    opacity: 1;
    background: none;
    width: auto;
    height: auto;
    top: auto;
    transition: none;
}

.services__note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: var(--beat-8);
    opacity: 0.6;
}

/* Process Section */
.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--beat-8);
}

.step {
    padding-top: var(--beat-8);
    position: relative;
}

.step__bar {
    width: var(--beat-16);
    height: 4px;
    background-color: var(--color-accent);
    margin-bottom: var(--beat-4);
    border-radius: 2px;
}

.step__bar--long {
    width: var(--beat-32);
}

.step__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--beat-2);
}

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

/* Why Us Section */
.why-us__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--beat-4);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    list-style: none;
}

.why-us__list li {
    font-size: var(--font-size-md);
    padding: var(--beat-8);
    background: var(--color-base);
    border: 1px solid var(--color-secondary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* WordPress Why HiHat Block Wrapper */
.wp-block-hihat-why-hihat {
    margin-bottom: var(--beat-16);
}

/* Case Studies / Outcomes */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--beat-8);
    text-align: left;
    /* Aligned left for modern feel */
}

.metric__value {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--beat-2);
    line-height: 1;
}

.metric__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ */
.wp-block-hihat-faq-item {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    margin-bottom: 0;
}

.faq__list {
    max-width: 800px;
}

.faq__item {
    border-bottom: 1px solid var(--color-secondary);
    padding: var(--beat-4) 0;
}

.faq__question {
    font-size: var(--font-size-md);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--beat-2) 0;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

details[open] .faq__question::after {
    content: '−';
    /* Minus sign */
    color: var(--color-accent);
}

.faq__answer {
    margin-top: var(--beat-2);
    color: var(--color-text-muted);
    line-height: 1.6;
    padding-bottom: var(--beat-4);
    max-width: 90%;
}

/* Insights Section */
.insights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--beat-8);
}

.insight-card {
    background-color: var(--color-base);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.insight-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.insight-card__image {
    height: 200px;
    width: 100%;
    background-color: var(--color-darker);
    position: relative;
    overflow: hidden;
}

.insight-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insight-card:hover .insight-card__image img {
    transform: scale(1.05);
}

.insight-card__image a {
    display: block;
    height: 100%;
}

/* Abstract Pattern Placeholder */
.pattern-box {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px);
    position: relative;
}

.pattern-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--p-color, var(--color-accent)) 0%, transparent 60%);
    opacity: 0.15;
    transition: opacity 0.3s;
}

.insight-card:hover .pattern-box::after {
    opacity: 0.3;
}

.insight-card__content {
    padding: var(--beat-8);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-card__date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--beat-2);
}

.insight-card__title {
    font-size: var(--font-size-md);
    margin-bottom: var(--beat-3);
    line-height: 1.3;
    font-weight: 700;
}

.insight-card__title a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

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

.insight-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--beat-6);
    flex-grow: 1;
}

/* Contact Section */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--beat-16);
}

.contact__content p {
    margin-bottom: var(--beat-4);
}

.form-group {
    margin-bottom: var(--beat-4);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--beat-3);
    background-color: var(--color-darker);
    border: 1px solid var(--color-secondary);
    color: var(--color-text);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-base);
}

/* Contact Form 7 Styling */
.wpcf7 {
    width: 100%;
}

.wpcf7-form p {
    margin-bottom: var(--beat-4);
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: var(--beat-3);
    background-color: var(--color-darker);
    border: 1px solid var(--color-secondary);
    color: var(--color-text);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-base);
}

.wpcf7-form input[type="submit"],
.wpcf7-submit {
    background-color: var(--color-accent);
    color: var(--color-base);
    padding: var(--beat-3) var(--beat-8);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: #b8e600;
    transform: translateY(-2px);
}

/* CF7 Response Messages */
.wpcf7-response-output {
    margin: var(--beat-4) 0 0;
    padding: var(--beat-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
}

.wpcf7-mail-sent-ok {
    background-color: rgba(212, 255, 0, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: rgba(255, 79, 0, 0.1);
    border: 1px solid var(--color-coral);
    color: var(--color-coral);
}

.wpcf7-not-valid-tip {
    color: var(--color-coral);
    font-size: var(--font-size-xs);
    margin-top: var(--beat-1);
}

/* Remove CF7 spinner */
.wpcf7-spinner {
    display: none;
}

/* Footer */
.footer {
    padding: var(--beat-8) 0;
    border-top: 1px solid var(--color-secondary);
    color: var(--color-text-muted);
    text-align: center;
    font-size: var(--font-size-sm);
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: var(--beat-4);
    margin-top: var(--beat-4);
    list-style: none;
}

.footer-menu a:hover {
    color: var(--color-accent);
}

/* ==========================================
   WORDPRESS SPECIFIC STYLES
   ========================================== */

/* Case Studies Grid */
.case-studies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--beat-8);
}

/* Case Study Card */
.case-study-card {
    background-color: var(--color-base);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-study-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.case-study-card__image {
    height: 240px;
    overflow: hidden;
    background-color: var(--color-darker);
}

.case-study-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-card__image img {
    transform: scale(1.05);
}

.case-study-card__image a {
    display: block;
    height: 100%;
}

.case-study-card__content {
    padding: var(--beat-8);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-study-card__industry {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--beat-2);
    display: inline-block;
}

.case-study-card__title {
    font-size: var(--font-size-md);
    margin-bottom: var(--beat-4);
    line-height: 1.3;
}

.case-study-card__title a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.case-study-card__title a:hover {
    color: var(--color-accent);
}

.case-study-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--beat-4);
    flex-grow: 1;
    line-height: 1.6;
}

.case-study-card__metric {
    margin: var(--beat-4) 0;
    padding: var(--beat-4);
    background-color: var(--color-darker);
    border-radius: var(--border-radius);
    text-align: center;
}

.case-study-card__metric .metric__value {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--beat-2);
    line-height: 1;
}

.case-study-card__metric .metric__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Single Case Study */
.case-study-hero {
    padding: var(--beat-16) 0;
}

.case-study-featured-image {
    margin: var(--beat-8) 0;
}

.case-study-featured-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--beat-8);
    padding: var(--beat-8);
    background-color: var(--color-darker);
    border-radius: var(--border-radius);
}

.overview-item__label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--beat-2);
    font-weight: 600;
}

.overview-item__value {
    font-size: var(--font-size-md);
    color: var(--color-text);
    font-weight: 500;
}

.overview-item__value a {
    color: var(--color-accent);
    text-decoration: underline;
}

.case-study-section {
    padding: var(--beat-16) 0;
}

.case-study-content {
    max-width: 800px;
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.case-study-content p {
    margin-bottom: var(--beat-4);
}

.case-study-content h2 {
    margin-top: var(--beat-12);
    margin-bottom: var(--beat-4);
    font-size: var(--font-size-lg);
}

.case-study-content h3 {
    margin-top: var(--beat-8);
    margin-bottom: var(--beat-3);
    font-size: var(--font-size-md);
}

.case-study-content ul,
.case-study-content ol {
    margin-bottom: var(--beat-4);
    padding-left: var(--beat-8);
    list-style: disc;
}

.case-study-content ul li,
.case-study-content ol li {
    margin-bottom: var(--beat-2);
    color: var(--color-text-muted);
}

.case-study-results {
    background-color: var(--color-darker);
}

.related-case-studies {
    padding: var(--beat-16) 0;
    background-color: var(--color-base);
}

/* Single Post/Page Styles */
.single-post,
.single-service,
.page {
    padding-bottom: var(--beat-16);
}

.single-post__header,
.service-hero,
.page-header {
    margin-bottom: var(--beat-12);
    text-align: left;
}

/* Post Meta (Category, Author, Date) */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--beat-2);
    margin-top: var(--beat-4);     /* NEW - space from title */
    margin-bottom: var(--beat-6);
}

.post-meta__separator {
    color: var(--color-secondary);
    opacity: 0.5;
}

.post-category {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-author__link {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-author__link:hover {
    color: var(--color-accent);
}

.post-date__label {
    font-weight: 600;
    color: var(--color-text);
}

.post-excerpt {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    margin-top: var(--beat-4);
    line-height: 1.6;
    max-width: 700px;
}

.page-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--beat-4);
    margin-top: var(--beat-6);
}

.single-post__image,
.service-featured-image,
.page-featured-image {
    margin: var(--beat-8) 0;
}

.single-post__image img,
.service-featured-image img,
.page-featured-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.single-post__content,
.service-content__main,
.page-content {
    max-width: 800px;
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.single-post__content p,
.service-content__main p,
.page-content p {
    margin-bottom: var(--beat-4);
}

.single-post__content h2,
.service-content__main h2,
.page-content h2 {
    margin-top: var(--beat-12);
    margin-bottom: var(--beat-4);
    font-size: var(--font-size-lg);
}

.single-post__content h3,
.service-content__main h3,
.page-content h3 {
    margin-top: var(--beat-8);
    margin-bottom: var(--beat-3);
    font-size: var(--font-size-md);
}

.single-post__content ul,
.single-post__content ol,
.service-content__main ul,
.service-content__main ol,
.page-content ul,
.page-content ol {
    margin-bottom: var(--beat-4);
    padding-left: var(--beat-8);
    list-style: disc;
}

.single-post__content li,
.service-content__main li,
.page-content li {
    margin-bottom: var(--beat-2);
}

.single-post__content a,
.service-content__main a,
.page-content a,
.case-study-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.single-post__content a:hover,
.service-content__main a:hover,
.page-content a:hover,
.case-study-content a:hover {
    color: #b8e600;
}

/* Post Footer & Tags */
.single-post__footer {
    margin-top: var(--beat-16);
    padding-top: var(--beat-8);
    border-top: 1px solid var(--color-secondary);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--beat-2);
    align-items: center;
    margin-bottom: var(--beat-8);
}

.post-tags__label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}

.post-tag {
    padding: var(--beat-1) var(--beat-3);
    background: var(--color-secondary);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.post-tag:hover {
    background: var(--color-accent);
    color: var(--color-base);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--beat-8);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--beat-2);
}

.nav-title {
    color: var(--color-text);
    font-weight: 600;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--color-accent);
}

/* Service Features */
.service-features {
    padding: var(--beat-8);
    background-color: var(--color-darker);
    border-radius: var(--border-radius);
    margin: var(--beat-8) 0;
}

.service-cta {
    text-align: center;
    padding: var(--beat-16) 0;
}

.service-cta p {
    margin-bottom: var(--beat-8);
    font-size: var(--font-size-md);
}

/* Pagination */
.pagination,
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--beat-2);
    margin-top: var(--beat-16);
    flex-wrap: wrap;
}

.page-numbers {
    padding: var(--beat-2) var(--beat-4);
    background-color: var(--color-darker);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    color: var(--color-text);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--color-accent);
    color: var(--color-base);
    border-color: var(--color-accent);
}

.page-numbers.dots {
    border: none;
    background: transparent;
}

/* Success Message */
.success-message {
    padding: var(--beat-4);
    background-color: rgba(212, 255, 0, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    color: var(--color-accent);
    margin-top: var(--beat-4);
}

/* WordPress Core Block Styles */
.wp-block-image {
    margin: var(--beat-8) 0;
}

.wp-block-image img {
    border-radius: var(--border-radius);
}

.wp-block-quote {
    border-left: 4px solid var(--color-accent);
    padding-left: var(--beat-4);
    margin: var(--beat-8) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.wp-block-code {
    background-color: var(--color-darker);
    padding: var(--beat-4);
    border-radius: var(--border-radius);
    overflow-x: auto;
}

.wp-block-button__link {
    background-color: var(--color-accent);
    color: var(--color-base);
    padding: var(--beat-3) var(--beat-8);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.wp-block-button__link:hover {
    background-color: #b8e600;
    transform: translateY(-2px);
}

/* WordPress Gallery */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--beat-4);
    list-style: none;
    padding: 0;
}

/* WordPress Gutenberg Block Wrappers */
.wp-block-hihat-section-header {
    padding-top: var(--beat-24);
    padding-left: var(--beat-8);
    padding-right: var(--beat-8);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

/* Content paragraphs and blocks need container padding */
main > p,
main > .wp-block-paragraph,
main > .wp-block-columns,
.entry-content > p,
.entry-content > .wp-block-paragraph,
.entry-content > .wp-block-columns,
.wp-block-columns {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    margin-bottom: 32px;
}

.wp-block-hihat-service-card,
.wp-block-hihat-metric-card,
.wp-block-hihat-process-step,
.wp-block-hihat-faq-item {
    margin-bottom: var(--beat-8);
}

/* Ensure blocks have proper spacing in editor and frontend */
.editor-styles-wrapper .wp-block[data-type^="hihat/"],
.wp-block[data-type^="hihat/"] {
    margin-top: var(--beat-8);
    margin-bottom: var(--beat-8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .nav__list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__container {
        min-height: auto;
        padding-top: var(--beat-8);
    }

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

    .about__content {
        border-left: none;
        padding-left: 0;
    }

    .case-studies__grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-card__image {
        height: 200px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .single-post__content,
    .service-content__main,
    .page-content,
    .case-study-content {
        font-size: var(--font-size-base);
    }
    
    /* Post Meta Responsive */
    .post-meta {
        font-size: var(--font-size-xs);
        gap: var(--beat-1);
    }
    
    .post-excerpt {
        font-size: var(--font-size-base);
    }

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

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

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

/* ============================================
   MOBILE MENU SYSTEM - CONSOLIDATED
   Replace lines 1701-1972 in main.css with this
   ============================================ */

/* Mobile Header Actions (hamburger + contact button) */
.header__mobile-actions {
    display: none;
    gap: var(--beat-4);
    align-items: center;
}

.btn--mobile {
    display: none;
    align-items: center;
    gap: var(--beat-2);
    padding: var(--beat-2) var(--beat-4);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.btn--mobile svg {
    flex-shrink: 0;
}

/* Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    border-color: var(--color-accent);
    background: rgba(212, 255, 0, 0.05);
}

.hamburger__line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Animation - Active State */
.hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-accent);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-accent);
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    /* Show mobile elements */
    .header__mobile-actions {
        display: flex;
    }
    
    /* Update header container for mobile */
    .header__container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    
    .logo {
        width: auto;
        justify-content: flex-start;
    }
    
     .header__container > .logo {
        display: flex !important;
        opacity: 1 !important;
        z-index: 1002 !important;
    }
    
    
    /* Hide desktop nav by default, show when active */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--color-base);
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex;
        flex-direction: column; /* Stack vertically */
        align-items: center;
        justify-content: flex-start; /* Align to top, not center! */
        padding-top: var(--beat-16); /* Push content down from top */
    }
    
    .nav.is-active {
        height: 100vh;
        border-bottom: 1px solid var(--color-secondary);
    }
    
    /* ==========================================
       MOBILE MENU LOGO - AT TOP
       ========================================== */
    
    .nav__mobile-logo {
        display: none; /* Hidden by default */
        justify-content: center;
        width: 100%;
        max-width: 400px;
        padding-bottom: var(--beat-8);
        margin-bottom: var(--beat-6);
        border-bottom: 1px solid rgba(61, 62, 66, 0.3);
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
    }
    
    /* Show logo when menu is active */
    .nav.is-active .nav__mobile-logo {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Mobile Menu Logo Styling */
    .nav__mobile-logo .logo {
        font-size: var(--font-size-md);
        gap: var(--beat-2);
    }
    
    .nav__mobile-logo .logo__symbol {
        height: 18px;
    }
    
    .nav__mobile-logo .logo__bar {
        width: 2.5px;
    }
    
    /* Subtle hover effect */
    .nav__mobile-logo .logo:hover .logo__bar {
        background-color: var(--color-accent);
    }
    
    /* ==========================================
       NAVIGATION LIST - BELOW LOGO
       ========================================== */
    
    /* Navigation List - Mobile Dropdown Style */
    .nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 400px;
        padding: 0 var(--beat-8);
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
    }
    
    .nav.is-active .nav__list {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Menu Items */
    .nav__list .menu-item {
        width: 100%;
        border-bottom: 1px solid rgba(61, 62, 66, 0.5);
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInLeft 0.4s ease forwards;
    }
    
    .nav.is-active .nav__list .menu-item:nth-child(1) {
        animation-delay: 0.25s;
    }
    
    .nav.is-active .nav__list .menu-item:nth-child(2) {
        animation-delay: 0.3s;
    }
    
    .nav.is-active .nav__list .menu-item:nth-child(3) {
        animation-delay: 0.35s;
    }
    
    .nav.is-active .nav__list .menu-item:nth-child(4) {
        animation-delay: 0.4s;
    }
    
    .nav.is-active .nav__list .menu-item:nth-child(5) {
        animation-delay: 0.45s;
    }
    
    .nav__list .menu-item:last-child {
        border-bottom: none;
    }
    
    .nav__list .nav__link {
        display: block;
        padding: var(--beat-6) var(--beat-4);
        font-size: var(--font-size-md);
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .nav__list .nav__link:hover,
    .nav__list .current-menu-item .nav__link,
    .nav__list .current_page_item .nav__link {
        color: var(--color-accent);
        padding-left: var(--beat-6);
    }
    
    /* CTA Button in Menu */
    .nav__list .btn {
        margin-top: var(--beat-4);
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: var(--font-size-md);
        padding: var(--beat-4) var(--beat-6);
    }
    
    .nav__list .btn:hover {
        padding-left: var(--beat-6);
    }
    
    /* ==========================================
       MOBILE DROPDOWNS
       ========================================== */
    
    /* Mobile Submenu - Hidden by default */
    .nav__list .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: rgba(19, 20, 23, 0.8) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease, padding 0.4s ease !important;
        display: block !important;
    }
    
    /* Show submenu when parent is active */
    .nav__list .menu-item-has-children.is-active > .sub-menu {
        max-height: 800px !important;
        padding: var(--beat-4) 0 !important;
    }
    
    /* Mobile Submenu Items */
    .nav__list .sub-menu .menu-item {
        display: block !important;
        width: 100% !important;
        border-bottom: none !important;
        padding-left: var(--beat-8) !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .nav__list .sub-menu .nav__link {
        display: block !important;
        padding: var(--beat-4) var(--beat-4) !important;
        font-size: var(--font-size-sm) !important;
        color: var(--color-text-muted) !important;
        font-weight: 500 !important;
    }
    
    .nav__list .sub-menu .nav__link:hover,
    .nav__list .sub-menu .current-menu-item .nav__link {
        color: var(--color-accent) !important;
        background: rgba(212, 255, 0, 0.05) !important;
        padding-left: var(--beat-6) !important;
    }
    
    /* Parent item with dropdown */
    .nav__list .menu-item-has-children > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Dropdown arrow on mobile */
    .nav__list .menu-item-has-children > a::after {
        content: '' !important;
        display: inline-block !important;
        width: 0 !important;
        height: 0 !important;
        margin-left: auto !important;
        border-left: 5px solid transparent !important;
        border-right: 5px solid transparent !important;
        border-top: 5px solid var(--color-accent) !important;
        transition: transform 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    /* Rotate arrow when open */
    .nav__list .menu-item-has-children.is-active > a::after {
        transform: rotate(180deg) !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Slide in animation */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav__list {
        gap: var(--beat-4);
        font-size: var(--font-size-sm);
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 769px) {
    .header__mobile-actions {
        display: none;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav__mobile-logo {
        display: none;
    }
}

/* ============================================
   POST OVERVIEW STYLES
   ============================================ */

/* Post Overview */
.post-overview {
    background: var(--color-secondary);
    border-left: 4px solid var(--color-accent);
    padding: var(--beat-6);
    margin-bottom: var(--beat-8);
    border-radius: var(--border-radius);
}

.post-overview__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 var(--beat-4) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-overview__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--beat-3);
}

.post-overview__list li {
    position: relative;
    padding-left: var(--beat-6);
    color: var(--color-text);
    line-height: 1.6;
}

.post-overview__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .post-overview {
        padding: var(--beat-4);
        margin-bottom: var(--beat-6);
    }
    
    .post-overview__title {
        font-size: var(--font-size-base);
    }
}

/* ============================================
   NAVIGATION DROPDOWN MENUS
   Add this to your /assets/css/main.css
   After the existing navigation styles (around line 450)
   ============================================ */

/* Dropdown Container */
.nav__list .menu-item {
    position: relative;
}

/* Submenu (Dropdown) */
.nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-base);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    min-width: 220px;
    padding: var(--beat-2) 0;
    margin-top: var(--beat-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Show dropdown on hover (desktop) */
.nav__list .menu-item:hover > .sub-menu,
.nav__list .menu-item.is-active > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Items */
.nav__list .sub-menu .menu-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(61, 62, 66, 0.3);
}

.nav__list .sub-menu .menu-item:last-child {
    border-bottom: none;
}

.nav__list .sub-menu .nav__link {
    display: block;
    padding: var(--beat-3) var(--beat-4);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav__list .sub-menu .nav__link:hover {
    color: var(--color-accent);
    background: rgba(212, 255, 0, 0.05);
    padding-left: var(--beat-6);
}

/* Parent Menu Item with Dropdown Indicator */
.nav__list .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: var(--beat-2);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.nav__list .menu-item-has-children:hover > a::after,
.nav__list .menu-item-has-children.is-active > a::after {
    transform: rotate(180deg);
}

/* Current/Active Submenu Items */
.nav__list .sub-menu .current-menu-item .nav__link,
.nav__list .sub-menu .current_page_item .nav__link {
    color: var(--color-accent);
    background: rgba(212, 255, 0, 0.05);
}

/* ============================================
   MOBILE DROPDOWN STYLES
   Add this INSIDE the @media (max-width: 768px) section
   Around line 1670
   ============================================ */

@media (max-width: 768px) {
    /* ... existing mobile nav styles ... */
    
    /* Mobile Submenu Styling */
    .nav__list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-width: 100%;
        padding: 0;
        margin: 0;
        background: rgba(19, 20, 23, 0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* Show submenu when parent is active */
    .nav__list .menu-item-has-children.is-active > .sub-menu {
        max-height: 500px;
        padding: var(--beat-2) 0;
    }
    
    /* Mobile Submenu Items */
    .nav__list .sub-menu .menu-item {
        border-bottom: none;
        padding-left: var(--beat-4);
    }
    
    .nav__list .sub-menu .nav__link {
        padding: var(--beat-4) var(--beat-4);
        font-size: var(--font-size-sm);
        color: var(--color-text-muted);
    }
    
    .nav__list .sub-menu .nav__link:hover,
    .nav__list .sub-menu .current-menu-item .nav__link {
        color: var(--color-accent);
        padding-left: var(--beat-6);
        background: rgba(212, 255, 0, 0.05);
    }
    
    /* Mobile Dropdown Arrow */
    .nav__list .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav__list .menu-item-has-children > a::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .nav__list .menu-item-has-children.is-active > a::after {
        transform: rotate(180deg);
    }
    
    /* Stagger animation for submenu items */
    .nav__list .sub-menu .menu-item {
        opacity: 0;
        transform: translateX(-10px);
        animation: none;
    }
    
    .nav__list .menu-item-has-children.is-active .sub-menu .menu-item {
        animation: slideInLeft 0.3s ease forwards;
    }
    
    .nav__list .menu-item-has-children.is-active .sub-menu .menu-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .nav__list .menu-item-has-children.is-active .sub-menu .menu-item:nth-child(2) {
        animation-delay: 0.15s;
    }
    
    .nav__list .menu-item-has-children.is-active .sub-menu .menu-item:nth-child(3) {
        animation-delay: 0.2s;
    }
    
    .nav__list .menu-item-has-children.is-active .sub-menu .menu-item:nth-child(4) {
        animation-delay: 0.25s;
    }
    
    .nav__list .menu-item-has-children.is-active .sub-menu .menu-item:nth-child(5) {
        animation-delay: 0.3s;
    }
}

/* ============================================
   SPLIT HERO LAYOUT - UPDATED WITH FIXES
   Replace the entire "Split Hero Layout" section with this
   ============================================ */

/* Split Hero - Only affects hero section */
.hero--split {
    padding: var(--beat-16) 0; /* CHANGED: Reduced from beat-24 */
    position: relative;
}

.hero--split .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--beat-8);
}

.hero--split .hero__split-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

/* Ensure existing hero content wrapper doesn't break */
.hero--split .hero__content-wrapper {
    max-width: 600px;
}

/* NEW: Smaller hero title on landing page */
.hero--split .hero__title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--beat-6);
}

/* NEW: Appropriately sized subtitle */
.hero--split .hero__subtitle {
    font-size: var(--font-size-base);
    max-width: 500px;
}

/* Reset any conflicting hero container styles for split layout */
.hero--split .hero__container {
    display: block;
}

/* IMPORTANT: Hide featured image if it appears in content */
.hero--split ~ * .wp-post-image,
.hero--split ~ * img.attachment-post-thumbnail {
    display: none !important;
}

/* Featured Image Container */
.hero__featured-image {
    width: 400px;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-secondary);
    background: var(--color-darker);
    flex-shrink: 0;
}

.hero__featured-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero__featured-image:hover .hero__featured-image-img {
    transform: scale(1.05);
}

/* Placeholder for when no featured image is set */
.hero__featured-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-darker) 100%);
}

.placeholder-content {
    text-align: center;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.placeholder-content svg {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.placeholder-content p {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Subtle glow effect on image */
.hero__featured-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(212, 255, 0, 0.1), transparent);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero__featured-image:hover::before {
    opacity: 1;
}

/* Make sure content below hero uses full width */
.hero--split ~ * {
    width: 100%;
    max-width: 100%;
}

/* NEW: Proper alignment for section headers on landing page */
.hero--split ~ .wp-block-hihat-section-header,
.hero--split ~ section .section-header,
.hero--split ~ .section-header {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--beat-8);
    padding-right: var(--beat-8);
    text-align: left;
}

/* NEW: Ensure section labels and titles align properly */
.hero--split ~ * .section-label,
.hero--split ~ * .section-title {
    text-align: left;
}

/* Ensure sections after hero have proper container */
.hero--split ~ section .container,
.hero--split ~ .wp-block-group .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--beat-8);
}

/* NEW: Fix for sections below hero */
.hero--split ~ section {
    padding-left: 0;
    padding-right: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero--split .hero__split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero__featured-image {
        width: 100%;
        max-width: 500px;
        height: 350px;
        margin: 0 auto;
    }
    
    .hero--split .hero__content-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero__featured-image {
        height: 300px;
    }
    
    .hero--split .hero__split-layout {
        gap: 2rem;
    }
    
    .hero--split {
        padding: var(--beat-12) 0; /* CHANGED: Even tighter on mobile */
    }
    
    .hero--split .hero__title {
        font-size: 2rem;
        margin-bottom: var(--beat-4);
    }
}