/*
* Fidelio.FM Landing Page Styles
* Modern, clean design for CMMS software
*/

/* Base Styles & Reset */
:root {
    --primary: #2563eb;         /* Royal blue - more premium */
    --primary-dark: #1e40af;    /* Darker blue for depth */
    --secondary: #0891b2;       /* Teal accent for contrast */
    --dark: #0f172a;            /* Deep navy for text */
    --light: #f8fafc;           /* Slightly off-white for backgrounds */
    --gray: #64748b;            /* Slate gray for secondary text */
    --gray-light: #e2e8f0;      /* Light gray for borders */
    --success: #059669;         /* Emerald green for success indicators */
    --warning: #d97706;         /* Amber for warnings */
    --danger: #dc2626;          /* Red for errors/dangers */
    --white: #ffffff;
    --accent-gold: #fbbf24;     /* Premium gold accent */
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);  /* Softer shadow */
    --border-radius: 10px;      /* Slightly more rounded corners */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.left-aligned {
    text-align: left;
    margin-bottom: 30px;
}

.section-header.left-aligned p {
    margin: 0;
}

section {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

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

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

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

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

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

.btn-white:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

.btn i {
    margin-left: 8px;
}

.full-width {
    width: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Text Logo Styles */
.text-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.logo-fidelio {
    color: var(--dark);
    transition: var(--transition);
}

.logo-fm {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    transition: color 0.5s ease;
}

/* Color animation for FM part */
@keyframes colorChange {
    0% { color: var(--primary); }
    25% { color: var(--secondary); }
    50% { color: var(--accent-gold); }
    75% { color: var(--success); }
    100% { color: var(--primary); }
}

.text-logo:hover .logo-fm {
    animation: colorChange 3s infinite;
}

/* Hover effects */
.text-logo:hover .logo-fidelio {
    text-shadow: 0 0 10px rgba(15, 23, 42, 0.1);
}

.text-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
    opacity: 0;
}

.text-logo:hover::after {
    width: 100%;
    opacity: 1;
}

/* Footer logo variant */
.footer-text-logo .logo-fidelio {
    color: var(--white);
}

.footer-text-logo:hover::after {
    background: linear-gradient(90deg, var(--white) 0%, var(--accent-gold) 100%);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-buttons .btn {
    margin-left: 15px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 80%);
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://via.placeholder.com/1920x1080/0f172a/2563eb?text=');
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-item p {
    font-size: 16px;
    margin-top: 5px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    max-width: 560px;
    margin-left: 40px;
    position: relative;
    z-index: 1;
}

.hero-image-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    z-index: 2;
}

.hero-image-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Trusted By Section */
.trusted-by {
    padding: 60px 0;
    background-color: var(--light);
    text-align: center;
}

.trusted-by h2 {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.client-logos img {
    height: 40px;
    opacity: 0.7;
    transition: var(--transition);
}

.client-logos img:hover {
    opacity: 1;
}

/* Features Section */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-icon i {
    color: var(--white);
    font-size: 30px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
}

/* Benefits Section */
.benefits {
    background-color: var(--light);
}

.benefits .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.benefits-content {
    flex: 1;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.benefits-list i {
    color: var(--success);
    font-size: 24px;
    margin-right: 15px;
}

.benefits-list h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.benefits-list p {
    color: var(--gray);
}

.benefits-image {
    flex: 1;
}

.benefits-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Pricing Section */
.pricing {
    background-color: var(--white);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 15px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary);
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.save-badge {
    background-color: var(--success);
    color: var(--white);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 5px;
}

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

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: scale(1.03);
}

.pricing-card.popular {
    border: 2px solid var(--accent-gold);
    z-index: 1;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-gold) 0%, #f59e0b 100%);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.pricing-header {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency {
    font-size: 24px;
    position: relative;
    top: -15px;
    margin-right: 5px;
}

.period {
    font-size: 16px;
    color: var(--gray);
    font-weight: 400;
}

.amount.annual {
    display: none;
}

body.annual .amount.monthly {
    display: none;
}

body.annual .amount.annual {
    display: inline;
}

.custom-price {
    font-size: 30px;
}

.pricing-header p {
    color: var(--gray);
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pricing-features i {
    color: var(--success);
    margin-right: 10px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light);
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 0 0 0 100px;
    z-index: -1;
}

.quote-icon {
    color: var(--primary);
    font-size: 30px;
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-content {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--gray-light);
    padding-top: 20px;
    margin-top: auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--light);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
}

.testimonial-author h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark);
}

.testimonial-author p {
    color: var(--gray);
    font-size: 14px;
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

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

.faq-item {
    border-bottom: 1px solid var(--gray-light);
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact Section */
.contact {
    background-color: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 15px;
    font-size: 20px;
}

.contact-method h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-modern {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: var(--accent-gold);
    transition: var(--transition);
}

.contact-item:hover i {
    background-color: var(--primary);
    color: var(--white);
}

.contact-item a, 
.contact-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Creator styling */
.footer-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
}

.footer-creator span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.creator-link {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.creator-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.creator-link:hover {
    color: var(--accent-gold);
}

.creator-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-creator {
        order: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 42px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 60px;
    }

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

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

    .hero-image {
        max-width: 80%;
        margin-left: 0;
    }

    .benefits .container {
        flex-direction: column;
    }

    .benefits-content {
        order: 2;
    }

    .benefits-image {
        order: 1;
        margin-bottom: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .cta-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .cta-banner h2 {
        font-size: 30px;
    }

    form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
