/*
Theme Name: Justinception WP
Author: Justin Blocker
Version: 0.1
Optimized for crisper UI: 
- Enhanced text rendering with subpixel-antialiasing fallback
- Higher font weights where appropriate for bolder, sharper headings
- Increased letter-spacing subtly on large titles for better readability
- Sharper borders (1px solid with slightly higher opacity where needed)
- Cleaner hover/focus states
- Removed redundancies (duplicate background declarations, repeated hover rules)
- Consolidated !important background overrides
- Reorganized into logical sections
*/

:root {
    --bg: #03040a;
    --bg-05: rgba(3, 4, 10, 0.5);
    --text: rgba(255, 255, 255, 0.94);
    --muted: rgba(255, 255, 255, 0.75);

    --yellow: #F5D547;
    --purple: #A88BFF;
    --blue: #67B8FF;

    --border: #a88bff99; /* slightly higher opacity for crisper borders */
    --card-bg: rgba(103, 184, 255, 0.12);

    --container: 1120px;
    --radius: 20px;
}

/* ====================================
   Base & Typography (Crisp Text Focus)
   ==================================== */

html {
    color-scheme: dark;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;   /* Crisp text on WebKit */
    -moz-osx-font-smoothing: grayscale;    /* Sharp grayscale on Firefox macOS */
    text-rendering: geometricPrecision;    /* Extra crisp rendering */
    font-smooth: always;                   /* Enable font smoothing */
    -webkit-text-stroke: 0.45px transparent; /* Subtle stroke for extra crispness */
    backface-visibility: hidden;           /* Improve rendering crispness */
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.55;
    font-weight: 450; /* Slightly bolder body text for better contrast on dark bg */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    backface-visibility: hidden;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

/* ====================================
   Components
   ==================================== */

.section { padding: 96px 0; }
@media (max-width: 900px) { .section { padding: 72px 0; } }

.section-title {
    font-size: 44px;
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 800;
}
@media (max-width: 900px) { .section-title { font-size: 34px; } }

.section-subtitle {
    color: var(--muted);
    font-size: 18px;
    max-width: 72ch;
    margin: 0;
}

.kicker {
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 12px;
}

.accent-purple { color: var(--purple); }
.accent-yellow { color: var(--yellow); }

.card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 213, 71, 0.5);
    background: rgba(168, 139, 255, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-05) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease-out, visibility 0s linear 0.7s;
    pointer-events: none;
}

.site-header--visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease-out, visibility 0s linear 0s;
    pointer-events: auto;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    min-height: 0;
    -webkit-box-align: center;
    -webkit-box-pack: justify;
}

.logo { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0;
    height: 55px;
}
.logo img { 
    height: 55px; 
    width: auto; 
    max-height: 55px;
    display: block;
}

.nav {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    -webkit-box-align: center;
}

/* Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.menu-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
    position: relative;
    justify-content: center;
}

.menu-toggle__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: absolute;
    left: 0;
}

.menu-toggle__icon span:nth-child(1) {
    top: 0;
}

.menu-toggle__icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle__icon span:nth-child(3) {
    bottom: 0;
}

.menu-toggle--active .menu-toggle__icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle--active .menu-toggle__icon span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%);
}

.menu-toggle--active .menu-toggle__icon span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(245, 213, 71, 0.75);
    outline-offset: 3px;
    border-radius: 8px;
}

.nav .cta {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--purple) 10%, transparent);
    color: var(--yellow);
}

.nav .cta-primary {
    color: #03040a;
    background: var(--yellow);
    border: none;
}

.nav .cta:focus-visible {
    outline: 2px solid rgba(245, 213, 71, 0.75);
    outline-offset: 3px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
}

/* Mobile Menu Styles (767px and below) */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-overlay--active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 225px;
        height: 100vh;
        background: var(--bg);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 18px 24px;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .nav--open {
        right: 0;
    }
    
    .nav .menu {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        order: 2;
    }
    
    .nav .menu li {
        width: 100%;
    }
    
    .nav .menu a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
        text-align: center;
    }
    
    .nav .cta {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 14px 12px;
        box-sizing: border-box;
        order: 1;
    }
}

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

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding: 48px 0 32px;
}

