/* ==========================================================================
   Studio 1389 - Business Consulting
   Site stylesheet (light corporate theme)

   1. Design tokens        7. Services
   2. Base                 8. Stats
   3. Buttons              9. Contact & company
   4. Header               10. Footer
   5. Hero & sections      11. Highlights slider
   6. About                12. Reveal, 404, responsive
   ========================================================================== */

/* --------------------------- 1. DESIGN TOKENS --------------------------- */
:root {
    --navy: #0F2A44;
    --navy-deep: #0A1E33;
    --ink: #1B2B3C;
    --text: #445566;
    --muted: #5E6E80;
    --line: #E2E8F0;
    --bg: #FFFFFF;
    --bg-alt: #F4F6F9;
    --accent: #E48632;            /* brand orange - decorative use */
    --accent-text: #C4661A;       /* large headings on light backgrounds */
    --accent-strong: #B35812;     /* buttons and small text (AA contrast) */
    --accent-strong-hover: #974A0E;
    --accent-tint: #FDF0E4;
    --radius: 12px;
    --shadow-sm: 0 2px 10px rgba(15, 42, 68, 0.06);
    --shadow-md: 0 16px 36px rgba(15, 42, 68, 0.11);
    --shadow-lg: 0 24px 60px rgba(15, 42, 68, 0.16);
    --header-h: 76px;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --------------------------- 2. BASE --------------------------- */
html {
    scroll-behavior: smooth;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip; /* clip keeps position:sticky working, hidden does not */
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.2;
}
p {
    margin: 0 0 1rem;
}
a {
    color: var(--accent-strong);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover,
a:focus {
    color: var(--accent-strong-hover);
    text-decoration: none;
}
img {
    max-width: 100%;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.colored {
    color: var(--accent-text);
}
.subtle {
    color: var(--muted);
}
.hidden {
    display: none;
}
section[id] {
    scroll-margin-top: var(--header-h);
}
:focus-visible {
    outline: 3px solid rgba(228, 134, 50, 0.55);
    outline-offset: 2px;
}

/* --------------------------- 3. BUTTONS --------------------------- */
.btn-cta,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.btn-cta {
    background: var(--accent-strong);
    color: #FFF;
    box-shadow: 0 10px 22px rgba(179, 88, 18, 0.22);
}
.btn-cta:hover,
.btn-cta:focus {
    background: var(--accent-strong-hover);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(179, 88, 18, 0.28);
}
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: rgba(15, 42, 68, 0.22);
}
.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
}
.btn-cta:active,
.btn-ghost:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* --------------------------- 4. HEADER --------------------------- */
#main-header .navbar {
    min-height: var(--header-h);
    padding: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Bootstrap drops the container padding inside collapsed navbars - restore it */
#main-header .navbar > .container {
    padding-right: 15px;
    padding-left: 15px;
}
#main-header.is-scrolled .navbar {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.navbar-brand {
    padding: 0;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--navy);
}
.navbar-light .navbar-brand,
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
    color: var(--navy);
}
.brand-mark {
    color: var(--accent);
}
.navbar-light .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--accent-strong);
}
/* -Instagram- */
.nav-social {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--line);
}
.nav-social .nav-link i {
    font-size: 1.25rem;
    line-height: 1;
    vertical-align: -2px;
}
.nav-social-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* -Contact button- */
.nav-cta {
    margin-left: 0.75rem;
}
.navbar-light .navbar-nav .nav-cta .nav-link {
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    background: var(--accent-strong);
    color: #FFF;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.navbar-light .navbar-nav .nav-cta .nav-link:hover,
.navbar-light .navbar-nav .nav-cta .nav-link:focus {
    background: var(--accent-strong-hover);
    color: #FFF;
    transform: translateY(-1px);
}
/* -Burger- */
.navbar-light .navbar-toggler {
    padding: 10px 0 10px 10px;
    border: 0;
}
.navbar-toggler:focus {
    outline: none;
}
.navbar-toggler:focus-visible {
    outline: 3px solid rgba(228, 134, 50, 0.55);
}
#hamburger .icon-bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px 0;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#hamburger.open .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#hamburger.open .icon-bar:nth-child(2) {
    opacity: 0;
}
#hamburger.open .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------- 5. HERO & SECTIONS --------------------------- */
#hero {
    position: relative;
    isolation: isolate;
    padding: calc(var(--header-h) + 72px) 0 84px;
    overflow: hidden;
    background: linear-gradient(180deg, #F8FAFC 0%, #EDF1F6 100%);
}
/* -Ambient light orbs drifting slowly behind the content- */
#hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -180px;
    z-index: -1;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 134, 50, 0.17), rgba(228, 134, 50, 0) 70%);
    animation: hero-orb 16s ease-in-out infinite alternate;
    pointer-events: none;
}
#hero::after {
    content: "";
    position: absolute;
    bottom: -240px;
    left: -180px;
    z-index: -1;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 42, 68, 0.08), rgba(15, 42, 68, 0) 70%);
    animation: hero-orb-alt 20s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes hero-orb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-110px, 70px, 0) scale(1.15); }
}
@keyframes hero-orb-alt {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(90px, -60px, 0) scale(1.12); }
}
/* -Interactive network canvas (drawn by js/hero.js)- */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 50%, #000 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 50%, #000 100%);
    animation: hero-fade 1.6s ease 0.2s forwards;
    pointer-events: none;
}
/* -Soft light that follows the cursor- */
.hero-spotlight {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 40%), rgba(228, 134, 50, 0.12), rgba(228, 134, 50, 0) 65%);
    transition: opacity 0.6s ease;
    pointer-events: none;
}
#hero.is-pointer .hero-spotlight {
    opacity: 1;
}
@keyframes hero-fade {
    to { opacity: 1; }
}
#hero .container {
    position: relative;
    z-index: 1;
}

