/* =========================================================
   The Forge Ltd — Custom Stylesheet
   Brand: Dark Blue #164191 · Golden Yellow #F6BC0C
          Orange #E67700 · White #FFFFFF
   Fully Responsive - Mobile First
   ========================================================= */

:root {
    --brand-navy: #164191;
    --brand-navy-dark: #0f2f6b;
    --brand-gold: #F6BC0C;
    --brand-gold-light: #FFF4D6;
    --brand-orange: #E67700;
    --brand-orange-dark: #b85f00;
    --brand-white: #FFFFFF;
    --brand-light: #F8F9FB;
    --brand-gradient: linear-gradient(135deg, #E67700 0%, #F6BC0C 100%);
    --brand-text: #1a1a2e;
    --brand-muted: #6c757d;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--brand-text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--brand-white);
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--brand-navy);
    line-height: 1.3;
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    padding: 0 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--brand-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
    font-size: 0.95rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-gradient);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

section { padding: 3.5rem 0; }
section.alt-bg { background: var(--brand-light); }

@media (min-width: 768px) {
    section { padding: 5rem 0; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-forge {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    padding: 0.75rem 1.85rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-forge:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 119, 0, 0.4);
    text-decoration: none;
}

.btn-forge-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 0.75rem 1.85rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-forge-outline:hover {
    background: #fff;
    color: var(--brand-navy);
    border-color: #fff;
    text-decoration: none;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    transition: var(--transition);
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(22, 65, 145, 0.06);
    min-height: 70px;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    border-bottom-color: rgba(22, 65, 145, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .brand-logo { height: 44px; }
}

.navbar-brand:hover .brand-logo { transform: scale(1.03); }

.navbar-nav .nav-link {
    color: var(--brand-text) !important;
    font-weight: 500;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 6px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-navy) !important;
    background: rgba(22, 65, 145, 0.06);
}

/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */
.hamburger-btn {
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger-btn:hover { background: rgba(22, 65, 145, 0.08); }

.hamburger-btn span {
    display: block;
    height: 2.5px;
    border-radius: 4px;
    background: var(--brand-navy);
    transition: var(--transition);
}

.hamburger-btn span:first-child { width: 100%; }
.hamburger-btn span:nth-child(2) { width: 75%; }
.hamburger-btn span:last-child { width: 55%; }

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.forge-drawer {
    width: min(85vw, 300px) !important;
    background: var(--brand-navy) !important;
    border-right: none !important;
    max-width: 100vw;
}

.forge-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.forge-drawer-brand { display: flex; align-items: center; }

.drawer-logo {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.forge-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.forge-drawer-close:hover { background: rgba(255, 255, 255, 0.18); }

.forge-drawer-body {
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.forge-drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.forge-drawer-nav li { margin-bottom: 0.25rem; }

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    color: #ced4da;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.drawer-link i {
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
    color: var(--brand-gold);
}

.drawer-link:hover,
.drawer-link.active {
    background: rgba(246, 188, 12, 0.12);
    color: #fff;
    border-left-color: var(--brand-gold);
}

.forge-drawer-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forge-drawer-footer p {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    color: #b0b8c7;
}

.forge-drawer-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.forge-drawer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.forge-drawer-socials a:hover {
    background: var(--brand-gold);
    color: var(--brand-navy);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(22, 65, 145, 0.88) 0%, rgba(230, 119, 0, 0.75) 100%),
        url('https://images.pexels.com/photos/9301152/pexels-photo-9301152.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=900&w=1600') center/cover no-repeat;
    padding: 6rem 1rem 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeUp 1s ease;
}

.hero-content .eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(246, 188, 12, 0.18);
    border: 1px solid rgba(246, 188, 12, 0.5);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.hero-content h1 span { color: var(--brand-gold); }

.hero-content p.lead {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    opacity: 0.95;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-image {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .about-image { margin-bottom: 0; }
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 3px solid var(--brand-gold);
    pointer-events: none;
    transform: translate(8px, 8px);
    z-index: -1;
    opacity: 0.5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: var(--transition);
}

.about-image:hover img { transform: scale(1.03); }

.value-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef0f5;
}

.value-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.value-item .icon-box {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--brand-gold-light);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.value-item h5 {
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.value-item p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.cac-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-gold-light);
    color: var(--brand-orange-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    transition: var(--transition);
    height: 100%;
    background: var(--brand-white);
}

.why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 65, 145, 0.08);
}

