/* SuprosNetworxs Theme - Option A: Modern Corporate (Hybrid: Structured + Bold) */
:root {
    --color-primary: #009bb6;
    /* Cyan Blue */
    --color-primary-light: #00b8d4;
    --color-secondary: #E6E9EF;
    /* Silver Gray */
    --color-accent: #E02424;
    /* Crimson Red */
    --color-accent-dark: #B81C1C;
    --color-highlight: #41D3FF;
    /* Electric Cyan */
    --color-text-dark: #0B1F3A;
    --color-text-light: #F8F9FA;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Hybrid Design Tokens */
    --border-radius-sharp: 4px;
    /* Freedom HR: Sharp grids */
    --card-border-top: 4px solid var(--color-accent);
    /* Bizup: Bold accents */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: #F8F9FA;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Bizup: Bold typography */
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Utilities --- */
.bg-primary-custom {
    background-color: var(--color-primary);
}

.bg-secondary-custom {
    background-color: var(--color-secondary);
}

.text-primary-custom {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-highlight {
    color: var(--color-highlight);
}

.separator-line {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 1.5rem 0;
}

/* --- Buttons --- */
.btn-custom-crimson {
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius-sharp);
    padding: 0.85rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow, sharp feel */
    transition: all 0.2s ease-in-out;
}

.btn-custom-crimson:hover {
    background-color: var(--color-primary);
    /* Dark contrast on hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(11, 31, 58, 0.3);
}

.btn-custom-cyan-outline {
    background-color: transparent;
    border: 2px solid var(--color-highlight);
    color: var(--color-highlight);
    border-radius: var(--border-radius-sharp);
    padding: 0.85rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

.btn-custom-cyan-outline:hover {
    background-color: var(--color-highlight);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(65, 211, 255, 0.5);
    /* Glowing effect */
}

/* --- Navbar --- */
.navbar-custom {
    background-color: var(--color-primary);
    padding: 1.2rem 0;
    border-bottom: 3px solid var(--color-accent);
    /* Sharp segmentation */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 900;
    font-size: 1.75rem;
    letter-spacing: -1px;
}

.navbar-custom .navbar-brand span {
    color: var(--color-highlight);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-left: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--color-highlight);
}

.hero-section {
    position: relative;
    background-color: #ffffff;
    padding: 50px 0 60px;
    overflow: hidden;
}

.hero-bg-shape-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    /* Covers right side */
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Mobile: Move shape to top/behind content properly */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-bg-shape-container {
        width: 100%;
        height: 60%;
        /* Top half only */
        right: 0;
        left: 0;
    }
}

/* End of Hero SVG Container styles */


/* Old overlay removed for clean look */

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

.hero-title {
    font-size: 2.5rem;
    /* More compact */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    /* Tighter spacing */
    color: var(--color-primary);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
}

.hero-subtitle-desk {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
}

/* --- Cards (Hybrid: Sharp Border + High Contrast) --- */
.card-custom {
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Clarity */
    border-top: var(--card-border-top);
    /* Accent Pop */
    border-radius: var(--border-radius-sharp);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    /* Deep shadow */
    border-top-color: var(--color-highlight);
    /* Switch accent color on hover */
}

.card-custom .card-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(11, 31, 58, 0.05);
    /* Subtle bg */
    color: var(--color-primary);
    border-radius: var(--border-radius-sharp);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

/* --- Section Formatting --- */
.section-padding {
    padding: 6rem 0;
}

/* The service-category pages (Manufacturers/Professionals/Providers/Consultants/Suppliers)
   use .section-padding as their very first section directly under the nav, with no hero or
   breadcrumb above it — the full 6rem top padding there just wastes space above the fold.
   Applied via an explicit class (rather than :first-child) since some of these pages emit a
   <style> tag before the section. Mid-page .section-padding dividers are unaffected. */
.section-hero-compact {
    padding-top: 1.5rem !important;
}

.bg-silver {
    background-color: #F0F2F5;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.section-title .text-uppercase {
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Background Shapes & Dividers --- */
.section-relative {
    position: relative;
    overflow: hidden;
    /* Ensure shapes don't spill out */
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--color-highlight);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    /* Compact vertical spacing */
    color: white;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #E6E9EF;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* --- Cards (Hybrid: Sharp Border + High Contrast) --- */
.card-custom {
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Clarity */
    border-top: var(--card-border-top);
    /* Accent Pop */
    border-radius: var(--border-radius-sharp);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    /* Deep shadow */
    border-top-color: var(--color-highlight);
    /* Switch accent color on hover */
}

.card-custom .card-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(11, 31, 58, 0.05);
    /* Subtle bg */
    color: var(--color-primary);
    border-radius: var(--border-radius-sharp);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

/* --- Section Formatting --- */
.section-padding {
    padding: 6rem 0;
}

.bg-silver {
    background-color: #F0F2F5;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.section-title .text-uppercase {
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Background Shapes & Dividers --- */
.section-relative {
    position: relative;
    overflow: hidden;
    /* Ensure shapes don't spill out */
}

/* Helper for common shape positioning */
.shape-divider {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    /* Behind content if content needs z-index > 1, but usually 1 is fine if content is relative */
}

.shape-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
    /* Default to white content background */
}

/* Variant: Bottom Wave */
.shape-bottom-wave {
    bottom: 0;
    left: 0;
}

.shape-bottom-wave svg {
    height: 120px;
}

/* Variant: Top Curve */
.shape-top-curve {
    top: 0;
    left: 0;
    transform: rotate(180deg);
}

.shape-top-curve svg {
    height: 80px;
}

/* Variant: Slant (Corporate/Sharp) */
.shape-slant-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 49%, var(--color-primary) 50%);
    opacity: 0.1;
}

