/* 
  Lance Services - Onion Inspired Design System
  Theme: Purple, White, Dark Navy
  Role: Senior Creative Developer
*/

:root {
    /* Premium Tomato Red Palette */
    --accent: #ff6347;
    /* Vibrant Tomato Red */
    --accent-dark: #e5533d;
    --black: #000000;
    --navy: #000000;
    --white: #ffffff;
    --gray-soft: #fcfcfc;

    /* Grays */
    --gray-100: #f3f3f3;
    --gray-200: #eeeeee;
    --gray-400: #bdbdbd;
    --gray-600: #444444;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Effects */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    color: var(--navy);
    line-height: 1.6;
    background-color: var(--white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Utility colors used across views */
.bg-navy { background-color: var(--navy) !important; }
.text-navy { color: var(--navy) !important; }
.text-accent { color: var(--accent) !important; }

/* African Digitech Pattern System */
.african-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4v-4H4v4H0v2h4v4h2V6h4V4H6zM36 4v-4h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.african-pattern-accent {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6347' fill-opacity='0.05'%3E%3Cpath d='M0 0h10v10H0V0zm10 10h10v10H10V10zM0 20h10v10H0V20zm10 30h10v10H10V30zM20 0h10v10H20V0zm10 10h10v10H30V10zM20 20h10v10H20V20zm10 30h10v10H30V30zM40 0h10v10H40V0zm10 10h10v10H50V10zM40 20h10v10H40V20zm10 30h10v10H50V30zM60 0h10v10H60V0zm10 10h10v10H70V10zM60 20h10v10H60V20zm10 30h10v10H70V30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--navy);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 2rem;
}

p.lead {
    font-size: 1.5rem;
    color: var(--gray-600);
    font-weight: 300;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 0.6rem 0;
    /* Slimmer navbar */
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.4rem 0;
    }
}

.navbar-brand img {
    transition: var(--transition);
}

.ls-logo {
    height: 64px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .ls-logo {
        height: 54px;
    }
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent) !important;
}

.nav-link {
    color: var(--navy) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Mobile full-screen menu */
.nav-offcanvas {
    background: var(--white);
}

@media (max-width: 991.98px) {
    .nav-offcanvas {
        width: 100vw !important;
        border-left: 0;
        max-width: none !important;
        height: 100vh !important;
    }

    .nav-offcanvas .offcanvas-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-offcanvas .offcanvas-body {
        height: calc(100vh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-offcanvas .offcanvas-body { padding: 1.1rem 1.25rem 2rem; display: block; }

    .nav-offcanvas .navbar-nav {
        width: 100%;
        gap: 0.4rem;
        padding-top: 0.25rem;
    }

    .nav-offcanvas .nav-link {
        font-size: 1.25rem;
        font-weight: 800;
        padding: 0.8rem 0.75rem !important;
        border-radius: 16px;
    }

    .nav-offcanvas .nav-link:hover {
        background: var(--gray-100);
    }

    .nav-offcanvas .dropdown-menu {
        width: 100%;
        padding: 0.75rem;
    }

    .nav-offcanvas .dropdown-item {
        font-size: 1.05rem;
        font-weight: 700;
        padding: 0.75rem 0.9rem;
        border-radius: 14px;
    }

    .nav-offcanvas .nav-cta {
        width: 100%;
        justify-content: center;
        padding: 16px 18px !important;
        font-size: 1.05rem;
        margin-top: 0.5rem;
    }
}

/* Buttons */
.btn {
    padding: 16px 36px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    /* Capsule shape */
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent) !important;
    color: var(--black) !important;
    box-shadow: 0 10px 20px rgba(255, 99, 71, 0.2) !important;
    border: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--accent-dark) !important;
    color: var(--black) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 99, 71, 0.3) !important;
    border: none !important;
    outline: none !important;
}

/* Eliminate Blue Focus Glows */
.btn-primary:focus,
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 99, 71, 0.25) !important;
}

.btn-light-blue {
    background-color: #f8f9fa;
    color: var(--navy);
    border: 1px solid #eee;
}

