/* ============================================================
   Netrick DRIVE — Enterprise Editorial theme (DXC-inspired)
   Clean white surfaces, huge display type, sharp red accent,
   story sections with pull quotes, big stat bands.
   ============================================================ */
:root {
    --primary: #E4002B;
    --primary-dark: #B80022;
    --primary-soft: rgba(228, 0, 43, 0.14);
    --ink: #F2F2F5;
    --ink-deep: #0E0E11;
    --muted: #A6A6B0;
    --line: rgba(255, 255, 255, 0.13);
    --paper: #0E0E11;
    --paper-2: #16161C;
    --surface: #17171E;
    --border: rgba(255, 255, 255, 0.13);
    --accent: #E4002B;
    --dark: #0E0E11;
    --light: #16161C;
    --gradient-primary: linear-gradient(135deg, #E4002B 0%, #A80020 100%);
    --gradient-dark:
        radial-gradient(ellipse 55% 60% at 8% 0%, rgba(228, 0, 43, 0.15), transparent 58%),
        radial-gradient(ellipse 45% 55% at 95% 100%, rgba(228, 0, 43, 0.07), transparent 60%),
        linear-gradient(165deg, #0B0B0E 0%, #131318 55%, #1B0F15 100%);
    --gradient-hero: linear-gradient(120deg, #0E0E11 0%, #17171B 55%, #2A1015 100%);
    --font-display: 'Archivo', sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body) !important;
    background: var(--paper) !important;
    color: var(--ink) !important;
    -webkit-font-smoothing: antialiased;
}

/* Dark theme: main content area + generic text utilities */
.ndms-main { background: transparent !important; }
.ndms-main .text-muted { color: var(--muted) !important; }
.ndms-main .text-dark { color: var(--ink) !important; }

/* Small structural headings: clean grotesque */
h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.12;
}

/* Major headings: elegant serif italic (site signature) */
h1, h2,
.display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-serif) !important;
    font-style: italic;
    font-weight: 600 !important;
    letter-spacing: 0;
    color: var(--ink);
    line-height: 1.15;
}

.display-3 { font-size: clamp(2.5rem, 5vw, 3.9rem) !important; }
.display-4 { font-size: clamp(2.2rem, 4.2vw, 3.2rem) !important; }
.display-5 { font-size: clamp(1.8rem, 3vw, 2.5rem) !important; }
.display-6 { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; }

/* Card & component titles stay sans for legibility */
.service-card h4, .team-card h5, .contact-info-card h5,
.accordion-button {
    font-family: var(--font-display) !important;
    font-style: normal !important;
}

.lead { font-weight: 400; font-size: 1rem !important; }

/* Section intro copy: smaller, calmer */
section .lead { color: var(--muted); line-height: 1.7; }
section.bg-dark .lead, .bg-dark .lead { color: rgba(255, 255, 255, 0.62) !important; }

/* Headings inside dark sections must stay light */
section.bg-dark h2, section.bg-dark .display-5 { color: #fff !important; }
section.bg-dark h3 { color: #fff; }

/* ---------- Buttons: sharp, enterprise ---------- */
.btn { border-radius: 4px !important; font-weight: 700 !important; letter-spacing: 0.02em; }
.btn.rounded-pill { border-radius: 4px !important; }

.btn-primary,
.btn-primary-gradient {
    background: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    color: #fff !important;
    padding: 0.75rem 1.75rem;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary-gradient:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: none !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn-outline-dark {
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    color: var(--ink) !important;
    background: transparent !important;
}

.btn-outline-dark:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #0E0E11 !important;
}

.btn-light { border-radius: 4px !important; }

/* ---------- Topbar ---------- */
.ndms-topbar {
    background: var(--ink-deep) !important;
    border-bottom: none !important;
}
.ndms-topbar a:hover { color: #ff5470 !important; }
.ndms-topbar .topbar-item i { color: var(--primary) !important; }
.ndms-topbar .topbar-social a:hover { background: var(--primary) !important; }

/* ---------- Landing hero: full-bleed photo, centered statement ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--ink-deep);
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-fullbleed {
    background-color: #0E0E11;
}

.hero-fullbleed .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
    filter: brightness(0.95) contrast(1.05) saturate(1.05);
}

/* Light scrim — photo stays visible, text stays readable */
.hero-fullbleed .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 8, 12, 0.48) 0%, rgba(8, 8, 12, 0.22) 45%, rgba(8, 8, 12, 0.55) 100%),
        radial-gradient(ellipse 55% 50% at 50% 48%, rgba(8, 8, 12, 0.28), transparent 70%);
    pointer-events: none;
}

