:root {
    --fg-brand: #e31e24;
    --fg-brand-dark: #b91318;
    --fg-ink: #1f2933;
    --fg-muted: #667085;
    --fg-surface: #f7f8fa;
    --fg-footer: #171b22;
    --fg-footer-soft: #20262f;
    --fg-line: rgba(255, 255, 255, 0.12);
    --fg-radius: 14px;
    --fg-shadow: 0 14px 40px rgba(25, 34, 48, 0.11);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--fg-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
    max-width: 100%;
}

a {
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(227, 30, 36, 0.35);
    outline-offset: 3px;
}

/* Top bar */
.top-bar {
    padding: 0;
    color: #fff;
}

.topbar-layout {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.82rem;
}

.topbar-tagline {
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.topbar-contacts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex: 1 1 auto;
}

.topbar-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.topbar-link:hover,
.topbar-link:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.13);
}

/* Navigation */
.navbar {
    min-height: 82px;
    padding: 10px 0;
    box-shadow: 0 6px 22px rgba(18, 24, 33, 0.07);
    position: relative;
    z-index: 1020;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    margin-right: 24px;
}

.navbar-brand img {
    display: block;
    width: 260px;
    height: auto;
}

.navbar-toggler {
    width: 48px;
    height: 48px;
    padding: 8px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
}

.nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0.7rem 0.9rem !important;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: normal;
}

.dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--fg-shadow);
    padding: 8px;
}

/* Shared content */
#breadcrumb {
    padding: 22px 0 10px !important;
}

#breadcrumb .row {
    align-items: center;
}

#breadcrumb h1 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.breadcrumb {
    margin-bottom: 10px;
    justify-content: flex-end;
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
}

.services {
    padding: 72px 0;
}

.services-heading {
    max-width: 640px;
    margin: 0 auto 40px;
}

.services-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--fg-brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.services-heading h1 {
    margin-bottom: 10px;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.services-heading p {
    margin-bottom: 0;
    color: #5b6472;
    font-size: 1.05rem;
}

.services-grid {
    row-gap: 32px;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--fg-radius);
    background: var(--fg-surface);
    box-shadow: var(--fg-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(20, 29, 43, 0.14);
}

.service-card-img {
    overflow: hidden;
    background: #eef1f5;
}

.service-card-img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.service-card:hover .service-card-img img,
.service-card:focus-within .service-card-img img {
    transform: scale(1.04);
}

.service-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 28px;
    text-align: left;
}

.service-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(227, 30, 36, 0.1);
    color: var(--fg-brand);
    font-size: 1.4rem;
}

.service-card-body h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.service-card-body p {
    margin-bottom: 20px;
    color: #5b6472;
    line-height: 1.6;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--fg-brand);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.service-card-link:hover,
.service-card-link:focus {
    color: var(--fg-brand);
    gap: 12px;
    text-decoration: none;
}

.about img {
    width: 100%;
    height: auto;
    border-radius: var(--fg-radius);
}

.about {
    padding: 48px 20px !important;
}

.about .row {
    display: block;
}

.about p {
    font-size: 1.05rem !important;
    line-height: 1.8;
}

.about blockquote {
    width: 100%;
    font-size: 1.15rem !important;
    line-height: 1.75;
}

/* Home - About */
.home-about {
    padding: 72px 0;
}

.home-about-row {
    row-gap: 40px;
}

.home-about-media {
    position: relative;
}

.home-about-img {
    overflow: hidden;
    border-radius: var(--fg-radius);
    box-shadow: var(--fg-shadow);
}

.home-about-img img {
    display: block;
    width: 100%;
    height: auto;
}

.home-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    margin: -28px 0 0 24px;
    position: relative;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--fg-brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(227, 30, 36, 0.28);
}

.home-about-badge i {
    font-size: 1.1rem;
}

.home-about-content .services-kicker {
    display: inline-block;
    margin-bottom: 10px;
}

.home-about-content h1 {
    margin-bottom: 16px;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.home-about-content > p {
    color: #5b6472;
    font-size: 1.05rem;
    line-height: 1.75;
}

.home-about-features {
    list-style: none;
    margin: 20px 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.home-about-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}

.home-about-features i {
    color: var(--fg-brand);
    font-size: 1.05rem;
}

/* Home - Stats */
.home-stats {
    background: url('../images/bg-content.jpg') no-repeat center center;
    background-size: cover;
}

.home-stats .overlay {
    padding: 72px 0;
    background: url('../images/bg-nokta.png') repeat;
    background-color: rgba(13, 17, 23, 0.72);
}

.home-stats-heading {
    margin-bottom: 36px;
}

.home-stats-heading h2 {
    margin-bottom: 0;
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    font-weight: 800;
}

.home-stats-grid {
    row-gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 8px;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg-brand);
    font-size: 1.4rem;
}