/* -Depth on scroll (--scroll is set by js/hero.js)- */
.hero-copy {
    opacity: calc(1 - var(--scroll, 0) / 1100);
    transform: translate3d(0, calc(var(--scroll, 0) * 0.16px), 0);
}
.hero-visual {
    transform: translate3d(0, calc(var(--scroll, 0) * 0.07px), 0);
}

/* -Headline, rule and buttons entrance- */
.hero-rule {
    display: block;
    width: 56px;
    height: 4px;
    margin-bottom: 1.6rem;
    border-radius: 2px;
    background: var(--accent);
    transform-origin: left center;
}
.js .hero-rule {
    animation: hero-rule-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
@keyframes hero-rule-in {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
#hero h1 {
    margin-bottom: 2.2rem;
    font-size: clamp(2.5rem, 5.2vw, 4.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
}
#hero h1 .colored {
    font-weight: 600;
}
/* Hidden until hero.js has split the words - shown anyway after 2.5s if the script fails */
.js #hero h1 {
    visibility: hidden;
    animation: hero-failsafe 0s linear 2.5s forwards;
}
.js #hero.hero-ready h1 {
    visibility: visible;
    animation: none;
}
@keyframes hero-failsafe {
    to { visibility: visible; }
}
#hero h1 .word {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
    vertical-align: top;
}
#hero h1 .word-inner {
    display: inline-block;
    animation: hero-word-up 1s cubic-bezier(0.2, 0.75, 0.15, 1) both;
    animation-delay: calc(0.2s + var(--w, 0) * 0.085s);
}
@keyframes hero-word-up {
    from { transform: translateY(108%); }
    to   { transform: none; }
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.js .hero-actions {
    animation: hero-fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both;
}
@keyframes hero-fade-up {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
    to   { opacity: 1; transform: none; }
}
/* -Shine sweep on the primary button- */
.btn-cta {
    position: relative;
    overflow: hidden;
}
.btn-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}
.btn-cta:hover::after {
    left: 130%;
    transition: left 0.75s ease;
}
#hero .btn-cta::after {
    animation: btn-shine 1.1s ease 2s;
}
@keyframes btn-shine {
    from { left: -60%; }
    to   { left: 130%; }
}

