/* =========================================================
   BL Ninety-Nine — Stylesheet (Minor Tweaks)
   Brand: Red (#E10600), Black (#0B0B0B), White (#FFFFFF)
   ========================================================= */

/* ---------- Theme Variables ---------- */
:root {
    --primary-red: #E10600;
    --primary-black: #0B0B0B;

    --ink-900: #121212;
    --ink-800: #1a1a1a;
    --ink-700: #2a2a2a;
    --ink-600: #3a3a3a;
    --ink-500: #565656;
    --ink-400: #7a7a7a;
    --ink-300: #a1a1a1;
    --ink-200: #d7d7d7;
    --ink-100: #eeeeee;

    --bg-50: #fafafa;
    --card-bg: #ffffff;

    --red-700: #b10b07;

    --container-max: 1180px;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .08);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, .12);

    --sp-1: 6px;
    --sp-2: 10px;
    --sp-3: 14px;
    --sp-4: 18px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 40px;
    --sp-8: 56px;
    --sp-9: 72px;



    /* New: footer rhythm */
    --footer-gap: 22px;
    --footer-line: #1f1f1f;

    /* New: hero placeholder (royalty-free abstract tech) */
    --hero-img: url("new-hero.png");
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink-800);
    background: var(--bg-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: var(--primary-black);
    text-decoration: none;
}

a:hover {
    color: var(--primary-red);
}

.container {
    width: min(100% - 32px, var(--container-max));
    margin-inline: auto;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-black);
    margin: 0 0 var(--sp-4);
    letter-spacing: .2px;
}

h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 700;
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.content-section {
    padding: var(--sp-9) 0;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 8px;
}

/* ---------- Header / Nav ---------- */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ink-100);
}

#navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-3) 0;
}

.logo-container .nav-logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    position: relative;
    left: 40px;
}

#nav-menu ul {
    display: flex;
    gap: clamp(14px, 2.5vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

#nav-menu .nav-link {
    font-weight: 600;
    color: var(--ink-700);
    padding: 10px 8px;
    position: relative;
}

#nav-menu .nav-link:hover,
#nav-menu .nav-link.active {
    color: var(--primary-red);
}

#nav-menu .nav-link.active::after,
#nav-menu .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -8px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--ink-200);
    background: #fff;
    color: var(--primary-black);
    border-radius: var(--radius-xs);
    padding: 10px 12px;
    cursor: pointer;
}

.menu-toggle:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-red);
    color: #fff !important;
    border: 1px solid var(--primary-red);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    transition: all .2s ease;
    box-shadow: 0 10px 26px rgba(225, 6, 0, .18);
}

.btn-primary:hover {
    background: var(--red-700);
    border-color: var(--red-700);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ---------- Hero (with placeholder image) ---------- */
.hero-section {
    position: relative;
    min-height: 84vh;
    display: grid;
    align-items: center;
    padding: var(--sp-9) 0 var(--sp-7);
    overflow: hidden;

    /* New: photographic background + red wash */
    background:

        var(--hero-img) center/cover no-repeat;
}


.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-left: 40rem;
    color: #ffffff;
}

.hero-content h1 {
    max-width: 18ch;
    color: #ffffff;
}

.hero-content p {
    color: var(--ink-600);
    max-width: 60ch;
    margin: var(--sp-4) 0 var(--sp-6);
    font-size: 1.05rem;
    color: #ffffff;
}

/* Quick links row */
.hero-services {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sp-3);
    margin-top: var(--sp-7);
}

.hero-service-box {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-left: 4px solid var(--primary-red);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-700);
    font-weight: 600;
    transition: .2s ease;
    box-shadow: var(--shadow-sm);
}

.hero-service-box i {
    color: var(--primary-red);
}

.hero-service-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-black);
}

/* ---------- Cards / Grids ---------- */
.about-intro p {
    background: #fff;
    border: 1px solid var(--ink-100);
    padding: var(--sp-6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--ink-700);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-5);
}

.strategy-item,
.expertise-item,
.service-pillar {
    background: var(--card-bg);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.strategy-item:hover,
.expertise-item:hover,
.service-pillar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.grid-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--primary-black);
    margin-bottom: var(--sp-4);
    font-size: 22px;
    overflow: hidden;
}

.service-pillar .grid-icon {
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 0;
}

/* Services layout tweaks */
.services-bg {
    background:
        radial-gradient(1000px 420px at 12% 10%, rgba(225, 6, 0, .06), transparent 60%),
        radial-gradient(1000px 420px at 88% 24%, rgba(11, 11, 11, .05), transparent 60%);
}

.two-col-layout {
    margin-top: var(--sp-4);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-6);
    align-items: center;
}

.consulting-image .section-image {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ink-100);
}

.consulting-list .service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.consulting-list .service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed var(--ink-200);
    border-radius: 10px;
    background: #fff;
}

.consulting-list .service-list i {
    color: var(--primary-red);
    margin-top: 2px;
}

/* Service pillars grid (5) */
#services .service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-pillar h4 {
    margin-top: var(--sp-3);
}

.sub-list {
    margin-top: var(--sp-3);
    padding-left: 18px;
    color: var(--ink-600);
}

