/**
 * ===========================================================
 * TAHIR COLLECTION — Component Styles
 * ===========================================================
 * Styles for all reusable UI components:
 * - Buttons
 * - Cards (product, application, feature)
 * - Navigation (utility bar, header, mega dropdown, mobile)
 * - Hero section
 * - FAQ accordion
 * - Breadcrumb
 * - CTA section
 * - Footer
 * - Tables (spec tables)
 * - Forms
 * - Floating elements (WhatsApp, back-to-top)
 * ===========================================================
 */

/* ==========================================================
 * BUTTONS — Consistent across the entire site
 * ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: var(--shadow-amber);
    color: var(--color-primary);
}

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

.btn--secondary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    color: var(--color-white);
}

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

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

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

.btn--whatsapp:hover {
    background: var(--color-whatsapp-dark);
    border-color: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    color: var(--color-white);
}

/* Button sizes */
.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn--block {
    width: 100%;
}

/* ==========================================================
 * UTILITY BAR — Top contact strip
 * ========================================================== */
.utility-bar {
    background: var(--color-primary-dark);
    color: var(--color-muted);
    font-size: var(--text-xs);
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.utility-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-bar__left,
.utility-bar__right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.utility-link {
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: color var(--transition-fast);
}

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

.utility-icon {
    font-size: var(--text-sm);
}

.utility-badge {
    color: var(--color-accent-light);
    font-weight: var(--weight-medium);
}

@media (max-width: 768px) {
    .utility-bar__inner {
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-2) 0;
        text-align: center;
    }

    .utility-bar__left,
    .utility-bar__right {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: var(--space-3);
    }
}

@media (max-width: 480px) {
    .utility-badge {
        display: none;
        /* Hide badges on very small screens to save space */
    }
}

/* ==========================================================
 * SITE HEADER — Main navigation bar
 * ========================================================== */
.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

/* High priority z-index when mobile menu is active to stay above overlay */
.site-header:has(#main-nav.active) {
    z-index: calc(var(--z-modal) + 1);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-6);
    min-height: 70px;
}

/* Brand logo area */
.site-header__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: var(--weight-extrabold);
    font-size: var(--text-lg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-md);
    color: var(--color-white);
    line-height: 1.2;
}

.brand-tagline {
    font-size: var(--text-xs);
    color: var(--color-accent-light);
    font-weight: var(--weight-medium);
}

/* Main navigation list */
.main-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__item.active .main-nav__link {
    color: var(--color-accent);
}

.dropdown-arrow {
    font-size: var(--text-xs);
    transition: transform var(--transition-fast);
}

.main-nav__item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Header CTA buttons */
.site-header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* ==========================================================
 * MEGA DROPDOWN — Product & Application submenus
 * ========================================================== */
.mega-dropdown {
    transition: all var(--transition-normal);
    z-index: var(--z-dropdown);
}

/* Desktop Styles (Hover & Absolute Positioning) */
@media (min-width: 1025px) {
    .mega-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: var(--color-white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        padding: var(--space-6);
        min-width: 750px;
        opacity: 0;
        visibility: hidden;
        border: 1px solid var(--color-border);
    }

    .mega-dropdown--narrow {
        min-width: 300px;
    }

    .main-nav__item.has-dropdown:hover .mega-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .mega-dropdown__title {
        color: var(--color-primary);
    }

    .mega-dropdown__desc {
        color: var(--color-muted);
    }
}

.mega-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.mega-dropdown__grid--single {
    grid-template-columns: 1fr;
}

.mega-dropdown__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.mega-dropdown__item:hover {
    background: var(--color-accent-glow);
}

.mega-dropdown__icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
    margin-top: 2px;
}

.mega-dropdown__title {
    display: block;
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    margin-bottom: 2px;
}

.mega-dropdown__desc {
    display: block;
    font-size: var(--text-xs);
}

.mobile-only-item {
    display: none !important;
}

.mobile-nav-cta {
    display: none !important;
}

