﻿:root {
    --primary-accent: #0b1c36;
    --primary-accent-dark: #09152b;
    --surface: #ffffff;
    --surface-muted: #f6f7fb;
    --text: #0d1524;
    --text-muted: #4f5a71;
    --border: #e2e6ef;
    --shadow-soft: 0 20px 45px rgba(11, 28, 54, 0.12);
    --shadow-hard: 0 25px 60px rgba(9, 21, 43, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--surface-muted);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0.02em;
    color: var(--text);
}

a {
    color: var(--primary-accent);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--primary-accent-dark);
    text-decoration: none;
}

/* Navigation */
.navbar {
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 0 18px;
    min-height: 48px;
}

header.navbar-affixed-top {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #ffffff;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(13, 21, 36, 0.08);
    transition: transform 0.35s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(9, 21, 43, 0.07);
}

header.navbar-affixed-top.header-hide {
    transform: translateY(-120%);
}

header.navbar-affixed-top:not(.header-hide) {
    box-shadow: 0 12px 30px rgba(19, 41, 79, 0.08);
}

.navbar-brand {
    position: relative;
    padding: 0 55px 0 0;
    min-width: 150px;
    height: 62px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.navbar-brand img {
    max-height: 170px;
    width: auto;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-default .navbar-nav {
    float: none;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: flex-end;
}

.navbar-default .navbar-nav > li {
    float: none;
}

.navbar-default .navbar-nav > li > a {
    color: var(--text);
    padding: 14px 0;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: var(--primary-accent);
}

.navbar-default .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 1px;
    border-radius: 0;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a:focus::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar ul.nav > li.active > a,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .open > a:focus {
    background-color: transparent;
    color: var(--primary-accent);
}

.navbar ul.nav > li.active > a::after,
.navbar-default .navbar-nav > .active > a::after,
.navbar-default .navbar-nav > .open > a::after {
    background: var(--primary-accent);
    opacity: 1;
    transform: scaleX(1);
}

@media (max-width: 991px) {
    .navbar {
        padding: 0 15px;
        box-shadow: none;
    }

    .navbar-default .navbar-nav {
        display: block;
    }

    .navbar-default .navbar-nav > li > a {
        padding: 12px 0;
    }

    .navbar-default .navbar-nav > li > a::after {
        display: none;
    }

    .navbar-brand {
        height: 56px;
        min-width: auto;
        padding-right: 12px;
    }

    .navbar-brand img {
        position: static;
        transform: none;
        max-height: 72px;
    }
}

/* Buttons */
.btn-template-main,
.btn-template-primary,
.btn-template-main:visited {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: #fff !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 26px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-template-main:hover,
.btn-template-main:focus,
.btn-template-primary:hover,
.btn-template-primary:focus {
    background: var(--primary-accent-dark);
    border-color: var(--primary-accent-dark);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.btn-template-transparent-primary {
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 26px;
    border-radius: 999px;
}

.btn-template-transparent-primary:hover,
.btn-template-transparent-primary:focus {
    background: var(--primary-accent);
    color: #fff;
}

/* Hero */
.video-hero {
    position: relative;
    overflow: hidden;
}

.carousel-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.carousel-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.home-carousel-overlay {
    display: none;
}

.video-hero .container {
    position: relative;
    z-index: 2;
    padding: 90px 15px 120px;
}

.home-carousel .item .hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.home-carousel .item .hero-copy {
    max-width: 560px;
}

.home-carousel .item .hero-copy h1 {
    color: #ffffff;
    font-size: 48px;
    margin-bottom: 18px;
    line-height: 1.1;
}

.home-carousel .item .hero-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 500px;
}

.home-carousel .item .hero-visual {
    max-width: 420px;
    width: 100%;
}

.home-carousel .item .hero-visual img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 320px;
}

@media (max-width: 991px) {
    .home-carousel .item .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .home-carousel .item .hero-copy h1 {
        font-size: 36px;
    }
}

/* Sections */
section.bar {
    padding: 70px 0;
    background: var(--surface);
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 36px;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 720px;
    margin: 10px auto 0;
}

/* Features */
.feature-section {
    background: var(--surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(11, 28, 54, 0.08);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.feature-card h3 {
    letter-spacing: 0.06em;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.service-card {
    gap: 20px;
}

.service-card .eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary-accent);
    margin-bottom: 6px;
}

.service-card__header p {
    margin: 0;
}

.service-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-card__list li {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.service-card__list h4 {
    font-size: 16px;
    text-transform: none;
    margin: 0 0 6px;
    color: var(--text);
}

.service-card__list h4 a {
    color: var(--primary-accent);
}

.service-card__list p {
    margin: 0;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 32px;
    max-width: 360px;
    flex: 0 1 360px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.testimonial-card .text {
    color: var(--text);
}

.testimonial-card .bottom {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .icon {
    font-size: 24px;
    color: var(--primary-accent);
}

.testimonial-card .name-picture h5 {
    margin: 0;
    font-weight: 600;
}

.testimonial-card .name-picture p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Blog cards */
.blog-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
}

.blog-card {
    float: none;
    padding: 0;
    flex: 0 1 320px;
}

.box-image-text.blog {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding-bottom: 25px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.box-image-text.blog .top {
    margin: 0 auto;
    max-width: 220px;
    width: 100%;
    padding-top: 25px;
}

.box-image-text.blog .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 22px;
}

.box-image-text.blog .content .intro {
    flex: 1;
    margin-top: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    color: var(--text-muted);
}

.box-image-text.blog .read-more {
    margin-top: auto;
}

.box-image-text.blog .read-more .btn {
    width: 100%;
}

/* Testimonials background */
.testimonials-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    overflow: hidden;
}

.testimonials-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 65%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 0;
}

.testimonials-hero .container,
.testimonials-hero .row {
    position: relative;
    z-index: 1;
}

.testimonials-hero .heading h2,
.testimonials-hero .lead {
    color: #ffffff;
}

/* Clients */
.clients {
    background: linear-gradient(135deg, #f8fbff 0%, #f2f5fb 100%);
    border: none;
    padding: 80px 0;
}

.clients .heading h2,
.clients p.lead {
    color: var(--text);
}

.clients .heading h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.clients .lead {
    margin-bottom: 50px;
    color: var(--text-muted);
    font-size: 18px;
}

.clients .owl-carousel .item img {
    filter: grayscale(1);
    opacity: 0.7;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.clients .owl-carousel .item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.service-hero {
    background: linear-gradient(135deg, rgba(11, 28, 54, 0.85), rgba(11, 28, 54, 0.65)), url('/img/texture-noise.png');
    color: #fff;
    padding: 80px 0;
    margin-bottom: 40px;
}

.service-hero h1,
.service-hero p {
    color: #fff;
}

/* General utilities */
.lead {
    color: var(--text-muted);
}

.home-carousel .item img {
    max-height: 350px;
    width: auto;
    margin: 0 auto;
}
.section-hero {
    background: linear-gradient(135deg, rgba(11, 28, 54, 0.85), rgba(11, 28, 54, 0.65)), url('/img/texture-bw.png');
    background-size: cover;
    color: #fff;
    padding: 70px 0;
    margin-bottom: 40px;
}

.section-hero h1,
.section-hero p {
    color: #fff;
}

/* Footer refresh */
#footer {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    color: var(--text-muted);
    padding: 80px 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 -30px 60px rgba(11, 28, 54, 0.08);
}

#footer h4 {
    color: var(--text);
    letter-spacing: 0.08em;
}

#footer p,
#footer li,
#footer a,
#footer .blog-entries .item .name h5 a {
    color: var(--text-muted);
}

#footer a:hover {
    color: var(--primary-accent);
}

#footer .blog-entries .item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

#footer .blog-entries .item:last-child {
    border-bottom: none;
}

#footer .btn-template-main {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: #fff;
    box-shadow: 0 12px 25px rgba(11, 28, 54, 0.25);
}

#footer .btn-template-main:hover {
    background: var(--primary-accent-dark);
    border-color: var(--primary-accent-dark);
}

#copyright {
    background: #050b16;
    color: rgba(255, 255, 255, 0.85);
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#copyright .pull-right {
    display: none !important;
}

#copyright a {
    color: rgba(255, 255, 255, 0.85);
}

#copyright a:hover {
    color: #ffffff;
}

@media (max-width: 991px) {
    #footer .container > div {
        margin-bottom: 24px;
    }
}

/* Mobile navigation tweaks */
@media (max-width: 576px) {
    .navbar {
        padding: 4px 12px;
        min-height: 80px;
    }

    .navbar-brand {
        padding-right: 0;
        min-width: auto;
        height: 80px;
    }

    .navbar-brand img {
        position: static;
        transform: none;
        max-height: 180px;
        width: auto;
    }
}

@media (max-width: 767px) {
    .box-simple .btn {
        margin-bottom: 15px;
    }
}