/* -Hero graphic: 3D tilt + layered parallax (--px/--py set by js/hero.js)- */
.hero-graphic {
    max-width: 520px;
    margin-left: auto;
}
.hero-graphic svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 24px 40px rgba(15, 42, 68, 0.08));
    transform: perspective(1000px) rotateY(calc(var(--px, 0) * 9deg)) rotateX(calc(var(--py, 0) * -9deg));
}
.hero-graphic .plx {
    transform: translate(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px));
}
/* -Hero graphic: build-up sequence- */
.hg-enter-circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: hg-zoom 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.hg-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: hg-fade-in 1s ease 0.6s both, hg-spin 48s linear 0.6s infinite;
}
.hg-dot {
    animation: hg-twinkle 3.6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
}
.hg-bar {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hg-grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(0.55s + var(--i, 0) * 0.1s);
}
.hg-baseline {
    transform-box: fill-box;
    transform-origin: 0 50%;
    animation: hg-scale-x 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}
.hg-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: hg-draw 1.3s cubic-bezier(0.65, 0, 0.35, 1) 1.05s forwards;
}
.hg-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: hg-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
    animation-delay: calc(1.15s + var(--i, 0) * 0.3s);
}
.hg-arrow {
    transform-box: fill-box;
    transform-origin: center;
    animation: hg-pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 2.25s both;
}
.hg-enter-card {
    animation: hg-slide-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s both;
}
.hg-kpi {
    transform-box: fill-box;
    transform-origin: 0 50%;
    animation: hg-scale-x 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.9s both;
}
.hg-spark {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: hg-draw 0.8s ease 1.9s forwards;
}
.hg-enter-badge {
    animation: hg-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s both;
}
.hg-float {
    animation: hg-float 6s ease-in-out 2.4s infinite;
}
.hg-float-slow {
    animation-duration: 7.5s;
    animation-delay: 2.9s;
}
.hg-pulse {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: hg-pulse 2.8s ease-out 2.6s infinite;
}
@keyframes hg-zoom {
    from { opacity: 0; transform: scale(0.82); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes hg-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hg-spin {
    to { transform: rotate(360deg); }
}
@keyframes hg-twinkle {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
}
@keyframes hg-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
@keyframes hg-scale-x {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
@keyframes hg-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes hg-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}
@keyframes hg-slide-in {
    from { opacity: 0; transform: translate(-30px, 14px); }
    to   { opacity: 1; transform: none; }
}
@keyframes hg-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
@keyframes hg-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes hg-pulse {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.75); }
}
/* -Hero: respect reduced motion preferences- */
@media (prefers-reduced-motion: reduce) {
    #hero::before,
    #hero::after,
    .hero-canvas,
    .js .hero-rule,
    .js #hero h1,
    #hero h1 .word-inner,
    .js .hero-actions,
    #hero .btn-cta::after,
    .hero-graphic svg * {
        animation: none !important;
    }
    .hero-canvas {
        opacity: 1;
    }
    .js #hero h1 {
        visibility: visible;
    }
    .hero-copy,
    .hero-visual,
    .hero-graphic svg,
    .hero-graphic .plx {
        transform: none !important;
    }
    .hero-copy {
        opacity: 1 !important;
    }
    .hg-line,
    .hg-spark {
        stroke-dashoffset: 0;
    }
    .hg-runner,
    .hg-runner-glow {
        display: none;
    }
}

.section {
    padding: 96px 0;
}
.section-tight {
    padding: 64px 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-heading {
    margin-bottom: 48px;
}
.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.section-heading h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 16px;
    border-radius: 2px;
    background: var(--accent);
}

