/* Shared UI — blue brand + complementary slate & sky accents */

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar-link:hover {
    color: #fff;
}

h1, h2, h3 {
    font-family: var(--font-display);
}

.AboutUs--home .section-title,
.AboutUs--home .company-subtitle {
    text-align: left;
}

.AboutUs--home .section-title::after {
    left: 0;
    transform: none;
}

.icon-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.reveal-card:hover .icon-badge,
.feature-card:hover .icon-badge,
.about-card:hover .icon-badge,
.certification-card:hover .icon-badge {
    border-color: rgba(0, 82, 204, 0.35);
    color: var(--primary-dark);
}

/* Location cards — white surface with blue accent (About + Contact) */
.location-card {
    background: var(--surface-elevated);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.location-card:hover {
    box-shadow: var(--shadow-medium);
    border-left-color: var(--primary-dark);
}

.location-card h3 {
    color: var(--primary-color);
}

.location-card p {
    color: var(--text-light);
    opacity: 1;
}

.location-card .location-phone {
    margin-top: 14px;
}

.location-card .location-phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.location-card .location-phone a:hover {
    text-decoration: underline;
}

/* About page cards */
.about-card {
    background: var(--surface-muted);
    border: 1px solid var(--border-accent);
}

.about-card:hover {
    background: var(--surface-elevated);
    border-color: rgba(0, 82, 204, 0.2);
}

/* Product cards */
.product-card {
    background: var(--surface-muted);
    border: 1px solid var(--border-accent);
}

.product-card:hover {
    background: var(--surface-elevated);
    border-color: rgba(0, 82, 204, 0.18);
}

/* Contact info cards */
.info-card {
    background: var(--surface-muted);
    border: 1px solid var(--border-accent);
}

.info-card:hover {
    background: var(--surface-elevated);
}

/* Timeline — keep markers/years token-driven */
.timeline-item-current .timeline-marker {
    background: var(--primary-color);
}

.timeline-content h3 {
    color: var(--heading-color);
}

.timeline-year {
    background: none;
    color: var(--primary-color);
}

.cta-section {
    background: var(--primary-dark);
}

/* Hero CTA buttons — match sitewide radius */
.hero-buttons .btn {
    border-radius: var(--border-radius);
}

.info-card .info-icon.icon-badge {
    margin: 0 0 16px 0;
}

.reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .top-bar-contact .top-bar-link:last-child {
        display: none;
    }
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .reveal-card:nth-child(2),
.partnerscontainer .reveal-card:nth-child(2),
.certifications-grid .reveal-card:nth-child(2) { transition-delay: 80ms; }

.features-grid .reveal-card:nth-child(3),
.partnerscontainer .reveal-card:nth-child(3),
.certifications-grid .reveal-card:nth-child(3) { transition-delay: 160ms; }

.features-grid .reveal-card:nth-child(4),
.partnerscontainer .reveal-card:nth-child(4),
.certifications-grid .reveal-card:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal-card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Final responsive overrides — keep brand-first hero usable on mobile */
@media (max-width: 768px) {
    .hero {
        height: min(78vh, 640px);
        min-height: 480px;
        max-height: none;
    }

    .hero-brand {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
        letter-spacing: 0.06em;
    }

    .hero-title {
        font-size: 1.2rem !important;
        font-weight: 500;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 22px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 460px;
        max-height: none;
        padding-bottom: 72px;
    }

    .hero-brand {
        font-size: 2.4rem;
    }

    .hero-title {
        font-size: 1.1rem !important;
    }
}

/* Dark theme polish for shared components */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .about-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .certification-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .hq-panel,
[data-theme="dark"] .regional-card {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .about-card h3,
[data-theme="dark"] .certification-card h3,
[data-theme="dark"] .info-card h3,
[data-theme="dark"] .product-header h3,
[data-theme="dark"] .timeline-content h3 {
    color: var(--heading-color);
}

[data-theme="dark"] .social-icons a {
    background: var(--surface-muted);
    color: var(--primary-color);
}

[data-theme="dark"] .social-icons a:hover {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .icon-badge {
    background: transparent;
    border-color: var(--border-color);
    color: var(--accent-color);
}

[data-theme="dark"] .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-primary {
    color: #fff;
}

[data-theme="dark"] .textaboutus .section-title,
[data-theme="dark"] .AboutUs .section-title {
    color: var(--heading-color);
}

[data-theme="dark"] .partner-card img {
    filter: grayscale(10%) brightness(1.05);
}
