/*
Theme Name: Navedalam Child Theme
Theme URI: https://navedalam.com
Description: Boutique IT agency aesthetic. SEO + Core Web Vitals optimized. v3.0
Author: Naveed Alam
Author URI: https://navedalam.com
Template: astra
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: navedalam-child
*/

/* ═════════════════════════════════════════════════════════════
   NAVEDALAM v3.0 — DESIGN SYSTEM
═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand */
    --nd-blue:    #2563eb;
    --nd-blue-d:  #1d4ed8;
    --nd-blue-l:  #eff4ff;
    --nd-cyan:    #0891b2;
    --nd-green:   #16a34a;
    --nd-amber:   #d97706;
    --nd-rose:    #e11d48;

    /* Neutrals */
    --nd-dark:    #0b1220;
    --nd-slate:   #334155;
    --nd-muted:   #64748b;
    --nd-border:  #e2e8f0;
    --nd-bg:      #f8fafc;
    --nd-bg-2:    #f1f5f9;
    --nd-white:   #ffffff;

    /* Shape */
    --nd-radius-sm: 8px;
    --nd-radius:    12px;
    --nd-radius-lg: 16px;

    /* Shadows */
    --nd-shadow:    0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --nd-shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
    --nd-shadow-lg: 0 10px 25px -5px rgba(15,23,42,.1), 0 8px 10px -6px rgba(15,23,42,.05);

    /* Typography */
    --nd-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nd-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;

    /* Layout */
    --nd-header-h: 72px;
}

/* ═════════════════════════════════════════════════════════════
   RESET / BASE
═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--nd-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--nd-slate);
    background: var(--nd-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hide Astra's header/footer if they leak through */
.site-header, #masthead, .site-footer, #colophon,
.ast-builder-header-wrap, .ast-builder-footer-grid-container {
    display: none !important;
}

/* Skip link (accessibility) */
.nd-skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: var(--nd-dark);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}
.nd-skip-link:focus { left: 12px; }

img { max-width: 100%; height: auto; }

/* Header styles are inline in header.php (faster render, no FOUC) */

/* ═════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.nd-footer {
    background: linear-gradient(135deg, var(--nd-dark) 0%, #131b2e 100%);
    color: #cbd5e1;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}
.nd-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,.5), transparent);
}

.nd-footer__top {
    padding: 64px 24px 48px;
}
.nd-footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 48px;
}

/* Brand */
.nd-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
}
.nd-footer__logo strong {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.nd-footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 20px;
    max-width: 360px;
}

.nd-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.3);
    color: #22c55e;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.nd-footer__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.2);
    animation: nd-pulse 2s infinite;
}
@keyframes nd-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .5; }
}

.nd-footer__social {
    display: flex;
    gap: 8px;
}
.nd-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s;
}
.nd-footer__social a:hover {
    background: var(--nd-blue);
    border-color: var(--nd-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer columns */
.nd-footer__col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.nd-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nd-footer__col li { margin-bottom: 10px; }
.nd-footer__col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color .15s;
}
.nd-footer__col a:hover { color: #fff; }

/* Footer CTA block */
.nd-footer__cta h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.nd-footer__cta p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}
.nd-footer__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--nd-blue);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all .2s;
}
.nd-footer__cta-btn:hover {
    background: var(--nd-blue-d);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,.35);
    color: #fff;
}
.nd-footer__cta-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #25d366;
    border: 1px solid rgba(37,211,102,.4);
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all .2s;
}
.nd-footer__cta-wa:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

