/* ================================
   PitStoply Landing Page Styles
   Premium Branding - Anthracite/Grey/Orange
   ================================ */

/* ================================
   Brand Colors
   ================================ */
:root {
    /* Primary Colors */
    --color-orange: #ff5e33;
    --color-orange-hover: #e54d24;
    --color-orange-light: rgba(255, 94, 51, 0.1);

    /* Grey Scale */
    --color-anthracite: #333333;
    --color-grey-dark: #4a4a4a;
    --color-grey-medium: #6b6b6b;
    --color-grey-light: #e6e6e6;
    --color-grey-lighter: #f5f5f5;
    --color-white: #ffffff;

    /* Semantic Colors */
    --color-success: #22c55e;
    --color-error: #ef4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-orange: 0 4px 14px 0 rgba(255, 94, 51, 0.39);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-anthracite);
    overflow-x: hidden;
    background-color: var(--color-white);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--color-grey-lighter);
}

::-webkit-scrollbar-thumb {
    background: var(--color-grey-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-anthracite);
}

/* ================================
   Typography
   ================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--color-anthracite);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff8c66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-anthracite {
    color: var(--color-anthracite);
}

.text-grey {
    color: var(--color-grey-medium);
}

.text-orange {
    color: var(--color-orange);
}

/* ================================
   Button Styles
   ================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--color-orange);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-orange);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(255, 94, 51, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--color-white);
    color: var(--color-anthracite);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--color-grey-light);
}

.btn-secondary:hover {
    border-color: var(--color-anthracite);
    background: var(--color-grey-lighter);
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-anthracite);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-cta:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta-popular {
    background: var(--color-orange);
}

.btn-cta-popular:hover {
    background: var(--color-orange-hover);
    box-shadow: var(--shadow-orange);
}

.btn-outline-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--color-orange);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--color-orange);
}

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

/* ================================
   Navigation
   ================================ */

.nav-link {
    color: var(--color-grey-dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-orange);
}

/* ================================
   Logo
   ================================ */

.logo-img {
    height: 32px;
    width: auto;
}

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

/* ================================
   Glass Cards
   ================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid var(--color-grey-light);
    box-shadow: var(--shadow-xl);
}

/* ================================
   Feature Cards
   ================================ */

.feature-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-grey-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-orange);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--color-orange-light);
}

.feature-icon.grey {
    background: var(--color-grey-lighter);
}

.feature-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--color-grey-lighter);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-preview:hover {
    background: var(--color-white);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ================================
   Pricing Cards
   ================================ */

.pricing-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 2px solid var(--color-grey-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-grey-dark);
}

.pricing-card.popular {
    border-color: var(--color-orange);
    border-width: 3px;
    box-shadow: 0 10px 40px -10px rgba(255, 94, 51, 0.2);
}

.pricing-card.popular:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 94, 51, 0.3);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-orange);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-orange);
}

.feature-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-grey-dark);
}

.check-icon {
    color: var(--color-success);
    flex-shrink: 0;
}

/* ================================
   Form Inputs
   ================================ */

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-grey-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: var(--color-white);
    color: var(--color-anthracite);
}

.form-input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px var(--color-orange-light);
}

.form-input::placeholder {
    color: var(--color-grey-medium);
}

/* ================================
   FAQ Section
   ================================ */

.faq-item {
    background: var(--color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-grey-light);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-grey-dark);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--color-anthracite);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--color-orange);
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-grey-medium);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--color-grey-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* ================================
   Hero Section
   ================================ */

.hero-section {
    background: linear-gradient(135deg, var(--color-grey-lighter) 0%, var(--color-white) 50%, var(--color-grey-lighter) 100%);
}

.hero-badge {
    background: var(--color-orange-light);
    color: var(--color-orange);
    border: 1px solid rgba(255, 94, 51, 0.2);
}

/* ================================
   Stats Section
   ================================ */

.stat-number {
    color: var(--color-orange);
    font-weight: 700;
}

/* ================================
   CTA Final Section
   ================================ */

.cta-section {
    background: linear-gradient(135deg, var(--color-anthracite) 0%, #1a1a1a 100%);
}

.cta-section-orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-hover) 100%);
}

