/* FNS İnşaat — Ana Sayfa Kurumsal Tasarım (Kırmızı / Siyah / Beyaz) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand-red: #9B1B30;
    --brand-red-dark: #7A1526;
    --brand-red-light: #B5121B;
    --brand-black: #1A1A1A;
    --brand-gray: #4A4A4A;
    --brand-gray-light: #6B6B6B;
    --brand-border: #E5E5E5;
    --brand-bg: #FFFFFF;
    --brand-bg-alt: #F7F7F7;
    --brand-container: 1200px;
    --section-py: 5rem;
    --nav-height: 76px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Reset (sadece ana sayfa) ===== */
body.page-home img {
    max-width: 100%;
    height: auto;
}

body.page-home *,
body.page-home *::before,
body.page-home *::after {
    box-sizing: border-box;
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4,
body.page-home h5,
body.page-home h6 {
    font-family: var(--font);
    font-weight: 700;
    color: var(--brand-black);
    line-height: 1.25;
}

body.page-home .container {
    max-width: var(--brand-container);
}

/* ===== Geçici Navbar (sonra güncellenecek) ===== */
body.page-home .navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff !important;
    border-bottom: 1px solid var(--brand-border) !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
    backdrop-filter: none !important;
}

body.page-home .navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

body.page-home .navbar-brand {
    padding: 0;
    margin: 0;
}

body.page-home .custom-toggler {
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 2px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.page-home .toggler-icon {
    display: block;
    width: 20px;
    height: 2px;
    position: relative;
}

body.page-home .toggler-icon::before,
body.page-home .toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
}

body.page-home .toggler-icon::before { top: -6px; }
body.page-home .toggler-icon::after { top: 6px; }

@media (max-width: 991.98px) {
    body.page-home .custom-toggler {
        display: flex !important;
    }

    body.page-home .navbar-collapse {
        width: 100%;
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: #fff;
        border: 1px solid var(--brand-border);
        border-radius: 2px;
    }

    body.page-home .navbar-nav .nav-link {
        text-align: center;
        padding: 0.65rem !important;
    }
}

body.page-home .navbar-overlap:not(.scrolled),
body.page-home .navbar-solid {
    background: #fff !important;
}

body.page-home .navbar-nav .nav-link {
    color: var(--brand-black) !important;
    text-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 0.5rem 0.85rem !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.page-home .navbar-nav .nav-link::after {
    background: var(--brand-red) !important;
    height: 2px !important;
    bottom: 0 !important;
}

body.page-home .navbar-nav .nav-link:hover,
body.page-home .navbar-nav .nav-link.active {
    color: var(--brand-red) !important;
}

body.page-home .navbar-overlap:not(.scrolled) .navbar-nav .nav-link,
body.page-home .navbar-overlap:not(.scrolled) .dropdown-toggle::after {
    color: var(--brand-black) !important;
    border-top-color: var(--brand-black) !important;
}

body.page-home .custom-toggler,
body.page-home .navbar-overlap:not(.scrolled) .custom-toggler {
    background: var(--brand-bg-alt) !important;
}

body.page-home .toggler-icon,
body.page-home .toggler-icon::before,
body.page-home .toggler-icon::after,
body.page-home .navbar-overlap:not(.scrolled) .toggler-icon,
body.page-home .navbar-overlap:not(.scrolled) .toggler-icon::before,
body.page-home .navbar-overlap:not(.scrolled) .toggler-icon::after {
    background: var(--brand-black) !important;
}

body.page-home .navbar-progress {
    background: var(--brand-red) !important;
    height: 2px;
}

body.page-home .logo-img {
    height: 48px !important;
}

body.page-home .navbar .dropdown-menu {
    border: 1px solid var(--brand-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.page-home .navbar .dropdown-item:hover,
body.page-home .navbar .dropdown-item.active {
    background: rgba(155, 27, 48, 0.08);
    color: var(--brand-red);
}

/* ===== Geçici Footer (sonra güncellenecek) ===== */
body.page-home .section-wave {
    display: none;
}

body.page-home .site-footer {
    background: #111 !important;
}

body.page-home .site-footer h6 {
    color: #fff !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.page-home .site-footer h6::after {
    background: var(--brand-red) !important;
}

body.page-home .footer-text,
body.page-home .footer-copy,
body.page-home .footer-contact span,
body.page-home .footer-links a,
body.page-home .footer-legal {
    color: #aaa !important;
}

body.page-home .footer-links a:hover,
body.page-home .footer-legal:hover {
    color: var(--brand-red) !important;
}

body.page-home .site-footer .social-links a:hover {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
}

body.page-home .footer-contact i {
    color: var(--brand-red) !important;
}

body.page-home .footer-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== Buttons ===== */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 2px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.btn-brand-primary {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

.btn-brand-primary:hover {
    background: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
    color: #fff;
}

.btn-brand-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-brand-outline:hover {
    background: #fff;
    color: var(--brand-black);
}

.btn-brand-outline-dark {
    background: transparent;
    color: var(--brand-black);
    border-color: var(--brand-black);
}

.btn-brand-outline-dark:hover {
    background: var(--brand-black);
    color: #fff;
}

.btn-brand-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
}

/* ===== Section helpers ===== */
.home-section {
    padding: var(--section-py) 0;
}

.home-section--alt {
    background: var(--brand-bg-alt);
}

.home-section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.home-section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 0.75rem;
}

.home-section__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.home-section__desc {
    color: var(--brand-gray);
    font-size: 1.05rem;
    margin: 0;
}

.home-link {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

.home-link:hover {
    color: var(--brand-red-dark);
    gap: 0.65rem;
}

/* ===== Hero ===== */
.home-hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.page-home .home-hero__bg img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26, 26, 26, 0.88) 0%,
        rgba(26, 26, 26, 0.72) 45%,
        rgba(26, 26, 26, 0.45) 100%
    );
    z-index: 1;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 3rem 0;
}