/* Footer bottom */
.nd-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 24px;
}
.nd-footer__bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}
.nd-footer__bottom p { margin: 0; }
.nd-footer__legal { display: flex; gap: 20px; }
.nd-footer__legal a { color: #94a3b8; text-decoration: none; }
.nd-footer__legal a:hover { color: #fff; }

/* ═════════════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR (used across all templates)
═══════════════════════════════════════════════════════════════ */

.nd-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--nd-border);
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    display: none;
    gap: 8px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
    transform: translateY(110%);
    transition: transform .3s ease;
}
.nd-sticky-cta.is-visible { transform: translateY(0); }
.nd-sticky-cta__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: all .2s;
}
.nd-sticky-cta__btn--wa { background: #25d366; color: #fff; }
.nd-sticky-cta__btn--wa:hover { background: #1ebe5d; color: #fff; }
.nd-sticky-cta__btn--primary { background: var(--nd-dark); color: #fff; }
.nd-sticky-cta__btn--primary:hover { background: var(--nd-blue); color: #fff; }

/* ═════════════════════════════════════════════════════════════
   ELEMENTOR HOMEPAGE OVERRIDES
   These polish the Elementor-built homepage to match the boutique aesthetic
═══════════════════════════════════════════════════════════════ */

/* Force Inter font on Elementor pages */
.elementor-page, .elementor-page * {
    font-family: var(--nd-font-sans) !important;
}

/* Service cards — engineering authority feel */
.elementor-widget-icon-box .elementor-icon-box-wrapper,
.elementor-widget-image-box .elementor-image-box-wrapper {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
    border-radius: 14px !important;
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover,
.elementor-widget-image-box .elementor-image-box-wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--nd-shadow-lg) !important;
    border-color: rgba(37,99,235,.3) !important;
}

/* REPLACE percentage skill bars with competency badge styling
   If you keep them, this at least makes them look engineering-grade */
.elementor-progress-bar {
    border-radius: 100px !important;
    overflow: hidden;
    background: var(--nd-bg-2) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}
.elementor-progress-bar .elementor-progress-bar-inner {
    background: linear-gradient(90deg, var(--nd-blue) 0%, var(--nd-cyan) 100%) !important;
    border-radius: 100px !important;
    box-shadow: 0 0 12px rgba(37,99,235,.4);
}

/* Make Elementor section titles match our type scale */
.elementor-heading-title {
    letter-spacing: -.4px !important;
}

/* Hero headline — tighten to boutique aesthetic */
.elementor-section.elementor-top-section:first-of-type h1 {
    letter-spacing: -.8px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

/* CTA buttons in Elementor — match our nd-btn style */
.elementor-button {
    border-radius: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    transition: all .2s ease !important;
}
.elementor-button:hover {
    transform: translateY(-1px);
}
.elementor-button.elementor-button-primary,
.elementor-button[class*="primary"] {
    background-color: var(--nd-blue) !important;
}
.elementor-button.elementor-button-primary:hover {
    background-color: var(--nd-blue-d) !important;
    box-shadow: 0 8px 20px rgba(37,99,235,.35) !important;
}

/* Testimonial card hover */
.elementor-widget-testimonial-carousel .swiper-slide:hover {
    box-shadow: var(--nd-shadow-lg) !important;
}

/* FAQ accordion - cleaner look */
.elementor-accordion-item, .e-n-accordion-item {
    border-radius: 12px !important;
    border-color: var(--nd-border) !important;
    margin-bottom: 8px !important;
    overflow: hidden;
}
.elementor-accordion-item:hover, .e-n-accordion-item:hover {
    border-color: rgba(37,99,235,.3) !important;
}

/* Trust badges - certification chips */
.elementor-widget-text-editor strong:contains("Certified") {
    color: var(--nd-blue);
}

/* Image hover effect for profile/portfolio images */
.elementor-widget-image img {
    transition: transform .35s ease, box-shadow .35s ease;
}
.elementor-widget-image:hover img {
    transform: scale(1.02);
}

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
    .nd-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .nd-footer__brand,
    .nd-footer__cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nd-nav, .nd-header__cta { display: none; }
    .nd-burger { display: flex; }
    .nd-logo__text span { display: none; }
    .nd-sticky-cta { display: flex; }
    body { padding-bottom: 70px; }

    .nd-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .nd-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nd-logo__mark { width: 36px; height: 36px; font-size: 13px; }
    .nd-logo__text strong { font-size: 15px; }
    .nd-mobile-menu__cta { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════════ */

@media print {
    .nd-header, .nd-footer, .nd-sticky-cta { display: none !important; }
    body { padding-bottom: 0; }
}
