/* Landing Page Styles - Optimized with minimal CSS */

/* Hero section spacing (navbar height + padding) */
.hero-section {
    padding-top: calc(56px + 5rem);
    padding-bottom: 5rem;
}

/* Container max-width constraint */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature card hover effect */
ion-card.feature-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 250px;
}

ion-card.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body.dark ion-card.feature-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Pricing card (Cloud Hub Plans) */
ion-card.pricing-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

ion-card.pricing-card ion-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensures pricing cards have equal height in row */
@media (min-width: 768px) {
    ion-card.pricing-card {
        height: 100%;
    }
}

/* Product card (Hardware products) */
ion-card.product-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

ion-card.product-card ion-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensures product cards have equal height in row */
@media (min-width: 768px) {
    ion-card.product-card {
        height: 100%;
    }
}

/* Plan card (Desktop Hub pricing plans) */
ion-card.plan-card {
    min-height: 530px;
    display: flex;
    flex-direction: column;
}

ion-card.plan-card ion-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensures plan cards have equal height in row */
@media (min-width: 768px) {
    ion-card.plan-card {
        height: 100%;
    }
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Floating card */
.floating-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    z-index: 10;
}

@media (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}

/* Hero image container */
.hero-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body.dark .hero-image {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Footer grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Social icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ion-color-secondary);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--ion-color-primary);
    color: var(--ion-color-primary-contrast);
}

/* Common utility classes for landing pages */

/* Typography */
.heading-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

.heading-lg {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.heading-md {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.heading-sm {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text-lead {
    color: var(--ion-color-medium);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.text-small {
    color: var(--ion-color-medium);
    font-size: 0.875rem;
}

/* Section spacing */
.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-header-narrow {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

/* Logo in header */
.logo-flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.logo-text {
    font-weight: 500;
}

/* Icon containers */
.icon-container {
    width: 48px;
    height: 48px;
    position: relative;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-bg {
    position: absolute;
    inset: 0;
    background: var(--ion-color-primary);
    opacity: 0.1;
    border-radius: 0.5rem;
}

.icon-primary {
    font-size: 24px;
    color: var(--ion-color-primary);
    position: relative;
    z-index: 1;
}

/* Stats display */
.stats-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    color: var(--ion-color-medium);
    font-size: 0.875rem;
}

/* Contact info items */
.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    position: relative;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}