.home-hero__badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

body.page-home .home-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

body.page-home .home-hero__title span {
    color: #c94a5a;
}

.home-hero__text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    max-width: 560px;
    line-height: 1.7;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== Stats Strip ===== */
.home-stats {
    background: #fff;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
    padding: 2.5rem 0;
}

.home-stats__item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.home-stats__number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-black);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.home-stats__number span {
    color: var(--brand-red);
}

.home-stats__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-gray-light);
    margin: 0;
}

/* ===== About ===== */
.home-about__text {
    color: var(--brand-gray);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.home-about__image {
    position: relative;
}

.home-about__image img {
    width: 100%;
    display: block;
    border-radius: 2px;
}

.home-about__image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    border-top: 3px solid var(--brand-red);
    border-left: 3px solid var(--brand-red);
    pointer-events: none;
}

/* ===== Services ===== */
.home-service {
    background: #fff;
    border: 1px solid var(--brand-border);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    border-left: 3px solid transparent;
}

.home-service:hover {
    border-left-color: var(--brand-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.home-service__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-bg-alt);
    color: var(--brand-black);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.home-service:hover .home-service__icon {
    background: var(--brand-red);
    color: #fff;
}

.home-service__title {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
}

.home-service__desc {
    font-size: 0.9rem;
    color: var(--brand-gray);
    margin: 0;
    line-height: 1.6;
}

/* ===== Projects ===== */
.home-project {
    background: #fff;
    border: 1px solid var(--brand-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.home-project:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.home-project__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.home-project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-project:hover .home-project__image img {
    transform: scale(1.04);
}

.home-project__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-project:hover .home-project__overlay {
    opacity: 1;
}

.home-project__body {
    padding: 1.35rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-project__title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.home-project__meta {
    font-size: 0.85rem;
    color: var(--brand-gray-light);
    margin-bottom: 1rem;
}

.home-project__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
}

.home-badge--ongoing {
    background: rgba(155, 27, 48, 0.1);
    color: var(--brand-red);
}

.home-badge--done {
    background: var(--brand-bg-alt);
    color: var(--brand-black);
}

.home-badge--info {
    background: var(--brand-black);
    color: #fff;
}

/* ===== References ===== */
.home-ref {
    background: #fff;
    border: 1px solid var(--brand-border);
    padding: 1.25rem 1rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.25s ease, filter 0.25s ease;
    filter: grayscale(100%);
    opacity: 0.75;
}

.home-ref:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--brand-red);
}

.home-ref img {
    max-height: 44px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.home-ref p {
    font-size: 0.68rem;
    color: var(--brand-gray-light);
    margin: 0;
    line-height: 1.2;
}

/* ===== Modals ===== */
body.page-home .modal-header {
    border-bottom: 2px solid var(--brand-red);
}

body.page-home .modal-title {
    font-weight: 700;
    color: var(--brand-black);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    :root {
        --section-py: 3.5rem;
    }

    .home-stats__item {
        padding: 1rem 0.5rem;
    }

    .home-about__image::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body.page-home {
        padding-top: 68px;
    }

    .home-hero {
        min-height: calc(100svh - 68px);
        align-items: center;
    }

    body.page-home .home-hero__bg img {
        height: 100% !important;
        object-position: 58% center;
    }

    .home-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.68) 0%,
            rgba(26, 26, 26, 0.86) 100%
        );
    }

    .home-hero__content {
        max-width: none;
        padding: 2.25rem 0;
    }

    body.page-home .home-hero__title {
        font-size: clamp(1.85rem, 9vw, 2.35rem);
        line-height: 1.12;
        overflow-wrap: normal;
        word-break: normal;
    }

    .home-hero__text {
        font-size: 0.98rem;
        line-height: 1.65;
        color: rgba(255, 255, 255, 0.95);
    }

    .home-hero__actions {
        flex-direction: column;
    }

    .home-hero__actions .btn-brand {
        width: 100%;
        text-align: center;
    }

    .home-stats {
        padding: 1.5rem 0;
    }
}
