/*
Theme Name: FRESH – The Culinary Edge
Theme URI: https://fresh.co.il
Author: FRESH Digital Agency
Author URI: https://fresh.co.il
Description: תבנית פרימיום מותאמת לסוכנות FRESH – שיווק דיגיטלי למסעדות. עיצוב מבוסס על מוטיב ה-Knife Cut הייחודי מהלוגו. ללא תלות בבוני עמודים – Gutenberg Native עם Block Patterns מותאמים.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fresh-theme
Domain Path: /languages
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Tags: rtl, translation-ready, custom-logo, block-patterns, full-site-editing
*/

/* =====================================================
   FRESH DESIGN SYSTEM — "THE CULINARY EDGE"
   =====================================================
   Design DNA: The diagonal knife-slash through the logo's
   "E" at ~65° is the foundational visual motif. It drives
   section dividers, image masks, hover states, and layout.
   ===================================================== */

/* ----- Custom Properties ----- */
:root {
    /* Core Palette */
    --fresh-black:       #0A0A0A;
    --fresh-charcoal:    #1A1A1A;
    --fresh-graphite:    #2A2A2A;
    --fresh-steel:       #444444;
    --fresh-slate:       #8A8A8A;
    --fresh-silver:      #BDBDBD;
    --fresh-cloud:       #F0F0F0;
    --fresh-white:       #FAFAFA;
    --fresh-pure-white:  #FFFFFF;

    /* Accent — Electric Lime (culinary freshness) */
    --fresh-accent:      #C8FF00;
    --fresh-accent-dim:  #9FCC00;
    --fresh-accent-glow: rgba(200, 255, 0, 0.15);

    /* Secondary Accent — Ember Orange (heat, kitchen fire) */
    --fresh-ember:       #FF6B2C;
    --fresh-ember-dim:   #CC5523;

    /* Functional */
    --fresh-success:     #00D68F;
    --fresh-error:       #FF4757;

    /* Typography Scale */
    --font-display:      'Secular One', sans-serif;
    --font-heading:      'Heebo', sans-serif;
    --font-body:         'Assistant', sans-serif;
    --font-mono:         'IBM Plex Mono', monospace;

    /* Fluid Type Scale */
    --text-xs:    clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
    --text-sm:    clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
    --text-base:  clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
    --text-lg:    clamp(1.125rem, 1rem    + 0.6vw,  1.375rem);
    --text-xl:    clamp(1.375rem, 1.1rem  + 1vw,    1.75rem);
    --text-2xl:   clamp(1.75rem,  1.3rem  + 1.5vw,  2.5rem);
    --text-3xl:   clamp(2.25rem,  1.5rem  + 2.5vw,  3.5rem);
    --text-4xl:   clamp(3rem,     2rem    + 3.5vw,  5rem);
    --text-hero:  clamp(3.5rem,   2rem    + 5vw,    7rem);

    /* Spacing */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   1rem;
    --space-lg:   2rem;
    --space-xl:   4rem;
    --space-2xl:  6rem;
    --space-3xl:  10rem;

    /* The Knife Angle */
    --knife-angle:       -65deg;
    --knife-angle-soft:  -25deg;
    --knife-skew:        -8deg;

    /* Borders & Radius */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.12);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 40px var(--fresh-accent-glow);

    /* Transitions */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:   0.2s;
    --duration-normal: 0.4s;
    --duration-slow:   0.8s;
}


/* =====================================================
   RESET & BASE
   ===================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    direction: rtl;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--fresh-white);
    background-color: var(--fresh-black);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--fresh-accent);
    color: var(--fresh-black);
}

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

a {
    color: var(--fresh-accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--fresh-pure-white);
}

ul, ol {
    list-style: none;
}


/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: var(--fresh-pure-white);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }

p {
    color: var(--fresh-silver);
    line-height: 1.8;
}

.fresh-display {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--fresh-pure-white);
}

/* Accent text with knife underline */
.fresh-text-accent {
    color: var(--fresh-accent);
    position: relative;
    display: inline-block;
}

.fresh-text-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--fresh-accent);
    transform: skewX(var(--knife-skew));
}

/* Label / overline text */
.fresh-overline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fresh-accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.fresh-overline::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--fresh-accent);
    transform: skewX(var(--knife-skew));
    flex-shrink: 0;
}


/* =====================================================
   LAYOUT
   ===================================================== */

.fresh-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.fresh-container--wide {
    max-width: 1440px;
}

.fresh-container--narrow {
    max-width: 800px;
}

.fresh-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.fresh-grid {
    display: grid;
    gap: var(--space-lg);
}

.fresh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fresh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fresh-grid--4 { grid-template-columns: repeat(4, 1fr); }

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

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

    .fresh-section {
        padding: var(--space-2xl) 0;
    }
}


/* =====================================================
   🔪 THE KNIFE CUT — Core Design Motif
   ===================================================== */

