/*
Theme Name: NutraMEA
Theme URI: https://nutramea.lovable.app
Author: NutraMEA
Author URI: https://nutramea.lovable.app
Description: A modern nutrition and wellness theme with AvantGarde typography. Fully responsive for all devices.
Version: 3.4.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nutramea
Tags: blog, news, responsive-layout, custom-logo, featured-images, nutrition, wellness

NutraMEA WordPress Theme v3.4
Copyright 2025-2026 NutraMEA
AvantGarde Typography
*/

/* ============================================
   Font Imports - AvantGarde Style
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Century+Gothic&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Colors */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(210, 20%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(210, 20%, 15%);
    --primary: hsl(189, 65%, 44%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(44, 72%, 55%);
    --secondary-foreground: hsl(210, 20%, 15%);
    --accent-green: hsl(142, 65%, 45%);
    --accent-orange: hsl(28, 85%, 55%);
    --muted: hsl(210, 20%, 96%);
    --muted-foreground: hsl(210, 12%, 40%);
    --border: hsl(210, 20%, 88%);
    --input: hsl(210, 20%, 90%);
    --ring: hsl(189, 65%, 44%);
    
    /* Custom tokens */
    --turquoise: hsl(189, 65%, 44%);
    --turquoise-light: hsl(189, 65%, 94%);
    --turquoise-dark: hsl(189, 65%, 34%);
    --gold: hsl(44, 72%, 55%);
    --gold-light: hsl(44, 72%, 92%);
    --gold-dark: hsl(44, 72%, 45%);

    /* Border Radius - Organic shapes */
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Typography - AvantGarde Style */
    --font-sans: 'Montserrat', 'Century Gothic', system-ui, -apple-system, sans-serif;
    --font-serif: 'Montserrat', Georgia, serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px 0 hsl(210 20% 12% / 0.04);
    --shadow-md: 0 8px 16px -4px hsl(210 20% 12% / 0.08);
    --shadow-lg: 0 16px 32px -8px hsl(210 20% 12% / 0.12);
    --shadow-xl: 0 24px 48px -12px hsl(210 20% 12% / 0.16);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(189, 65%, 44%) 0%, hsl(142, 65%, 45%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(44, 72%, 55%) 0%, hsl(28, 85%, 55%) 100%);
    --gradient-hero: linear-gradient(180deg, hsl(189, 65%, 96%) 0%, hsl(0, 0%, 98%) 100%);
}

/* ============================================
   Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--foreground);
}

/* Responsive Typography */
h1 { font-size: clamp(1.75rem, 5vw + 0.5rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.125rem, 3vw + 0.25rem, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw + 0.25rem, 1.375rem); }
h5 { font-size: clamp(0.875rem, 2vw, 1.125rem); }
h6 { font-size: clamp(0.75rem, 1.5vw, 1rem); }

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
}

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

p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Container - Responsive
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 480px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 640px) {
    .container { max-width: 640px; padding: 0 2rem; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
    .container { max-width: 1400px; }
}

/* ============================================
   Header - Logo on Left, Full Width Nav Below
   ============================================ */
.site-header {
    background-color: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

/* Logo Row - Logo FIRMLY on Left */
.header-logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .header-logo-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.75rem 0 0.25rem 0;
        border-bottom: none;
    }
}

/* Logo styling */
.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: 2.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

@media (min-width: 640px) {
    .site-logo img {
        height: 3rem;
    }
}

@media (min-width: 768px) {
    .site-logo img {
        height: 3.5rem;
    }
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Navigation Row - Full Width Below Logo */
.header-nav-row {
    display: none;
}

@media (min-width: 768px) {
    .header-nav-row {
        display: block;
        width: 100%;
        padding: 0.25rem 0 0.75rem 0;
    }
}

.header-nav-row .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .header-nav-row .nav-menu {
        gap: 1rem;
    }
}

