/**
 * Agency Our Work Showcase Stylesheet
 * 2x2 Portfolio Grid with Edge-to-Edge Mockups & Website Color Hierarchy Canvas
 *
 * Capabilities:
 * - Pure Website Color Hierarchy Background: Luminous Warm Canvas (#F6F8F6)
 * - Atmospheric Emerald Glows (#14B866) matching Hero and Services
 * - Subtle Architectural Grid Texture (48px) with radial fade
 * - Perfectly Fitted Section Header with Signature Eyebrow Pill Badge
 * - 2x2 Grid of Cards with Full-Bleed Mockup Images (edge-to-edge)
 * - Modern Floating White Glass Capsule Pill Badges in Top-Right Corner
 * - Space Grotesk (Headings) & Inter (Subtitles) Website Typography Hierarchy
 * - Brand Green (#14B866) Primary Accent for Hover Buttons, Titles & Bottom CTA
 * - Interactive Circular Arrow Trigger Buttons with Rock-Solid White Arrow on Hover
 * - Strict Anti-Blue Override
 * - Zero personal names
 */

/* ── 01. Reset & Scoping ─────────────────────────────────────── */
.aow-section,
.aow-section *,
.aow-section *::before,
.aow-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Strict Anti-Blue Override */
body .aow-section a,
body .aow-section button,
body.ast-page-builder-template .aow-section a,
body.ast-page-builder-template .aow-section button {
    text-decoration: none;
    outline: none !important;
    border-color: transparent;
    -webkit-tap-highlight-color: transparent;
}

/* ── 02. Section Container & Atmosphere (Modern Work Showcase Hierarchy) ── */
.aow-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(84px, 9vw, 130px);
    padding-bottom: clamp(84px, 9vw, 130px);
    background-color: #DFECE4; /* Distinct Modern Mint-Sage Studio Canvas */
    background-image: 
        radial-gradient(ellipse 90% 60% at 50% -5%, rgba(255, 255, 255, 0.95) 0%, transparent 65%),
        radial-gradient(circle at 12% 25%, rgba(20, 184, 102, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 88% 75%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #D4E6DC 0%, #E2EFE7 30%, #EAF4EE 65%, #D7EADB 100%);
    border-top: 1px solid rgba(20, 184, 102, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 20px 40px -15px rgba(20, 184, 102, 0.12);
    color: #0F172A;
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Atmosphere Layers (Glows & Faint Grid matching Hero/Services) */
.aow-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Central Ambient Stage */
.aow-atmosphere__stage {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.75) 0%, transparent 75%);
}

/* Modern Precision Dot-Matrix Grid Texture */
.aow-atmosphere__grid {
    position: absolute;
    inset: 0;
    background-size: 32px 32px;
    background-image: radial-gradient(rgba(20, 184, 102, 0.24) 1.2px, transparent 1.2px);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 20%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 20%, transparent 85%);
}

/* Atmospheric Emerald Glows (Brand Color Hierarchy) */
.aow-atmosphere__glow-top {
    position: absolute;
    width: 750px;
    height: 750px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(20, 184, 102, 0.14) 0%, rgba(20, 184, 102, 0.03) 50%, transparent 70%);
    filter: blur(50px);
}

.aow-atmosphere__glow-bottom {
    position: absolute;
    width: 800px;
    height: 800px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.02) 50%, transparent 70%);
    filter: blur(50px);
}

/* Dark Mode Support */
.aow-section--dark {
    background-color: #0B0D11 !important;
    background-image: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    color: #FFFFFF;
}

.aow-section--dark .aow-atmosphere__stage {
    background: radial-gradient(circle at 50% 30%, rgba(20, 24, 32, 0.65) 0%, transparent 80%);
}