/*
 * .knife-divider — Section transition slash
 * Diagonal line that separates sections, mimicking the logo's E-cut
 */
.knife-divider {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.knife-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -5%;
    width: 110%;
    height: 100%;
    background: var(--knife-bg-from, var(--fresh-black));
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.knife-divider--reverse::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

.knife-divider--accent::before {
    background: var(--fresh-accent);
}

/*
 * .knife-mask — Diagonal image container
 */
.knife-mask {
    clip-path: polygon(0 0, 100% 8%, 100% 92%, 0% 100%);
    overflow: hidden;
}

.knife-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.knife-mask:hover img {
    transform: scale(1.05);
}

/*
 * .knife-line — Decorative diagonal accent line
 */
.knife-line {
    width: 60px;
    height: 3px;
    background: var(--fresh-accent);
    transform: rotate(var(--knife-angle));
    display: inline-block;
}

/*
 * .knife-border — Card with one diagonal edge
 */
.knife-border {
    position: relative;
    background: var(--fresh-charcoal);
    overflow: hidden;
}

.knife-border::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--fresh-accent) 0%,
        transparent 100%
    );
    transform-origin: top right;
    transform: skewY(var(--knife-skew));
}

/*
 * .knife-reveal — Scroll-triggered diagonal wipe animation
 */
.knife-reveal {
    position: relative;
    overflow: hidden;
}

.knife-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--fresh-black);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path var(--duration-slow) var(--ease-out);
}

.knife-reveal.is-visible::after {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

/*
 * .knife-highlight — Text highlight with diagonal slash background
 */
.knife-highlight {
    position: relative;
    display: inline;
    padding: 0.1em 0.4em;
}

.knife-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--fresh-accent);
    transform: skewX(var(--knife-skew));
    z-index: -1;
}

.knife-highlight {
    color: var(--fresh-black);
    font-weight: 700;
}

/*
 * Section with knife-cut top edge
 */
.knife-section-top {
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(var(--space-3xl) + 60px);
}

.knife-section-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
    padding-bottom: calc(var(--space-3xl) + 60px);
}

@media (max-width: 768px) {
    .knife-section-top {
        clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
        padding-top: calc(var(--space-2xl) + 30px);
    }

    .knife-section-bottom {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
        padding-bottom: calc(var(--space-2xl) + 30px);
    }

    .knife-divider { height: 60px; }
}


/* =====================================================
   HEADER
   ===================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-out);
    background: transparent;
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 255, 0, 0.08);
    padding: var(--space-sm) 0;
}

.site-header .fresh-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--fresh-pure-white);
    letter-spacing: 0.05em;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav__list {
    display: flex;
    gap: var(--space-lg);
}

.main-nav__link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fresh-silver);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--fresh-accent);
    transform: skewX(var(--knife-skew));
    transition: width var(--duration-normal) var(--ease-out);
}

.main-nav__link:hover,
.main-nav__link.is-active {
    color: var(--fresh-pure-white);
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after {
    width: 100%;
}

/* CTA Button in header */
.fresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
}

.fresh-btn--primary {
    background: var(--fresh-accent);
    color: var(--fresh-black);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    padding: 0.75rem 2.5rem;
}

.fresh-btn--primary:hover {
    background: var(--fresh-pure-white);
    color: var(--fresh-black);
    transform: scale(1.03);
}

.fresh-btn--outline {
    background: transparent;
    color: var(--fresh-accent);
    border: 2px solid var(--fresh-accent);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    padding: 0.7rem 2.4rem;
}

.fresh-btn--outline:hover {
    background: var(--fresh-accent);
    color: var(--fresh-black);
}

.fresh-btn--large {
    padding: 1rem 3rem;
    font-size: var(--text-base);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 16px 100%);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--fresh-pure-white);
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.mobile-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--duration-normal) var(--ease-out);
        z-index: 1000;
    }

    .main-nav.is-open {
        opacity: 1;
        pointer-events: all;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .main-nav__link {
        font-size: var(--text-2xl);
    }
}


/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--fresh-black);
}

/* Grain texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Diagonal accent slash */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 5%;
    width: 2px;
    height: 140%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--fresh-accent) 30%,
        var(--fresh-accent) 70%,
        transparent 100%
    );
    transform: rotate(var(--knife-angle));
    opacity: 0.12;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(200, 255, 0, 0.08);
    border: 1px solid rgba(200, 255, 0, 0.2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fresh-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--fresh-silver);
    max-width: 560px;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Animated diagonal lines in background */
.hero__lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__lines span {
    position: absolute;
    width: 1px;
    height: 200%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(200, 255, 0, 0.06),
        transparent
    );
    transform: rotate(var(--knife-angle));
    animation: knife-drift 12s linear infinite;
}

.hero__lines span:nth-child(1) { right: 10%; animation-delay: 0s; }
.hero__lines span:nth-child(2) { right: 25%; animation-delay: -3s; }
.hero__lines span:nth-child(3) { right: 45%; animation-delay: -6s; }
.hero__lines span:nth-child(4) { right: 65%; animation-delay: -9s; }
.hero__lines span:nth-child(5) { right: 85%; animation-delay: -2s; }