.why-item .why-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(230, 119, 0, 0.25);
}

.why-item h5 {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.why-item p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* =========================================================
   SERVICES
   ========================================================= */
.service-item {
    padding: 1.5rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
    border-radius: 0 12px 12px 0;
    background: var(--brand-white);
}

.service-item:hover {
    border-left-color: var(--brand-orange);
    background: rgba(230, 119, 0, 0.04);
}

.service-item .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-gold-light);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
    transition: var(--transition);
}

.service-item:hover .icon-wrap {
    background: var(--brand-gradient);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

.service-item h5 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.service-item p {
    color: var(--brand-muted);
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

.service-item .btn-link {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    font-size: 0.85rem;
}

.service-item .btn-link:hover { color: var(--brand-navy); }

/* =========================================================
   PROCESS
   ========================================================= */
.process-step-block {
    text-align: center;
    padding: 1.25rem 1rem;
    position: relative;
    background: var(--brand-white);
    border-radius: 12px;
}

.process-step-block .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 0.75rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(230, 119, 0, 0.3);
}

.process-step-block:hover .step-number {
    transform: scale(1.1);
}

.process-step-block .step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-gold-light);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 0.75rem;
    transition: var(--transition);
}

.process-step-block:hover .step-icon {
    background: var(--brand-gradient);
    color: #fff;
}

.process-step-block h5 {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.process-step-block p {
    color: var(--brand-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.process-timeline { position: relative; }

.process-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-gold));
    border-radius: 2px;
    z-index: 0;
}

.process-stat { padding: 0.75rem 0.5rem; }

.process-stat h3 {
    color: var(--brand-navy);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
    line-height: 1;
}

.process-stat p {
    color: var(--brand-muted);
    font-weight: 500;
    margin: 0;
    font-size: 0.8rem;
}

/* =========================================================
   MEET OUR TEAM
   ========================================================= */

/* Mobile 2-per-row carousel — tighter spacing */
.team-mobile-carousel .carousel-item { padding: 0.25rem 0 0; }
.team-mobile-carousel .carousel-indicators { bottom: -26px; }
.team-card {
    background: var(--brand-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(22, 65, 145, 0.06);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(22, 65, 145, 0.12);
}

.team-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--brand-gold);
    background-color: #f0f0f0; /* Placeholder color if image is missing */
}

/* Use the `full` modifier to show uncropped images (useful for single centered profile) */
.team-photo.full {
    height: auto;
    object-fit: contain;
    max-height: 420px; /* prevent extremely tall images */
}

.team-info {
    padding: 1.25rem 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h5 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--brand-navy);
}

.team-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--brand-orange);
    font-weight: 500;
}

/* =========================================================
   BLOG SECTION
   ========================================================= */
#blog {
    background: var(--brand-light);
}

.blog-card {
    background: var(--brand-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(22, 65, 145, 0.06);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(22, 65, 145, 0.12);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0e0; /* Placeholder color */
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-meta i {
    color: var(--brand-orange);
    margin-right: 0.25rem;
}

.blog-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--brand-navy);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--brand-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-link {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.blog-link:hover {
    color: var(--brand-navy);
    gap: 0.5rem;
}

/* =========================================================
   BLOG GRID LAYOUTS (1-3 blogs static, centered)
   ========================================================= */

/* 1 blog - centered */
.blog-grid-1 {
    display: flex;
    justify-content: center;
}

.blog-grid-1 .col-lg-4 {
    max-width: 400px;
    flex: 0 0 auto;
}

/* 2 blogs - centered side by side */
.blog-grid-2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-grid-2 .col-lg-4 {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem);
}

/* 3 blogs - full width normal grid */
.blog-grid-3 {
    display: flex;
    flex-wrap: wrap;
}

.blog-grid-3 .col-lg-4 {
    flex: 0 0 calc(33.333% - 0.65rem) !important;
    max-width: calc(33.333% - 0.65rem);
}

/* =========================================================
   BLOG CAROUSEL (Desktop: 4+ blogs)
   ========================================================= */
.blog-carousel-wrapper {
    margin-bottom: 3rem;
}

.blog-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.blog-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-carousel-slide {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 0;
}

/* Carousel dots (WITH ARROWS on desktop) */
.blog-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

/* Desktop blog carousel nav arrows */
.blog-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.blog-carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(22, 65, 145, 0.2);
    flex-shrink: 0;
}