.aow-section--dark .aow-atmosphere__grid {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.aow-section--dark .aow-title {
    color: #FFFFFF !important;
}

.aow-section--dark .aow-subtitle {
    color: #94A3B8 !important;
}

.aow-section--dark .aow-eyebrow-pill {
    background: rgba(20, 184, 102, 0.12) !important;
    border-color: rgba(20, 184, 102, 0.35) !important;
}

.aow-section--dark .aow-eyebrow-text {
    color: #E2E8F0 !important;
}

.aow-container {
    position: relative;
    z-index: 2;
    width: min(1260px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── 03. Fitted Section Header (Website Font Hierarchy & Eyebrow) ── */
.aow-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto clamp(44px, 5.5vw, 64px) auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Eyebrow Pill Badge - Unified Website Signature */
.aow-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(20, 184, 102, 0.08);
    border: 1px solid rgba(20, 184, 102, 0.25);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.aow-eyebrow-pill:hover {
    border-color: rgba(20, 184, 102, 0.45);
    box-shadow: 0 4px 14px rgba(20, 184, 102, 0.12);
    transform: translateY(-1px);
}

.aow-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #14B866;
    box-shadow: 0 0 0 0 rgba(20, 184, 102, 0.7);
    animation: aowPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    flex-shrink: 0;
}

@keyframes aowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(20, 184, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(20, 184, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(20, 184, 102, 0);
    }
}

.aow-eyebrow-text {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #334155;
}

/* Main Heading tailored to website hierarchy */
.aow-title {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-transform: uppercase;
    color: #0F172A;
    margin: 0 0 14px 0;
    max-width: 780px;
}

/* Subtitle matching site style */
.aow-subtitle {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.6;
    color: #475569;
    max-width: 620px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

/* ── 04. 2x2 Portfolio Grid ──────────────────────────────────── */
.aow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 3.2vw, 38px);
    width: 100%;
    margin-bottom: clamp(48px, 5.5vw, 64px);
}

/* ── 05. Portfolio Card ──────────────────────────────────────── */
.aow-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: clamp(380px, 35vw, 450px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 45px -14px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(20, 184, 102, 0.10);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.aow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 70px -15px rgba(20, 184, 102, 0.26), 0 0 0 1px rgba(20, 184, 102, 0.35);
}

/* ── Top-Right Modern Floating White Capsule Badge ── */
.aow-card__tab {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
    box-shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.aow-card__tab::before,
.aow-card__tab::after {
    display: none !important;
    content: none !important;
}

.aow-card:hover .aow-card__tab {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.18);
}

.aow-pill {
    padding: 4px 11px;
    border-radius: 9999px;
    background: #F1F5F9;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0F172A;
    font-family: 'Helvetica', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.aow-pill:hover {
    background: #14B866;
    border-color: #14B866;
    color: #FFFFFF;
}

/* ── Full-Bleed Mockup Image Area (Extends Edge-to-Edge of Card) ── */
.aow-card__image-area {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 260px;
    overflow: hidden;
    background: #EAEBED;
    padding: 0 !important;
    margin: 0 !important;
}

.aow-card__img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.aow-card:hover .aow-card__img {
    /* no image scale */
}

/* ── Card Footer: Space Grotesk Title, Subtitle & Brand Green Action Button ── */
.aow-card__footer {
    padding: 22px 34px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.aow-card__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aow-card__title {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(20px, 2.1vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0F172A;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.aow-card:hover .aow-card__title {
    color: #14B866;
}

.aow-card__subtitle {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
    margin: 0;
    line-height: 1;
}

/* ── Circular Arrow Trigger Button (Brand Green Hierarchy) ── */
.aow-card__btn {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    border: 1.5px solid #14B866 !important;
    background: #FFFFFF !important;
    color: #14B866 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(20, 184, 102, 0.12) !important;
}

.aow-card__btn svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #14B866 !important;
    color: #14B866 !important;
    fill: none !important;
    display: block !important;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.aow-card__btn svg path {
    stroke: currentColor !important;
    stroke-width: 1.6 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Unified Button State Across All Cards: Clean White by default, Emerald on Hover/Active */
.aow-card:hover .aow-card__btn,
.aow-card.is-active .aow-card__btn,
.aow-card__btn:hover,
.aow-card__btn:focus,
.aow-card__btn:active {
    background: linear-gradient(135deg, #14B866 0%, #10B981 100%) !important;
    border-color: #14B866 !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px -2px rgba(20, 184, 102, 0.45) !important;
    transform: scale(1.05) !important;
}

.aow-card:hover .aow-card__btn svg,
.aow-card.is-active .aow-card__btn svg,
.aow-card__btn:hover svg,
.aow-card__btn:focus svg,
.aow-card__btn:active svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: translateX(3px) !important;
}

.aow-card--featured .aow-card__btn svg line,
.aow-card--featured .aow-card__btn svg polyline,
.aow-card--featured .aow-card__btn svg path,
.aow-card:hover .aow-card__btn svg line,
.aow-card:hover .aow-card__btn svg polyline,
.aow-card:hover .aow-card__btn svg path,
.aow-card__btn:hover svg line,
.aow-card__btn:hover svg polyline,
.aow-card__btn:hover svg path,
.aow-card__btn:focus svg line,
.aow-card__btn:focus svg polyline,
.aow-card__btn:focus svg path {
    stroke: #FFFFFF !important;
    fill: none !important;
}

/* ── 06. Centered Bottom CTA Button (Brand Green Hierarchy) ── */
.aow-bottom-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #14B866 0%, #10B981 100%);
    color: #FFFFFF !important;
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px -4px rgba(20, 184, 102, 0.42);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none !important;
}

.aow-bottom-cta svg {
    width: 16px;
    height: 16px;
    stroke: #FFFFFF !important;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.25s ease;
}

.aow-bottom-cta svg line,
.aow-bottom-cta svg polyline,
.aow-bottom-cta svg path {
    stroke: #FFFFFF !important;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aow-bottom-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 36px -4px rgba(20, 184, 102, 0.6);
    color: #FFFFFF !important;
}

.aow-bottom-cta:hover svg {
    transform: translate(2px, -2px);
}

/* ── 07. Responsive Breakpoints ──────────────────────────────── */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .aow-grid {
        gap: 24px;
    }

    .aow-card {
        height: 400px;
    }

    .aow-card__footer {
        padding: 20px 28px 24px;
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .aow-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .aow-container {
        width: calc(100% - 32px);
    }

    .aow-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .aow-card {
        height: 390px;
        border-radius: 22px;
    }

    .aow-card__tab {
        top: 14px;
        right: 14px;
        padding: 5px 10px;
    }

    .aow-pill {
        font-size: 10.5px;
        padding: 3px 9px;
    }

    .aow-card__footer {
        padding: 18px 22px 20px;
    }

    .aow-card__title {
        font-size: 20px;
    }

    .aow-card__btn {
        width: 42px !important;
        height: 42px !important;
    }
}

/* ── Unified Arrow Styles ── */
.aow-bottom-cta svg.aow-btn-arrow {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    stroke-width: 1.6 !important;
    fill: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.aow-bottom-cta:hover svg.aow-btn-arrow {
    transform: translateX(4px) !important;
}