/*
Theme Name: ABSPOS Ukraine
Description: Modern POS system landing page for Ukrainian restaurants
Version: 1.0.0
Author: Custom Theme
*/

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

:root {
    --navy-900: #0f1f3a;
    --navy-800: #152a52;
    --navy-700: #1f3b70;
    --blue-600: #2f5da8;
    --blue-500: #3b6fcc;
    --yellow-400: #f7d36a;
    --bg-light: #f4f7fb;
    --text-dark: #1a1a1a;
    --text-muted: #666a75;
    --text-light: #f5f7fa;
    --hero-navy: #043873;
    --primary-blue: #4f9cf9;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 20px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: #3a8ae8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #ffffff;
}

.header {
    background: var(--hero-navy);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-left: 8px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.1));
}

.nav-menu {
    margin-left: auto;
}

.nav-cta {
    margin-left: 24px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--yellow-400);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    padding: 100px 0;
    background: var(--hero-navy);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    transform: rotate(-12deg);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-wave {
    position: absolute;
    inset: 0 0 auto 0;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-badges-desktop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-badge {
    position: absolute;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: #eaf1ff;
    backdrop-filter: blur(4px);
    animation: heroFloat 6s ease-in-out infinite alternate;
}

.hero-badge-left { 
    bottom: -20px;
    right: 20px; 
    animation-duration: 7s; 
}
.hero-badge-right { 
    top: 40px; 
    right: 40%; 
    transform: translateX(50%);
    animation-duration: 6.2s; 
}
.hero-badge-bottom { 
    bottom: 40px; 
    right: 40%; 
    transform: translateX(50%);
    animation-duration: 7.6s; 
}

@keyframes heroFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-8px) translateX(4px) rotate(0.4deg); }
    100% { transform: translateY(4px) translateX(-6px) rotate(-0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge { animation: none; }
}

.hero-title {
    font-size: 72px;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.0;
    letter-spacing: -1.2px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.67;
    letter-spacing: -0.36px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    border-radius: 24px;
}

.hero .container {
    max-width: 1440px;
    padding-left: 32px;
    padding-right: 32px;
}

@media (min-width: 768px) {
    .hero-content {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 60px;
    }
    .hero-text {
        flex: 0 0 40%;
        max-width: 500px;
    }
    .hero-image {
        flex: 0 0 60%;
        max-width: 700px;
        margin-left: auto;
    }
}

.features {
    padding: 80px 0;
    background: #ffffff;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, rgba(4,56,115,0) 0%, rgba(4,56,115,0.8) 20%, rgba(4,56,115,0.8) 80%, rgba(4,56,115,0) 100%);
    margin: 40px 0;
    border-radius: 2px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 6rem;
}

.feature-block .feature-content,
.feature-block .feature-image {
    align-self: start;
}

.feature-block.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-block.reverse .feature-content {
    grid-column: 2;
    grid-row: 1;
}

.feature-block.reverse .feature-image {
    grid-column: 1;
    grid-row: 1;
}

.feature-content h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.feature-list li:before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
    margin-right: 0.5rem;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: start;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.all-features {
    padding: 60px 0;
    background: #ffffff;
    text-align: center;
}

.all-features h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.all-features p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.pricing {
    padding: 80px 0;
    background: #ffffff;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.pricing > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.pricing-card.featured {
    border-color: var(--navy-700);
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
    color: white;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: translateY(-5px) scale(1.05);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
}

.plan-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.pricing-card.featured .plan-description {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

.pricing-card.featured .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-features li:last-child {
    border-bottom: none;
}

.testimonials {
    padding: 80px 0;
    background: #ffffff;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    font-style: italic;
    border-left: none;
    padding-left: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: 0.95rem;
    color: #666;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-section .btn-primary {
    background: var(--primary-blue);
    color: #ffffff;
}

.cta-section .btn-primary:hover {
    background: #3a8ae8;
    transform: translateY(-2px);
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: #0066cc;
}

.footer {
    background: var(--navy-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0066cc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #0066cc;
}

.footer-copy {
    color: #666;
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.modal.open { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: min(560px, 92vw);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 100002;
    padding: 24px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.modal-body {
    margin-top: 12px;
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e6f2ff;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-full {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eaf1ff;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    padding: 10px 14px;
    border-radius: 14px;
    backdrop-filter: blur(4px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #666;
    margin: 0;
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0066cc;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-badge.popular {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}


.plan-price .period {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.pricing-card.featured .plan-price .period {
    color: rgba(255, 255, 255, 0.8);
}

.feature-check {
    color: #22c55e;
    margin-right: 0.5rem;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #f8fbff;
    border-radius: 12px;
    border: 1px solid #e6f2ff;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

.author-company {
    color: #0066cc;
    font-weight: 500;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 220px;
}

.btn-large span {
    display: block;
}

.btn-large small {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.cta-feature .feature-icon {
    font-size: 1.2rem;
}

.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: #f8fbff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e6f2ff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
    border-color: #0066cc;
}

.faq-question {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #0066cc;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    .nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 8px 0;
        z-index: 1100;
    }
    .nav-menu.active .nav-list {
        flex-direction: column;
        gap: 0;
    }
    .nav-menu.active .nav-list a {
        display: block;
        padding: 12px 20px;
        color: #043873;
    }
    .nav-menu.active .nav-list a:hover {
        background: rgba(4, 56, 115, 0.06);
        color: #043873;
    }
    
    .hero-badges-desktop { display: none !important; }
    
    .hero-content {
        flex-direction: column !important;
        gap: 32px !important;
        text-align: center;
    }
    
    .hero-text {
        flex: none !important;
        max-width: none !important;
        order: 1;
    }
    
    .hero-image {
        flex: none !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        order: 2;
    }
    
    .hero-title {
        font-size: 48px !important;
        line-height: 1.1 !important;
        margin-bottom: 16px !important;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 32px !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center;
    }
    
    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .feature-block.reverse .feature-content,
    .feature-block.reverse .feature-image {
        grid-column: auto;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .feature-block,
    .feature-block.reverse {
        display: block;
    }
    .feature-block .feature-image,
    .feature-block.reverse .feature-image {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .btn {
        min-width: 140px;
        font-size: 14px;
    }
}
