:root {
    --primary: #d32b33;
    --primary-dark: #b21f26;
    --secondary: #f4f6f8;
    --light: #ffffff;
    --dark: #152440;
    --muted: #5c6778;
    --line: #e4e8ee;
    --shadow: 0 12px 40px rgba(21, 36, 64, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6,
.font-weight-bold {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

.display-1,
.display-4,
.display-5 {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 2000;
    background: var(--dark);
    color: #fff;
    padding: 8px 14px;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.pt-6 { padding-top: 90px; }
.pb-6 { padding-bottom: 90px; }
.py-6 { padding-top: 90px; padding-bottom: 90px; }

.btn {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--dark);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.section-title {
    max-width: 680px;
}

.section-kicker {
    display: inline-block;
    color: var(--primary);
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.section-rule {
    width: 72px;
    height: 3px;
    background: var(--primary);
    border: 0;
    opacity: 1;
    margin: 16px auto 0;
}

/* Topbar */
.topbar a,
.topbar p {
    color: #fff;
}

.topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

/* Navbar */
.navbar {
    transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.navbar.sticky-top {
    box-shadow: 0 8px 24px rgba(21, 36, 64, 0.12);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand:hover {
    color: inherit;
}

.logo {
    width: 72px;
    height: 56px;
    object-fit: contain;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: "Barlow", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.brand-tag {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.navbar-light .navbar-nav .nav-link {
    font-family: "Barlow", sans-serif;
    padding: 28px 14px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
    outline: none;
    transition: 0.25s ease;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 18px 14px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .logo {
        width: 56px;
        height: 44px;
    }

    .brand-name {
        font-size: 1.1rem;
    }
}

/* Hero */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(21, 36, 64, 0.45) 0%, rgba(21, 36, 64, 0.78) 100%);
    z-index: 1;
}

.carousel-item img {
    height: min(78vh, 720px);
    object-fit: cover;
}

.carousel-caption h5 {
    letter-spacing: 0.14em;
    font-weight: 600;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.4rem;
    height: 2.4rem;
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 520px;
    }

    .carousel-caption h5 {
        font-size: 13px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        font-weight: 700 !important;
    }
}

/* Page header */
.page-header {
    background:
        linear-gradient(180deg, rgba(21, 36, 64, 0.72), rgba(21, 36, 64, 0.86)),
        url("../img/work.jpg") center/cover no-repeat;
    padding-top: 72px;
    padding-bottom: 72px;
}

.page-header h1 {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-header a {
    color: #d7dce4;
}

.page-header a:hover,
.page-header .current {
    color: #fff;
}

/* Services */
.service-item {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 48px;
    padding-bottom: 40px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(21, 36, 64, 0.12);
}

.icon-circle {
    width: 90px;
    height: 90px;
}

.icon-circle-sm {
    width: 60px;
    height: 60px;
}

.feature-panel p,
.service-copy {
    color: rgba(255, 255, 255, 0.88);
}

.service-block {
    background: var(--secondary);
}

.service-block h2 {
    margin-bottom: 1rem;
}

.service-block ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.service-block li + li {
    margin-top: 0.4rem;
}

.service-photo {
    min-height: 420px;
}

.service-photo img {
    object-fit: cover;
}

/* Team */
.team-item img {
    transform: scale(1.04);
    transition: 0.45s ease;
}

.team-item:hover img {
    transform: scale(1);
}

.team-item .team-text {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    background: linear-gradient(180deg, transparent, rgba(21, 36, 64, 0.92));
    padding-top: 48px;
}

.team-item .team-text::after {
    display: none;
}

/* Testimonials */
.testimonial-carousel .owl-nav {
    margin-top: 24px;
    display: flex;
    justify-content: flex-start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    font-size: 22px;
    border-radius: 45px;
    transition: 0.25s ease;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
    color: #fff;
}

.testimonial-carousel .owl-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Blog / events */
.blog-item {
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.blog-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: 0.45s ease;
}

.blog-item:hover img {
    transform: scale(1.06);
}

.blog-item .h4,
.blog-item h3 {
    color: var(--dark);
}

/* About content */
.prose-list {
    padding-left: 1.15rem;
}

.prose-list li + li {
    margin-top: 0.35rem;
}

.soft-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--shadow);
}

.soft-table th,
.soft-table td {
    border: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
}

.soft-table th {
    background: var(--dark);
    color: #fff;
    font-family: "Barlow", sans-serif;
}

.soft-table tr:nth-child(even) td {
    background: #fafbfc;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    position: relative;
    padding: 16px 16px 16px 28px;
    border-left: 3px solid var(--primary);
    background: #fff;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

/* Contact */
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 14px;
    transition: 0.2s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    color: inherit;
}

.contact-card i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0;
    border-color: #d5dbe3;
    padding: 12px 14px;
    min-height: 50px;
}

.contact-form textarea.form-control {
    min-height: 140px;
}

.form-status {
    display: none;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.form-status.is-visible {
    display: block;
}

.map-wrap {
    min-height: 460px;
}

.map-wrap iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 460px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: 0;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: "View";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 36, 64, 0.45);
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transition: 0.25s ease;
}

.gallery-item:hover::after,
.gallery-item:focus::after {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 36px;
    background: none;
    border: 0;
    line-height: 1;
}

/* Footer */
.site-footer a {
    color: #b7c0cc;
}

.site-footer a:hover {
    color: #fff;
}

.footer-logo {
    width: 180px;
    height: auto;
    background: #fff;
    padding: 10px;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    z-index: 99;
}

.whatsapp-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover {
    color: #fff;
    background: #1ebe5d;
}

@media (max-width: 575.98px) {
    .py-6 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .whatsapp-float,
    .back-to-top {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}