.site-footer__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .site-footer__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Footer Brand (Left) */
.site-footer__brand {
    display: flex;
    flex-direction: column;
}

.site-footer__logo {
    display: inline-block;
    line-height: 0;
}

.site-footer__logo img {
    height: auto;
    width: auto;
    max-width: 200px;
}

/* Footer Columns (Right) */
.site-footer__columns {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .site-footer__columns {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }
}

/* Footer Navigation & Socials (Shared Styles) */
.site-footer__nav,
.site-footer__socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.site-footer__nav-heading,
.site-footer__socials-heading {
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.site-footer__nav-links,
.site-footer__socials-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__nav-links a,
.site-footer__socials-links a {
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-footer__nav-links a:hover,
.site-footer__socials-links a:hover {
    color: var(--yellow);
}

/* Footer Separator */
.site-footer__separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 24px 0;
}

/* Footer Copyright */
.site-footer__copyright {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* ====================================
   Home Hero
   ==================================== */

.hero {
    padding: 120px 0 96px;
    background:
        radial-gradient(900px 400px at 15% 10%, rgba(168,139,255,.22), transparent 60%),
        radial-gradient(900px 400px at 90% 15%, rgba(245,213,71,.16), transparent 60%);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 75ch;
    margin: 0;
}

.client-tiles { margin-top: 22px; }

/* ====================================
   New Hero Section (Mirroring React Component)
   ==================================== */

.hero-new {
    position: relative;
    height: 200vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

@media (min-width: 768px) {
    .hero-new {
        height: 150vh;
    }
}

.hero-new__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-new__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-new__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, transparent, var(--bg));
}

.hero-new__logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    opacity: 0;
    transform: translateY(-22rem);
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-new__logo {
        transform: translateY(calc(-21rem + 69px));
    }
}

.hero-new__logo--visible {
    opacity: 1;
}

.hero-new__logo--scrolled {
    opacity: 0;
    transform: translateY(-30rem);
}

@media (min-width: 768px) {
    .hero-new__logo--scrolled {
        transform: translateY(calc(-30rem + 69px));
    }
}

.hero-new__logo img {
    height: auto;
    width: 100%;
    max-width: 42rem;
    padding: 0 1.25rem;
}

.hero-new__content {
    position: relative;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    max-width: 72rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4rem;
    padding: 0 2.25rem;
    margin-top: 55vh;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .hero-new__content {
        margin-top: 0;
        padding-bottom: 0;
        margin-bottom: -8rem;
    }
}

.hero-new__grid {
    display: grid;
    width: 100%;
    gap: 2.5rem;
    transition: all 0.7s ease-out;
    opacity: 0;
    transform: translateY(2rem);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .hero-new__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }
}

.hero-new__grid--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-new__kicker {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
    margin: 0;
}

.hero-new__title {
    margin: 0.75rem 0 0;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--yellow);
}

@media (min-width: 640px) {
    .hero-new__title {
        font-size: 3rem;
    }
}

.hero-new__description {
    margin: 1rem 0 0;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
}

.hero-new__btn-row {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hero-new__btn-row .btn {
    border-radius: 9999px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.hero-new__btn-row .btn-primary {
    background: var(--yellow);
    color: var(--bg);
    border: none;
}

.hero-new__btn-row .btn-primary:hover {
    background: rgba(245, 213, 71, 0.9);
}

.hero-new__btn-row .btn:not(.btn-primary) {
    border: 1px solid rgba(168, 139, 255, 0.5);
    background: rgba(168, 139, 255, 0.1);
    color: var(--yellow);
}

.hero-new__btn-row .btn:not(.btn-primary):hover {
    background: rgba(168, 139, 255, 0.2);
}

.hero-new__card {
    border-radius: 1rem;
    border: 1px solid rgba(103, 184, 255, 0.3);
    background: rgba(103, 184, 255, 0.1);
    padding: 1.5rem;
}

.hero-new__card-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-new__card-item {
    border-radius: 0.75rem;
    border: 1px solid rgba(168, 139, 255, 0.3);
    background: rgba(168, 139, 255, 0.1);
    padding: 1rem;
}

.hero-new__card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
    margin: 0;
}

.hero-new__card-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-new__card-text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* ====================================
   About Section (Mirroring React Component)
   ==================================== */

.about-new {
    padding: 8rem 0;
}

@media (min-width: 640px) {
    .about-new {
        padding: 10rem 0;
    }
}

.about-new .container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2.25rem;
}

