/*
Theme Name: ChewNews Child Theme
Template: oceanwp
Version: 1.0.0
Description: Food & restaurant tools theme with recipe cost, meal planning, and nutrition calculators
Author: ChewNews Team
Author URI: https://chewnews.com
Design Philosophy: Appetizing, warm, fresh - every element invites exploration
*/

/* ============================================
   CSS VARIABLES - FOOD-THEMED DESIGN SYSTEM
   ============================================ */
:root {
   /* FOOD THEME COLORS - Appetizing palette */
   --brand-primary: #E63946;      /* Red Tomato - passion, appetite, energy */
   --brand-secondary: #F77F00;    /* Orange Spice - warmth, enthusiasm, creativity */
   --brand-accent: #06A77D;       /* Fresh Green - healthy, natural, growth */

   /* SEMANTIC COLORS */
   --color-success: #06A77D;      /* Fresh green - healthy choice */
   --color-warning: #F77F00;      /* Orange - attention needed */
   --color-danger: #E63946;       /* Red - urgent/expired */
   --color-info: #457B9D;         /* Blue - informational */

   /* TEXT HIERARCHY */
   --text-primary: #1D3557;       /* Dark navy - strong readability */
   --text-secondary: #457B9D;     /* Blue-grey - supporting text */
   --text-muted: #A8DADC;         /* Light blue - subtle text */
   --text-inverse: #FFFFFF;       /* White - on dark backgrounds */

   /* BACKGROUNDS - Layered kitchen aesthetic */
   --bg-primary: #FFFFFF;         /* Clean white - main content */
   --bg-secondary: #F1FAEE;       /* Mint cream - soft sections */
   --bg-muted: #E8F4F2;          /* Pale mint - subtle backgrounds */
   --bg-dark: #1D3557;           /* Navy - footer, headers */

   /* BORDERS */
   --border-color: #E0E8E6;
   --border-color-hover: #C8D6D4;

   /* BORDER RADIUS - Friendly, appetizing curves */
   --border-radius: 8px;
   --border-radius-lg: 16px;
   --border-radius-xl: 24px;

   /* SHADOWS - Depth and warmth */
   --shadow-sm: 0 2px 4px rgba(230, 57, 70, 0.08);
   --shadow-md: 0 4px 12px rgba(230, 57, 70, 0.1);
   --shadow-lg: 0 10px 30px rgba(230, 57, 70, 0.12);
   --shadow-xl: 0 20px 40px rgba(230, 57, 70, 0.15);
   --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);

   /* SPACING - Consistent rhythm (8px base) */
   --space-xs: 4px;
   --space-sm: 8px;
   --space-md: 16px;
   --space-lg: 24px;
   --space-xl: 32px;
   --space-2xl: 48px;
   --space-3xl: 64px;
   --space-4xl: 96px;

   /* TYPOGRAPHY - Readable scale */
   --font-sm: 14px;
   --font-base: 16px;
   --font-lg: 18px;
   --font-xl: 20px;
   --font-2xl: 24px;
   --font-3xl: 32px;
   --font-4xl: 48px;
   --font-5xl: 64px;

   /* LINE HEIGHTS */
   --leading-tight: 1.2;
   --leading-normal: 1.5;
   --leading-relaxed: 1.8;

   /* INTERACTIVE ELEMENTS */
   --height-input: 48px;
   --height-button: 48px;
   --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
   --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

   /* GRADIENTS - Appetizing warmth */
   --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
   --gradient-fresh: linear-gradient(135deg, var(--brand-accent) 0%, #06A77D 100%);
   --gradient-subtle: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.02) 100%);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    font-size: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.section {
    padding: var(--space-4xl) 0;
}

/* ============================================
   CARDS - Elevated containers
   ============================================ */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
    overflow: hidden;
    transition: var(--transition-base);
}

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