/* ================================
   Footer
   ================================ */

.footer {
    background: #1a1a1a;
    color: var(--color-grey-light);
}

.footer-link {
    color: var(--color-grey-medium);
    transition: color 0.2s ease;
}

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

/* ================================
   Dividers & Borders
   ================================ */

.border-orange {
    border-color: var(--color-orange);
}

.border-grey {
    border-color: var(--color-grey-light);
}

.divider {
    height: 1px;
    background: var(--color-grey-light);
}

/* ================================
   Backgrounds
   ================================ */

.bg-grey-light {
    background-color: var(--color-grey-lighter);
}

.bg-anthracite {
    background-color: var(--color-anthracite);
}

.bg-white {
    background-color: var(--color-white);
}

/* ================================
   Animations
   ================================ */

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 94, 51, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 94, 51, 0);
    }
}

.animate-pulse-orange {
    animation: pulse-orange 2s ease-in-out infinite;
}

/* Loading Spinner */
.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 4px solid var(--color-grey-light);
    border-top: 4px solid var(--color-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ================================
   Trust Badges
   ================================ */

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-grey-dark);
}

.trust-badge-icon {
    color: var(--color-success);
}

/* ================================
   Responsive Utilities
   ================================ */

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .popular-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* ================================
   Accessibility
   ================================ */

.focus-visible:focus {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* ================================
   Print Styles
   ================================ */

@media print {
    .no-print {
        display: none !important;
    }
}

/* ================================
   Error States
   ================================ */

.error-message {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-input.error {
    border-color: var(--color-error);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ================================
   Success States
   ================================ */

.success-message {
    color: var(--color-success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-input.success {
    border-color: var(--color-success);
}

/* ================================
   Dashboard Preview (Hero)
   ================================ */

.dashboard-preview {
    background: var(--color-white);
    border: 1px solid var(--color-grey-light);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.preview-header {
    background: var(--color-grey-lighter);
    border-bottom: 1px solid var(--color-grey-light);
    padding: 0.75rem 1rem;
    border-radius: 1rem 1rem 0 0;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #febc2e; }
.preview-dot.green { background: #28c840; }

/* ================================
   Icon Colors
   ================================ */

.icon-orange {
    color: var(--color-orange);
}

.icon-grey {
    color: var(--color-grey-medium);
}

.icon-success {
    color: var(--color-success);
}

/* ================================
   Pricing Toggle
   ================================ */

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--color-grey-lighter);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.pricing-toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--color-grey-medium);
}

.pricing-toggle-btn.active {
    background: var(--color-white);
    color: var(--color-anthracite);
    box-shadow: var(--shadow-sm);
}

.pricing-toggle-btn:hover:not(.active) {
    color: var(--color-anthracite);
}

/* ================================
   Badge Styles
   ================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-orange {
    background: var(--color-orange-light);
    color: var(--color-orange);
}

.badge-grey {
    background: var(--color-grey-lighter);
    color: var(--color-grey-dark);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

/* ================================
   Hero Dashboard Mockup Animations
   ================================ */

/* Fade in animations with staggered delays */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseSoft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Calendar items - staggered fade in */
.animate-fade-in-1 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animate-fade-in-2 {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.animate-fade-in-3 {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.animate-fade-in-4 {
    animation: fadeInUp 0.6s ease-out 1.5s both;
}

/* Notifications - slide in from right */
.animate-slide-in-1 {
    animation: slideInRight 0.5s ease-out 1s both;
}

.animate-slide-in-2 {
    animation: slideInRight 0.5s ease-out 1.3s both;
}

.animate-slide-in-3 {
    animation: slideInRight 0.5s ease-out 1.6s both;
}

/* Soft pulse for new booking */
.animate-pulse-soft {
    animation: pulseSoft 2s ease-in-out 2s infinite;
}

/* Infinite loop animation for hero - restart animation periodically */
@keyframes heroLoop {
    0%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    97% {
        opacity: 0;
    }
    99% {
        opacity: 0;
    }
}

#hero-demo {
    animation: heroLoop 10s ease-in-out infinite;
}