/* Variant: Organic Blob (Background Decoration) */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
}

.bg-blob-primary {
    background-color: var(--color-primary);
    width: 400px;
    height: 400px;
}

.bg-blob-accent {
    background-color: var(--color-highlight);
    width: 300px;
    height: 300px;
}

/* Specific Positions */
.blob-top-right {
    top: -100px;
    right: -100px;
}

.blob-bottom-left {
    bottom: -100px;
    left: -100px;
}

.blob-center-right {
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
}

/* Color overrides for shapes connecting to different colored sections */
.fill-primary {
    fill: var(--color-primary) !important;
}

.fill-silver {
    fill: var(--color-secondary) !important;
}

.fill-white {
    fill: #ffffff !important;
}

/* --- Hero Services Widget --- */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sharp);
}

.hero-service-link {
    background: rgba(11, 31, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sharp);
}

.hero-service-link:hover {
    background: #ee6c20;
    border-color: var(--color-highlight);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(238, 108, 32, 0.4);
}

.hero-service-link i {
    transition: transform 0.3s ease;
}

.hero-service-link:hover i {
    transform: scale(1.2);
}

.text-spacing-sm {
    letter-spacing: 1px;
}

/* --- Mobile Navigation Fix --- */
@media (max-width: 991.98px) {

    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        background-color: var(--color-primary) !important;
        padding: 1rem;
        border-radius: 0.25rem;
        margin-top: 0.5rem;
    }

    .navbar-collapse .nav-link {
        color: white !important;
    }

    .navbar-collapse .nav-link.active {
        color: var(--color-highlight) !important;
    }

    .navbar-collapse .dropdown-menu {
        background-color: var(--color-primary-light);
        border: none;
    }

    .navbar-collapse .dropdown-item {
        color: white !important;
    }

    .navbar-collapse .dropdown-item:hover {
        background-color: var(--color-primary);
        color: var(--color-highlight) !important;
    }

    .navbar-collapse .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* --- Timeline Component --- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-highlight));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    background-color: var(--color-accent);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--color-highlight);
    box-shadow: 0 0 0 3px rgba(65, 211, 255, 0.3);
    transform: scale(1.2);
}

.timeline-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-item .text-sm {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -2rem;
    }
}

/* --- CTA Button Styles --- */
.cta-btn {
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-btn:hover {
    background-color: #ee6c20;
    border-color: #ee6c20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238, 108, 32, 0.4);
}

/* --- Section Title Optimization --- */
.section-title {
    padding-bottom: 30px !important;
}

.section-title h2 {
    margin-bottom: 0.25rem !important;
    font-size: 2rem !important;
}

.section-title p {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
}

/* --- Page Header Sections (Blue Background Headers) --- */
section.bg-primary-custom {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

section.bg-primary-custom h1 {
    color: #ffffff !important;
    margin-bottom: 0.5rem !important;
}

section.bg-primary-custom p.lead {
    margin-bottom: 0 !important;
}

/* --- Global Form Labels --- */
label, .form-label {
    color: #ee6c20 !important;
}

/* --- Pattern: Hexagon Service Card --- */
.hexagon-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.hexagon-icon-badge {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: all 0.3s ease;
}

.hexagon-card:hover .hexagon-icon-badge {
    background-color: var(--color-accent);
    transform: rotate(30deg);
}

.hexagon-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}

.hexagon-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* --- Hexagon badge color variants (matches original service-item palette) --- */
.hexagon-icon-badge--cyan {
    background-color: #0dcaf0;
}

.hexagon-icon-badge--orange {
    background-color: #fd7e14;
}

.hexagon-icon-badge--teal {
    background-color: #20c997;
}

.hexagon-icon-badge--red {
    background-color: #df1529;
}

.hexagon-icon-badge--indigo {
    background-color: #6610f2;
}

.hexagon-icon-badge--pink {
    background-color: #f3268c;
}

.hexagon-card:hover .hexagon-icon-badge--cyan,
.hexagon-card:hover .hexagon-icon-badge--orange,
.hexagon-card:hover .hexagon-icon-badge--teal,
.hexagon-card:hover .hexagon-icon-badge--red,
.hexagon-card:hover .hexagon-icon-badge--indigo,
.hexagon-card:hover .hexagon-icon-badge--pink {
    background-color: var(--color-accent);
}

/* --- Pattern: Alternating Content Grid --- */
.alternating-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.alternating-item.is-reversed {
    flex-direction: row-reverse;
}

.alternating-item .alternating-image {
    flex: 1 1 45%;
    min-width: 280px;
    border-radius: var(--border-radius-sharp);
    overflow: hidden;
}

.alternating-item .alternating-image img {
    width: 100%;
    height: auto;
    display: block;
}

.alternating-item .alternating-content {
    flex: 1 1 45%;
    min-width: 280px;
}

.alternating-item .alternating-content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* --- Pattern: Value Pillar Row --- */
.pillar-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.pillar-item .pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-highlight);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pillar-item .pillar-label {
    font-weight: 600;
    color: var(--color-text-light);
}

/* --- Pattern: Angled Contact Panel --- */
.angled-panel {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #081222 100%);
    color: var(--color-text-light);
    border-radius: var(--border-radius-sharp);
    padding: 3rem;
    overflow: hidden;
}

.angled-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, transparent 50%, var(--color-accent) 50%);
    opacity: 0.25;
}

.angled-panel .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
}

.angled-panel .form-label {
    color: var(--color-text-light) !important;
}

.angled-panel h2,
.angled-panel h3 {
    color: var(--color-text-light);
}
