/*
Theme Name: Webfinity Studio
Theme URI: https://www.webfinitystudio.co.uk
Author: Webfinity Studio
Author URI: https://www.webfinitystudio.co.uk
Description: A premium custom theme for Webfinity Studio - Web Development & Social Media Agency. Your Digital Presence, Perfected.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.0
License: Proprietary
License URI: https://www.webfinitystudio.co.uk
Text Domain: webfinity
Tags: custom-theme, agency, web-design, social-media, modern, responsive
*/

/* ============================================================
   WEBFINITY STUDIO - DESIGN SYSTEM
   A modern, conversion-focused agency theme
   ============================================================ */

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
    /* Brand Gradient Colours */
    --wf-cyan: #00B4D8;
    --wf-blue: #0077B6;
    --wf-purple: #7B2D8E;
    --wf-magenta: #C840E9;

    /* Brand Gradient */
    --wf-gradient: linear-gradient(135deg, var(--wf-cyan) 0%, var(--wf-blue) 30%, var(--wf-purple) 65%, var(--wf-magenta) 100%);
    --wf-gradient-hover: linear-gradient(135deg, var(--wf-magenta) 0%, var(--wf-purple) 35%, var(--wf-blue) 70%, var(--wf-cyan) 100%);
    --wf-gradient-subtle: linear-gradient(135deg, rgba(0,180,216,0.08) 0%, rgba(123,45,142,0.06) 50%, rgba(200,64,233,0.08) 100%);
    --wf-gradient-text: linear-gradient(135deg, var(--wf-cyan) 0%, var(--wf-purple) 50%, var(--wf-magenta) 100%);

    /* Neutrals */
    --wf-dark: #1a1a2e;
    --wf-dark-secondary: #2d2d44;
    --wf-charcoal: #3a3a52;
    --wf-grey-700: #4a4a62;
    --wf-grey-600: #6b6b82;
    --wf-grey-500: #8e8e9a;
    --wf-grey-400: #b0b0bc;
    --wf-grey-300: #d1d1da;
    --wf-grey-200: #e8e8ee;
    --wf-grey-100: #f4f4f8;
    --wf-white: #ffffff;
    --wf-off-white: #fafafc;

    /* Backgrounds */
    --wf-bg-primary: var(--wf-white);
    --wf-bg-secondary: var(--wf-off-white);
    --wf-bg-lavender: #f0ecf8;
    --wf-bg-dark: var(--wf-dark);
    --wf-bg-dark-secondary: var(--wf-dark-secondary);

    /* Text */
    --wf-text-primary: var(--wf-dark);
    --wf-text-secondary: var(--wf-grey-600);
    --wf-text-tertiary: var(--wf-grey-500);
    --wf-text-on-dark: var(--wf-grey-200);
    --wf-text-on-dark-heading: var(--wf-white);

    /* Functional Colours */
    --wf-success: #10b981;
    --wf-warning: #f59e0b;
    --wf-error: #ef4444;
    --wf-info: var(--wf-cyan);

    /* Typography Scale (fluid) */
    --wf-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wf-font-heading: 'Sora', var(--wf-font-primary);
    --wf-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --wf-text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --wf-text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    --wf-text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.075rem);
    --wf-text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --wf-text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --wf-text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --wf-text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
    --wf-text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --wf-text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

    /* Spacing Scale */
    --wf-space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --wf-space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --wf-space-md: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
    --wf-space-lg: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
    --wf-space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --wf-space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
    --wf-space-3xl: clamp(4rem, 3rem + 5vw, 8rem);

    /* Layout */
    --wf-container-max: 1320px;
    --wf-container-wide: 1440px;
    --wf-container-narrow: 720px;
    --wf-gutter: clamp(1.25rem, 1rem + 2vw, 3rem);

    /* Borders & Radius */
    --wf-radius-sm: 6px;
    --wf-radius-md: 12px;
    --wf-radius-lg: 20px;
    --wf-radius-xl: 28px;
    --wf-radius-full: 9999px;
    --wf-border-subtle: 1px solid rgba(0, 0, 0, 0.06);
    --wf-border-light: 1px solid var(--wf-grey-200);

    /* Shadows */
    --wf-shadow-xs: 0 1px 2px rgba(26, 26, 46, 0.04);
    --wf-shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --wf-shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
    --wf-shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.1);
    --wf-shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.12);
    --wf-shadow-glow: 0 4px 24px rgba(0, 180, 216, 0.2), 0 8px 40px rgba(123, 45, 142, 0.1);
    --wf-shadow-glow-hover: 0 8px 32px rgba(0, 180, 216, 0.3), 0 16px 56px rgba(123, 45, 142, 0.15);

    /* Transitions */
    --wf-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --wf-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --wf-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --wf-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index Scale */
    --wf-z-base: 1;
    --wf-z-dropdown: 100;
    --wf-z-sticky: 200;
    --wf-z-overlay: 300;
    --wf-z-modal: 400;
    --wf-z-toast: 500;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--wf-font-primary);
    font-size: var(--wf-text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--wf-text-primary);
    background-color: var(--wf-bg-primary);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(0, 180, 216, 0.2);
    color: var(--wf-dark);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--wf-cyan);
    outline-offset: 3px;
    border-radius: var(--wf-radius-sm);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wf-grey-100);
}