@keyframes knife-drift {
    0%   { transform: rotate(var(--knife-angle)) translateY(-20%); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: rotate(var(--knife-angle)) translateY(20%); opacity: 0; }
}


/* =====================================================
   SERVICES / CARDS
   ===================================================== */

.service-card {
    background: var(--fresh-charcoal);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid transparent;
}

/* Knife-cut shape for cards */
.service-card {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 40%;
    background: var(--fresh-accent);
    transform: skewY(var(--knife-skew));
    transition: height var(--duration-normal) var(--ease-out);
}

.service-card:hover {
    background: var(--fresh-graphite);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card:hover::before {
    height: 100%;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    background: rgba(200, 255, 0, 0.08);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.service-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.service-card__desc {
    font-size: var(--text-sm);
    color: var(--fresh-slate);
    line-height: 1.7;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--fresh-accent);
    transition: gap var(--duration-fast) var(--ease-out);
}

.service-card__link:hover {
    gap: var(--space-md);
    color: var(--fresh-accent);
}


/* =====================================================
   STATS BAR
   ===================================================== */

.stats-bar {
    background: var(--fresh-charcoal);
    border-top: 1px solid rgba(200, 255, 0, 0.1);
    border-bottom: 1px solid rgba(200, 255, 0, 0.1);
    padding: var(--space-xl) 0;
}

.stats-bar .fresh-grid {
    text-align: center;
}

.stat__number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--fresh-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--fresh-slate);
    font-family: var(--font-heading);
}

.stat__divider {
    width: 30px;
    height: 2px;
    background: var(--fresh-accent);
    margin: var(--space-sm) auto;
    transform: skewX(var(--knife-skew));
    opacity: 0.4;
}


/* =====================================================
   ABOUT / SPLIT SECTION
   ===================================================== */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 80vh;
}

.split-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) var(--space-2xl);
}

.split-section__visual {
    position: relative;
    overflow: hidden;
}

.split-section__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Knife cut overlay on image */
.split-section__visual::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: var(--fresh-black);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

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

    .split-section__content {
        padding: var(--space-2xl) var(--space-lg);
        order: 2;
    }

    .split-section__visual {
        height: 50vh;
        order: 1;
    }
}


/* =====================================================
   CASE STUDIES (CPT)
   ===================================================== */

.case-card {
    position: relative;
    overflow: hidden;
    background: var(--fresh-charcoal);
    transition: transform var(--duration-normal) var(--ease-out);
}

.case-card:hover {
    transform: translateY(-6px);
}

.case-card__image {
    height: 280px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.case-card__body {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.case-card__category {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fresh-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.case-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.case-card__excerpt {
    font-size: var(--text-sm);
    color: var(--fresh-slate);
}

.case-card__stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.case-card__stat-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--fresh-accent);
}

.case-card__stat-label {
    font-size: var(--text-xs);
    color: var(--fresh-slate);
}


/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    position: relative;
    background: var(--fresh-charcoal);
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%) rotate(var(--knife-angle));
    width: 2px;
    height: 200%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--fresh-accent),
        transparent
    );
    opacity: 0.15;
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: var(--space-md);
}

.cta-section p {
    margin-bottom: var(--space-xl);
    font-size: var(--text-lg);
}


/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    background: var(--fresh-charcoal);
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid rgba(200, 255, 0, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer__brand p {
    max-width: 320px;
    margin-top: var(--space-md);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--fresh-pure-white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    color: var(--fresh-slate);
    font-size: var(--text-sm);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__links a:hover {
    color: var(--fresh-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--text-xs);
    color: var(--fresh-steel);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fresh-silver);
    font-size: var(--text-sm);
    transition: all var(--duration-fast) var(--ease-out);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.footer__social a:hover {
    background: var(--fresh-accent);
    color: var(--fresh-black);
}

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

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}


/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   GUTENBERG OVERRIDES
   ===================================================== */

.entry-content > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content > .alignwide {
    max-width: 1200px;
}

.entry-content > .alignfull {
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* WP Block styles */
.wp-block-heading {
    font-family: var(--font-heading);
    color: var(--fresh-pure-white);
}

.wp-block-paragraph {
    color: var(--fresh-silver);
}

.wp-block-button .wp-block-button__link {
    font-family: var(--font-heading);
    font-weight: 700;
    background: var(--fresh-accent);
    color: var(--fresh-black);
    border: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    padding: 0.75rem 2.5rem;
}

.wp-block-separator {
    border-color: rgba(200, 255, 0, 0.15);
}


/* =====================================================
   UTILITIES
   ===================================================== */

.text-center  { text-align: center; }
.text-accent  { color: var(--fresh-accent); }
.bg-dark      { background: var(--fresh-charcoal); }
.bg-black     { background: var(--fresh-black); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