.sub-list li {
    margin-bottom: 6px;
}

/* ---------- Contact ---------- */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: start;
}

.contact-card,
.contact-form-container {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
}

.contact-card p {
    margin: 8px 0;
    color: var(--ink-700);
}

.contact-card i {
    color: var(--primary-red);
    margin-right: 8px;
}

.contact-form-container form {
    display: grid;
    gap: 12px;
}

.contact-form-container input,
.contact-form-container textarea,
.newsletter-form input {
    width: 100%;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink-800);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form-container textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus,
.newsletter-form input:focus {
    border-color: var(--primary-red);
    box-shadow: var(--focus-ring);
}

/* ---------- Floating Actions ---------- */
.whatsapp-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #fff !important;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 24px 68px rgba(0, 0, 0, .16);
    z-index: 1001;
    transition: transform .2s ease, background .2s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background: var(--red-700);
}

#scrollToTopBtn {
    position: fixed;
    right: 20px;
    bottom: 88px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary-black);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

#scrollToTopBtn:hover {
    color: #fff;
    background: var(--primary-red);
    transform: translateY(-2px);
}

/* ---------- Footer (refined alignment) ---------- */
footer {
    background: var(--primary-black);
    color: #dcdcdc;
    padding-top: var(--sp-8);
    margin-top: var(--sp-9);
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1.2fr;
    /* subtle weight on brand + newsletter */
    gap: var(--footer-gap);
    align-items: start;
    /* align blocks to the same top line */
}

.footer-col {
    display: grid;
    align-content: start;
    /* keep section titles tight to content */
    gap: 10px;
    /* consistent vertical rhythm */
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 6px 0;
    /* tighter headline spacing */
    letter-spacing: .2px;
}

.footer-col p {
    margin: 0;
    /* remove random paragraph gaps */
    color: #cfcfcf;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #cfcfcf;
    padding: 2px 0;
    /* gives nicer hover underline */
    border-bottom: 1px dashed transparent;
    /* subtle hover affordance */
}

.footer-links a:hover {
    color: #ffffff;
    border-bottom-color: #333;
}

.newsletter-form {
    display: grid;
    gap: 10px;
}

.newsletter-form input {
    background: #0f0f0f;
    color: #fff;
    border-color: #222;
    height: 42px;
}

.newsletter-form .btn-primary {
    padding: 10px 14px;
    box-shadow: none;
    justify-self: start;
}

/* New: soft column separators to align text visually */
.footer-content-grid>.footer-col:not(:last-child) {
    position: relative;
}

.footer-content-grid>.footer-col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 1px;
    height: 100%;
    background: var(--footer-line);
    opacity: .7;
}

/* Bottom bar */
.footer-bottom {
    padding: var(--sp-5) 0 var(--sp-7);
    border-top: 1px solid var(--footer-line);
    margin-top: var(--sp-7);
    text-align: center;
    color: #bfbfbf;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    #services .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content-grid>.footer-col::after {
        display: none;
    }

    /* separators off on tablet */
}

@media (max-width: 780px) {
    #navbar .container {
        grid-template-columns: auto auto auto;
    }

    #nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--ink-100);
        display: none;
    }

    #nav-menu.open {
        display: block;
    }

    #nav-menu ul {
        flex-direction: column;
        padding: 10px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-services {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .hero-services {
        grid-template-columns: 1fr;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
    }
}

/* GRID LAYOUT */
.service-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* FLIP CARD */
.flip-card {
    width: 100%;
    height: 360px;
    perspective: 1000px;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 255, 255, 0.18);
}

/* INNER WRAPPER FOR FLIP */
.flip-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

/* FRONT AND BACK SHARED STYLES */
.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* FRONT SIDE */
.flip-front {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

/* BACK SIDE */
.flip-back {
    transform: rotateY(180deg);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
}


/* TITLE ON TOP OF CARD */
.front-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.1rem 1rem;

    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0));

    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

/* ICON STYLE */
.service-icon {
    font-size: 90px;
    color: #e60023;
    /* deep professional red */

    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 6px rgba(230, 0, 35, 0.35));

    margin-top: 40px;
    /* push icon down to sit under title */
}

.map-container {
    width: 100%;
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#scrollToTopBtn {
    position: fixed;
    bottom: 80px;
    right: 19px;
    width: 55px;
    height: 55px;
    background: #e60023;
    color: #fff;
    border: none;
    outline: none;
    border-radius: 50%;
    font-size: 22px;

    cursor: pointer;
    display: none;
    /* JS shows this as 'flex' */
    align-items: center;
    /* centered vertically */
    justify-content: center;
    /* centered horizontally */

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

.nav-link.active {
    color: #e60023;
    font-weight: 700;
}

/* FIXED MENU TOGGLE SELECTOR */
#menu-toggle {
    display: none;
    border: 1px solid var(--ink-200);
    background: #fff;
    color: var(--primary-black);
    border-radius: var(--radius-xs);
    padding: 10px 12px;
    cursor: pointer;
}

#menu-toggle:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* FIXED NAV OPEN STATE */
#nav-menu.nav-open {
    display: block;
}