::-webkit-scrollbar-thumb {
    background: var(--wf-gradient);
    border-radius: var(--wf-radius-full);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wf-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--wf-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--wf-text-5xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--wf-text-4xl);
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--wf-text-3xl);
}

h4 {
    font-size: var(--wf-text-2xl);
}

h5 {
    font-size: var(--wf-text-xl);
}

h6 {
    font-size: var(--wf-text-lg);
}

p {
    margin-bottom: var(--wf-space-md);
    color: var(--wf-text-secondary);
    line-height: 1.75;
}

a {
    color: var(--wf-blue);
    text-decoration: none;
    transition: color var(--wf-transition-fast);
}

a:hover {
    color: var(--wf-purple);
}

strong, b {
    font-weight: 700;
}

/* Gradient text utility */
.wf-gradient-text {
    background: var(--wf-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   LAYOUT & CONTAINERS
   ============================================================ */
.wf-container {
    width: 100%;
    max-width: var(--wf-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wf-gutter);
    padding-right: var(--wf-gutter);
}

.wf-container--wide {
    max-width: var(--wf-container-wide);
}

.wf-container--narrow {
    max-width: var(--wf-container-narrow);
}

.wf-section {
    padding-top: var(--wf-space-3xl);
    padding-bottom: var(--wf-space-3xl);
}

.wf-section--sm {
    padding-top: var(--wf-space-2xl);
    padding-bottom: var(--wf-space-2xl);
}

/* ============================================================
   IMAGES & MEDIA
   ============================================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--wf-font-primary);
    font-size: var(--wf-text-sm);
    font-weight: 600;
    line-height: 1;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--wf-radius-full);
    cursor: pointer;
    transition: all var(--wf-transition-base);
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Primary Button - Gradient */
.wf-btn--primary {
    background: var(--wf-gradient);
    color: var(--wf-white);
    box-shadow: var(--wf-shadow-glow);
}

.wf-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--wf-shadow-glow-hover);
    color: var(--wf-white);
}

.wf-btn--primary:active {
    transform: translateY(0);
}

/* Secondary Button - Outlined */
.wf-btn--secondary {
    background: transparent;
    color: var(--wf-dark);
    border: 2px solid var(--wf-grey-300);
}

.wf-btn--secondary:hover {
    border-color: var(--wf-cyan);
    color: var(--wf-blue);
    background: rgba(0, 180, 216, 0.04);
    transform: translateY(-2px);
}

/* Ghost Button */
.wf-btn--ghost {
    background: transparent;
    color: var(--wf-text-secondary);
    padding: 0.75rem 1.25rem;
}

.wf-btn--ghost:hover {
    color: var(--wf-blue);
    background: rgba(0, 180, 216, 0.06);
}

/* Button Sizes */
.wf-btn--lg {
    font-size: var(--wf-text-base);
    padding: 1.125rem 2.5rem;
}

.wf-btn--sm {
    font-size: var(--wf-text-xs);
    padding: 0.625rem 1.25rem;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.wf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--wf-z-sticky);
    padding: 1rem 0;
    transition: all var(--wf-transition-base);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

.wf-header.scrolled {
    padding: 0.625rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), var(--wf-shadow-sm);
}

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