.about-new__image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    height: 14rem;
    width: 100%;
    overflow: hidden;
}

.about-new__image-container {
    position: absolute;
    width: 100%;
}

.about-new__image {
    height: 14rem;
    width: 14rem;
    object-fit: contain;
}

.about-new__kicker {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
    margin: 0;
}

.about-new__grid {
    margin-top: 0.5rem;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .about-new__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.about-new__main {
    grid-column: span 2;
}

@media (max-width: 1023px) {
    .about-new__main {
        grid-column: span 1;
    }
}

.about-new__title {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--yellow);
    margin: 0;
}

@media (min-width: 640px) {
    .about-new__title {
        font-size: 2.25rem;
    }
}

.about-new__description {
    margin: 2rem 0 0;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
}

.about-new__btn {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: var(--yellow);
    color: var(--bg);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.about-new__btn:hover {
    background: rgba(245, 213, 71, 0.9);
}

.about-new__btn-icon {
    height: 1rem;
    width: 1rem;
}

.about-new__card {
    width: fit-content;
    border-radius: 1rem;
    border: 1px solid rgba(168, 139, 255, 0.3);
    background: rgba(168, 139, 255, 0.1);
    padding: 1.5rem;
}

@media (max-width: 1023px) {
    .about-new__card {
        width: 100%;
    }
}

.about-new__card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
    margin: 0;
}

.about-new__card-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ====================================
   Services Preview Section (Mirroring React Component)
   ==================================== */

.services-preview-new {
    padding: 8rem 0;
}

@media (min-width: 640px) {
    .services-preview-new {
        padding: 10rem 0;
    }
}

.services-preview-new .container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2.25rem;
}

.services-preview-new__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
    margin: 0;
}

.services-preview-new__title {
    margin: 0.5rem 0 0;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--yellow);
}

@media (min-width: 640px) {
    .services-preview-new__title {
        font-size: 2.25rem;
    }
}

.services-preview-new__header {
    margin-top: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.services-preview-new__description {
    max-width: 65ch;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.services-preview-new__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(168, 139, 255, 0.5);
    background: rgba(168, 139, 255, 0.1);
    color: var(--yellow);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.services-preview-new__link:hover {
    background: rgba(168, 139, 255, 0.2);
}

.services-preview-new__link--desktop {
    display: none;
}

@media (min-width: 640px) {
    .services-preview-new__link--desktop {
        display: inline-flex;
    }
}

.services-preview-new__link-mobile {
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .services-preview-new__link-mobile {
        display: none;
    }
}

.services-preview-new__grid {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .services-preview-new__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .services-preview-new__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.services-preview-new__card {
    border-radius: 1rem;
    border: 1px solid rgba(103, 184, 255, 0.3);
    background: rgba(103, 184, 255, 0.1);
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.services-preview-new__video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg);
    border: 4px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.services-preview-new__video-wrapper:hover {
    border-color: var(--yellow);
}

.services-preview-new__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.services-preview-new__card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--yellow);
    margin: 0;
}

.services-preview-new__card-description {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* ====================================
   Gallery Section (Mirroring React Component)
   ==================================== */

.gallery-new {
    padding: 8rem 0;
}

@media (min-width: 640px) {
    .gallery-new {
        padding: 10rem 0;
    }
}

.gallery-new .container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2.25rem;
}

.gallery-new__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
    margin: 0;
}

.gallery-new__title {
    margin: 0.5rem 0 0;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--yellow);
}

@media (min-width: 640px) {
    .gallery-new__title {
        font-size: 2.25rem;
    }
}

.gallery-new__grid {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
}

.gallery-new__card-link {
    outline: none;
    text-decoration: none;
    color: inherit;
}

.gallery-new__card-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.gallery-new__card {
    width: 290px;
    border-radius: 1rem;
    border: 1px solid rgba(103, 184, 255, 0.3);
    background: rgba(103, 184, 255, 0.1);
    padding: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .gallery-new__card {
        width: 345px;
    }
}

.gallery-new__image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(168, 139, 255, 0.2);
}

