/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Optimize text rendering */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Store badges row */
.store-badges-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.store-badges-row img {
    height: 56px;
}

/* QR card */
.qr-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Download card */
.download-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    min-width: 320px;
    overflow: visible;
}

/* Uniform App Store Badges */
.store-badges-uniform {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    width: 200px;
    height: 60px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.apple-store {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    border: 1px solid #333;
}

.google-play {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    border: 1px solid #333;
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.store-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 2px;
}

.store-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.custom-badge {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
    min-height: 60px;
    box-sizing: border-box;
    overflow: visible;
}

.badge-content:hover {
    border-color: #13645c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 500;
}

.badge-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Ensure badges fill card width and logos fit neatly */
.custom-badge {
    width: 100%;
}
.badge-content {
    width: 100%;
}
.badge-content svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: block;
}




/* Trust row */
.trust-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 12px;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trust-sep {
    width: 1px;
    height: 12px;
    background: #e5e7eb;
    display: inline-block;
}
/* Custom CSS for Ironbite Landing Page */

/* Button Styles */
.btn-primary {
    background-color: #13645c;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: inline-block;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0f4f47;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: #ffffff;
    color: #13645c;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: inline-block;
    text-decoration: none;
    border: 2px solid #13645c;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: #13645c;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Force hero CTA buttons to render as buttons in all browsers */
.hero-ctas .btn-primary,
.hero-ctas .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 220px;
    text-align: center;
}

.hero-ctas {
    width: 100%;
}

/* Badge Styles */
.badge {
    @apply bg-brand-accent text-brand-primary px-3 py-1 rounded-full text-xs font-semibold;
}

/* Menu Tab Styles */
.menu-tabs {
    @apply w-full;
}

.tab-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    background-color: white;
    color: #666666;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    min-width: 120px;
    text-align: center;
    cursor: pointer;
}

.tab-btn:hover {
    border-color: #13645c;
    color: #13645c;
    background-color: #f6f7f8;
}

.tab-btn.active {
    background-color: #13645c;
    color: white;
    border-color: #13645c;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tab-btn.active:hover {
    background-color: #0f4f47;
}

.tab-btn.active {
    background-color: #13645c;
    color: #ffffff;
    border-color: #13645c;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tab-btn:not(.active) {
    color: #666666;
}
.tab-btn:not(.active):hover {
    background-color: #f6f7f8;
    border-color: rgba(19,100,92,0.5);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Menu Card Styles */
.menu-card {
    @apply bg-white rounded-xl shadow-md hover:shadow-lg transition-all duration-200 transform hover:-translate-y-1 border border-surface-border overflow-hidden;
}

.menu-card img {
    @apply transition-transform duration-300;
}

.menu-card:hover img {
    @apply scale-105;
}

/* Plan Card Styles */
.plan-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.plan-card .features {
    margin-top: 8px;
}

.plan-card .features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.card-cta {
    display: inline-block;
    width: 100%;
    margin-top: 16px;
    background: #13645c;
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
}

/* Review Card Styles */
.review-card {
    @apply bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-all duration-200 transform hover:-translate-y-1 border border-surface-border;
}

/* Store Badge Styles */
.store-badge {
    transition: transform 0.2s ease;
}
.store-badge:hover {
    transform: scale(1.05);
}

.store-badge-large {
    transition: transform 0.2s ease;
    display: block;
}
.store-badge-large:hover {
    transform: scale(1.05);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
    object-position: center;
}

/* QR Codes Large */
.qr-codes-large {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

/* App Section Enhancements */
#app {
    position: relative;
    overflow: hidden;
}

#app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(194, 213, 125, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Animate pulse for urgency */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section Header */
.section-header {
    @apply max-w-3xl mx-auto;
}

/* Trust Ribbon Animation */
.trust-ribbon {
    /* animation: slideInFromTop 0.8s ease-out; */
    position: static;
    z-index: auto;
}

.trust-ribbon .flex {
    /* animation: slideInFromLeft 1.2s ease-out 0.3s both; */
}

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

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

/* Trust Ribbon Text Animation */
.trust-ribbon .flex > div {
    /* animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both; */
}

.trust-ribbon .flex > div:nth-child(1) { animation-delay: 0.4s; }
.trust-ribbon .flex > div:nth-child(2) { animation-delay: 0.6s; }
.trust-ribbon .flex > div:nth-child(3) { animation-delay: 0.8s; }
.trust-ribbon .flex > div:nth-child(4) { animation-delay: 1.0s; }
.trust-ribbon .flex > div:nth-child(5) { animation-delay: 1.2s; }

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

/* Menu Tabs Animation */
.menu-tabs .tab-content.active {
    animation: fadeIn 0.3s ease-in-out;
}

/* Hero Section */
#hero {
    position: relative;
    z-index: 1;
}

/* Enhanced Tab Button Styles */
.menu-tabs {
    width: 100%;
}

.tab-btn {
    cursor: pointer;
    outline: none;
}

.tab-btn:focus {
    outline: 2px solid rgba(19, 100, 92, 0.5);
    outline-offset: 2px;
}

/* Ensure proper spacing and visibility */
.menu-tabs .flex {
    @apply gap-3;
}

@media (max-width: 640px) {
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .menu-tabs .flex {
        gap: 8px;
    }
}

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

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* QR Code Styles */
.qr-codes {
    @apply justify-center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-btn {
        @apply text-sm px-3 py-2;
    }
    
    .btn-primary, .btn-outline {
        @apply px-4 py-2 text-sm;
    }
    
    /* Ensure proper layout order on mobile */
    #hero {
        position: relative;
        z-index: 1;
    }
    
    .trust-ribbon {
        position: static;
        z-index: auto;
    }
}

/* Loading Animation */
.loading {
    @apply animate-pulse;
}

/* Hover Effects */
.menu-card:hover .badge {
    @apply bg-brand-primary text-white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-surface-soft;
}

::-webkit-scrollbar-thumb {
    @apply bg-brand-primary rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-brand-primary/80;
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-outline:focus,
.tab-btn:focus {
    @apply outline-none ring-2 ring-brand-primary ring-offset-2;
}

/* Print Styles */
@media print {
    .btn-primary,
    .btn-outline,
    .tab-btn {
        @apply border border-gray-400 text-gray-900 bg-white shadow-none;
    }
}