.wf-header__logo img {
    height: 44px;
    width: auto;
    transition: height var(--wf-transition-base);
}

.wf-header.scrolled .wf-header__logo img {
    height: 36px;
}

/* Desktop Navigation */
.wf-nav {
    display: flex;
    align-items: center;
    gap: var(--wf-space-lg);
}

.wf-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wf-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: var(--wf-text-sm);
    font-weight: 500;
    color: var(--wf-text-secondary);
    border-radius: var(--wf-radius-sm);
    transition: all var(--wf-transition-fast);
    position: relative;
}

.wf-nav__link:hover,
.wf-nav__link--active {
    color: var(--wf-text-primary);
}

.wf-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--wf-gradient);
    border-radius: var(--wf-radius-full);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--wf-transition-base);
}

.wf-nav__link:hover::after,
.wf-nav__link--active::after {
    transform: scaleX(1);
}

/* Mobile Menu Toggle */
.wf-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: calc(var(--wf-z-overlay) + 1);
}

.wf-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wf-dark);
    border-radius: var(--wf-radius-full);
    transition: all var(--wf-transition-base);
    transform-origin: center;
}

.wf-nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.wf-nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.wf-nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.wf-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.wf-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--wf-bg-primary);
    overflow: hidden;
}

.wf-hero__bg::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(0, 180, 216, 0.08) 0%, rgba(123, 45, 142, 0.05) 40%, transparent 70%);
    animation: wf-float 20s ease-in-out infinite;
}

.wf-hero__bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(200, 64, 233, 0.06) 0%, rgba(0, 119, 182, 0.04) 40%, transparent 70%);
    animation: wf-float 25s ease-in-out infinite reverse;
}

.wf-hero__content {
    max-width: 680px;
}

.wf-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--wf-gradient-subtle);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: var(--wf-radius-full);
    font-size: var(--wf-text-xs);
    font-weight: 600;
    color: var(--wf-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--wf-space-lg);
}

.wf-hero__title {
    margin-bottom: var(--wf-space-md);
}

.wf-hero__subtitle {
    font-size: var(--wf-text-lg);
    color: var(--wf-text-secondary);
    margin-bottom: var(--wf-space-xl);
    max-width: 540px;
}

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

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.wf-section-header {
    text-align: center;
    margin-bottom: var(--wf-space-2xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.wf-section-header__label {
    display: inline-block;
    font-size: var(--wf-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--wf-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--wf-space-sm);
}

.wf-section-header__title {
    margin-bottom: var(--wf-space-md);
}

.wf-section-header__desc {
    font-size: var(--wf-text-lg);
    color: var(--wf-text-secondary);
}

/* ============================================================
   CARDS
   ============================================================ */
.wf-card {
    background: var(--wf-white);
    border: var(--wf-border-subtle);
    border-radius: var(--wf-radius-lg);
    padding: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
    transition: all var(--wf-transition-base);
    position: relative;
    overflow: hidden;
}

.wf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wf-shadow-lg);
    border-color: rgba(0, 180, 216, 0.15);
}

.wf-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wf-radius-md);
    background: var(--wf-gradient-subtle);
    margin-bottom: var(--wf-space-md);
    font-size: 1.5rem;
}

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

.wf-card__text {
    font-size: var(--wf-text-sm);
    color: var(--wf-text-secondary);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.wf-grid {
    display: grid;
    gap: var(--wf-space-lg);
}

.wf-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.wf-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.wf-grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* ============================================================
   FOOTER
   ============================================================ */
.wf-footer {
    background: var(--wf-bg-dark);
    color: var(--wf-text-on-dark);
    padding-top: var(--wf-space-3xl);
    padding-bottom: var(--wf-space-lg);
}

.wf-footer a {
    color: var(--wf-grey-400);
    transition: color var(--wf-transition-fast);
}

.wf-footer a:hover {
    color: var(--wf-white);
}

.wf-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--wf-space-xl);
    margin-bottom: var(--wf-space-2xl);
}

.wf-footer__brand-desc {
    font-size: var(--wf-text-sm);
    color: var(--wf-grey-500);
    line-height: 1.7;
    margin-top: var(--wf-space-md);
    max-width: 300px;
}

.wf-footer__heading {
    font-size: var(--wf-text-sm);
    font-weight: 700;
    color: var(--wf-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--wf-space-md);
}

