/* ===== FUNCTIONS & UTILITIES PAGE STYLES ===== */

/* Color Variables - Matching Main Site */
:root {
    --deep-muted-green: #1e392f;
    --off-white-cream: #fdfdf5;
    --muted-gold: #daa520;
    --deep-green-text: #1e392f;
    --gold-accent: #e6b800;
    --premium-shadow: rgba(0, 0, 0, 0.08);
    --text-light: #6c757d;
}

/* Premium Hero Section */
.functions-hero {
    position: relative;
    height: 45vh;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e392f 0%, #2a4a3f 50%, #1e392f 100%);
    overflow: hidden;
}

.functions-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(30, 57, 47, 0.3) 0%,
            rgba(30, 57, 47, 0.5) 100%);
}

.functions-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    padding-top: 3rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--off-white-cream);
    margin-bottom: 0.8rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(253, 253, 245, 0.9);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

/* Intro Section */
.functions-intro {
    padding: 4rem 0;
    background: #ffffff;
    position: relative;
}

.functions-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--muted-gold), var(--gold-accent));
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.9;
    font-weight: 400;
}

/* Functions Grid Section */
.functions-grid {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--off-white-cream) 0%, #ffffff 100%);
    position: relative;
}

.functions-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
}

.function-card {
    background: #ffffff;
    padding: 2rem 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(218, 165, 32, 0.1);
    box-shadow: 0 3px 15px var(--premium-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--muted-gold), var(--gold-accent));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.function-card:hover::before {
    transform: scaleY(1);
}

.function-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(218, 165, 32, 0.2);
}

.function-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--muted-gold), var(--gold-accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
}

.function-card:hover .function-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(218, 165, 32, 0.4);
}

.function-icon svg {
    width: 32px;
    height: 32px;
    color: var(--deep-green-text);
}

.function-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-green-text);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.function-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Implementation Section */
.implementation-section {
    padding: 4rem 0;
    background: #ffffff;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 20px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--deep-green-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.implementation-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.implementation-card {
    background: linear-gradient(135deg, var(--off-white-cream) 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(218, 165, 32, 0.1);
    box-shadow: 0 4px 20px var(--premium-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.implementation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(218, 165, 32, 0.2);
}

.implementation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.implementation-card:hover::before {
    transform: scale(1.2);
    opacity: 0.8;
}

.implementation-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.implementation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--muted-gold), var(--gold-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
}

.implementation-card:hover .implementation-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.implementation-icon svg {
    width: 28px;
    height: 28px;
    color: var(--deep-green-text);
}

.implementation-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-green-text);
    margin: 0;
    line-height: 1.3;
}

.implementation-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(218, 165, 32, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.implementation-image:hover {
    border-color: rgba(218, 165, 32, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.implementation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.implementation-image:hover .implementation-img {
    transform: scale(1.05);
}

/* Fallback styling if images don't load */
.implementation-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--off-white-cream) 0%, #f8f9fa 100%);
    z-index: -1;
}

.implementation-image::after {
    content: 'Image Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--muted-gold);
    font-weight: 500;
    z-index: -1;
}

.implementation-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Investment Section */
.investment-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e392f 0%, #2a4a3f 100%);
    color: var(--off-white-cream);
    position: relative;
    overflow: hidden;
}

.investment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: investmentGlow 10s ease-in-out infinite;
}

@keyframes investmentGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.investment-section .section-label {
    background: rgba(218, 165, 32, 0.2);
    color: var(--muted-gold);
}

.investment-section .section-title {
    color: var(--off-white-cream);
}

.investment-grid {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.investment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.investment-card {
    background: rgba(253, 253, 245, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.investment-card:hover {
    background: rgba(253, 253, 245, 0.08);
    border-color: rgba(218, 165, 32, 0.3);
    transform: translateY(-4px);
}

.investment-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--muted-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.investment-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--muted-gold);
    flex-shrink: 0;
}

.investment-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(253, 253, 245, 0.9);
}

.investment-card p:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .functions-grid .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .functions-hero {
        height: 45vh;
        min-height: 280px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .functions-grid .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .implementation-content,
    .investment-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .functions-hero {
        height: 40vh;
        min-height: 250px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .functions-intro,
    .functions-grid,
    .implementation-section,
    .investment-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .intro-text {
        font-size: 1.2rem;
    }

    .functions-grid .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .function-card {
        padding: 1.8rem 1.5rem;
    }

    .function-icon {
        width: 56px;
        height: 56px;
    }

    .function-icon svg {
        width: 28px;
        height: 28px;
    }

    .implementation-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .implementation-icon {
        width: 50px;
        height: 50px;
    }

    .implementation-image {
        height: 200px;
    }

    .implementation-card,
    .investment-card {
        padding: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .functions-hero {
        height: 35vh;
        min-height: 220px;
    }

    .functions-hero .hero-content {
        padding-top: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .functions-intro,
    .functions-grid,
    .implementation-section,
    .investment-section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1.05rem;
    }

    .function-card {
        padding: 1.5rem;
    }

    .function-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.5rem;
    }

    .function-title {
        font-size: 1.3rem;
    }

    .function-description {
        font-size: 1rem;
    }

    .implementation-card-header {
        gap: 0.8rem;
    }

    .implementation-icon {
        width: 45px;
        height: 45px;
    }

    .implementation-icon svg {
        width: 22px;
        height: 22px;
    }

    .implementation-image {
        height: 180px;
        margin-bottom: 1rem;
    }

    .implementation-card,
    .investment-card {
        padding: 1.5rem;
    }

    .implementation-card h3,
    .investment-card h3 {
        font-size: 1.2rem;
    }
}