/* ========================================
   Auto Flow Cyprus - Styles
   Brand Colors:
   - Primary: #003C43
   - Secondary: #135D66
   - Accent: #8EB423
   - Neutral Light: #F7F9FA
   - Neutral Dark: #333333
   Fonts:
   - Headings: Poppins (600/700)
   - Body: Inter (400/500)
======================================== */

/* ========= RESET & BASE ========= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #135D66;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003C43;
}

/* ========= UTILITIES ========= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* ========= TYPOGRAPHY ========= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #003C43;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

.section-headline {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subheadline {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========= LANGUAGE SWITCHER ========= */
body.lang-el .lang-en {
    display: none !important;
}

body.lang-en .lang-el {
    display: none !important;
}

.lang-toggle {
    background-color: #F7F9FA;
    color: #003C43;
    border: 2px solid #003C43;
    padding: 0.4rem 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background-color: #003C43;
    color: #FFFFFF;
}

/* ========= BUTTONS ========= */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #003C43;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #135D66;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: transparent;
    color: #003C43;
    border: 2px solid #003C43;
}

.btn-secondary:hover {
    background-color: #003C43;
    color: #FFFFFF;
}

.btn-accent {
    background-color: #8EB423;
    color: #FFFFFF;
}

.btn-accent:hover {
    background-color: #7a9c1f;
    color: #FFFFFF;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    color: #FFFFFF;
}

/* ========= 1. HEADER ========= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #003C43;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    font-weight: 500;
    color: #333333;
}

.nav-link:hover {
    color: #135D66;
}

/* ========= 2. HERO ========= */
.hero {
    padding: 4rem 0;
    background-color: #F7F9FA;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-headline {
    margin-bottom: 1.5rem;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========= 3. PROBLEMS ========= */
.problems {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    background-color: #F7F9FA;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.problem-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* ========= 4. BENEFITS ========= */
.benefits {
    padding: 5rem 0;
    background-color: #003C43;
    color: #FFFFFF;
}

.benefits .section-headline,
.benefits .section-subheadline {
    color: #FFFFFF;
}

.benefits .headline-en {
    color: rgba(255, 255, 255, 0.8);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-title {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

/* ========= 5. HOW IT WORKS ========= */
.how-it-works {
    padding: 5rem 0;
    background-color: #F7F9FA;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #8EB423;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-title {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.step-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* ========= 6. USE CASES ========= */
.use-cases {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.usecase-card {
    background-color: #F7F9FA;
    border-radius: 12px;
    overflow: hidden;
}

.usecase-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #E0E0E0;
}

.usecase-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1rem;
}

.usecase-text {
    padding: 0 1.5rem 1rem;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* ========= 7. FAQ ========= */
.faq {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E0E0E0;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #003C43;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #135D66;
}

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

.faq-answer p {
    padding-bottom: 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

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

/* ========= 9. CONTACT / LEAD FORM ========= */
.contact {
    padding: 5rem 0;
    background-color: #135D66;
    color: #FFFFFF;
}

.contact .section-headline,
.contact .section-subheadline {
    color: #FFFFFF;
}

.contact .headline-en {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #FFFFFF;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #135D66;
    box-shadow: 0 0 0 3px rgba(19, 93, 102, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
}

.required {
    color: #e74c3c;
}

.form-consent {
    margin-bottom: 1rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #135D66;
}

.consent-label input[type="checkbox"].error {
    outline: 2px solid #e74c3c;
}

.consent-text a {
    color: #135D66;
    text-decoration: underline;
}

.form-helper {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
}

.form-message p {
    margin-bottom: 0.5rem;
}

.form-message p:last-child {
    margin-bottom: 0;
}

/* ========= 10. WHATSAPP CTA ========= */
.whatsapp-cta {
    padding: 4rem 0;
    background-color: #F7F9FA;
    text-align: center;
}

/* ========= 11. FOOTER ========= */
.footer {
    padding: 2rem 0;
    background-color: #003C43;
    color: #FFFFFF;
}

.footer-inner {
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: #8EB423;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-text {
    font-size: 0.9rem;
}

.footer-text a {
    color: #8EB423;
}

.footer-text a:hover {
    color: #FFFFFF;
}

/* ========= COOKIE CONSENT ========= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #003C43;
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    font-size: 0.9rem;
    margin: 0;
}

.cookie-content a {
    color: #8EB423;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ========= VOICE BOT DEMO ========= */
.demo {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #00525a 100%);
    color: #fff;
}

.demo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.demo .section-headline,
.demo .section-subheadline {
    color: #fff;
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
}

.btn-demo.demo-active {
    background: #e74c3c;
}

.btn-demo.demo-active:hover {
    background: #c0392b;
}

.demo-mic-icon {
    flex-shrink: 0;
}

.demo-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Demo phone visual */
.demo-visual {
    display: flex;
    justify-content: center;
}

.demo-phone {
    width: 240px;
    height: 340px;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
}

.demo-phone::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.demo-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.demo-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.demo-pulse.active {
    opacity: 1;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.demo-pulse.speaking {
    animation: pulse-speak 0.6s ease-in-out infinite;
    background: #8EB423;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(142, 180, 35, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(142, 180, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(142, 180, 35, 0); }
}

@keyframes pulse-speak {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

#demo-status-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* Floating Action Button */
.demo-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(142, 180, 35, 0.4);
    transition: all 0.3s ease;
}

.demo-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(142, 180, 35, 0.5);
}

.demo-fab.demo-active {
    background: #e74c3c;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    animation: fab-pulse 2s ease-in-out infinite;
}

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(231, 76, 60, 0.6); }
}

.demo-fab-label {
    white-space: nowrap;
}

/* Move FAB up when cookie banner is visible */
.cookie-banner:not(.hidden) ~ .demo-fab {
    bottom: 6rem;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-ctas {
        justify-content: center;
    }

    .problems-grid,
    .benefits-grid,
    .steps-grid,
    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .demo-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .demo-visual {
        order: -1;
    }

    .demo-phone {
        width: 180px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .problems,
    .benefits,
    .how-it-works,
    .use-cases,
    .demo,
    .faq,
    .contact {
        padding: 3rem 0;
    }

    .demo-fab-label {
        display: none;
    }

    .demo-fab {
        padding: 1rem;
        border-radius: 50%;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