.card-header {
    padding: var(--space-xl);
    border-bottom: 2px solid var(--bg-secondary);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.card-title {
    margin: 0;
    font-size: var(--font-2xl);
    color: var(--text-primary);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}

.card-subtitle {
    margin: var(--space-sm) 0 0;
    color: var(--text-secondary);
    font-size: var(--font-base);
}

.card-body {
    padding: var(--space-2xl);
}

/* ============================================
   BUTTONS - Inviting, tactile
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-base);
    min-height: var(--height-button);
    position: relative;
    overflow: hidden;
}

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

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

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

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--gradient-fresh);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-lg);
    min-height: 56px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============================================
   FORMS - Clean, accessible
   ============================================ */
.form-group {
    margin-bottom: var(--space-xl);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-sm);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-base);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    min-height: var(--height-input);
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--border-color-hover);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
    background: var(--bg-primary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-help {
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: var(--leading-relaxed);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

/* ============================================
   APP INTERFACE (TOOLS)
   ============================================ */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.app-form {
    margin: var(--space-2xl) 0;
}

.app-results {
    padding: var(--space-2xl);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    margin-top: var(--space-2xl);
    border: 2px solid var(--bg-muted);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-error {
    padding: var(--space-lg);
    background: #FEE;
    border-left: 4px solid var(--color-danger);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
    color: var(--color-danger);
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.results-title {
    font-size: var(--font-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
    font-weight: 700;
}

.result-primary {
    background: white;
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

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

.result-label {
    display: block;
    font-size: var(--font-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    display: block;
    font-size: var(--font-5xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
}

.results-breakdown {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.result-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: var(--font-lg);
}

/* ============================================
   PAGE COMPONENTS
   ============================================ */
.page-header {
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-muted) 100%);
    margin-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-icon {
    font-size: var(--font-5xl);
    display: block;
    margin-bottom: var(--space-lg);
    animation: float 3s ease-in-out infinite;
}

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

.page-title {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}

.page-description {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: var(--space-3xl) 0;
}

.content-section {
    margin-bottom: var(--space-4xl);
}

.content-section h2 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--space-md);
}

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

.content-section h3 {
    font-size: var(--font-xl);
    margin: var(--space-xl) 0 var(--space-md);
    font-weight: 600;
    color: var(--text-primary);
}

.content-section p {
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.content-section ul,
.content-section ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.content-section li {
    margin-bottom: var(--space-sm);
    line-height: var(--leading-relaxed);
}

/* ============================================
   WIDGETS
   ============================================ */
.widget {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--bg-secondary);
}

.widget-title {
    font-size: var(--font-xl);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    color: var(--text-primary);
}

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

.widget-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--bg-secondary);
    transition: var(--transition-fast);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li:hover {
    padding-left: var(--space-sm);
    background: var(--bg-secondary);
}

.widget-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.widget-list a:hover {
    color: var(--brand-primary);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: var(--space-md) 0;
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.breadcrumbs .separator {
    margin: 0 var(--space-sm);
    color: var(--text-muted);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.site-header.scrolled {
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.site-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    transition: var(--transition-base);
}

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

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-md);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    transition: var(--transition-fast);
    border-radius: var(--border-radius);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a:hover {
    color: var(--brand-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
    position: relative;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-lg);
}

.footer-title {
    font-size: var(--font-xl);
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: var(--space-md);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--text-inverse);
    padding-left: var(--space-sm);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-inverse);
    transition: var(--transition-base);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* ============================================
   HOMEPAGE - First impression
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-muted) 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-title {
    font-size: var(--font-5xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-2xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: var(--space-4xl);
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: var(--font-4xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.trust-label {
    color: var(--text-secondary);
    font-size: var(--font-base);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.tool-item {
    background: var(--bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid transparent;
}

.tool-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
}

.tool-icon {
    font-size: var(--font-5xl);
    margin-bottom: var(--space-lg);
    display: block;
    animation: float 3s ease-in-out infinite;
}

.tool-item h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.tool-item p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.tool-item a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.tool-item a:hover {
    color: var(--brand-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3xl);
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: var(--font-5xl);
    margin-bottom: var(--space-lg);
    display: block;
}

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

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--space-sm);
    }

    .mobile-menu-toggle .hamburger {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: var(--transition-fast);
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: var(--shadow-xl);
        padding: var(--space-3xl) var(--space-xl);
        z-index: 1001;
    }

    .main-navigation.active {
        display: block;
        animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--bg-secondary);
    }
}

@media (max-width: 767px) {
    :root {
        --font-4xl: 36px;
        --font-3xl: 28px;
        --font-2xl: 22px;
    }

    .site-header {
        padding: var(--space-md) 0;
    }

    .site-logo img {
        max-width: 150px;
    }

    .hero-title {
        font-size: var(--font-3xl);
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .card-body,
    .app-results {
        padding: var(--space-lg);
    }
}

@media (max-width: 479px) {
    .site-logo img {
        max-width: 120px;
    }

    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-base);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}
