/**
 * Homepage Consolidated Styles (SAF Surgicals)
 * Combines Hero, About Snippet, Why Choose Us, and CTA Banner styles
 */

/* ── 1. HERO SECTION ────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-text-primary);
    background-color: var(--color-bg-hero);
}

.hero-section.center-aligned {
    text-align: center;
    justify-content: center;
}

.hero-section.center-aligned .hero-content {
    margin-left: auto;
    margin-right: auto;
}

.hero-section.center-aligned .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-section.center-aligned .hero-actions {
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.84) 50%,
        rgba(250, 250, 250, 0.72) 100%
    );
    z-index: 2;
    display: none !important; /* Temporarily hidden */
}

.hero-container {
    position: relative;
    z-index: 10;
    padding-top: var(--space-24);
    padding-bottom: var(--space-20);
    display: none !important; /* Temporarily hidden */
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    color: #121714;
}

.hero-title span {
    color: #044b1a;
    display: block;
    font-weight: 800;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: var(--leading-normal);
    color: #1a1d1a;
    margin-bottom: var(--space-12);
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    z-index: 5;
    opacity: 0.15;
    pointer-events: none;
}

.hero-decoration .dot-grid {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-dot-grid) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ── 2. ABOUT SNIPPET SECTION ───────────────────────────────── */
.about-snippet-section {
    background: #FFFFFF;
    overflow: hidden;
    padding-bottom: var(--space-20);
}

.about-layered-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.about-visual {
    position: relative;
    padding: 16px 20px 24px 16px;
}

.about-image-backdrop {
    position: absolute;
    top: 24px;
    left: -12px;
    right: 28px;
    bottom: -8px;
    background: #FAFAFA;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    z-index: 1;
    transition: var(--transition-base);
}

.about-single-image {
    width: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(4, 75, 26, 0.10);
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
    background: #FFFFFF;
}

.about-single-image img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-visual:hover .about-single-image img {
    transform: scale(1.04);
}

.about-visual:hover .about-image-backdrop {
    transform: translate(-4px, 4px);
}

.about-experience-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-experience-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.about-experience-badge .badge-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(4, 75, 26, 0.25);
}

.about-experience-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.about-experience-badge .badge-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.about-experience-badge .badge-text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-6);
    font-family: var(--font-body);
}

.section-title span {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.about-description {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
}

.feature-text span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.about-actions {
    margin-top: var(--space-10);
}

/* ── 3. WHY CHOOSE US SECTION ───────────────────────────────── */
.why-choose-section {
    position: relative;
    z-index: 1;
    padding: var(--space-20) 0;
}

.section-header.center-aligned {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.choose-card {
    background: var(--color-bg);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-divider);
}

.choose-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent-ultra);
}

.choose-card__icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: all 0.3s ease;
}

.choose-card:hover .choose-card__icon {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.choose-card__title {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.choose-card__text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    position: relative;
    z-index: 2;
}

.choose-card__bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--color-surface);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s ease;
    opacity: 0.5;
}

.choose-card:hover .choose-card__bg {
    transform: scale(3);
    background: var(--color-accent-light);
    opacity: 0.3;
}

/* ── 4. CTA BANNER SECTION ───────────────────────────────────── */
.cta-banner {
    position: relative;
    padding: clamp(var(--space-16), 10vw, var(--space-32)) 0;
    overflow: hidden;
    background-color: var(--color-surface-2);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.parallax-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.cta-banner__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
}

.cta-banner__content {
    max-width: 600px;
}

.cta-banner__content h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

.cta-banner__content h2 span {
    color: var(--color-primary);
}

.cta-banner__content p {
    color: var(--color-text-secondary);
    font-size: var(--text-md);
    line-height: var(--leading-normal);
}

.cta-banner__actions {
    display: flex;
    gap: var(--space-4);
    flex-shrink: 0;
}

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

.btn-white:hover {
    background-color: var(--color-primary-deep);
    color: #FFFFFF;
}

/* ── RESPONSIVE MEDIA QUERIES ────────────────────────────────── */
@media (max-width: 1024px) {
    .cta-banner__inner {
        display: flex;
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

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

    .about-layered-grid {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }

    .about-visual {
        max-width: 540px;
        width: 100%;
        margin: 0 auto;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding-top: var(--space-14);
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-subtitle {
        font-size: var(--text-md);
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .choose-card {
        padding: var(--space-8);
    }
}

@media (max-width: 640px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .about-experience-badge {
        padding: 12px 16px;
        gap: 12px;
    }

    .about-experience-badge .badge-icon {
        width: 40px;
        height: 40px;
    }

    .about-experience-badge .badge-text strong {
        font-size: 0.95rem;
    }

    .about-experience-badge .badge-text span {
        font-size: 0.75rem;
    }

    .cta-banner__actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: var(--space-14);
    }
}