/* Marketing Website Layout Styles */

/* Global Layout */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    padding-top: 80px; /* Account for fixed navbar */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.hero-cta {
    margin-bottom: var(--spacing-2xl);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* Feature Section */
.features-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--gray-100);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius-xl);
    border: none;
    transition: all var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: var(--spacing-lg);
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.product-card-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.product-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--secondary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
}

.product-badge.premium {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Pricing Cards */
.pricing-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--gray-100), white);
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-2xl);
    border: 2px solid var(--gray-200);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: translateY(-6px) scale(1.05);
}

/* Ribbon for Bootstrap Cards (used in pricing.html) */
.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid #2980b9;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 8px 0;
    background-color: #3498db;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
}

/* Ribbon top right */
.ribbon-top-right {
    top: -10px;
    right: -10px;
}

.ribbon-top-right::before,
.ribbon-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}

.ribbon-top-right::before {
    top: 0;
    left: 0;
}

.ribbon-top-right::after {
    bottom: 0;
    right: 0;
}

.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.pricing-period {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-xl);
}

.pricing-features li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success-color);
    margin-right: var(--spacing-sm);
}

/* Testimonial Cards */
.testimonial-section {
    padding: var(--spacing-3xl) 0;
    background: var(--dark-color);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    text-align: center;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-content::before {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
}

.testimonial-content::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

.testimonial-info h6 {
    margin: 0;
    color: white;
    font-weight: var(--font-weight-semibold);
}

.testimonial-info small {
    color: var(--gray-300);
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--spacing-lg);
}

.blog-card-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Contact Form */
.contact-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--gray-100), white);
}

.contact-form {
    background: white;
    border-radius: var(--border-radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background: var(--dark-color);
    color: white;
    border-radius: var(--border-radius-2xl);
    padding: var(--spacing-2xl);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    font-size: 1.2rem;
}

/* Tenant Gateway */
.tenant-gateway-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.tenant-gateway-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-2xl);
    padding: var(--spacing-2xl);
    color: var(--dark-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.tenant-input-group {
    margin: var(--spacing-xl) 0;
}

.validation-result {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin: var(--spacing-md) 0;
    text-align: center;
    transition: all var(--transition-normal);
}

.validation-result.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.validation-result.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-3xl) 0;
}

.faq-category {
    margin-bottom: var(--spacing-2xl);
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    background: var(--gray-100);
    padding: var(--spacing-lg);
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-200);
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-answer {
    padding: var(--spacing-lg);
    display: none;
    color: var(--gray-700);
    line-height: 1.6;
}

.faq-answer.active {
    display: block;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Section Spacing */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 991px) {
    /* On tablets and below, show 2 cards per row instead of 4 */
    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .contact-form,
    .contact-info {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .feature-card,
    .product-card,
    .blog-card {
        margin-bottom: var(--spacing-lg);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Footer Styles */
footer.bg-dark {
    background-color: #212529 !important;
}

footer.bg-dark h5,
footer.bg-dark h6 {
    color: #ffffff;
    margin-bottom: 1rem;
}

footer.bg-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer.bg-dark a.hover-light {
    transition: all var(--transition-fast);
}

footer.bg-dark a.hover-light:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

footer.bg-dark hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Newsletter Form in Footer */
footer .newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

footer .newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

footer .newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Print Styles */
@media print {
    .hero-section,
    .testimonial-section,
    #back-to-top {
        display: none !important;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}