/* =========================================================
   Mithat Açıcı Avukat — Kurumsal Tema
   Accent: #b59d74 | Dark: #1a1a1a | Light: #f5f4f1
   ========================================================= */

:root {
    --accent: #b59d74;
    --accent-dark: #9a845c;
    --accent-soft: #e8dfd0;
    --dark: #1a1a1a;
    --dark-soft: #2a2a2a;
    --text: #222222;
    --text-muted: #6b6b6b;
    --light: #f5f4f1;
    --white: #ffffff;
    --border: #e6e2da;
    --font-sans: "Manrope", "Segoe UI", sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
    --container: 1140px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

    a:hover {
        color: var(--accent-dark);
    }

.container-site {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.section-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    color: var(--text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.gold-line {
    width: 56px;
    height: 3px;
    background: var(--accent);
    border: 0;
    margin: 0 0 1.25rem;
}

.gold-line--center {
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--white) !important;
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    text-decoration: none;
}

    .btn-gold:hover,
    .btn-gold:focus {
        background: var(--accent-dark);
        border-color: var(--accent-dark);
        color: var(--white) !important;
        transform: translateY(-1px);
    }

.btn-gold--block {
    width: 100%;
}

/* ---------- Topbar ---------- */
.site-topbar {
    background: #313131;
    color: var(--accent);
    font-size: 0.82rem;
    padding: 0.55rem 0;
}

    .site-topbar a {
        color: var(--accent);
        text-decoration: none;
    }

        .site-topbar a:hover {
            color: var(--white);
        }

.site-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-topbar__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.site-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

    .site-topbar__item i {
        font-size: 0.9rem;
        flex-shrink: 0;
    }

.site-topbar__item--address {
    min-width: 0;
}

.site-topbar__social {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

    .site-topbar__social a {
        color: var(--white);
        font-size: 0.95rem;
        line-height: 1;
    }

        .site-topbar__social a:hover {
            color: var(--accent);
        }

/* ---------- Navbar ---------- */
.site-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

    /* Bootstrap sadece .container* için flex verir; özel container-site'a da aynı davranış gerekir */
    .site-navbar > .container-site {
        display: flex;
        flex-wrap: inherit;
        align-items: center;
        justify-content: space-between;
        width: min(100% - 2rem, var(--container));
    }

    .site-navbar .navbar-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0;
        margin: 0;
        margin-right: 1rem;
    }

        .site-navbar .navbar-brand img {
            height: 56px;
            width: auto;
        }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text__name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #2c3e50;
    text-transform: uppercase;
}

.brand-text__tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #5a6a7a;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.site-navbar .nav-link {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 0.9rem !important;
    position: relative;
}

    .site-navbar .nav-link:hover,
    .site-navbar .nav-link.active,
    .site-navbar .nav-link.show {
        color: var(--accent-dark) !important;
    }

.site-navbar .navbar-toggler {
    border-color: var(--accent);
}

    .site-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.15rem rgba(181, 157, 116, 0.35);
    }

.site-navbar .dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0;
    min-width: 280px;
    margin-top: 0 !important;
    overflow: hidden;
}

.site-navbar .dropdown-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: #333;
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid #f0ede8;
}

    .site-navbar .dropdown-item:last-child {
        border-bottom: 0;
    }

    .site-navbar .dropdown-item:hover,
    .site-navbar .dropdown-item:focus {
        background: #3a3a3a;
        color: var(--accent);
    }

/* Desktop: hover ile alt menü */
@media (min-width: 992px) {
    .site-navbar .nav-item.dropdown {
        position: relative;
    }

        .site-navbar .nav-item.dropdown::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -0.35rem;
            height: 0.35rem;
        }

        .site-navbar .nav-item.dropdown:hover > .dropdown-menu,
        .site-navbar .nav-item.dropdown:focus-within > .dropdown-menu {
            display: block;
        }

        .site-navbar .nav-item.dropdown:hover > .dropdown-toggle,
        .site-navbar .nav-item.dropdown:focus-within > .dropdown-toggle {
            color: var(--accent-dark) !important;
        }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(78vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: #111;
    background-size: cover;
    background-position: center;
    isolation: isolate;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.68) 100%);
        z-index: -1;
    }