/* Navigation links */
.nav-link {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
    border-radius: var(--radius);
    position: relative;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav-link {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: var(--turquoise-light);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background-color: var(--turquoise-light);
    color: var(--primary);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile menu */
.mobile-nav {
    display: none;
    position: relative;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    animation: fade-in 0.3s ease;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
}

.mobile-nav .nav-link {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    text-align: left;
}

/* ============================================
   Toast Notification - GREEN BACKGROUND, BOTTOM RIGHT
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, hsl(142, 70%, 45%), hsl(142, 70%, 35%));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-size: 0.9375rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    max-width: 20rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.visible {
    opacity: 1;
    transform: translateX(0);
    animation: slide-in-right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.success {
    background: linear-gradient(135deg, hsl(142, 70%, 50%), hsl(142, 65%, 40%));
}

.toast.success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
}

.toast.error {
    background: linear-gradient(135deg, hsl(0, 70%, 50%), hsl(0, 65%, 40%));
}

.toast.error::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
}

.toast.info {
    background: linear-gradient(135deg, hsl(189, 65%, 50%), hsl(189, 65%, 40%));
}

.toast.info::before {
    content: 'ℹ';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ============================================
   Buttons - Fully Responsive
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

@media (min-width: 768px) {
    .btn {
        padding: 0.875rem 1.75rem;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--secondary-foreground);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary);
    font-weight: 600;
}

.btn-ghost:hover {
    background-color: var(--turquoise-light);
}

/* ============================================
   Cards - Fully Responsive
   ============================================ */
.card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .card {
        border-radius: var(--radius-xl);
    }
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .card:hover {
        transform: translateY(-8px);
    }
}

.card:hover::after {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .card-content {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .card-content {
        padding: 1.75rem;
    }
}

.card-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border-radius: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

@media (min-width: 640px) {
    .card-category {
        font-size: 0.75rem;
        margin-bottom: 0.625rem;
    }
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.625rem;
    line-height: 1.4;
    flex: 1;
}

@media (min-width: 640px) {
    .card-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .card-excerpt {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: auto;
    font-weight: 500;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .card-meta {
        gap: 1.25rem;
        font-size: 0.8125rem;
    }
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Podcast card specific */
.podcast-card .card-image-wrapper {
    position: relative;
}

.podcast-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

@media (min-width: 640px) {
    .podcast-card .play-icon {
        width: 4rem;
        height: 4rem;
    }
}

@media (min-width: 768px) {
    .podcast-card .play-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
}

.podcast-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--gradient-primary);
    color: white;
}

/* Duration badge */
.podcast-card .duration {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--turquoise-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2rem;
    margin-left: 0.5rem;
}

.podcast-card .card-title-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.podcast-card .card-title-wrapper .card-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* ============================================
   Single Post/Podcast Pages
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

.article-featured-image,
.video-player {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.video-player {
    aspect-ratio: 16/9;
    position: relative;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-header,
.video-info {
    margin-bottom: 2.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: var(--secondary-foreground);
}

.article-title,
.video-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--muted);
    border-radius: var(--radius-lg);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.article-content,
.video-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--foreground);
    max-width: 48rem;
}

.article-content p,
.video-description p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.video-description h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3,
.video-description h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol,
.video-description ul,
.video-description ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li,
.video-description li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Grid Layouts - Fully Responsive
   ============================================ */
.grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .grid {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: 2rem;
    }
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
    .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-cols-md-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-lg-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cols-md-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Hero / Page Headers - Responsive
   ============================================ */
.page-header {
    background: var(--gradient-hero);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .page-header {
        padding: 4rem 0 5rem;
    }
}

@media (min-width: 768px) {
    .page-header {
        padding: 5rem 0 7rem;
    }
}

.page-header.calculator-header {
    padding: 2rem 0 2.5rem;
}

@media (min-width: 640px) {
    .page-header.calculator-header {
        padding: 2.5rem 0 3rem;
    }
}

@media (min-width: 768px) {
    .page-header.calculator-header {
        padding: 3rem 0 3.5rem;
    }
}

.page-title {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 4rem);
    font-weight: 900;
    color: var(--foreground);
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    margin-top: 1rem;
    font-size: clamp(0.9375rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--muted-foreground);
    max-width: 42rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .page-subtitle {
        margin-top: 1.5rem;
    }
}