/* --------------------------- 6. ABOUT --------------------------- */
.about-copy p {
    margin-bottom: 1.4rem;
    color: var(--text);
}
.about-copy p:last-child {
    margin-bottom: 0;
}
.about-copy strong {
    color: var(--navy);
    font-weight: 600;
}
#about .about-lead {
    margin-bottom: 2rem;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.55;
}
#about-visual {
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: #FFF;
    background-image: radial-gradient(rgba(15, 42, 68, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    box-shadow: var(--shadow-sm);
}
/* -The artwork tracks the reader down the long text column- */
.about-visual-inner {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: flex-start;
    width: 100%;
    padding: 44px 32px;
}
.about-visual-inner img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 18px 36px rgba(15, 42, 68, 0.10));
}

/* --------------------------- 7. SERVICES --------------------------- */
.services-header {
    max-width: 720px;
    margin: 0 auto 56px;
}
.services-label {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-strong);
}
.services-title {
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 700;
}
.services-subtitle {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted);
}
.service-grid > [class*="col-"] {
    margin-bottom: 30px;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 32px 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #FFF;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--accent-tint);
    color: var(--accent-strong);
    font-size: 1.5rem;
}
.service-category {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.service-title {
    margin-bottom: 0.85rem;
    font-size: 1.22rem;
    font-weight: 600;
}
.service-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

/* --------------------------- 8. STATS --------------------------- */
.stats-band {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
    background: var(--navy);
}
.stats-band::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.stats-row {
    position: relative;
}
.stats-item {
    padding: 12px 24px;
}
.stats-item + .stats-item {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.stats-number {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: #FFF;
}
.stats-number::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--accent);
}
.stats-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #C3D0DE;
}

/* --------------------------- 9. CONTACT & COMPANY --------------------------- */
.contact-card {
    width: 100%;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #FFF;
    box-shadow: var(--shadow-sm);
}
.card-title {
    margin-bottom: 28px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.card-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--accent);
}
#contactForm .form-group {
    margin-bottom: 18px;
}
.form-field {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--ink);
    font: inherit;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
textarea.form-field {
    height: 160px;
    padding: 14px 16px;
    resize: vertical;
}
.form-field::placeholder {
    color: #7A8899;
    opacity: 1;
}
.form-field:focus {
    outline: none;
    border-color: var(--accent);
    background: #FFF;
    box-shadow: 0 0 0 4px rgba(228, 134, 50, 0.15);
}
.has-error .form-field,
.has-danger .form-field {
    border-color: #C0392B;
}
.help-block.with-errors {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #B03A2E;
}
#contactForm .subtle {
    margin: -4px 0 22px;
    font-size: 0.85rem;
}
.form-message {
    margin-top: 18px;
    font-weight: 600;
}
.form-message.text-success {
    color: #1E7B4A !important;
}
.form-message.text-danger {
    color: #B03A2E !important;
}
#contact-info li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
#contact-info li:first-child {
    padding-top: 0;
}
#contact-info li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.info-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-strong);
    font-size: 1.05rem;
}
#contact-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}
#contact-info .colored {
    display: block;
}
#contact-info .colored a {
    color: var(--navy);
    font-size: 1.02rem;
    font-weight: 600;
    word-break: break-word;
}
#contact-info .colored a:hover,
#contact-info .colored a:focus {
    color: var(--accent-strong);
}
.company-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #FFF;
    box-shadow: var(--shadow-sm);
}
.company-card p {
    margin: 0;
    line-height: 1.8;
    color: var(--text);
}

/* --------------------------- 10. FOOTER --------------------------- */
#main-footer {
    padding: 28px 0;
    border-top: 3px solid var(--accent);
    background: var(--navy-deep);
    color: #B7C4D3;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
#copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #B7C4D3;
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #FFF;
    font-size: 1.05rem;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.social-links a:hover,
.social-links a:focus {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    color: #FFF;
    transform: translateY(-2px);
}