.hero__content {
    width: min(100% - 2rem, 820px);
    padding: 5rem 0;
    animation: heroFade 0.9s ease both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15;
    margin: 0 0 1.1rem;
    color: var(--white);
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Why Us / Founder shared ---------- */
.section-split {
    padding: 5rem 0;
    background: var(--white);
}

.section-split--soft {
    background: var(--light);
}

.media-stack {
    position: relative;
    width: 100%;
    max-width: 520px;
    /* Gölge ofsetinin taşması için alan */
    padding: 20px 0 0 40px;
    overflow: visible;
}

.media-stack__front {
    position: relative;
    z-index: 1;
    width: 100%;
    box-shadow: var(--shadow-card);
}

.media-stack__shadow {
    position: absolute;
    top: -20px;
    left: -40px;
    width: 100%;
    height: 100%;
    background-color: #d8d4cc;
    background-size: cover;
    background-position: center center;
    filter: grayscale(1) brightness(1.15);
    opacity: 0.55;
    z-index: 0;
}

.media-stack__front img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.founder-quote {
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
}

/* ---------- Services grid ---------- */
.services-section {
    padding: 5rem 0;
    background: #f3f2ef;
}

.services-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.service-card {
    background: var(--white);
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow-card);
    height: 100%;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
        color: inherit;
    }

.service-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ddd;
}

    .service-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.service-card:hover .service-card__image img {
    transform: scale(1.04);
}

.service-card__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.service-card__link {
    margin-top: auto;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-section {
    padding: 5rem 0;
    background: var(--light);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

    .contact-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
        color: var(--text);
    }

    .contact-list i {
        color: var(--accent);
        margin-top: 0.25rem;
        min-width: 1.1rem;
    }

    .contact-list a {
        color: var(--text);
    }

        .contact-list a:hover {
            color: var(--accent);
        }

.map-embed {
    width: 100%;
    min-height: 260px;
    background: #e9e6e0;
    overflow: hidden;
}

    .map-embed iframe {
        width: 100%;
        height: 280px;
        border: 0;
        display: block;
    }

.contact-form-card {
    background: #f9f8f4;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

    .contact-form-card .form-label {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--text);
        margin-bottom: 0.35rem;
    }

    .contact-form-card .form-control {
        border: 0;
        border-bottom: 1px solid #cfc8bb;
        border-radius: 0;
        background: transparent;
        padding-left: 0;
        padding-right: 0;
        box-shadow: none !important;
    }

        .contact-form-card .form-control:focus {
            border-bottom-color: var(--accent);
            background: transparent;
        }

    .contact-form-card textarea.form-control {
        min-height: 110px;
        resize: vertical;
    }

    .contact-form-card .form-check-input:checked {
        background-color: var(--accent);
        border-color: var(--accent);
    }

    .contact-form-card .form-check-label {
        font-size: 0.88rem;
        color: var(--text-muted);
    }

#contactAlert {
    display: none;
}

    #contactAlert.show {
        display: block;
    }

/* ---------- Counters ---------- */
.counters-section {
    background: var(--light);
    padding: 3.5rem 0;
}