.hero-fullbleed .container {
    z-index: 2;
}

.hero-section .min-vh-100 { min-height: 88vh !important; }

.hero-section h1,
.hero-section .hero-title,
.hero-section .display-3 {
    color: #fff !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 500 !important;
    font-style: italic !important;
    font-size: clamp(2.05rem, 4.2vw, 3.2rem) !important;
    letter-spacing: -0.01em;
    line-height: 1.18 !important;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .lead,
.hero-section .hero-lead,
.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 0.98rem !important;
    line-height: 1.7;
    max-width: 500px;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.hero-section .hero-stat-label {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 600;
}

.hero-badge {
    background: transparent !important;
    color: #ff5470 !important;
    border: none !important;
    border-left: 3px solid var(--primary);
    border-radius: 0 !important;
    padding: 0.15rem 0 0.15rem 0.75rem !important;
    font-weight: 700;
    font-size: 0.75rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

/* Centered hero uses a pill eyebrow instead of a left rule */
.hero-section .hero-badge {
    border-left: none;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 100px !important;
    padding: 0.4rem 1rem !important;
    background: rgba(0, 0, 0, 0.28) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px);
    font-size: 0.68rem !important;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.hero-section .btn-lg {
    padding: 0.7rem 1.55rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}

.hero-section .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(6px);
}

.hero-section .btn-outline-dark:hover {
    background: #fff !important;
    color: var(--ink) !important;
    border-color: #fff !important;
}

.hero-section h3.fw-bold {
    font-family: 'Archivo', sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 1.35rem !important;
    letter-spacing: -0.02em;
}

.hero-section .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}
.hero-section .btn-outline-dark:hover {
    background: #fff !important;
    color: var(--ink) !important;
    border-color: #fff !important;
}

.hero-section .text-primary { color: #ff5470 !important; }
.hero-section .vr { background: rgba(255, 255, 255, 0.25); opacity: 1; }

/* ---------- Page heroes (inner pages) ---------- */
.page-hero,
.about-hero {
    background: var(--ink-deep) !important;
    color: #fff;
    padding: 3.25rem 0 2.75rem !important;
    position: relative;
    overflow: hidden;
}

.page-hero::before,
.about-hero .hero-bg {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: none !important;
    opacity: 1 !important;
    background:
        radial-gradient(ellipse 55% 60% at 88% 10%, rgba(228, 0, 43, 0.2), transparent 55%),
        radial-gradient(ellipse 40% 50% at 5% 95%, rgba(228, 0, 43, 0.08), transparent 60%),
        linear-gradient(165deg, #0B0B0E 0%, #131318 55%, #1B0F15 100%) !important;
    pointer-events: none;
}

/* Subtle dot texture on inner-page heroes */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.page-hero .container,
.about-hero .container { position: relative; z-index: 1; }

.page-hero h1, .page-hero .display-4,
.about-hero h1, .about-hero .display-4 {
    color: #fff !important;
    font-weight: 600 !important;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .lead, .page-hero p,
.about-hero .lead, .about-hero .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

.about-hero .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

.about-hero-photo {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45) !important;
}

/* ---------- Section rhythm: editorial ---------- */
.section-pad { padding: 3rem 0; }

/* Compact section rhythm site-wide */
.ndms-main > section.py-5,
.ndms-main section.py-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
}

.ndms-main section.my-5 {
    margin-top: 1.75rem !important;
    margin-bottom: 1.75rem !important;
}

.ndms-main section .container.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.ndms-main .mb-5 {
    margin-bottom: 1.75rem !important;
}

.ndms-main .page-hero .py-5,
.ndms-main .about-hero .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

section { position: relative; }

.section-eyebrow,
.badge.hero-badge {
    display: inline-block;
    color: #FF3B5C !important;
    background: transparent !important;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0 !important;
    padding: 0.15rem 0 0.15rem 0.75rem !important;
    font-weight: 700;
    font-size: 0.75rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

/* Dark sections keep readable eyebrows */
.bg-dark .badge.hero-badge,
.cta-band .badge.hero-badge,
section.bg-dark .badge { color: #ff5470 !important; }

.section-title { letter-spacing: -0.03em; }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

.bg-light, .bg-soft { background: var(--paper-2) !important; }

/* ---------- Cards: flat, bordered, editorial ---------- */
.surface-card,
.ndms-card,
.service-card,
.team-card,
.testimonial-card,
.client-brand,
.form-surface,
.quote-form-card,
.contact-form-card,
.sidebar-card,
.quick-links-card,
.value-card,
.portfolio-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.surface-card:hover,
.service-card:hover,
.team-card:hover,
.client-brand:hover,
.value-card:hover {
    border-color: var(--ink) !important;
    transform: none !important;
    box-shadow: none !important;
}

.service-card { padding: 2rem !important; }
.service-card.featured { border: 2px solid var(--primary) !important; }

.service-card .service-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 10px !important;
    margin-bottom: 1.25rem !important;
}

.service-card .service-icon i { font-size: 1.3rem !important; }
.service-card h4 { font-size: 1.15rem !important; margin-bottom: 0.75rem !important; }
.service-card p, .service-card li { font-size: 0.9rem; }
.service-card ul li { margin-bottom: 0.4rem !important; }
.service-card .btn { font-size: 0.85rem; padding: 0.55rem 1.25rem; }

/* Card CTA links become arrow links */
.service-card .btn,
.client-brand .btn { border-radius: 4px !important; }

/* ---------- Testimonials: DXC pull-quote style ---------- */
.testimonial-card {
    border: none !important;
    border-left: 2px solid var(--primary) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.75rem 0 0.75rem 1.5rem !important;
}

.testimonial-card .testimonial-stars { display: none; }

.testimonial-text {
    font-family: var(--font-body);
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
    font-weight: 450;
    color: rgba(255, 255, 255, 0.78) !important;
    letter-spacing: 0;
}

.testimonial-author h6 { font-size: 0.9rem !important; }
.testimonial-author small { font-size: 0.78rem; }

.bg-light .testimonial-text { color: var(--ink) !important; }

.testimonial-author { display: flex; align-items: center; gap: 1rem; }

/* ---------- Stats band: huge numbers ---------- */
.cta-band {
    background: var(--gradient-dark) !important;
    color: #fff;
    padding: 2.75rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 70% at 92% 50%, rgba(228, 0, 43, 0.18), transparent);
    pointer-events: none;
}

.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff !important; }
.cta-band .lead, .cta-band p { color: rgba(255, 255, 255, 0.68); }