/* --------------------------- 11. HIGHLIGHTS SLIDER --------------------------- */
#highlightsCarousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    outline: none;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
#highlightsCarousel:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(15, 42, 68, 0.22);
}
#highlightsCarousel:focus-visible {
    box-shadow: 0 0 0 4px rgba(228, 134, 50, 0.5), var(--shadow-lg);
}
#highlightsCarousel .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    will-change: transform;
}
/* -Crossfade timing- */
#highlightsCarousel.carousel-fade .carousel-item {
    transition: opacity 400ms ease-in-out;
}
/* Keep the outgoing slide fully visible while the next one fades in over it */
#highlightsCarousel.carousel-fade .active.carousel-item-left,
#highlightsCarousel.carousel-fade .active.carousel-item-right {
    transition: opacity 0s 400ms;
}
/* -Slow push on the visible slide- */
@keyframes hl-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.03); }
}
#highlightsCarousel .carousel-item.active img {
    animation: hl-kenburns 2000ms ease-out forwards;
}
/* -Autoplay progress bar- */
#highlightsCarousel .carousel-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    height: 4px;
    background: rgba(15, 42, 68, 0.18);
}
#highlightsCarousel .carousel-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
}
@keyframes hl-progress {
    from { width: 0; }
    to   { width: 100%; }
}
#highlightsCarousel .carousel-progress-bar.running {
    animation: hl-progress 1500ms linear forwards;
}
#highlightsCarousel .carousel-progress-bar.paused {
    animation-play-state: paused;
}
/* -Controls- */
#highlightsCarousel .carousel-control-prev,
#highlightsCarousel .carousel-control-next {
    z-index: 15;
    width: 12%;
    padding: 0;
    border: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    opacity: 0;
    transition: opacity 350ms ease;
}
#highlightsCarousel:hover .carousel-control-prev,
#highlightsCarousel:hover .carousel-control-next,
#highlightsCarousel:focus-within .carousel-control-prev,
#highlightsCarousel:focus-within .carousel-control-next {
    opacity: 1;
}
#highlightsCarousel .carousel-control-prev-icon,
#highlightsCarousel .carousel-control-next-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(15, 42, 68, 0.6);
    background-size: 36% 36%;
    transition: background-color 300ms ease, transform 300ms ease;
}
#highlightsCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#highlightsCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent-strong);
    transform: scale(1.1);
}
/* -Indicators- */
#highlightsCarousel .carousel-indicators {
    z-index: 20;
    margin-bottom: 20px;
}
#highlightsCarousel .carousel-indicators li {
    width: 9px;
    height: 9px;
    margin: 0 6px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 1px rgba(15, 42, 68, 0.25);
    opacity: 1;
    transition: background-color 300ms ease, transform 300ms ease;
}
#highlightsCarousel .carousel-indicators li.active {
    background-color: var(--accent);
    transform: scale(1.35);
}

/* --------------------------- 12. REVEAL, 404, RESPONSIVE --------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in-view {
    opacity: 1;
    transform: none;
}
/* -Details that animate in once their block is revealed- */
.js .section-heading.reveal h2::after,
.js .reveal .stats-number::after {
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}
.js .section-heading.reveal h2::after {
    transform-origin: left center;
}
.js .section-heading.reveal.in-view h2::after,
.js .reveal.in-view .stats-number::after {
    transform: scaleX(1);
}
.js .reveal .service-icon,
.js .reveal .info-icon {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
    transition: opacity 0.4s ease 0.25s, transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 0.25s;
}
.js .reveal.in-view .service-icon,
.js .reveal.in-view .info-icon {
    opacity: 1;
    transform: none;
}
.js .reveal.in-view #contact-info li:nth-child(2) .info-icon {
    transition-delay: 0.37s, 0.37s;
}
.js .reveal.in-view #contact-info li:nth-child(3) .info-icon {
    transition-delay: 0.49s, 0.49s;
}
.js .reveal.in-view #contact-info li:nth-child(4) .info-icon {
    transition-delay: 0.61s, 0.61s;
}

