/* =============================================================
   Base
============================================================= */
* { box-sizing: border-box; }

body.theme-dark {
    background: #151515;
    color: #e4e4e4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: #4caf7d;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: #6fd89a; }

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    margin-top: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: 48px; line-height: 1.15; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }

p { margin: 0 0 16px; }

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

/* =============================================================
   Header
============================================================= */
.site-header {
    padding: 24px 0;
    border-bottom: 1px solid #1f1f1f;
    background: #151515;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.site-header nav a {
    color: #e4e4e4;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
}

.site-header nav a:hover { color: #4caf7d; }

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-logo {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    width: 40px;
    height: 40px;
    display: block;
    transition: opacity 0.2s;
    filter: invert(1);
    mix-blend-mode: screen;
}

.site-logo:hover img { opacity: 0.85; }

.cart-icon {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e4e4e4;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-icon:hover { color: #4caf7d; }

.cart-count {
    background: #4caf7d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-count--empty { display: none; }

/* =============================================================
   Cart Drawer
============================================================= */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 200;
}
.cart-overlay.is-visible { display: block; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100vw;
    height: 100%;
    background: #1a1a1a;
    border-left: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a2a;
}
.cart-drawer__title {
    font-size: 17px;
    font-weight: 600;
    color: #e4e4e4;
    margin: 0;
}
.cart-drawer__close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}
.cart-drawer__close:hover { color: #e4e4e4; }

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-drawer__empty {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-top: 40px;
}

.cart-drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #222;
    border-radius: 8px;
    padding: 10px 12px;
    transition: opacity 0.2s;
}
.cart-drawer__item-img img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}
.cart-drawer__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-drawer__item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e4e4e4;
    line-height: 1.3;
}
.cart-drawer__item-meta {
    font-size: 12px;
    color: #888;
}
.cart-drawer__remove {
    background: none;
    border: none;
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.cart-drawer__remove:hover { color: #e44; }

.cart-drawer__foot {
    padding: 16px 24px 24px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-drawer__total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #e4e4e4;
}
.cart-drawer__total-row span:last-child { color: #4caf7d; }

.cart-drawer__checkout {
    display: block;
    text-align: center;
    background: #4caf7d;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.cart-drawer__checkout:hover { background: #3d9e6c; color: #fff; }

.cart-drawer__view-cart {
    display: block;
    text-align: center;
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.cart-drawer__view-cart:hover { color: #e4e4e4; }

/* Toast notification */
.cart-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #e4e4e4;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 300;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap;
    pointer-events: none;
}
.cart-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =============================================================
   Hero (Homepage)
============================================================= */
.home-area {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.home-name {
    font-size: 80px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.home-name span { color: #4caf7d; }

.home-headline {
    font-size: 22px;
    color: #aaa;
    margin-bottom: 32px;
    font-weight: 400;
}

/* =============================================================
   Buttons
============================================================= */
.button-main {
    display: inline-block;
    padding: 14px 32px;
    background: #4caf7d;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.button-main:hover {
    background: #6fd89a;
    transform: translateY(-2px);
}

/* Live Preview button (single product) — match theme green */
.live-preview-wrap {
    margin-top: 16px;
}
.woocommerce .live-preview-wrap a.button,
.woocommerce .live-preview-wrap a.button.alt {
    display: inline-block;
    padding: 12px 28px;
    background: #4caf7d;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}
.woocommerce .live-preview-wrap a.button:hover,
.woocommerce .live-preview-wrap a.button.alt:hover {
    background: #6fd89a;
    transform: translateY(-2px);
}

/* =============================================================
   Page headers (About, Portfolio, Contact, Blog)
============================================================= */
.section-heading {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.section-heading p {
    color: #888;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

/* =============================================================
   Portfolio grid — centered, with real breathing room
============================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-item {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    color: #e4e4e4;
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.portfolio-item .portfolio-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item .portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.04);
}

.portfolio-item .portfolio-info {
    padding: 24px;
}

.portfolio-item h3 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #fff;
}

.portfolio-item .project-type {
    color: #4caf7d;
    font-size: 13px;
    font-weight: 500;
}

/* Filter controls */
.filter-control {
    list-style: none;
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 0 0 50px;
    padding: 0;
    flex-wrap: wrap;
}

.filter-control li {
    cursor: pointer;
    color: #888;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.filter-control li:hover { color: #fff; }

.filter-control li.tab-active {
    color: #fff;
    background: #4caf7d;
}

/* =============================================================
   About page
============================================================= */
.about-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #2a2a2a;
}

.about-info-grid div span {
    color: #888;
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.about-info-grid div strong { color: #fff; }

/* =============================================================
   Contact page
============================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* =============================================================
   Blog grid
============================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card a {
    color: #e4e4e4;
    text-decoration: none;
    display: block;
}

.blog-card .blog-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #2a2a2a;
    overflow: hidden;
}

.blog-card .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .blog-body { padding: 24px; }

.blog-card .blog-date {
    color: #4caf7d;
    font-size: 13px;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 19px;
    color: #fff;
    margin: 10px 0 12px;
}

.blog-card p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* =============================================================
   Footer
============================================================= */
.footer {
    padding: 40px 20px;
    border-top: 1px solid #1f1f1f;
    text-align: center;
    color: #888;
    margin-top: 80px;
    font-size: 14px;
}

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 900px) {
    .home-name { font-size: 56px; }
    .section-heading h1 { font-size: 40px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .about-photo { max-width: 240px; margin: 0 auto; }

    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =============================================================
   Contact Form 7
============================================================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #2a2a2a;
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    font-size: 15px;
    margin-bottom: 12px;
    font-family: inherit;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #4caf7d;
    outline: none;
}

.wpcf7 label {
    color: #ccc;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.wpcf7 input[type="submit"] {
    background: #4caf7d;
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wpcf7 input[type="submit"]:hover { background: #6fd89a; }

.wpcf7-response-output {
    background: #1e1e1e;
    color: #e4e4e4;
    border-color: #4caf7d !important;
    padding: 12px;
    border-radius: 4px;
}

/* Single post content styles */
.single-post-content .entry-content {
    color: #d4d4d4;
    font-size: 17px;
    line-height: 1.8;
}

.single-post-content .entry-content h2 {
    font-size: 28px;
    color: #fff;
    margin: 48px 0 20px;
    font-weight: 600;
}

.single-post-content .entry-content h3 {
    font-size: 22px;
    color: #fff;
    margin: 36px 0 16px;
}

.single-post-content .entry-content p {
    margin-bottom: 20px;
    color: #d4d4d4;
}

.single-post-content .entry-content strong {
    color: #fff;
    font-weight: 600;
}

.single-post-content .entry-content a {
    color: #4caf7d;
    border-bottom: 1px solid rgba(76, 175, 125, 0.3);
}

.single-post-content .entry-content a:hover {
    color: #6fd89a;
    border-bottom-color: #6fd89a;
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.single-post-content .entry-content li {
    margin-bottom: 8px;
    color: #d4d4d4;
}

.single-post-content .entry-content code {
    background: #1e1e1e;
    color: #4caf7d;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 14px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
}

.single-post-content .entry-content pre,
.single-post-content .entry-content .wp-block-code {
    background: #1e1e1e;
    color: #e4e4e4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #2a2a2a;
}

.single-post-content .entry-content pre code,
.single-post-content .entry-content .wp-block-code code {
    background: transparent;
    color: #e4e4e4;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.single-post-content .entry-content blockquote {
    border-left: 3px solid #4caf7d;
    padding-left: 24px;
    margin: 32px 0;
    color: #bbb;
    font-style: italic;
}

.single-post-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 24px 0;
}

/* Post navigation */
.single-post-content nav a {
    color: #888;
    font-size: 14px;
    transition: color 0.2s ease;
}

.single-post-content nav a:hover {
    color: #4caf7d;
}

/* =============================================================
   Hero — full-screen with background image support
============================================================= */
.home-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    background-color: #0d0d0d;
}

.home-container {
    position: relative;
    z-index: 2;
}

.home-content {
    max-width: 900px;
    margin: 0 auto;
}

.home-name {
    font-size: 92px;
    font-weight: 800;
    margin: 0 0 24px;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: #fff;
}

.home-name span { color: #4caf7d; }

.home-headline {
    font-size: 26px;
    color: #ccc;
    font-weight: 400;
    margin: 0 0 40px;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Animated word rotator */
.word-rotator {
    display: inline-block;
    position: relative;
    min-width: 200px;
    height: 1.2em;
    vertical-align: baseline;
    text-align: left;
}

.word-rotator .word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    color: #4caf7d;
    font-weight: 600;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}

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

/* CTAs */
.home-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.button-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Social icons fixed to right edge of hero */
.social-fixed {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.social-fixed ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.social-fixed a {
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.social-fixed a:hover {
    color: #fff;
    background: #4caf7d;
    border-color: #4caf7d;
    transform: translateY(-2px);
}

/* Responsive hero */
@media (max-width: 900px) {
    .home-name { font-size: 64px; }
    .home-headline { font-size: 20px; }
    .word-rotator { min-width: 160px; }
    .social-fixed {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 32px;
    }
    .social-fixed ul {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .home-name { font-size: 48px; }
    .home-headline {
        flex-direction: column;
        gap: 4px;
    }
    .word-rotator {
        min-width: unset;
        height: auto;
        position: relative;
    }
    .word-rotator .word {
        position: relative;
    }
    .word-rotator .word:not(.is-visible) {
        display: none;
    }
}

/* =============================================================
   Footer (rich version)
============================================================= */
.footer {
    padding: 64px 0 32px;
    border-top: 3px solid #4caf7d;
    color: #888;
    margin-top: 100px;
    font-size: 14px;
    background: #0d0d0d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Brand column */
.footer-brand-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

/* Glass pill — identical to cityscape's "Available for freelance" badge:
   frosted glass (#f9f9f9a6 + blur 20px), green-tinted border, fully
   rounded, with a pulsing green ring dot. */
.footer-available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 249, 249, 0.65);      /* #f9f9f9a6 */
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    backdrop-filter: blur(20px) saturate(135%);
    border: 1px solid rgba(79, 157, 69, 0.18);  /* #4f9d452e */
    color: #0f1410;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.footer-available__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f9d45;
    box-shadow: 0 0 0 0 rgba(79, 157, 69, 0.6);
    animation: ring-pulse 2s infinite;
    flex-shrink: 0;
}

/* cityscape's expanding-ring pulse */
@keyframes ring-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(79, 157, 69, 0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(79, 157, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 157, 69, 0); }
}

.footer-col h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 18px;
    font-weight: 600;
}

.footer-col p {
    color: #777;
    line-height: 1.75;
    margin: 0;
    max-width: 320px;
    font-size: 14px;
}

/* Nav links */
.footer-nav,
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-nav a {
    color: #999;
    font-size: 14px;
    display: inline-block;
    padding: 5px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-nav a:hover {
    color: #4caf7d;
    padding-left: 4px;
}

/* Social links with icons */
.footer-social a {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-social a:hover { color: #4caf7d; }

.footer-social svg { flex-shrink: 0; opacity: .75; }
.footer-social a:hover svg { opacity: 1; }

/* Bottom bar */
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.footer-credit { color: #444 !important; }

.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.footer-top:hover {
    border-color: #4caf7d;
    color: #4caf7d;
    background: rgba(76,175,125,.08);
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-top { margin-top: 4px; }
}

/* =============================================================
   Single project page
============================================================= */
.project-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center top;
    padding: 160px 0 50px;
    position: relative;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

.project-hero .container {
    position: relative;
    z-index: 2;
}

.project-hero h1 {
    font-size: 56px;
    color: #fff;
    margin: 8px 0 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.project-type-tag {
    display: inline-block;
    background: #4caf7d;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    gap: 48px;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.project-meta .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta .meta-label {
    color: #888;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-meta .meta-item strong {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.project-meta .meta-links {
    margin-left: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-body {
    max-width: 780px;
    margin: 0 auto 60px;
}

.project-body .entry-content {
    color: #d4d4d4;
    font-size: 17px;
    line-height: 1.8;
}

.project-body .entry-content h2 {
    font-size: 28px;
    color: #fff;
    margin: 48px 0 20px;
}

.project-body .entry-content p {
    margin-bottom: 20px;
}

.project-body .entry-content ul,
.project-body .entry-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.project-body .entry-content li {
    margin-bottom: 8px;
}

.project-body .entry-content strong {
    color: #fff;
}

.project-techs {
    max-width: 780px;
    margin: 0 auto 60px;
    padding-top: 40px;
    border-top: 1px solid #2a2a2a;
}

.project-techs h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 16px;
}

.project-techs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-techs li {
    background: #1e1e1e;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #2a2a2a;
}

.project-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid #2a2a2a;
    margin-top: 40px;
}

.project-navigation .nav-prev { text-align: left; }
.project-navigation .nav-center { text-align: center; }
.project-navigation .nav-next { text-align: right; }

.project-navigation a {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-navigation a:hover { color: #4caf7d; }

.project-navigation .nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.project-navigation .nav-title {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

@media (max-width: 700px) {
    .project-hero h1 { font-size: 36px; }
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .project-meta .meta-links {
        margin-left: 0;
        width: 100%;
    }
    .project-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .project-navigation .nav-prev,
    .project-navigation .nav-next { text-align: center; }
}

/* =============================================================
   Fix sticky header overlap on pages with no hero
   Exclude front-page (hero handles its own positioning)
============================================================= */
body:not(.home) .site-main {
    padding-top: 40px;
}

/* Single project hero needs extra top padding so header doesn't cover title */
.single-project .project-hero {
    padding-top: 160px;
}

/* Section headings need more breathing room */
.section-heading {
    padding-top: 20px;
    margin-bottom: 50px;
}

/* Page heading alone (no eyebrow text above) */
.section-heading h1 {
    margin-top: 0;
}

/* Ensure hero stays behind navigation semantically but nav overlays when scrolled */
.site-header {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* On homepage, make header transparent over hero so it blends */
body.home .site-header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

body.home .site-header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1f1f1f;
}

/* =============================================================
   Blog pagination
============================================================= */
.navigation.pagination {
    margin: 60px auto 0;
    text-align: center;
    max-width: 1100px;
}

.navigation.pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: #1e1e1e;
    color: #aaa;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #2a2a2a;
    transition: all 0.2s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background: #4caf7d;
    color: #fff;
    border-color: #4caf7d;
}

/* =============================================================
   Inter font applied sitewide
============================================================= */
html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, p, a, li, div, span,
.woocommerce, .woocommerce-page,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.wpcf7 input, .wpcf7 textarea, .wpcf7 label, .wpcf7 button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Tighten letter-spacing on headings — Inter looks best slightly condensed at large sizes */
h1, .home-name, .section-heading h1, .project-hero h1 {
    letter-spacing: -0.025em;
}

h2, h3 {
    letter-spacing: -0.015em;
}

/* Code blocks keep mono font */
code, pre, .wp-block-code {
    font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace !important;
}

/* =============================================================
   Homepage sections
============================================================= */

/* Shared section padding */
.home-services,
.home-portfolio,
.home-blog,
.home-shop {
    padding: 100px 0;
    border-top: 1px solid #1a1a1a;
}

.home-services { background: #101010; }
.home-portfolio { background: #151515; }
.home-blog { background: #101010; }
.home-shop { background: #151515; }

/* Section CTA button centered below grids */
.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* =============================================================
   Services grid
============================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

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

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

.service-card {
    background: #1a1a1a;
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 32px 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.service-icon {
    color: #4caf7d;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    margin: 0 0 12px;
    color: #fff;
}

.service-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* =============================================================
   Shop grid (homepage preview)
============================================================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.shop-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    color: #e4e4e4;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
}

.shop-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-thumb img {
    transform: scale(1.03);
}

.shop-info {
    padding: 20px 24px;
}

.shop-info h3 {
    font-size: 17px;
    color: #fff;
    margin: 0 0 8px;
}

.shop-price {
    color: #4caf7d;
    font-size: 18px;
    font-weight: 600;
}

/* =============================================================
   CTA Band (before footer)
============================================================= */
.home-cta-band {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a3a2a 0%, #0d1d14 100%);
    border-top: 1px solid #2a4a3a;
}

.cta-band-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-band-content h2 {
    font-size: 44px;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.cta-band-content p {
    color: #b8d8c8;
    font-size: 18px;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Reduce top margin on footer when CTA band precedes it */
.home-cta-band + .footer {
    margin-top: 0;
}

/* Section headings on homepage sections */
.home-services .section-heading,
.home-portfolio .section-heading,
.home-blog .section-heading,
.home-shop .section-heading {
    margin-bottom: 50px;
    padding-top: 0;
}

.home-services .section-heading h2,
.home-portfolio .section-heading h2,
.home-blog .section-heading h2,
.home-shop .section-heading h2 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

/* =============================================================
   Responsive homepage sections
============================================================= */
@media (max-width: 700px) {
    .home-services,
    .home-portfolio,
    .home-blog,
    .home-shop,
    .home-cta-band {
        padding: 60px 0;
    }

    .cta-band-content h2 { font-size: 32px; }
    .cta-band-content p { font-size: 16px; }

    .home-services .section-heading h2,
    .home-portfolio .section-heading h2,
    .home-blog .section-heading h2,
    .home-shop .section-heading h2 {
        font-size: 32px;
    }
}

/* =============================================================
   Center small grids (when content count < column count)
============================================================= */
.home-portfolio .portfolio-grid,
.home-blog .blog-grid,
.home-shop .shop-grid {
    justify-content: center;
}

.home-portfolio .portfolio-grid,
.home-blog .blog-grid,
.home-shop .shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
}

@media (max-width: 700px) {
    .home-portfolio .portfolio-grid,
    .home-blog .blog-grid,
    .home-shop .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   Homepage grids — force 3 columns on desktop
============================================================= */
.home-portfolio .portfolio-grid,
.home-blog .blog-grid,
.home-shop .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    justify-content: unset;
}

@media (max-width: 900px) {
    .home-portfolio .portfolio-grid,
    .home-blog .blog-grid,
    .home-shop .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-portfolio .portfolio-grid,
    .home-blog .blog-grid,
    .home-shop .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   Fix WooCommerce product thumbnails — consistent landscape crop
============================================================= */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: top center !important;
    height: auto !important;
}

/* =============================================================
   Portfolio cards — consistent height regardless of title length
============================================================= */
.portfolio-item {
    display: flex;
    flex-direction: column;
}

.portfolio-item .portfolio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.portfolio-item h3 {
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* =============================================================
   Shop archive — clean grid matching Featured Projects pattern
============================================================= */
.shop-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.shop-archive-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    color: #e4e4e4;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.shop-archive-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0a0a0a;
    overflow: hidden;
}

.shop-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.shop-archive-card:hover .shop-archive-thumb img {
    transform: scale(1.04);
}

.shop-archive-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-archive-info h3 {
    font-size: 18px;
    color: #fff;
    margin: 0;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.shop-archive-price {
    color: #4caf7d;
    font-size: 20px;
    font-weight: 600;
    margin-top: auto;
}

.shop-archive-button {
    display: block;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
    transition: color 0.2s ease;
}

.shop-archive-card:hover .shop-archive-button {
    color: #4caf7d;
}

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

@media (max-width: 600px) {
    .shop-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   Shop thumbnails — consistent height regardless of source image ratio
   (Same treatment as .portfolio-item .portfolio-thumb on homepage)
============================================================= */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: top center !important;
    background: #0a0a0a !important;
    display: block !important;
    margin: 0 !important;
    transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.04);
}

/* =============================================================
   Shop cards — consistent height regardless of title length
============================================================= */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.6em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
}

/* =============================================================
   Glassmorphism
   Frosted-glass treatment for header, cart drawer/overlay and
   cards. Self-contained overrides — safe to tweak or remove.
============================================================= */
/* Adapted from the cityscape glass recipe:
   blur(20px) · green-tinted border #4f9d452e · deep #0f1410 base.
   Kept dark-translucent (not light) to preserve readable light text. */
:root {
    --glass-green: #4f9d45;                       /* cityscape primary */
    --glass-bg: rgba(15, 20, 16, 0.55);           /* deep #0f1410 @ 55% */
    --glass-bg-strong: rgba(15, 20, 16, 0.72);    /* deep #0f1410 @ 72% */
    --glass-border: rgba(79, 157, 69, 0.18);      /* #4f9d452e */
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(20px) saturate(135%);
}

/* --- Ambient background: soft color blobs so the blur has something
       to refract. Fixed to the viewport, sits behind all content.
       Uses cityscape's green + terracotta accent over the deep base. --- */
body.theme-dark {
    background:
        radial-gradient(900px 600px at 12% -5%, rgba(79, 157, 69, 0.40), transparent 62%),
        radial-gradient(800px 700px at 95% 8%, rgba(194, 94, 46, 0.26), transparent 62%),
        radial-gradient(1000px 800px at 50% 110%, rgba(79, 157, 69, 0.30), transparent 58%),
        #0f1410;
    background-attachment: fixed;
}

/* --- Sticky header --- */
.site-header {
    background: rgba(15, 20, 16, 0.6);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}
/* Fallback for browsers without backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header { background: #0f1410; }
}

/* --- Cart overlay: dim + blur what's behind the drawer --- */
.cart-overlay {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* --- Cart drawer: frosted panel --- */
.cart-drawer {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--glass-border);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
}
.cart-drawer__head,
.cart-drawer__foot { border-color: var(--glass-border); }

/* --- Service cards: translucent frosted tiles --- */
.service-card {
    background:
        linear-gradient(155deg, var(--glass-highlight), rgba(255, 255, 255, 0) 55%),
        var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.service-card:hover {
    border-color: rgba(79, 157, 69, 0.6);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(79, 157, 69, 0.18);
}

/* =============================================================
   Page navigation transition
   Frosted overlay + spinner shown during full-page navigation so
   switching pages gives visible "loading" feedback.
============================================================= */
/* --- Full-screen transition overlay + spinner --- */
#kafuko-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 16, 0.62);
    -webkit-backdrop-filter: blur(8px) saturate(135%);
    backdrop-filter: blur(8px) saturate(135%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}
#kafuko-transition.is-active {
    opacity: 1;
    visibility: visible;
}
.kafuko-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid rgba(79, 157, 69, 0.25);
    border-top-color: #4f9d45;
    box-shadow: 0 0 14px rgba(79, 157, 69, 0.4);
    animation: kafuko-spin 0.7s linear infinite;
}
@keyframes kafuko-spin { to { transform: rotate(360deg); } }

/* Smooth content fade-in on every page load. Pure CSS so it always
   ends fully visible even if JS fails — never hides content. */
@keyframes kafuko-page-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body.theme-dark {
    animation: kafuko-page-in 0.32s ease both;
}
@media (prefers-reduced-motion: reduce) {
    body.theme-dark { animation: none; }
    .kafuko-spinner { animation-duration: 1.4s; }
}

/* =============================================================
   Floating glass nav pill — modeled on estatex-preview.vercel.app
   The header becomes a centered rounded capsule that frosts and
   lifts on scroll. Dark/green palette to match this site.
   (Last in file — supersedes the earlier full-width header glass.)
============================================================= */
.site-header {
    display: flex;
    justify-content: center;
    background: transparent;
    border-bottom: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 14px 16px;
    position: sticky;
    top: 12px;
    z-index: 100;
}

/* The container is now the pill */
.site-header .container {
    flex: 0 0 auto;
    width: auto;
    max-width: calc(100vw - 32px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(15, 20, 16, 0.55);
    border: 1px solid rgba(79, 157, 69, 0.18);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Frost + lift once scrolled (toggled by JS) */
.site-header.is-scrolled .container {
    background: rgba(15, 20, 16, 0.82);
    border-color: rgba(79, 157, 69, 0.32);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

/* Logo and cart now sit inline inside the pill (not pinned to edges) */
.site-header .site-logo,
.site-header .cart-icon {
    position: static;
}
.site-header nav ul { gap: 24px; flex-wrap: nowrap; }

/* Keep the homepage header transparent too, but let the pill carry the glass */
body.home .site-header { background: transparent; }

@media (max-width: 640px) {
    .site-header { padding: 10px 12px; top: 8px; }
    .site-header .container { gap: 16px; padding: 8px 14px; }
    .site-header nav ul { gap: 16px; }
}

/* =============================================================
   Mobile hamburger + full-screen menu overlay
============================================================= */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #e4e4e4;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Hamburger morphs into an X when open */
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 16, 0.85);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}
.nav-overlay.is-open { display: flex; animation: kafuko-page-in 0.25s ease both; }

.nav-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    text-align: center;
}
.nav-overlay__list a {
    display: inline-block;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    padding: 10px 24px;
    transition: color 0.2s ease;
}
.nav-overlay__list a:hover,
.nav-overlay__list .current-menu-item > a { color: #4f9d45; }

.nav-overlay__close {
    position: absolute;
    top: 22px;
    right: 24px;
    background: none;
    border: 0;
    color: #aaa;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.nav-overlay__close:hover { color: #fff; }

body.nav-open { overflow: hidden; }

/* Switch to hamburger on narrow screens */
@media (max-width: 768px) {
    .site-header nav { display: none; }
    .nav-toggle { display: flex; }
}