.blog-carousel-btn:hover {
    background: var(--brand-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 119, 0, 0.35);
}

.blog-carousel-dots-inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.blog-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(22, 65, 145, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.blog-dot:hover {
    background: rgba(22, 65, 145, 0.4);
}

.blog-dot.active {
    background: var(--brand-gold);
    box-shadow: 0 0 8px rgba(246, 188, 12, 0.5);
}

/* =========================================================
   BLOG MOBILE CAROUSEL (Mobile: all blogs — single card + arrows)
   ========================================================= */
.blog-mobile-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 0 3.5rem;
}

.blog-mobile-track {
    display: flex;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Mobile blog nav controls */
.blog-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.blog-mobile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22, 65, 145, 0.25);
}

.blog-mobile-btn:hover {
    background: var(--brand-orange);
    transform: scale(1.08);
}

.blog-mobile-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.blog-mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(22, 65, 145, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.blog-mobile-dot:hover {
    background: rgba(22, 65, 145, 0.4);
}

.blog-mobile-dot.active {
    background: var(--brand-orange);
    width: 22px;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(230, 119, 0, 0.5);
}

/* =========================================================
   MODAL STYLING (For Blog Pop-ups)
   ========================================================= */
.forge-modal {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(22, 65, 145, 0.15);
}

.forge-modal .modal-header {
    border-bottom: 1px solid rgba(22, 65, 145, 0.08);
    padding: 1.5rem;
}

.forge-modal .modal-title {
    color: var(--brand-navy);
    font-weight: 700;
}

.forge-modal .modal-body {
    padding: 1.5rem;
    color: var(--brand-text);
    overflow-x: hidden;
    max-width: 100%;
}

.forge-modal .modal-footer {
    border-top: 1px solid rgba(22, 65, 145, 0.08);
    padding: 1.5rem;
}

.forge-modal .modal-dialog {
    max-height: 90vh;
    overflow-y: auto;
}
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.forge-modal .modal-header {
    background: var(--brand-navy);
    color: #fff;
    border-bottom: none;
    padding: 1.5rem;
}

.forge-modal .modal-header .modal-title {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
}

.forge-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

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

.forge-modal .modal-body {
    padding: 2rem 1.5rem;
}

.forge-modal .modal-body p {
    color: var(--brand-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.forge-modal .modal-body h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.forge-modal .modal-footer {
    border-top: 1px solid #eef0f5;
    padding: 1rem 1.5rem;
}

/* =========================================================
   MOBILE CAROUSEL
   ========================================================= */
.card-carousel {
    padding: 1rem 0 2.5rem;
    position: relative;
}

.card-carousel .carousel-item { padding: 0.75rem 0.25rem; }

.card-carousel .carousel-indicators {
    bottom: -24px;
    margin-bottom: 0;
}

.card-carousel .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #dee2e6;
    border: none;
    opacity: 1;
    margin: 0 3px;
}

.card-carousel .carousel-indicators .active {
    background-color: var(--brand-orange);
    width: 24px;
    border-radius: 10px;
}

/* Hide mobile carousel arrows */
.card-carousel .carousel-control-prev,
.card-carousel .carousel-control-next {
    display: none;
}

.card-carousel .service-item,
.card-carousel .process-step-block {
    background: rgba(230, 119, 0, 0.04);
    border-radius: 12px;
    border-left: none;
}

/* Mobile paginated indicators (dot buttons) */
.mobile-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0.75rem 0 0.25rem;
    position: relative;
    z-index: 20;
}
.mobile-indicators button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #dee2e6;
    border: none;
    opacity: 1;
    padding: 0;
}
.mobile-indicators button.active {
    background-color: var(--brand-orange);
    width: 24px;
    border-radius: 10px;
}

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industry-tile {
    background: var(--brand-white);
    padding: 1.25rem 0.75rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eef0f5;
    height: 100%;
}

