/* ==========================================================================
   EVENUP CLONE THEME - Fade Dark Green Aesthetic
   Exact Replica Metrics of evenuplaw.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Onest:wght@400;500;600&display=swap');

:root {
    /* --- Colors: The "Fade Dark Green" Palette --- */
    /* Primary Backgrounds */
    --bg-page: #f8f8f8;
    /* EvenUp Off-White Page BG */
    --bg-white: #ffffff;
    /* Cards / Main Content Areas */
    --bg-dark-green: #082111;
    /* The "Fade Dark Green" replacing Navy (#001943) */
    --bg-darker-green: #031208;
    /* for Footer/Deep sections */

    /* Text Colors */
    --text-primary: #082111;
    /* Headers (Dark Green instead of Navy) */
    --text-body: #333333;
    /* Standard Body */
    --text-on-dark: #ffffff;
    --text-muted: #666666;

    /* Accents & Buttons */
    /* EvenUp uses #002eb9 (Electric Blue). We use a "Fade Dark Green" accent. */
    /* We need a green that pops but is "fade/dark". */
    --color-accent: #195233;
    /* Elegant Forest Green button */
    --color-accent-hover: #113d25;

    --border-light: #e6e6e6;
    /* Subtle borders */

    /* --- Typography (EvenUp Exact + Heritage Outfit) --- */
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    /* Restoration of "Outfit" for headings */
    --font-body: 'Onest', 'Inter', system-ui, -apple-system, sans-serif;

    /* --- Spacing & Layout (EvenUp Metrics) --- */
    --container-max: 1400px;
    /* Wide Layout */
    --container-pad: 32px;
    --section-pad-y: 100px;
    /* Standard spacing */

    /* --- Component Metrics --- */
    --radius-pill: 30px;
    /* Specific EvenUp button radius */
    --radius-card: 16px;
    /* Specific EvenUp card radius */

    --bg-hero-light: #fdfdfd;
    --text-hero-dark: #082111;

    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
    /* Soft, expensive shadow */
    --backdrop-blur: blur(12px);
}

/* ==========================================================================
   Global Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 18px;
    /* Slightly larger body text like EvenUp */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h1 {
    font-size: 80px;
}

h2 {
    font-size: 56px;
}

h3 {
    font-size: 40px;
}

h4 {
    font-size: 24px;
}

p {
    margin-bottom: 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
}

.section {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
}

.section.bg-dark {
    background-color: var(--bg-dark-green);
    color: var(--text-on-dark);
}

.section.bg-dark h1,
.section.bg-dark h2,
.section.bg-dark h3,
.section.bg-dark p,
.section.bg-dark a {
    color: var(--text-on-dark);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Buttons (Exact Pill Shape) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 38px;
    /* Exact EvenUp padding */
    font-weight: 600;
    font-size: 14px;
    /* EvenUp uses relatively small button text */
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
    /* EvenUp style */
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
}

.btn-white {
    background-color: #ffffff;
    color: var(--text-primary);
}

.btn-white:hover {
    background-color: #f2f2f2;
}

/* === Success Stories Slider (Portrait Cards with Glassmorphism) === */
.slider-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-card {
    scroll-snap-align: start;
    width: calc((100% - 48px) / 3);
    min-width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    /* Show exactly 3 cards: (100% - 2 gaps of 24px) / 3 */
    flex: 0 0 auto;
    flex-shrink: 0;
    height: 480px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    /* Portrait orientation */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
}

.slider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent);
}

.slider-card-img-wrapper {
    width: 100%;
    height: 65%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.slider-card-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.slider-card:hover .slider-card-img {
    transform: scale(1.08);
}

.slider-stat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--bg-dark-green);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(calc(100% - 80px));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.slider-card:hover .slider-card-content {
    transform: translateY(0);
}

.slider-quote {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--bg-dark-green);
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.slider-card:hover .slider-quote {
    opacity: 1;
}

.slider-author {
    margin-top: auto;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-dark-green);
    margin-bottom: 4px;
}

.author-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Navigation (Sticky Glass) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 96px;
    /* EvenUp Height */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-left: 64px;
    flex: 1;
}

.nav-menu .btn {
    margin-left: auto;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--color-accent);
}

/* === Footer Social Icons === */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    opacity: 0.8;
}

.social-link:hover .social-icon {
    opacity: 1;
}

/* --- Cards (EvenUp Style) --- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

/* --- Common Sections --- */
.hero-wrapper {
    padding-top: 240px;
    padding-bottom: 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(at 10% 10%, rgba(25, 82, 51, 0.05) 0%, transparent 50%),
        radial-gradient(at 90% 90%, rgba(74, 222, 128, 0.05) 0%, transparent 50%),
        var(--bg-hero-light);
    color: var(--bg-dark-green);
}

.hero-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.02;
    pointer-events: none;
    z-index: 1;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(25, 82, 51, 0.02) 50%,
            transparent 55%);
    animation: shine 15s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(50%) translateY(50%) rotate(0deg);
    }
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    font-size: 88px;
    color: var(--bg-dark-green);
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 24px;
    color: var(--text-body);
    margin: 0 auto 48px;
    max-width: 720px;
    opacity: 0.8;
}

