/* ============================================================
   ATRen — Custom Styles (Bootstrap 5 üzerine)
   ============================================================ */

:root {
    --atren-red: #e01e26;
    --atren-red-dark: #c0161d;
    --atren-dark: #1b1f2a;
    --atren-gray: #6b7280;
    --atren-light: #f6f7f9;
    --heading-font: 'Nunito', 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: var(--body-font);
    color: #333a45;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 800;
    color: var(--atren-dark);
}

.btn-primary,
.btn-primary:focus {
    --bs-btn-bg: var(--atren-red);
    --bs-btn-border-color: var(--atren-red);
    --bs-btn-hover-bg: var(--atren-red-dark);
    --bs-btn-hover-border-color: var(--atren-red-dark);
    --bs-btn-active-bg: var(--atren-red-dark);
    --bs-btn-active-border-color: var(--atren-red-dark);
    font-weight: 600;
}

a { color: var(--atren-red); }
a:hover { color: var(--atren-red-dark); }

/* ---------- Navbar ---------- */
.main-navbar {
    box-shadow: 0 1px 10px rgba(0, 0, 0, .06);
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.brand-logo { height: 52px; width: auto; }

.main-navbar .nav-link {
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--atren-dark);
    padding: .5rem .75rem;
    position: relative;
}

.main-navbar .nav-link.active,
.main-navbar .nav-link:hover { color: var(--atren-red); }

.main-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: 0;
    height: 2px;
    background: var(--atren-red);
}

.btn-lang { padding: .4rem 1.2rem; border-radius: .375rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-page { min-height: 55vh; }

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .75) 35%, rgba(255, 255, 255, 0) 70%);
}

.hero-dark::before {
    background: linear-gradient(90deg, rgba(20, 24, 33, .55) 0%, rgba(20, 24, 33, .25) 50%, rgba(20, 24, 33, .1) 100%);
}

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

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    position: relative;
    padding-bottom: 1rem;
}

.hero h1::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--atren-red);
}

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

.hero p { max-width: 420px; color: #3d4450; }

.hero-carousel .carousel-item { min-height: 78vh; background-size: cover; background-position: center; }

.breadcrumb-light a { color: #fff; text-decoration: none; }
.breadcrumb-light .active { color: var(--atren-red); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--atren-light); }

.section-label {
    color: var(--atren-red);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: .75rem;
}

.title-underline {
    width: 54px;
    height: 3px;
    background: var(--atren-red);
    border: 0;
    opacity: 1;
    margin: 0 auto 2.5rem;
}

.title-underline-start { margin-left: 0; }

/* ---------- Service cards (What We Do) ---------- */
.service-card {
    border: 1px solid #eceef1;
    border-radius: .75rem;
    padding: 2.25rem 1.5rem;
    text-align: center;
    height: 100%;
    background: #fff;
    transition: box-shadow .25s ease, transform .25s ease;
}

.service-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .08); transform: translateY(-4px); }

.icon-ring {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border: 2px solid var(--atren-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--atren-red);
    font-size: 2rem;
}

.service-card h5 { font-size: 1.05rem; margin-bottom: .5rem; }
.service-card p { color: var(--atren-gray); font-size: .9rem; min-height: 3em; }

.service-link {
    color: var(--atren-red);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
}
.service-link i { transition: transform .2s ease; }
.service-link:hover i { transform: translateX(4px); }

/* ---------- Project cards ---------- */
.project-card {
    border: 1px solid #eceef1;
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.project-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .1); transform: translateY(-4px); }

.project-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-card-img img { transform: scale(1.05); }

.project-title { font-size: 1.05rem; margin-bottom: .25rem; }

.project-location { color: var(--atren-gray); font-size: .85rem; margin-bottom: .5rem; }
.project-location i { color: var(--atren-red); margin-right: .25rem; }

.project-contact {
    color: var(--atren-red);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
}

.project-specs {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    color: #4b5563;
    font-size: .85rem;
    font-weight: 600;
}

.project-specs i { color: #9aa1ab; margin-right: .35rem; }

.project-details-link {
    display: inline-block;
    margin-top: .75rem;
    color: var(--atren-red);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
}

/* ---------- Remodeling kits ---------- */
.kits-band { background: var(--atren-light); }
.kits-band .section-label { margin-bottom: .2rem; }
.kits-band p { color: var(--atren-gray); font-size: .92rem; }

.kits-carousel .kit-img {
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    width: 100%;
    border-radius: .5rem;
}

.kits-carousel .carousel-control-prev,
.kits-carousel .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--atren-red);
    border-radius: 50%;
    opacity: 1;
}
.kits-carousel .carousel-control-prev { left: -21px; }
.kits-carousel .carousel-control-next { right: -21px; }