.industry-tile:hover {
    transform: translateY(-3px);
    border-color: var(--brand-gold);
    box-shadow: 0 8px 24px rgba(22, 65, 145, 0.08);
}

.industry-tile .industry-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-gold-light);
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 0.65rem;
    transition: var(--transition);
}

.industry-tile:hover .industry-icon {
    background: var(--brand-gradient);
    color: #fff;
    transform: scale(1.1);
}

.industry-tile h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-navy);
}

/* =========================================================
   FAQ
   ========================================================= */
.forge-faq .accordion-item {
    border: none;
    border-bottom: 1px solid #eef0f5;
    background: transparent;
}

.forge-faq .accordion-item:last-child { border-bottom: none; }

.forge-faq .accordion-button {
    background: transparent;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-navy);
    box-shadow: none !important;
    border-radius: 0 !important;
}

.forge-faq .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--brand-orange);
}

.forge-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23164191'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.forge-faq .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E67700'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.forge-faq .accordion-body {
    padding: 0 0 1rem 0;
    color: var(--brand-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
    background: var(--brand-gradient);
    padding: 3rem 1rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(22, 65, 145, 0.25), transparent 50%);
    pointer-events: none;
}

.cta-banner h2 {
    color: #fff;
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    margin-bottom: 0.65rem;
    position: relative;
}

.cta-banner p {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    position: relative;
    line-height: 1.6;
}

.cta-banner .btn {
    background: #fff;
    color: var(--brand-navy);
    border: none;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.cta-banner .btn:hover {
    background: var(--brand-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-info-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-info-item .icon-box {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-gold-light);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-info-item h6 {
    margin-bottom: 0.1rem;
    font-weight: 600;
    color: var(--brand-navy);
    font-size: 0.9rem;
}

.contact-info-item p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e6ef;
    background: #fff;
    transition: var(--transition);
    font-size: 0.9rem;
}

.contact-form .form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(230, 119, 0, 0.12);
}

.contact-form .form-label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--brand-navy);
}

.form-feedback {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
}

.form-feedback.success {
    background: var(--brand-gold-light);
    color: var(--brand-orange-dark);
    display: block;
}

.form-feedback.error {
    background: #f8d7da;
    color: #842029;
    display: block;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-gold-light);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--brand-gradient);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER — Clean & Modern
   ========================================================= */
footer {
    background: var(--brand-navy);
    color: #b0b8c7;
    padding: 0;
    position: relative;
}