.cta-band .display-4,
.cta-band .display-5,
section.bg-dark .display-4 {
    font-weight: 600 !important;
    font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
    letter-spacing: 0;
}

.cta-band .text-primary,
section.bg-dark .text-primary { color: #ff5470 !important; }

section.bg-dark {
    background: var(--gradient-dark) !important;
}

/* ---------- Dark product cards ---------- */
.product-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius) !important;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: none !important;
}

.product-card h3 { font-size: 1.25rem !important; }
.product-card p { font-size: 0.9rem; }

.product-card .product-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: 10px !important;
}

.product-card .product-icon i { font-size: 1.25rem !important; }

/* Product tagline: quiet uppercase instead of loud yellow */
.product-card .text-warning {
    color: rgba(255, 255, 255, 0.55) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
}

.feature-pill {
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem !important;
    padding: 0.3rem 0.7rem !important;
}

/* Flagship eyebrow on dark background */
section.bg-dark .badge.bg-warning {
    background: transparent !important;
    color: #ff5470 !important;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0 !important;
    padding: 0.15rem 0 0.15rem 0.75rem !important;
    font-weight: 700;
    font-size: 0.72rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------- Process steps ---------- */
.process-step { padding: 1rem 0.5rem !important; }

.process-number {
    color: rgba(228, 0, 43, 0.1) !important;
    font-family: var(--font-display) !important;
    font-weight: 900 !important;
    font-size: 3rem !important;
}

.process-icon {
    background: linear-gradient(135deg, #E4002B 0%, #8F0A1F 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px !important;
    width: 62px !important;
    height: 62px !important;
    box-shadow: 0 14px 34px rgba(228, 0, 43, 0.35);
}

.process-icon i { font-size: 1.3rem !important; color: #fff !important; }
.process-step h5 { font-size: 1rem !important; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; line-height: 1.65; }

/* ---------- Portfolio ---------- */
.filter-btn {
    border-radius: 4px;
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.15rem;
    transition: all 0.15s ease;
}

.filter-btn:hover { border-color: rgba(255, 255, 255, 0.5); color: var(--ink); }

.filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.portfolio-card { overflow: hidden; }

.portfolio-overlay {
    background: linear-gradient(180deg, transparent 15%, rgba(14, 14, 17, 0.92) 100%) !important;
}

.portfolio-category {
    background: transparent !important;
    border-left: 2px solid var(--primary);
    border-radius: 0 !important;
    padding: 0.1rem 0 0.1rem 0.5rem !important;
    color: #ff5470 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.68rem !important;
}

/* ---------- Forms (dark inputs) ---------- */
.ndms-main .form-control,
.ndms-main .form-select {
    border-radius: 4px !important;
    border: 1.5px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ink) !important;
    padding: 0.75rem 1rem;
}

.ndms-main .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }

.ndms-main .form-control:focus,
.ndms-main .form-select:focus {
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.18) !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.ndms-main .form-select option { background: #17171E; color: #F2F2F5; }

.ndms-main .form-label { color: var(--ink); }
.ndms-main .form-check-label { color: var(--muted); }
.ndms-main .form-check-input { background-color: rgba(255, 255, 255, 0.1); border-color: var(--line); }
.ndms-main .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

.form-surface, .quote-form-card, .contact-form-card {
    border-radius: var(--radius-lg) !important;
    padding: 2.25rem !important;
}

/* ---------- FAQ ---------- */
.accordion-modern .accordion-item,
.accordion-item {
    border: 1px solid var(--line) !important;
    border-radius: 6px !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
    background: var(--surface) !important;
    color: var(--ink);
}

.accordion-button {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
}

.accordion-button::after { filter: invert(1) grayscale(1) brightness(1.6); }

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--ink) !important;
    border-left: 3px solid var(--primary);
}