/* ---------- Affiliates ---------- */
.affiliate-card {
    border: 1px solid #eceef1;
    border-radius: .75rem;
    background: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    transition: box-shadow .25s ease;
}
.affiliate-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .08); }
.affiliate-card img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: .9rem; }
.affiliate-card h6 { font-size: .95rem; }
.affiliate-card p { color: var(--atren-gray); font-size: .83rem; }

.approach-box {
    border: 1px solid #eceef1;
    border-radius: .75rem;
    padding: 2rem;
    background: #fff;
}

/* ---------- Contact ---------- */
.contact-panel {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: .75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
    padding: 2.25rem;
}

.form-control, .form-select {
    padding: .7rem .9rem;
    font-size: .9rem;
    border-color: #e2e6ea;
}

.form-control:focus, .form-select:focus {
    border-color: var(--atren-red);
    box-shadow: 0 0 0 .2rem rgba(224, 30, 38, .12);
}

.contact-info-mail { color: var(--atren-red); font-weight: 600; text-decoration: none; }

.social-ring {
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--atren-red);
    color: var(--atren-red);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all .2s ease;
}
.social-ring:hover { background: var(--atren-red); color: #fff; }

.help-band {
    border: 1px solid #eceef1;
    border-radius: .75rem;
    padding: 2.5rem;
    background: #fff;
}

.icon-ring-dashed {
    width: 96px;
    height: 96px;
    border: 2px dashed var(--atren-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--atren-red);
    font-size: 2.2rem;
}

/* ---------- About ---------- */
.about-img { border-radius: .75rem; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.country-card {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: .75rem;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}

.country-flag {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--atren-light);
}

.country-card h6 { margin-bottom: .15rem; }
.country-card p { margin: 0; color: var(--atren-gray); font-size: .82rem; }

.map-wrap { position: relative; }
.map-wrap img { width: 100%; border-radius: .75rem; opacity: .9; }

.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    color: var(--atren-red);
    font-size: 1.8rem;
    text-align: center;
    line-height: 1;
}
.map-pin span {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--atren-dark);
    margin-top: .15rem;
}

.value-card {
    border: 1px solid #eceef1;
    border-radius: .75rem;
    padding: 2rem 1.25rem;
    text-align: center;
    height: 100%;
    background: #fff;
    transition: box-shadow .25s ease, transform .25s ease;
}
.value-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.value-card i { font-size: 2.4rem; color: var(--atren-red); }
.value-card h6 { margin: 1rem 0 .5rem; }
.value-card p { color: var(--atren-gray); font-size: .85rem; margin: 0; }

.aff-feature { text-align: center; padding: 1rem; }
.aff-feature i { font-size: 2.6rem; color: var(--atren-red); }
.aff-feature h6 { margin: 1rem 0 .5rem; }
.aff-feature p { color: var(--atren-gray); font-size: .85rem; }

.cta-band {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(15, 19, 27, .72); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2, .cta-band p { color: #fff; }

/* ---------- Projects page tabs ---------- */
.projects-tabs {
    border-bottom: 1px solid #eceef1;
    background: #fff;
}

.projects-tabs .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
}

.projects-tabs .nav-link {
    color: var(--atren-dark);
    font-weight: 600;
    font-size: .85rem;
    padding: 1rem 1.1rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    text-align: center;
}

.projects-tabs .nav-link i { display: block; font-size: 1.3rem; margin-bottom: .3rem; }

.projects-tabs .nav-link.active,
.projects-tabs .nav-link:hover {
    color: var(--atren-red);
    border-bottom-color: var(--atren-red);
    background: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #15181f;
    color: #cfd3da;
    padding: 3.5rem 0 0;
}

.footer-logo { height: 58px; width: auto; }
.footer-text { color: #9aa1ab; font-size: .88rem; }
.footer-link { color: #cfd3da; text-decoration: none; }
.footer-link:hover { color: #fff; }

.footer-title {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: .5rem;
}
.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--atren-red);
}

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: #9aa1ab; text-decoration: none; font-size: .88rem; }
.footer-nav a:hover { color: #fff; }

.social-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #3a3f4a;
    border-radius: 50%;
    color: #cfd3da;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s ease;
}
.social-btn:hover { background: var(--atren-red); border-color: var(--atren-red); color: #fff; }

.footer-bottom {
    border-top: 1px solid #262b34;
    padding: 1.25rem 0;
    color: #9aa1ab;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 42px;
    height: 42px;
    background: var(--atren-red);
    color: #fff;
    border-radius: .5rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1030;
    text-decoration: none;
}
.back-to-top:hover { background: var(--atren-red-dark); color: #fff; }
.back-to-top.show { display: inline-flex; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .brand-logo { height: 42px; }
    .hero { min-height: 62vh; }
    .kits-carousel .carousel-control-prev { left: 4px; }
    .kits-carousel .carousel-control-next { right: 4px; }
}
