/* nukru - Clean & Simple Design - PWA Fixed v1.0.3 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0B1D3A;
    --orange: #FF7F11;
    --white: #ffffff;
    --light: #f8fafc;
    --gray: #64748b;
    --dark: #1e293b;
}

/* Prevent white flashes during page transitions */
html, body {
    background-color: var(--light) !important;
}

/* Override Bootstrap's white background */
.container, .container-fluid, main {
    background-color: transparent !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark);
    background: var(--light) !important;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    text-align: center; /* Center text */
    /* Prevent unwanted scaling or size changes */
    box-sizing: border-box;
    min-width: fit-content;
    white-space: nowrap; /* Prevent text wrapping */
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #e6720f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 127, 17, 0.3);
    color: var(--white);
}

.btn-primary:active {
    background: #d4620e;
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(255, 127, 17, 0.2);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary:active {
    background: #0a1b34;
    color: var(--white);
    transform: translateY(0px);
}

/* No loading states - ultra fast transitions without any overlay */
.loading-spinner {
    display: none !important;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 127, 17, 0.2);
    border-left: 4px solid var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-spinner .loading-text {
    color: var(--gray);
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero */
.hero {
    background: var(--navy);
    padding: 6rem 0 4rem;
    text-align: center;
    color: var(--white);
}

/* Examples Section - Match Footer Background */
.section.contrast.examples {
    background: var(--navy);
}

.hero-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 1rem;
    color: var(--white);
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--orange);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

/* Example Cards */
.example-card {
    border-left: 4px solid var(--orange);
    background: var(--white);
}

.example-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    font-style: italic;
}

.example-meta {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Contrast Section */
.contrast {
    background: var(--navy);
    color: var(--white);
}

.contrast h2,
.contrast h3 {
    color: var(--white);
}

.contrast p {
    color: rgba(255, 255, 255, 0.8);
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--light);
    border: 2px solid var(--orange);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--navy);
}

/* Status Cards */
.status-card {
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-card.no {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.status-card.yes {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-card.no .status-icon {
    background: #ef4444;
}

.status-card.yes .status-icon {
    background: #10b981;
}

.status-text {
    font-weight: 600;
    font-size: 1.125rem;
}

.status-card.no .status-text {
    color: #ef4444;
}

.status-card.yes .status-text {
    color: #10b981;
}

/* Footer */
.footer {
    background: #000000;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

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

.footer-main {
    flex: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-brand-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-ravenco {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.footer-ravenco strong {
    color: var(--orange);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--orange);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.contact-info a {
    color: var(--orange);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Footer */
.page-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.page-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Body layout for sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Top Brand Bar - Override flexbox effects */
.top-brand-bar {
    flex-shrink: 0;
    background: var(--navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-link {
    color: white !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.5rem;
    transition: opacity 0.2s ease;
}

.brand-link:hover {
    opacity: 0.8;
}

/* Bottom Navigation - Override flexbox effects */
.bottom-nav {
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light);
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 60px;
}

.bottom-nav-item:hover {
    color: var(--navy);
    background: #f8f9fa;
}

.bottom-nav-item.active {
    color: var(--orange);
}

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* Button text centering for all sizes and states */
.btn,
.btn-sm,
.btn-lg,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* Ensure icons in buttons are properly aligned */
.btn i,
.btn svg {
    vertical-align: middle !important;
    margin: 0 !important;
}

/* Remove Bootstrap conflicts */
.btn:focus,
.btn:active {
    box-shadow: none !important;
    outline: none !important;
}

/* Utility */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.text-center { text-align: center !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

/* 5-Star Review Cards */
.review-card {
    background: var(--white);
    border: 2px solid #FFD700;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
    border-color: #FFA500;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.star {
    font-size: 1rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.review-content {
    margin-bottom: 1rem;
}

.review-content p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.review-author strong {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
}

.review-author span {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.disclaimer p {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Mobile Responsive for Social Proof */
@media (max-width: 768px) {
    .stats-row {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .review-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .disclaimer p {
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: left;
        gap: 2.5rem;
    }
    
    .footer-main {
        text-align: left;
    }
    
    .footer-brand {
        justify-content: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .footer-tagline {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }
    
    .footer-ravenco {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-section {
        flex: 1;
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section a,
    .contact-info p {
        font-size: 0.8rem;
    }
    
    .contact-info {
        text-align: left;
    }
}

/* PWA Fullscreen Styles - Simplified to match mobile exactly */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Header - exactly like mobile with safe area */
    .top-brand-bar {
        padding: calc(15px + env(safe-area-inset-top, 0px)) 0 15px 0 !important;
    }
    
    /* Bottom nav - exactly like mobile with safe area */
    .bottom-nav {
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)) 0 !important;
    }
}

/* Also target the pwa-standalone class added by JavaScript - highest specificity */
body.pwa-standalone .top-brand-bar,
.pwa-standalone .top-brand-bar {
    padding: calc(15px + env(safe-area-inset-top, 0px)) 0 15px 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

body.pwa-standalone .bottom-nav,
.pwa-standalone .bottom-nav {
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)) 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* PWA Install Button Styling */
#pwa-install-btn {
    display: none;
    margin-left: 1rem;
}

/* PWA Offline Indicator */
.offline {
    filter: grayscale(100%);
}

.offline::before {
    content: "Offline";
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--orange);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 1000;
}