/* Top accent line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.footer-main {
    padding: 3.5rem 0 2.5rem;
}

.footer-brand {
    margin-bottom: 1.25rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #a0a8b8;
}

.footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

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

.footer-links li { margin-bottom: 0.4rem; }

.footer-link {
    color: #a0a8b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-link::before {
    content: '›';
    color: var(--brand-gold);
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--brand-gold);
    transform: translateX(3px);
}

.footer-contact p {
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
    color: #a0a8b8;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.footer-contact p i {
    color: var(--brand-gold);
    margin-top: 0.15rem;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.footer-socials {
    margin-top: 1rem;
}

/* Newsletter */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--brand-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.newsletter-input-wrap {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.newsletter-input-wrap:focus-within {
    border-color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.newsletter-input-wrap input::placeholder { color: rgba(255, 255, 255, 0.5); }

.newsletter-input-wrap button {
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    width: 48px;
    min-width: 48px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-input-wrap button:hover { filter: brightness(1.1); }

footer .footer-socials a {
    background: rgba(255, 255, 255, 0.09);
    color: #d8deea;
}

footer .footer-socials a:hover {
    background: var(--brand-gradient);
    color: #fff;
}

.newsletter-feedback {
    font-size: 0.78rem;
    margin-top: 0.4rem;
    min-height: 1rem;
    color: var(--brand-gold);
}

.newsletter-feedback.error { color: #ff8a8a; }
.newsletter-feedback.success { color: #9be6b5; }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #8692a6;
    background: rgba(0, 0, 0, 0.15);
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: #8692a6;
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-legal a:hover { color: var(--brand-gold); }

.dev-credit {
    color: var(--brand-gold);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.dev-credit:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(230, 119, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230, 119, 0, 0.5);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Tablet and up */
@media (min-width: 768px) {
    .hero-buttons .btn {
        width: auto;
        max-width: none;
    }
    
    .testi-carousel-track .testi-slide {
        flex: 0 0 calc((100% - 2.5rem) / 3);
    }
    
    .footer-main {
        padding: 4rem 0 3rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .process-timeline::before { display: block; }
    
    .testi-carousel-track .testi-slide {
        flex: 0 0 calc((100% - 3rem) / 3);
    }
}

/* Mobile only */
@media (max-width: 767.98px) {
    html { font-size: 15px; }
    
    .testi-desktop { display: none !important; }
    .testi-mobile { display: block !important; }
    
    .testi-carousel-track .testi-slide {
        flex: 0 0 100%;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal {
        gap: 0.75rem;
    }
    
    .about-image::after {
        transform: translate(6px, 6px);
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    html { font-size: 14px; }
    
    #home { padding: 5rem 1rem 3rem; }
    
    .hero-content h1 { font-size: 1.75rem; }
    .hero-content p.lead { font-size: 0.9rem; }
    
    .section-title { font-size: 1.5rem; }
    .section-subtitle { padding: 0 1rem; }
    
    section { padding: 2.5rem 0; }
    
    .cta-banner { padding: 2.5rem 1rem; }
    
    .process-stat h3 { font-size: 1.75rem; }
    
    /* Match the tighter mobile composition in the reference image. */
    #industries {
        padding: 2.35rem 0 2.75rem;
        background: #f3f5f9;
    }

    #industries .section-title {
        font-size: 1.45rem;
        margin-bottom: 0.55rem;
    }

    #industries .section-title::after {
        width: 56px;
        height: 3px;
        margin-top: 0.45rem;
    }

    #industries .section-subtitle {
        font-size: 0.78rem;
        line-height: 1.55;
        margin-bottom: 1.45rem;
        padding: 0 0.6rem;
    }

    #industries .row {
        --bs-gutter-x: 0.8rem;
        --bs-gutter-y: 0.8rem;
    }

    .industry-tile {
        min-height: 104px;
        padding: 1rem 0.55rem 0.85rem;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(22, 65, 145, 0.04);
    }

    .industry-tile .industry-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
        margin-bottom: 0.45rem;
    }

    .industry-tile h6 {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    footer {
        text-align: left;
        background: #164191;
    }

    .footer-main {
        padding: 2.1rem 0 1.55rem;
    }

    .footer-main .row {
        --bs-gutter-y: 1.25rem;
    }

    .footer-logo {
        height: 24px;
        margin-bottom: 1rem;
    }

    .footer-brand {
        margin-bottom: 0.85rem;
    }

    .footer-about p {
        font-size: 0.78rem;
        line-height: 1.65;
        max-width: 310px;
        margin-bottom: 1rem;
    }

    .newsletter-form {
        max-width: 100%;
        margin-top: 0.9rem;
    }

    .newsletter-form label {
        font-size: 0.68rem;
        margin-bottom: 0.45rem;
    }

    .newsletter-input-wrap {
        height: 42px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        border: none;
    }

    .newsletter-input-wrap input {
        font-size: 0.78rem;
        padding: 0.65rem 0.8rem;
    }

    .newsletter-input-wrap button {
        width: 44px;
        min-width: 44px;
        font-size: 0.95rem;
        border-radius: 0 8px 8px 0;
    }

    .footer-title {
        font-size: 0.82rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.42rem;
    }

    .footer-title::after {
        left: 0;
        transform: none;
        width: 26px;
        height: 2px;
    }

    .footer-links {
        display: block;
        text-align: left;
    }

    .footer-links li {
        margin-bottom: 0.32rem;
    }

    .footer-link {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .footer-contact p {
        justify-content: flex-start;
        font-size: 0.75rem;
        line-height: 1.45;
        margin-bottom: 0.55rem;
        max-width: 295px;
    }

    footer .footer-socials {
        justify-content: flex-start;
        gap: 0.45rem;
        margin-top: 0.8rem;
    }

    footer .footer-socials a {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .footer-bottom {
        padding: 0.9rem 0 1rem;
        font-size: 0.68rem;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 0.35rem;
        line-height: 1.4;
    }

    .footer-legal {
        gap: 0.7rem;
    }

    .footer-legal a {
        font-size: 0.68rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}