.gallery-new__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-new__card-footer {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gallery-new__card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
    margin: 0;
}

.gallery-new__card-label {
    font-size: 0.75rem;
    color: var(--purple);
}

/* ====================================
   Contact Section (Mirroring React Component)
   ==================================== */

.contact-new {
    padding: 8rem 0;
}

@media (min-width: 640px) {
    .contact-new {
        padding: 10rem 0;
    }
}

.contact-new .container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2.25rem;
}

.contact-new__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
    margin: 0;
}

.contact-new__title {
    margin: 0.5rem 0 0;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--yellow);
}

@media (min-width: 640px) {
    .contact-new__title {
        font-size: 2.25rem;
    }
}

.contact-new__grid {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-new__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: flex-start;
    }
}

.contact-new__info-card {
    border-radius: 1rem;
    border: 1px solid rgba(168, 139, 255, 0.3);
    background: rgba(168, 139, 255, 0.1);
    padding: 1.5rem;
}

.contact-new__info-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.contact-new__note {
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(103, 184, 255, 0.3);
    background: rgba(103, 184, 255, 0.1);
    padding: 1rem;
}

.contact-new__note-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.contact-new__form-wrapper {
    border-radius: 1rem;
    border: 1px solid rgba(103, 184, 255, 0.3);
    background: rgba(103, 184, 255, 0.1);
    padding: 1.5rem;
}

/* Override plugin styles to match React component */
.contact-new__form-wrapper .jc-form {
    display: grid;
    gap: 1rem;
}

.contact-new__form-wrapper .jc-row {
    display: grid;
    gap: 0.5rem;
}

.contact-new__form-wrapper .jc-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.contact-new__form-wrapper .jc-label .jc-label-optional {
    color: rgba(255, 255, 255, 0.5);
}

.contact-new__form-wrapper .jc-input,
.contact-new__form-wrapper .jc-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(168, 139, 255, 0.3);
    border-radius: 0.75rem;
    background: var(--bg);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-new__form-wrapper .jc-input:focus,
.contact-new__form-wrapper .jc-textarea:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(245, 213, 71, 0.3);
}

.contact-new__form-wrapper .jc-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-new__form-wrapper .jc-help {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.contact-new__form-wrapper input[type="file"] {
    margin-top: 0.5rem;
    display: block;
    width: 100%;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-new__form-wrapper input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    border-radius: 9999px;
    border: 0;
    background: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #03040a;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-new__form-wrapper input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.contact-new__form-wrapper .jc-btn {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--yellow);
    color: var(--bg);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-new__form-wrapper .jc-btn:hover {
    background: rgba(245, 213, 71, 0.9);
}

.contact-new__form-wrapper .jc-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.contact-new__form-wrapper .jc-success {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-new__form-wrapper .jc-error {
    padding: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.6);
    border-radius: 0.875rem;
    background: rgba(239, 68, 68, 0.1);
    font-size: 0.875rem;
    color: rgba(252, 165, 165, 1);
}

/* ====================================
   Services Page
   ==================================== */

.services-hero {
    position: relative;
    overflow: hidden;
    padding: 220px 0 20px;
    background: var(--bg);
}

.services-hero::before {
    content: "";
    position: absolute;
    inset: -240px -240px auto -240px;
    height: 620px;
    background:
        radial-gradient(700px 320px at 50% 42%, rgba(245,213,71,.14), transparent 62%),
        radial-gradient(900px 360px at 20% 8%, rgba(168,139,255,.16), transparent 62%),
        radial-gradient(900px 360px at 85% 12%, rgba(103,184,255,.10), transparent 68%);
    pointer-events: none;
    z-index: 10;
}

.services-hero .container { position: relative; z-index: 1; background: var(--bg); }

.services-hero__inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-hero__kicker {
    color: rgba(168,139,255,.85);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 18px;
}

.services-hero__title {
    font-size: 64px;
    line-height: 1.03;
    color: var(--yellow);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.services-hero__subtitle {
    margin: 18px 0 0;
    max-width: 72ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .services-hero { padding: 96px 0 72px; }
    .services-hero__title { font-size: 48px; }
}
@media (max-width: 520px) {
    .services-hero { padding: 84px 0 64px; }
    .services-hero__title { font-size: 40px; }
}

/* Services Body & Cards */

.services-body {
    padding: 20px 0;
    background: var(--bg);
}

.services-body .service-card {
    min-height: 88px; /* via head */
    border: 1px solid var(--border);
}

.services-body .service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245,213,71,.5);
}

.services-body .service-card:hover .service-card__title {
    text-shadow: 0 0 1px rgba(245,213,71,.5);
}

.services-body .service-card__head {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 88px;
}

.services-body .service-card__title {
    color: var(--yellow);
    font-weight: 750;
    letter-spacing: 0.01em;
    margin: 0;
}

.services-body .service-card__description {
    color: rgba(255,255,255,.65);
    font-size: 12px;
    line-height: 1.55;
    margin: 4px 0 0;
}

.services-body .service-item {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.services-body .service-item__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.services-body .service-item__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: rgba(245,213,71,.92);
    margin-top: 2px;
}

.services-body .service-item__title {
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0;
}

.services-body .service-item__description {
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.65);
    line-height: 1.55;
}