.counter-item {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.counter-item__index {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4.5rem, 9vw, 6.5rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    top: -100px;
}

.counter-item__value {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.counter-item__label {
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.35rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #313131;
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
}

    .site-footer h5,
    .site-footer .footer-heading {
        color: var(--white);
        font-weight: 700;
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .site-footer .gold-line {
        margin-bottom: 1.1rem;
    }

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

    .footer-brand img {
        height: auto;
        width: min(100%, 220px);
        max-height: 72px;
        object-fit: contain;
        filter: brightness(5000%) contrast(5000%) saturate(100%) blur(0px) hue-rotate(0deg);
    }

.footer-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        display: flex;
        gap: 0.7rem;
        margin-bottom: 0.8rem;
        font-size: 0.92rem;
    }

    .footer-contact i {
        color: var(--accent);
        margin-top: 0.2rem;
    }

    .footer-contact a {
        color: rgba(255, 255, 255, 0.85);
    }

        .footer-contact a:hover {
            color: var(--accent);
        }

.site-footer .map-embed {
    min-height: 200px;
}

    .site-footer .map-embed iframe {
        height: 210px;
    }

.footer-bottom {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.1rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- About page ---------- */
.about-page {
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden;
}

.about-media {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    /* Gölge ofseti için alan; taşma kırpmasın diye padding içeride */
    padding: 1.25rem 0 0 1.25rem;
}

.about-media__shadow {
    position: absolute;
    left: -40px;
    top: -20px;
    width: calc(100% - 1.25rem);
    height: calc(100% - 1.25rem);
    background-color: #d8d4cc;
    background-size: cover;
    background-position: center center;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.45;
    z-index: 0;
}

.about-media__main {
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

    /* Yatay görsel: doğal oranla tam görünsün, kırpılmasın */
    .about-media__main img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

.about-content {
    padding-top: 0.15rem;
}

.about-content__eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 0.4rem;
}

.about-content__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.about-content__text {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.85;
    text-align: justify;
    margin: 0 0 1.15rem;
}

    .about-content__text:last-child {
        margin-bottom: 0;
    }

@media (max-width: 991.98px) {
    .about-page {
        padding: 3.5rem 0;
    }

    .about-media {
        margin-bottom: 0.5rem;
    }
}

/* ---------- Service detail ---------- */
.service-detail {
    padding: 4.5rem 0 2rem;
    background: var(--white);
}

.service-detail__media {
    position: relative;
    max-width: 520px;
}

.service-detail__media-back {
    position: absolute;
    left: 0;
    top: 24px;
    width: 88%;
    height: 88%;
    background: #e0dcd4 center/cover no-repeat;
    filter: blur(1px) brightness(0.85);
    z-index: 0;
}

.service-detail__media-front {
    position: relative;
    z-index: 1;
    margin-left: 10%;
    width: 90%;
    box-shadow: var(--shadow-card);
}

    .service-detail__media-front img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

.service-detail__content {
    padding-top: 0.5rem;
}

    .service-detail__content .section-text {
        color: var(--text);
        margin-bottom: 1.75rem;
    }

.service-detail__description {
    white-space: pre-line;
}

/* ---------- Utilities ---------- */
.page-main {
    min-height: 40vh;
}

@media (max-width: 991.98px) {
    .site-topbar {
        color: var(--white);
    }

    .site-topbar a {
        color: var(--white);
    }

    .site-topbar a:hover {
        color: var(--accent);
    }

    .site-topbar__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .site-topbar__contact {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        gap: 0.55rem 1rem;
    }

    .site-topbar__social {
        width: 100%;
        justify-content: flex-end;
    }

    .site-topbar__item--address {
        flex: 1 1 100%;
        white-space: normal;
        line-height: 1.35;
        padding-top: 0.15rem;
    }

    .site-topbar__item--address span {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    .media-stack,
    .service-detail__media {
        margin: 0 auto 2rem;
    }

    .hero {
        height: auto;
        background-position: center center;
    }

    .section-split .btn-gold,
    .service-detail__content .btn-gold {
        display: flex;
        width: fit-content;
        margin-inline: auto;
    }

    .contact-form-card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .site-topbar {
        font-size: 0.75rem;
        padding: 0.45rem 0;
    }

    .site-topbar__contact {
        gap: 0.4rem 0.75rem;
    }

    .site-topbar__item:not(.site-topbar__item--address) span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        height: auto;
        background-position: center center;
    }

    .hero__content {
        padding: 2.75rem 0;
    }

    .section-split,
    .services-section,
    .contact-section {
        padding: 3.25rem 0;
    }
}