.accordion-body { color: var(--muted); }

.help-card, .sidebar-card-dark {
    background: var(--gradient-dark) !important;
    border-radius: var(--radius-lg) !important;
}

/* ---------- Legal ---------- */
.legal-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 860px;
    margin: 0 auto;
}

.legal-panel h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.legal-panel p, .legal-panel li { color: var(--muted); line-height: 1.75; }

/* ---------- CTA card (rounded band) ---------- */
.cta-card {
    background: var(--gradient-dark) !important;
    border-radius: var(--radius-lg) !important;
    padding: 3rem 2rem !important;
}

/* ---------- Footer ---------- */
.ndms-footer {
    background: var(--ink-deep) !important;
    margin-top: 0 !important;
    border-top: 3px solid var(--primary);
}

.ndms-footer h5 {
    font-family: var(--font-display) !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem !important;
}

.ndms-footer h5::after { background: var(--primary) !important; }
.ndms-footer a:hover { color: #ff5470 !important; transform: none !important; }
.ndms-footer .social-icons a { border-radius: 4px !important; }
.ndms-footer .social-icons a:hover { background: var(--primary) !important; transform: none !important; }

/* ---------- Hanging "Call Us Now" button (fixed, all pages) ---------- */
.hero-call-hanger {
    position: fixed;
    top: 138px;
    right: 3.5%;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transform-origin: top center;
    animation: hangerSwing 4.5s ease-in-out infinite;
}

.hanger-cord {
    width: 3px;
    height: 54px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.55));
    border-radius: 2px;
}

.hanger-knot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
    margin: -2px 0 10px;
}

.hero-call-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, #E4002B 0%, #A80020 100%);
    color: #fff;
    padding: 0.85rem 1.3rem;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(228, 0, 43, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-call-hanger:hover .hero-call-btn {
    transform: scale(1.05);
    box-shadow: 0 24px 60px rgba(228, 0, 43, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.call-icon-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.call-ring-pulse,
.call-ring-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    animation: callPulse 1.8s ease-out infinite;
}

.call-ring-pulse::after { animation-delay: 0.6s; }

.call-icon-ringing {
    font-size: 1rem;
    color: #fff;
    animation: phoneRing 1.8s ease-in-out infinite;
    transform-origin: center;
}

.call-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }

.call-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.85);
}

.call-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
}

@keyframes hangerSwing {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
}

@keyframes phoneRing {
    0%, 55%, 100% { transform: rotate(0); }
    60% { transform: rotate(-18deg); }
    65% { transform: rotate(14deg); }
    70% { transform: rotate(-12deg); }
    75% { transform: rotate(10deg); }
    80% { transform: rotate(-8deg); }
    85% { transform: rotate(5deg); }
    90% { transform: rotate(0); }
}