/* Services Grid */

.services-body .services-grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

@media (max-width: 1200px) { .services-body .services-grid > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .services-body .services-grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .services-body .services-grid > .wp-block-group__inner-container { grid-template-columns: 1fr; } }

/* Services CTA */

.services-body .services-cta { margin-top: 48px; }

.services-body .services-cta__card {
    position: relative;
    padding: 50px 28px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.services-body .services-cta__card::before {
    content: "";
    position: absolute;
    inset: -120px -120px auto -120px;
    height: 320px;
    background:
        radial-gradient(600px 240px at 20% 30%, rgba(168,139,255,.14), transparent 60%),
        radial-gradient(640px 260px at 85% 25%, rgba(245,213,71,.10), transparent 62%);
    pointer-events: none;
    z-index: 10;
}

.services-body .services-cta__card > * { position: relative; z-index: 1; }

.services-body .services-cta__card h2 {
    font-size: 28px;
    line-height: 1.15;
    color: var(--yellow);
    margin: 0 0 10px;
    font-weight: 700;
}

.services-body .services-cta__card p {
    color: rgba(255,255,255,.75);
    margin: 0 0 20px;
}

.services-body .services-cta__card .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.services-body .services-cta__card .wp-block-button__link {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--purple) 10%, transparent);
    color: var(--yellow);
}

.services-body .services-cta__card .wp-block-button.is-style-fill .wp-block-button__link {
    color: #03040a;
    background: var(--yellow);
    border: none;
}

.services-body .services-cta__card .wp-block-button__link:focus-visible {
    outline: 2px solid rgba(245,213,71,.75);
    outline-offset: 3px;
}

/* ====================================
   Accessibility
   ==================================== */

:where(a, button, input, select, textarea, summary):focus { outline: none; }

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid rgba(245,213,71,.75);
    outline-offset: 3px;
    border-radius: 8px;
}

.services-body .service-card:focus-within {
    border-color: rgba(245,213,71,.55);
    box-shadow: 0 0 0 2px rgba(245,213,71,.18);
}

@media (hover: hover) and (pointer: fine) {
    .services-body .service-card:focus-within { transform: translateY(-2px); }
}

/* ====================================
   WP Overrides & Fixes
   ==================================== */

/* Consistent dark background across WP wrappers */
html, body, main, .services-hero, .services-body .container,
.wp-site-blocks, .site, #page, .site-content, #content {
    background: var(--bg) !important;
}

/* Exceptions for hero-new, about-new, services-preview-new, gallery-new, and contact-new sections to allow background image visibility */
.hero-new,
.hero-new__content,
.hero-new .container,
.gallery-new,
.gallery-new .container,
.contact-new,
.contact-new .container {
    background: transparent !important;
}

/* Site header background override */
.site-header,
.site-header .container {
    background: var(--bg-05) !important;
}

#wpadminbar { background: var(--bg) !important; box-shadow: none !important; }


body > * { position: relative; z-index: 1; }

body { min-height: 100vh; }

main {
    margin: 0;
    padding: 0;
    margin-top: -87px;
}

@media (min-width: 768px) {
    main {
        margin-top: -87px;
    }
}

.about-new,
.about-new .container,
.services-preview-new {
    background: var(--bg) !important;
}