/* ==========================================================
 * MOBILE NAVIGATION — Hamburger + slide drawer
 * ========================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: var(--z-modal);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* Hamburger animation when open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive breakpoint */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--color-primary);
        z-index: var(--z-modal);
        padding: var(--space-20) var(--space-6) var(--space-6);
        overflow-y: auto;
        transition: right var(--transition-normal);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav__link {
        padding: var(--space-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mega-dropdown {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        padding: 0;
        border-radius: var(--radius-md);
        margin-top: 0;
        border-left: 2px solid var(--color-accent-glow);
        transform: none !important;

        /* Smooth Accordion Transition */
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-out, margin 0.3s ease;
    }

    .main-nav__item.has-dropdown.mobile-open .mega-dropdown {
        max-height: 1000px;
        /* Large enough to fit content */
        opacity: 1;
        visibility: visible;
        margin-top: var(--space-2);
        padding: var(--space-2) 0;
    }

    .mega-dropdown__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mega-dropdown__item {
        padding: var(--space-3) var(--space-6);
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .mobile-only-item {
        display: flex !important;
        background: rgba(255, 255, 255, 0.05);
        border-left: 3px solid var(--color-accent);
    }

    .mega-dropdown__title {
        color: var(--color-white);
        font-size: var(--text-sm);
    }

    .mega-dropdown__desc {
        color: rgba(255, 255, 255, 0.5);
        font-size: var(--text-xs);
    }

    .mega-dropdown__item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Mobile Drawer CTAs */
    .mobile-nav-cta {
        display: flex !important;
        padding: var(--space-8) 0;
        margin-top: var(--space-6);
        flex-direction: column;
        gap: var(--space-4);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header__cta {
        display: none;
    }
}

/* ==========================================================
 * HERO SECTION — Full-width page banner
 * ========================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary-dark) 100%);
    padding: var(--space-24) 0 var(--space-20);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero--has-image .hero__overlay {
    background: rgba(0, 0, 0, 0.65);
}

.hero--has-image .hero__overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Animated decorative circles */
.hero__decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200, 164, 78, 0.1);
}

.hero__circle--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: floatCircle 8s ease-in-out infinite;
}

.hero__circle--2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
    animation: floatCircle 6s ease-in-out infinite reverse;
}

.hero__circle--3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    background: rgba(200, 164, 78, 0.03);
    animation: floatCircle 10s ease-in-out infinite;
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero__title span {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
    max-width: 600px;
    line-height: var(--leading-loose);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-16) 0 var(--space-12);
        min-height: 400px;
    }

    .hero__title {
        font-size: var(--text-3xl);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }
}

/* ==========================================================
 * PRODUCT CARD — Material category cards
 * ========================================================== */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card__visual {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--color-offwhite);
    margin: calc(var(--space-8) * -1) calc(var(--space-8) * -1) var(--space-6);
}

.product-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__visual img {
    transform: scale(1.05);
}

.product-card__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.product-card__title {
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.product-card__desc {
    color: var(--color-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.product-card__specs {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-6);
    text-align: left;
}

.product-card__specs li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text);
}

.product-card__btn {
    width: 100%;
}

/* ==========================================================
 * APPLICATION TILES — "Who We Serve" homepage section
 * ========================================================== */
.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.app-tile__img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.app-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.app-tile:hover .app-tile__img img {
    transform: scale(1.05);
}

.app-tile__content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.app-tile__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: var(--radius-lg);
}

.app-tile__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.app-tile__desc {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

/* ==========================================================
 * FEATURE CARDS
 * Base styling targets LIGHT sections (the common case).
 * Dark sections (.home-why, .section--dark) and the explicit
 * .feature-card--on-dark modifier restore the white-on-dark look.
 * ========================================================== */
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: var(--radius-md);
}

.feature-card__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.feature-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-mid);
    margin-bottom: 0;
}

/* Dark-section context — restore the white-on-dark treatment */
.home-why .feature-card,
.section--dark .feature-card,
.feature-card--on-dark {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.home-why .feature-card:hover,
.section--dark .feature-card:hover,
.feature-card--on-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    box-shadow: none;
}

.home-why .feature-card__title,
.section--dark .feature-card__title,
.feature-card--on-dark .feature-card__title {
    color: var(--color-white);
}

.home-why .feature-card__text,
.section--dark .feature-card__text,
.feature-card--on-dark .feature-card__text {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================
 * FAQ ACCORDION
 * ========================================================== */
.faq-section {
    padding: var(--space-20) 0;
    background: var(--color-offwhite);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--color-accent-light);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    text-align: left;
    transition: all var(--transition-fast);
}

.faq-item__question:hover {
    color: var(--color-accent-dark);
}