.stat-card .count {
    margin-bottom: 4px;
    color: #fff;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card h3 {
    margin-bottom: 0;
    color: #b7bec9;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Gallery and video */
.gallery-grid,
.video-gallery-grid {
    row-gap: 24px;
}

.gallery-grid > div,
.video-gallery-grid > div {
    margin-bottom: 0 !important;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #eef1f5;
    box-shadow: 0 8px 24px rgba(20, 29, 43, 0.09);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus img {
    transform: scale(1.025);
}

.video-card {
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 8px 24px rgba(20, 29, 43, 0.12);
}

.video-card video {
    width: 100%;
    height: 100%;
}

/* Contact */
.contact-map {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.contact-info-header {
    padding-top: 48px;
}

.contact-info-header .featurette-divider {
    width: 80px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-grid {
    padding-bottom: 56px;
    row-gap: 24px;
}

.contact-info-card {
    height: 100%;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e6e8ec;
    border-radius: var(--fg-radius);
    background: var(--fg-surface);
    box-shadow: 0 8px 24px rgba(20, 29, 43, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 29, 43, 0.1);
}

.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(227, 30, 36, 0.1);
    color: var(--fg-brand);
    font-size: 1.6rem;
}

.contact-info-card h4 {
    margin-bottom: 12px;
    color: #1c2430;
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-info-card p {
    margin-bottom: 6px;
    line-height: 1.55;
}

.contact-info-card p:last-child {
    margin-bottom: 0;
}

.contact-info-card a {
    color: inherit;
    overflow-wrap: anywhere;
}

.contact-info-card a:hover,
.contact-info-card a:focus {
    color: var(--fg-brand);
}

/* Professional footer */
.site-footer {
    position: relative;
    color: #d8dde5;
    background:
        radial-gradient(circle at 12% 0%, rgba(227, 30, 36, 0.18), transparent 32%),
        linear-gradient(145deg, var(--fg-footer-soft), var(--fg-footer));
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--fg-brand), #ff6267, var(--fg-brand));
}

.footer-main {
    padding: 62px 0 42px;
    row-gap: 36px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-brand img {
    display: block;
    width: 230px;
    height: auto;
}

.footer-intro {
    max-width: 360px;
    margin: 0 0 22px;
    color: #adb5c1;
    font-size: 0.96rem;
    line-height: 1.75;
}

.footer-whatsapp {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    color: #fff;
    border: 1px solid rgba(37, 211, 102, 0.55);
    border-radius: 10px;
    background: rgba(37, 211, 102, 0.12);
    font-weight: 700;
}

.footer-whatsapp:hover,
.footer-whatsapp:focus {
    color: #fff;
    text-decoration: none;
    background: #168f4a;
}

.footer-column h2 {
    position: relative;
    margin: 2px 0 21px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-column h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--fg-brand);
}

.footer-links,
.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 7px;
}

.footer-links a,
.footer-contact-list a {
    color: #b9c1cc;
    line-height: 1.55;
    transition: color 0.2s ease;
}

.footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-contact-list a:hover,
.footer-contact-list a:focus {
    color: #fff;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 13px;
}

.footer-contact-list i {
    width: 18px;
    margin-top: 5px;
    color: var(--fg-brand);
    text-align: center;
}

.footer-contact-list span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact-list a {
    overflow-wrap: anywhere;
}

.footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--fg-line);
}

.footer-bottom p {
    margin: 0;
    color: #929ba8;
    font-size: 0.82rem;
}

.footer-credit a {
    color: #fff;
    font-weight: 700;
}

/* Fixed mobile/desktop actions */
.quick-actions {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.quick-action {
    min-width: 132px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 10px 14px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 20, 29, 0.22);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.quick-action:hover,
.quick-action:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.quick-action svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: currentColor;
}

.quick-action-whatsapp {
    background: #168f4a;
}

.quick-action-call {
    background: var(--fg-brand);
}

.quick-action-top {
    background: #303844;
}

.quick-action[hidden] {
    display: none !important;
}

@media (max-width: 991.98px) {
    .topbar-layout {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 8px;
        padding: 5px 0;
    }

    .topbar-tagline {
        display: none;
    }

    .topbar-contacts {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .navbar {
        min-height: 72px;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 8px 0 14px;
        border-top: 1px solid #eceff3;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .nav-item {
        float: none;
        background-image: none !important;
        border-bottom: 1px solid #eef0f3;
    }

    .nav-link {
        min-height: 48px;
        justify-content: space-between;
    }

    .dropdown-menu {
        margin: 0 0 10px;
        border-radius: 9px;
        box-shadow: none;
        background: #f5f6f8;
    }

    .footer-brand-column {
        margin-bottom: 4px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    .topbar-contacts {
        justify-content: center;
    }

    .topbar-link {
        min-height: 40px;
        padding-inline: 8px;
    }

    .topbar-email {
        display: none;
    }

    .navbar-brand img {
        width: min(230px, 64vw);
    }

    .carousel-item img {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .services {
        padding: 42px 0 !important;
    }

    .services-grid {
        row-gap: 24px;
    }

    .service-card-body {
        padding: 22px;
    }

    .home-about {
        padding: 38px 0;
    }

    .home-about-features {
        grid-template-columns: 1fr;
    }

    .home-stats .overlay {
        padding: 38px 0;
    }

    .stat-card .count {
        font-size: 2.1rem;
    }

    .about {
        padding: 32px 0 !important;
    }

    .about p {
        font-size: 1rem !important;
        line-height: 1.7;
    }

    #breadcrumb {
        padding: 20px 0 12px !important;
    }

    #breadcrumb h1 {
        color: var(--fg-brand) !important;
        text-align: left;
    }

    .breadcrumb {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 10px;
        text-align: left;
    }

    .video-gallery-grid > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-map {
        height: 280px;
    }

    .contact-info-header {
        padding-top: 32px;
    }

    .contact-info-grid {
        padding-bottom: 38px;
    }

    .footer-main {
        padding: 46px 0 30px;
    }

    .footer-main {
        row-gap: 32px;
    }

    .footer-bottom {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0 24px;
    }

    .quick-actions {
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        box-shadow: 0 -5px 22px rgba(17, 24, 39, 0.17);
    }

    .quick-actions.has-back-to-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-action {
        min-width: 0;
        min-height: 64px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 7px 4px;
        border-radius: 0;
        box-shadow: none;
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .quick-action:hover,
    .quick-action:focus {
        transform: none;
    }

    .quick-action svg {
        width: 21px;
        height: 21px;
    }
}

@media (max-width: 479.98px) {
    .topbar-link {
        font-size: 0.78rem;
    }

    .gallery-grid > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-main > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-brand img {
        width: min(230px, 78vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
