/* ==========================================================================
   Ansar Telecom Child Theme Custom CSS
   100% Identical with index.html
   ========================================================================== */

:root {
    --primary: #0F4C81;
    --primary-dark: #0A365C;
    --primary-light: #EBF3FA;
    --secondary: #00B894;
    --secondary-dark: #008F72;
    --accent: #FF9F43;
    --accent-hover: #EE8F33;
    --dark: #1E272E;
    --gray-100: #F8F9FA;
    --gray-200: #E2E8F0;
    --gray-600: #636E72;
    --gray-800: #2D3748;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 76, 129, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 76, 129, 0.15);
    --radius: 14px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Page & Layout Reset */
body {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--dark);
    background-color: #F4F7FB !important;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.brand-logo i {
    font-size: 32px;
    color: var(--primary);
}

.brand-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin: 0;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--gray-600);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none !important;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0F4C81 0%, #0A365C 100%);
    color: var(--white);
    padding: 70px 0 90px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: #F4F7FB;
    transform: skewY(-2deg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--white) !important;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.5);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
}

.hero-image-box {
    position: relative;
}

.hero-image-box img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    color: var(--dark);
    padding: 16px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-floating-card i {
    font-size: 32px;
    color: #FF9F43;
}

.hero-floating-card strong {
    font-size: 1.1rem;
    display: block;
}

.hero-floating-card span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-title-box p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* Services Grid & Cards */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
}

.service-card {
    background: var(--white) !important;
    border-radius: var(--radius) !important;
    padding: 30px 24px !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition) !important;
    border: 1px solid var(--gray-200) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary) !important;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-btn {
    align-self: flex-start;
}

/* Calculator Section */
.calc-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.calc-form {
    background: #F8FAFC;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    font-family: inherit;
    font-size: 1rem;
}

.calc-result {
    margin-top: 20px;
    padding: 16px;
    background: #EBF8F5;
    border-radius: 8px;
    color: var(--secondary-dark);
    font-weight: 700;
    text-align: center;
}

/* Accessories Catalog */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-dark);
    margin-bottom: 12px;
}

/* Location Container */
.location-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    background: var(--white) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: var(--shadow-lg) !important;
}

.location-details h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item i {
    font-size: 24px;
    color: var(--secondary);
    margin-top: 4px;
}

/* Floating WhatsApp Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.wa-trigger {
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--transition);
}

.wa-trigger:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #A0AEC0;
    margin-top: 14px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #A0AEC0;
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #A0AEC0;
    font-size: 0.9rem;
}

/* Hide default Astra footer credits */
.site-footer, .ast-footer-copyright, .ast-small-footer {
    display: none !important;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .services-grid, .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hero-grid, .calc-box, .location-container {
        grid-template-columns: 1fr !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .services-grid, .products-grid {
        grid-template-columns: 1fr !important;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