.faq-item__icon {
    font-size: var(--text-xl);
    color: var(--color-accent);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: var(--space-4);
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
}

.faq-item__content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: var(--leading-loose);
}

/* ==========================================================
 * BREADCRUMB
 * ========================================================== */
.breadcrumb {
    padding: var(--space-4) 0;
    background: var(--color-offwhite);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--text-sm);
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.breadcrumb__link {
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
    color: var(--color-accent);
}

.breadcrumb__separator {
    margin: 0 var(--space-2);
    color: var(--color-border);
}

.breadcrumb__current {
    color: var(--color-primary);
    font-weight: var(--weight-medium);
}

/* ==========================================================
 * CTA SECTION — Bottom of page conversion block
 * ========================================================== */
.cta-section {
    padding: var(--space-20) 0;
}

.cta-section__card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-16) var(--space-12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    position: relative;
    overflow: hidden;
}

.cta-section__card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(200, 164, 78, 0.1);
    pointer-events: none;
}

.cta-section__title {
    font-size: var(--text-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-section__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    max-width: 500px;
    margin-bottom: 0;
}

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

@media (max-width: 768px) {
    .cta-section__card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-10) var(--space-6);
    }

    .cta-section__text {
        margin: 0 auto;
    }

    .cta-section__actions {
        flex-direction: row;
    }
}

/* ==========================================================
 * FOOTER
 * ========================================================== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.brand-logo--footer {
    width: 36px;
    height: 36px;
    font-size: var(--text-base);
}

.footer-brand .brand-name {
    color: var(--color-white);
    font-size: var(--text-lg);
}

.footer-desc {
    font-size: var(--text-sm);
    line-height: var(--leading-loose);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social__link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social__link:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.footer-heading {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.footer-contact__icon {
    flex-shrink: 0;
    font-size: var(--text-base);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-whatsapp {
    margin-top: var(--space-4);
}

/* Footer bottom bar */
.footer-bottom {
    padding: var(--space-6) 0;
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-bottom__links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom__links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--text-xs);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom__links a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom__inner {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ==========================================================
 * SPEC TABLE — Product specification tables
 * ========================================================== */
.spec-table {
    width: 100%;
    border-radius: var(--radius-lg);
    border-collapse: collapse;
}

.spec-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-4) var(--space-6);
}

.spec-table td {
    padding: var(--space-4) var(--space-6);
}

.spec-table tr:hover {
    background-color: var(--color-accent-glow);
}

/* Highlighted cell in comparison tables (e.g. "Best" column) */
.spec-table td.highlight {
    background: rgba(13, 158, 110, 0.10);
    color: var(--color-secondary-dark);
    font-weight: var(--weight-semibold);
}

/* ==========================================================
 * FORM COMPONENTS
 * ========================================================== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.form-label--required::after {
    content: ' *';
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

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

.form-hint {
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: var(--space-1);
}

/* ==========================================================
 * FLOATING ELEMENTS — WhatsApp button + Back-to-top
 * ========================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-whatsapp);
    color: var(--color-white);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    z-index: var(--z-float);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    color: var(--color-white);
}

.whatsapp-float__icon {
    font-size: var(--text-xl);
}

.whatsapp-float__text {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    cursor: pointer;
    z-index: var(--z-float);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==========================================================
 * CERTIFICATION STRIP — Trust badges
 * ========================================================== */
.cert-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-10);
    padding: var(--space-8) 0;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cert-strip {
        gap: var(--space-6);
    }
}

@media (max-width: 480px) {
    .cert-strip {
        gap: var(--space-4);
    }
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.cert-badge:hover {
    opacity: 1;
}

.cert-badge__icon {
    font-size: 2.5rem;
}

.cert-badge__label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================
 * PROCESS STEPS — Quality process visual
 * ========================================================== */
.process-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    counter-reset: step;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    position: relative;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    opacity: 0.3;
}

.process-step__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.process-step__desc {
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* ==========================================================
 * EXPORT FLAGS — Country badges
 * ========================================================== */
.country-flags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ==========================================================
 * VISUAL SHOWCASE — Homepage Gallery
 * ========================================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item--span-2 {
    grid-column: span 2;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* responsive adjustment */
@media (max-width: 768px) {
    .gallery-item {
        grid-column: span 1 !important;
    }
}

.country-flag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-offwhite);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
}

.country-flag__emoji {
    font-size: var(--text-lg);
}