@keyframes callPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 991px) {
    .hero-call-hanger { top: 108px; right: 4%; }
    .hanger-cord { height: 34px; }
    .call-text { display: none; }
    .hero-call-btn { padding: 0.7rem; border-radius: 50%; }
    .call-icon-wrap { width: 38px; height: 38px; }
}

/* Bootstrap modals must sit above chatbot/cookie widgets (z-index 9999) */
.modal-backdrop { z-index: 10040 !important; }
.modal { z-index: 10050 !important; }

body.modal-open .chatbot-widget,
body.modal-open .cookie-consent,
body.modal-open .hero-call-hanger,
body.modal-open .whatsapp-float {
    visibility: hidden !important;
    pointer-events: none !important;
}

.portfolio-modal .modal-content {
    background: #17171E;
    color: #F2F2F5;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.portfolio-modal .modal-title,
.portfolio-modal .modal-body,
.portfolio-modal h6 {
    color: #F2F2F5;
}

.portfolio-modal .text-muted {
    color: #A6A6B0 !important;
}

.portfolio-modal .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
}

.portfolio-modal .btn-close:hover { opacity: 1; }

/* ---------- Blog ---------- */
.blog-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    border-color: rgba(228, 0, 43, 0.45) !important;
    transform: translateY(-2px);
}

.blog-card-title,
.blog-card h2,
.blog-card h2 a {
    color: var(--ink) !important;
    text-decoration: none !important;
    font-family: var(--font-display) !important;
    font-style: normal !important;
}

.blog-card-title:hover,
.blog-card h2 a:hover {
    color: #FF3B5C !important;
}

.blog-card-excerpt,
.blog-card-meta {
    color: var(--muted) !important;
}

.blog-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--ink);
}

.blog-content h2 {
    font-size: 1.45rem;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    color: var(--ink) !important;
}

.blog-content p {
    margin-bottom: 1.15rem;
    color: var(--muted);
}

.blog-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    color: var(--muted);
}

.blog-content li { margin-bottom: 0.45rem; }

.blog-cta {
    background: linear-gradient(135deg, #0E0E11, #211015);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: var(--ink);
}

.blog-cta p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Utility overrides ---------- */
.text-primary { color: var(--primary) !important; }
.ndms-main .text-primary { color: #FF3B5C !important; }
.ndms-main a:not(.btn):not(.nav-link) { color: inherit; }
.bg-primary { background-color: var(--primary) !important; }

.experience-badge {
    border-radius: 8px !important;
    box-shadow: 0 20px 48px rgba(228, 0, 43, 0.3) !important;
}

.tech-badge { border-radius: 8px !important; }

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}

.contact-info-card:hover { border-color: rgba(255, 255, 255, 0.4); }

.contact-info-card .icon-wrap {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}

/* Team */
.team-card { padding: 2rem 1.5rem; }
.team-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 991.98px) {
    .hero-section .min-vh-100 {
        min-height: auto !important;
        padding: 5.5rem 0 3.25rem !important;
    }

    .hero-section .hero-title,
    .hero-section h1 {
        font-size: clamp(1.85rem, 7.2vw, 2.45rem) !important;
        max-width: 100%;
        color: #fff !important;
    }

    .hero-section .hero-lead,
    .hero-section .lead {
        font-size: 0.95rem !important;
        max-width: 100%;
        padding: 0 0.25rem;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .hero-section .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-fullbleed .hero-overlay {
        background:
            linear-gradient(180deg, rgba(8, 8, 12, 0.62) 0%, rgba(8, 8, 12, 0.45) 50%, rgba(8, 8, 12, 0.72) 100%);
    }

    .hero-call-hanger {
        top: 118px;
        right: 12px;
        transform: scale(0.86);
        transform-origin: top right;
    }

    .section-pad { padding: 2.25rem 0; }
    .ndms-main > section.py-5,
    .ndms-main section.py-5 {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }
    .legal-panel, .form-surface, .quote-form-card, .contact-form-card { padding: 1.5rem !important; }

    .page-hero,
    .about-hero {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .page-hero h1,
    .page-hero .display-4,
    .about-hero h1 {
        font-size: clamp(1.7rem, 6.5vw, 2.3rem) !important;
    }
}