.wf-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wf-footer__links li {
    margin-bottom: 0.625rem;
}

.wf-footer__links a {
    font-size: var(--wf-text-sm);
}

.wf-footer__bottom {
    padding-top: var(--wf-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--wf-space-md);
}

.wf-footer__copyright {
    font-size: var(--wf-text-xs);
    color: var(--wf-grey-500);
}

.wf-footer__socials {
    display: flex;
    gap: var(--wf-space-sm);
}

.wf-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--wf-radius-full);
    background: rgba(255, 255, 255, 0.06);
    transition: all var(--wf-transition-fast);
}

.wf-footer__social-link:hover {
    background: var(--wf-gradient);
    transform: translateY(-2px);
}

.wf-footer__social-link svg {
    width: 16px;
    height: 16px;
    fill: var(--wf-grey-400);
}

.wf-footer__social-link:hover svg {
    fill: var(--wf-white);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.wf-text-center { text-align: center; }
.wf-text-left { text-align: left; }
.wf-text-right { text-align: right; }

.wf-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;
}

.wf-relative { position: relative; }
.wf-overflow-hidden { overflow: hidden; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes wf-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(2%, -3%) scale(1.02); }
    50% { transform: translate(-1%, 2%) scale(0.98); }
    75% { transform: translate(3%, 1%) scale(1.01); }
}

@keyframes wf-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wf-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wf-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll-triggered animation classes */
.wf-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--wf-transition-slow), transform var(--wf-transition-slow);
}

.wf-animate.wf-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.wf-delay-1 { transition-delay: 100ms; }
.wf-delay-2 { transition-delay: 200ms; }
.wf-delay-3 { transition-delay: 300ms; }
.wf-delay-4 { transition-delay: 400ms; }
.wf-delay-5 { transition-delay: 500ms; }

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .wf-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .wf-nav__list {
        display: none;
    }

    .wf-nav__toggle {
        display: flex;
    }

    /* Mobile nav overlay */
    .wf-nav__list.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        z-index: var(--wf-z-overlay);
        padding: 100px var(--wf-gutter) var(--wf-gutter);
        gap: 0;
        align-items: stretch;
    }

    .wf-nav__list.active .wf-nav__link {
        font-size: var(--wf-text-xl);
        padding: 1rem 0;
        border-bottom: var(--wf-border-subtle);
    }

    /* Force single column on mobile for all grids */
    .wf-grid--2,
    .wf-grid--3,
    .wf-grid--4 {
        grid-template-columns: 1fr;
    }

    .wf-footer__grid {
        grid-template-columns: 1fr;
    }

    .wf-hero__actions {
        flex-direction: column;
    }

    .wf-hero__actions .wf-btn {
        width: 100%;
    }

    .wf-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Ensure card padding is generous on mobile */
    .wf-card {
        padding: 1.75rem;
    }

    /* Section headers full width on mobile */
    .wf-section-header {
        max-width: 100%;
    }

    /* Reduce section spacing on mobile */
    .wf-section {
        padding-top: var(--wf-space-2xl);
        padding-bottom: var(--wf-space-2xl);
    }

    /* Header CTA hide on small screens */
    .wf-header__cta {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE
   ============================================================ */
@media (max-width: 480px) {
    .wf-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--wf-space-xl);
    }

    .wf-btn--lg {
        padding: 1rem 1.75rem;
        font-size: var(--wf-text-sm);
    }

    .wf-card {
        padding: 1.5rem;
    }

    .wf-section-header__title {
        font-size: var(--wf-text-2xl);
    }
}

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

/* Alignment classes */
.alignnone { margin: var(--wf-space-md) 0; }
.aligncenter { display: block; margin: var(--wf-space-md) auto; }
.alignleft { float: left; margin: 0 var(--wf-space-md) var(--wf-space-md) 0; }
.alignright { float: right; margin: 0 0 var(--wf-space-md) var(--wf-space-md); }

/* Caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: var(--wf-space-md);
}

.wp-caption-text {
    font-size: var(--wf-text-sm);
    color: var(--wf-text-tertiary);
    text-align: center;
    padding-top: var(--wf-space-xs);
}

/* Screen reader text - WP standard */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* WP Admin Bar spacing */
.admin-bar .wf-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .wf-header {
        top: 46px;
    }
}