/* ============================================
   Search & Filters - Responsive
   ============================================ */
.search-wrapper {
    position: relative;
    max-width: 100%;
    margin-top: 1rem;
    z-index: 1;
}

@media (min-width: 640px) {
    .search-wrapper {
        max-width: 32rem;
        margin-top: 1.5rem;
    }
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .search-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 0.875rem;
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--foreground);
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .search-input {
        padding: 1rem 1.25rem 1rem 3rem;
        font-size: 0.9375rem;
    }
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsl(189 65% 44% / 0.15), var(--shadow-md);
    transform: translateY(-2px);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    z-index: 1;
    position: relative;
}

@media (min-width: 640px) {
    .filter-tags {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

.filter-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: var(--card);
    color: var(--muted-foreground);
    border: 2px solid var(--border);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

@media (min-width: 640px) {
    .filter-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

.filter-tag:hover {
    background-color: var(--turquoise-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-tag.active {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* ============================================
   Section Spacing - Responsive
   ============================================ */
.section {
    padding: 2.5rem 0;
}

@media (min-width: 640px) {
    .section {
        padding: 3.5rem 0;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 5rem 0;
    }
}

.section-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 640px) {
    .section-header {
        flex-direction: column;
    }
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--foreground);
    position: relative;
    padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .section-title {
        padding-bottom: 1rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ============================================
   Footer - Responsive
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--foreground) 0%, hsl(210, 20%, 10%) 100%);
    color: var(--background);
    padding: 3rem 0 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 0 2rem;
    }
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 5rem 0 2rem;
    }
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        gap: 2.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        gap: 3rem;
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer-brand {
    max-width: 22rem;
}

.footer-logo {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .footer-logo {
        height: 2.75rem;
        margin-bottom: 1.25rem;
    }
}

.footer-description {
    font-size: 0.875rem;
    color: hsl(0 0% 70%);
    line-height: 1.7;
}

@media (min-width: 640px) {
    .footer-description {
        font-size: 0.9375rem;
    }
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--background);
    margin-bottom: 1.25rem;
    font-family: var(--font-sans);
}

@media (min-width: 768px) {
    .footer-title {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .footer-links {
        gap: 0.875rem;
    }
}

.footer-link {
    font-size: 0.875rem;
    color: hsl(0 0% 70%);
    transition: all 0.3s ease;
    display: inline-block;
}

@media (min-width: 640px) {
    .footer-link {
        font-size: 0.9375rem;
    }
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Contact Form in Footer */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .contact-form {
        gap: 1rem;
    }
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background-color: hsl(210 20% 18%);
    border: 2px solid hsl(210 20% 25%);
    border-radius: var(--radius);
    color: var(--background);
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

@media (min-width: 640px) {
    .form-input,
    .form-textarea {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(189 65% 44% / 0.2);
}

.form-textarea {
    min-height: 5rem;
    resize: vertical;
}

@media (min-width: 640px) {
    .form-textarea {
        min-height: 6rem;
    }
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(210 20% 25%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        margin-top: 4rem;
        padding-top: 2rem;
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }
}

.copyright {
    font-size: 0.8125rem;
    color: hsl(0 0% 50%);
}

@media (min-width: 640px) {
    .copyright {
        font-size: 0.875rem;
    }
}

.footer-legal-links {
    display: none;
}

/* ============================================
   Forms - Responsive
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .form-label {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
    }
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background-color: var(--card);
    border: 2px solid var(--border);
    color: var(--foreground);
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

@media (min-width: 640px) {
    .form-control {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsl(189 65% 44% / 0.15);
}

textarea.form-control {
    min-height: 8rem;
    resize: vertical;
}

@media (min-width: 640px) {
    textarea.form-control {
        min-height: 10rem;
    }
}

/* ============================================
   Careers Page
   ============================================ */
.careers-hero {
    background: var(--gradient-hero);
    padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
    .careers-hero {
        padding: 5rem 0 6rem;
    }
}

.careers-intro {
    max-width: 42rem;
}

.careers-values {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .careers-values {
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .careers-values {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 3rem;
    }
}

.value-card {
    background-color: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

@media (min-width: 640px) {
    .value-card {
        padding: 2rem;
    }
}

.value-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.value-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .value-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1.25rem;
    }
}

.value-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.625rem;
    font-family: var(--font-sans);
}

@media (min-width: 640px) {
    .value-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

.value-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

@media (min-width: 640px) {
    .value-description {
        font-size: 0.9375rem;
    }
}

.application-form {
    max-width: 44rem;
    margin: 0 auto;
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
    .application-form {
        padding: 2.5rem;
    }
}

.form-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: var(--font-sans);
}

@media (min-width: 640px) {
    .form-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

.file-input-wrapper {
    position: relative;
    display: block;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    width: 100%;
}

@media (min-width: 640px) {
    .file-input-label {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name-display {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    font-style: italic;
}

/* ============================================
   Calculator
   ============================================ */
.calculator-card {
    max-width: 48rem;
    margin: 0 auto;
    background-color: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.calculator-header {
    background: var(--gradient-primary);
    padding: 1.75rem 2rem;
    text-align: center;
}

@media (min-width: 640px) {
    .calculator-header {
        padding: 2rem 2.5rem;
    }
}

.calculator-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    font-family: var(--font-sans);
}

@media (min-width: 640px) {
    .calculator-title {
        font-size: 1.75rem;
    }
}

.calculator-body {
    padding: 2rem;
}

@media (min-width: 640px) {
    .calculator-body {
        padding: 2.5rem;
    }
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculator-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calculator-input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background-color: var(--muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    font-weight: 600;
    text-align: center;
}

.calculator-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsl(189 65% 44% / 0.15);
}

.calculator-operator {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    font-weight: 700;
    min-width: 3.5rem;
    text-align: center;
}

.calculator-operator:hover {
    background-color: var(--turquoise-light);
    border-color: var(--primary);
    color: var(--primary);
}

.calculator-operator.active {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border-color: transparent;
}

.delete-input-btn {
    padding: 0.875rem;
    background-color: hsl(0, 65%, 50%);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-input-btn:hover {
    background-color: hsl(0, 65%, 40%);
    transform: scale(1.05);
}

.calculator-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.calculator-result {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--turquoise-light), var(--gold-light));
    border-radius: var(--radius-lg);
    text-align: center;
    display: none;
}

.calculator-result.visible {
    display: block;
    animation: fade-in 0.5s ease;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-sans);
    word-break: break-all;
}

@media (min-width: 640px) {
    .result-value {
        font-size: 3.5rem;
    }
}

.result-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .result-label {
        font-size: 0.9375rem;
    }
}

/* ============================================
   Contributors Section
   ============================================ */
.contributors-section {
    background-color: var(--muted);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .contributors-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .contributors-section {
        padding: 5rem 0;
    }
}

.contributor-card {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    text-align: center;
}

.contributor-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.contributor-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--turquoise-light);
}

.contributor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contributor-title {
    font-size: 0.9375rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contributor-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.contributor-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: hsl(201, 100%, 35%);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contributor-linkedin:hover {
    background-color: hsl(201, 100%, 30%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Utilities
   ============================================ */
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.hidden { display: none; }

@media (min-width: 640px) {
    .sm-block { display: block; }
    .sm-hidden { display: none; }
}

@media (min-width: 768px) {
    .md-flex { display: flex; }
    .md-block { display: block; }
    .md-hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg-flex { display: flex; }
    .lg-block { display: block; }
    .lg-hidden { display: none; }
}

.relative { position: relative; }
.absolute { position: absolute; }

/* WordPress required classes */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted-foreground); }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1.5rem auto; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .mobile-menu-btn,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        break-inside: avoid;
    }
}