/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- Text Styles --- */
.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-darker-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 100px 0 40px;
}

.footer h4 {
    color: #ffffff;
    margin-bottom: 32px;
    font-size: 16px;
}

.footer a {
    display: block;
    margin-bottom: 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer a:hover {
    color: #ffffff;
}

/* === Hamburger Menu (Mobile Only) === */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background-color: var(--color-accent);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Close Menu Button */
.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    z-index: 1002;
}

.close-menu:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {

    /* Container & Spacing */
    .container {
        padding: 0 20px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Typography */
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }

    /* Hero Section */
    .hero-wrapper {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .hero-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Navigation */
    .navbar {
        position: fixed !important;
        height: auto;
        padding: 16px 0;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 0;
    }

    .nav-logo img {
        height: 32px;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Show mobile overlay on mobile */
    .mobile-menu-overlay {
        display: block;
    }

    /* Show close button on mobile */
    .close-menu {
        display: block;
    }

    /* Slide-in drawer menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        z-index: 1000;
        padding: 80px 24px 24px;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        margin-left: 0;
        margin-top: 0;
        align-items: stretch;
        gap: 12px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        text-align: left;
        padding: 14px 16px;
        border-radius: 8px;
        background: #f8f8f8;
        transition: background 0.2s ease;
    }

    .nav-link:hover {
        background: #e8e8e8;
    }

    .nav-item-dropdown {
        width: 100%;
    }

    .nav-link-dropdown {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 8px;
        background: #f8f8f8;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 8px 0 0 0;
        background: transparent;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown:focus-within .dropdown-menu {
        max-height: 300px;
        pointer-events: auto;
    }

    .dropdown-item {
        background: #ffffff;
        margin-bottom: 4px;
        border-radius: 6px;
        border: 1px solid #e6e6e6;
        padding: 12px 16px;
    }

    .nav-menu .btn {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }

    /* Customer Stories Slider */
    .slider-track {
        gap: 16px;
    }

    .slider-card {
        min-width: 85%;
        max-width: 85%;
        width: 85%;
        height: auto;
    }

    .slider-card-img-wrapper {
        height: 200px;
    }

    .slider-card-content {
        position: static;
        transform: none;
        padding: 24px;
        background: #ffffff;
        border-top: 1px solid #e6e6e6;
    }

    .slider-quote {
        opacity: 1;
        font-size: 15px;
        margin-bottom: 16px;
    }

    .author-name {
        font-size: 16px;
    }

    .author-meta {
        font-size: 12px;
    }

    .slider-stat-badge {
        top: 12px;
        left: 12px;
        font-size: 11px;
        padding: 6px 12px;
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Cards */
    .card {
        padding: 24px;
    }

    /* Buttons */
    .btn {
        padding: 14px 28px;
        font-size: 13px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* Stats Section */
    .grid-4.text-center h3 {
        font-size: 36px !important;
    }

    .grid-4.text-center p {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 30px;
    }

    .footer h4 {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .footer a {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-social {
        justify-content: center;
    }

    /* Glass Decorations - Hide on mobile */
    .glass-deco {
        display: none;
    }

    /* Text Labels */
    .text-label {
        font-size: 11px;
    }

    /* Lead Text */
    .lead-text {
        font-size: 16px;
    }
}

/* Tablet / Intermediate Responsive Fixes */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-card {
        min-width: calc((100% - 48px) / 2);
        max-width: calc((100% - 48px) / 2);
        width: calc((100% - 48px) / 2);
    }
}

/* Large Mobile / Small Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

    .hero-wrapper {
        padding-top: 160px;
        padding-bottom: 100px;
    }

    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Glassy Decorations (Vibrant/Brighter Re-introduction) */
.glass-deco {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    /* Increased opacity */
    animation: float 8s ease-in-out infinite;
    filter: blur(60px) brightness(1.2);
    /* Increased blur and brightness */
}

.glass-deco-1 {
    top: -50px;
    right: -50px;
    width: 700px;
    height: auto;
    background: radial-gradient(circle, rgba(25, 82, 51, 0.8) 0%, transparent 70%);
    /* Brighter Forest Green */
}

.glass-deco-2 {
    bottom: -100px;
    left: -100px;
    width: 600px;
    height: auto;
    transform: rotate(45deg);
    background: radial-gradient(circle, rgba(74, 222, 128, 0.4) 0%, transparent 70%);
    /* Emerald hint */
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Ensure container context for absolute positioning */
.hero,
.section {
    position: relative;
    overflow: hidden;
}

/* === Dropdown Menu Styles === */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    fill: currentColor;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    padding: 8px 0;
    z-index: 1000;
    pointer-events: none;
    /* Prevent click when hidden */
}

/* Show dropdown on hover */
.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--bg-darker-green);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: var(--color-accent);
}