.btn-light-blue:hover {
    background-color: var(--accent);
    color: var(--black);
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* Clean Base Background */
body {
    background-color: var(--white);
    color: var(--black);
}

.hero-section {
    padding: 120px 0 80px;
    position: relative;
    background-color: var(--white);
    overflow: hidden;
}

/* Floating Dashboard Elements */
.dashboard-mockup {
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.dashboard-mockup:hover {
    transform: translateY(-20px) rotateX(10deg);
}

.hero-visual-wrap {
    isolation: isolate;
}

.hero-signal {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 150px;
    padding: 1rem 1.25rem;
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
    animation: heroSignalFloat 5.5s ease-in-out infinite;
}

.hero-signal i {
    font-size: 1rem;
    flex: 0 0 auto;
}

.hero-signal-seo {
    top: -1.5rem;
    right: -1.25rem;
}

.hero-signal-marketing {
    bottom: 1.5rem;
    left: -2.5rem;
    animation-delay: 0.45s;
}

.hero-signal-security {
    top: 50%;
    right: -3rem;
    transform: translateY(-50%);
    animation-delay: 0.9s;
}

@keyframes heroSignalFloat {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -10px;
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
}

.hero-title span {
    color: var(--accent);
    -webkit-text-stroke: 1px var(--black);
    /* Outline for visibility on white */
}

/* Device Mockups Stack */
.device-stack {
    position: relative;
    padding: 5rem 0;
}

.device-laptop {
    width: 80%;
    margin: 0 auto;
    display: block;
}

.device-tablet {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.device-phone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* Infinite Services Marquee Slider */
.services-ticker {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background-color: var(--black);
    /* Black background for ticker */
    padding: 1.5rem 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: marquee-scroll 40s linear infinite;
    gap: 5rem;
    padding-left: 2rem;
}

/* Scroll reveal (subtle). Used across the site via .ls-reveal */
.ls-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms ease, transform 520ms ease;
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .ls-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.ticker-service {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    /* White text on black background */
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.ticker-service i {
    color: var(--accent);
    /* Yellow icon */
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

/* Mobile Centering & Responsiveness */
@media (max-width: 768px) {
    .container {
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-visual-wrap {
        max-width: 460px;
        margin: 0 auto;
        padding: 2.75rem 0.75rem 1.7rem;
    }

    .dashboard-mockup {
        border-radius: 1.75rem !important;
    }

    .dashboard-mockup:hover {
        transform: none;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    footer {
        text-align: center;
    }

    .ticker-service {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-signal {
        animation: none;
    }
}

.hero-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1;
}

.hero-title span {
    font-weight: 300;
    color: var(--gray-600);
}

/* Section Header */
.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-weight: 300;
    color: var(--gray-600);
}

.section-header h2 b,
.section-header h2 strong {
    font-weight: 800;
    color: var(--navy);
}

/* Cards */
.card {
    border: none;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    padding: 2rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 100px;
    height: 100px;
    background: var(--gray-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    transition: var(--transition);
}

.card:hover .icon-box {
    background: var(--accent);
    color: var(--white);
}

/* Portfolio Overlay Style */
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.portfolio-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

/* Contact Section with the side box style */
.contact-container {
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-info-box {
    background-color: var(--gray-soft);
    padding: 4rem;
    height: 100%;
}

/* Footer - Clean Dark */
footer {
    background-color: #0c0c1e;
    color: var(--white);
    padding: 100px 0 40px;
}

footer a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
}

/* Utilities */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.fw-black {
    font-weight: 900;
}

.letter-spacing-tight {
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 100px 0 80px;
    }
}

/* Infinite Services Marquee Slider */
.services-ticker {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background-color: var(--white);
    padding: 3rem 0;
    border-top: 1px solid var(--gray-soft);
    border-bottom: 1px solid var(--gray-soft);
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: marquee-scroll 40s linear infinite;
    /* Slow, professional, calm motion */
    gap: 5rem;
    padding-left: 2rem;
}

.services-ticker:hover .ticker-track {
    animation-play-state: paused;
    /* Pause on hover for easier reading */
}

.ticker-service {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.ticker-service i {
    color: var(--accent);
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    margin: 0 1rem;
    opacity: 0.4;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Halfway point ensures seamless loop */
}

@media (max-width: 768px) {
    .ticker-service {
        font-size: 1.1rem;
    }

    .ticker-track {
        animation: marquee-scroll 25s linear infinite;
        gap: 3rem;
    }
}