.page-404 {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--header-h) + 40px) 0 60px;
    background: linear-gradient(180deg, #F8FAFC 0%, #EDF1F6 100%);
}
.page-404 .code-404 {
    margin-bottom: 0.5rem;
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--navy);
}
.page-404 .code-404 span {
    color: var(--accent);
}
.page-404 p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--muted);
}

/* -Tablet & mobile menu- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin: 0 -15px;
        padding: 0.5rem 15px 1.25rem;
        border-top: 1px solid var(--line);
        background: #FFF;
        box-shadow: 0 16px 24px rgba(15, 42, 68, 0.08);
    }
    .navbar-light .navbar-nav .nav-link {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-social {
        margin: 0;
        padding: 0;
        border-left: 0;
    }
    .nav-social-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        margin-left: 10px;
    }
    .nav-cta {
        margin: 1rem 0 0;
    }
    .navbar-light .navbar-nav .nav-cta .nav-link {
        padding: 0.9rem 1rem;
        border-bottom: 0;
        text-align: center;
    }
    #hero {
        padding: calc(var(--header-h) + 56px) 0 72px;
    }
    .hero-graphic {
        max-width: 460px;
        margin: 48px auto 0;
    }
    .contact-card {
        padding: 32px;
    }
}

/* -Phones- */
@media (max-width: 767.98px) {
    :root {
        --header-h: 64px;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .section {
        padding: 64px 0;
    }
    .section-tight {
        padding: 36px 0;
    }
    .section-heading {
        margin-bottom: 32px;
    }
    #hero {
        padding: calc(var(--header-h) + 44px) 0 56px;
    }
    #hero h1 {
        margin-bottom: 1.8rem;
    }
    .hero-actions a {
        flex: 1 1 auto;
    }
    .hero-graphic {
        max-width: 340px;
        margin: 40px auto 0;
    }
    #about .about-lead {
        padding-left: 16px;
        font-size: 1.12rem;
    }
    #about-visual {
        min-height: 0;
        margin-bottom: 32px;
    }
    .about-visual-inner {
        position: static;
        padding: 28px 20px;
    }
    .about-visual-inner img {
        max-width: 280px;
    }
    .services-header {
        margin-bottom: 36px;
    }
    .service-card {
        padding: 28px 24px;
    }
    .stats-band {
        padding: 44px 0;
    }
    .stats-item {
        padding: 22px 12px;
    }
    .stats-item + .stats-item {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 0;
    }
    .contact-card,
    .company-card {
        padding: 26px 22px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    #highlightsCarousel .carousel-control-prev-icon,
    #highlightsCarousel .carousel-control-next-icon {
        width: 36px;
        height: 36px;
    }
    #highlightsCarousel .carousel-indicators {
        margin-bottom: 12px;
    }
}

/* -Touch devices: keep slider arrows visible, no hover lift- */
@media (hover: none) {
    #highlightsCarousel .carousel-control-prev,
    #highlightsCarousel .carousel-control-next {
        opacity: 0.8;
    }
    #highlightsCarousel:hover,
    .service-card:hover {
        transform: none;
    }
}

/* -Respect reduced motion preferences- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .js .section-heading.reveal h2::after,
    .js .reveal .stats-number::after,
    .js .reveal .service-icon,
    .js .reveal .info-icon {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #highlightsCarousel .carousel-item.active img {
        animation: none;
    }
    #highlightsCarousel .carousel-progress {
        display: none;
    }
    #highlightsCarousel,
    .service-card,
    .btn-cta,
    .btn-ghost {
        transition: none;
    }
    #highlightsCarousel:hover,
    .service-card:hover,
    .btn-cta:hover,
    .btn-ghost:hover {
        transform: none;
    }
}
