/* ==========================================================================
   Hurdacı — site stilleri

   Tasarım dili, projeye referans verilen Amerce temasından alınmıştır:
   renk değişkenleri, DM Sans / Urbanist tipografi ölçeği, .tf-btn buton
   sistemi ve spacing yaklaşımı korunmuştur. Temanın e-ticaret bileşenleri
   (ürün, sepet, checkout, swatch) taşınmamıştır; Core Web Vitals hedefi
   için stylesheet yalın tutulmuştur.

   Bootstrap 5 grid ve utility sınıfları wwwroot/lib üzerinden kullanılır;
   burada yalnızca temanın görsel dili ve hurda sitesine özgü bileşenler var.
   ========================================================================== */

:root {
    /* --- Tema paleti --- */
    --white: #ffffff;
    --black: #000000;

    /* Kurumsal lacivert; temanın --on-surface tonu marka rengi olarak kullanılır. */
    --brand: #0C2C48;
    --brand-dark: #082035;
    --brand-light: #16456E;
    --brand-tint: #E8EEF4;

    /* CTA rengi temanın --primary değeridir. */
    --primary: #DC4646;
    --primary-dark: #C13A3A;

    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;

    --text: #101010;
    --text-2: #696E73;
    --text-3: #B1B2B7;

    --bg: #F7F7F7;
    --bg-2: #F6F4F3;
    --line: #E9E9E9;

    --success: #3DAB25;
    --critical: #F03E3E;
    --yellow: #F0A750;

    --white-10: rgba(255, 255, 255, 0.1);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-60: rgba(255, 255, 255, 0.6);

    /* --- Tipografi --- */
    --font-main: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* --- Ölçüler --- */
    --radius: 12px;
    --radius-pill: 60px;
    --header-height: 72px;
    --section-space: clamp(48px, 6vw, 88px);
}

/* ==========================================================================
   Temel sıfırlama ve tipografi
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Sabit header'ın bölüm başlıklarını kapatmaması için. */
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6em;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--brand);
    text-wrap: balance;
}

/* Temanın clamp tabanlı ölçeği korunur, kurumsal görünüm için biraz sıkılaştırıldı. */
h1 { font-size: clamp(30px, 4.4vw, 48px); }
h2 { font-size: clamp(25px, 3.2vw, 36px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); }
h4 { font-size: clamp(19px, 2vw, 22px); }
h5 { font-size: 19px; }
h6 { font-size: 17px; }

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--brand-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Layout kaymasını (CLS) önlemek için görsellerde oran korunur. */
img[width][height] {
    height: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

:focus-visible {
    outline: 3px solid var(--brand-light);
    outline-offset: 2px;
}

/* Klavye kullanıcıları için içeriğe atlama bağlantısı. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--brand);
    color: var(--white);
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: var(--white);
}

/* ==========================================================================
   Butonlar — temanın .tf-btn sistemi
   ========================================================================== */

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tf-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
}

.tf-btn-primary {
    background: var(--primary);
}

.tf-btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.tf-btn-whatsapp {
    background: var(--whatsapp);
    color: #04301a;
}

.tf-btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: #04301a;
}

.tf-btn-white {
    background: var(--white);
    color: var(--brand);
}

.tf-btn-white:hover {
    background: var(--brand-tint);
    color: var(--brand);
}

.tf-btn-stroke {
    background: transparent;
    border-color: currentColor;
    color: var(--brand);
}

.tf-btn-stroke:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

.tf-btn-stroke-light {
    background: transparent;
    border-color: var(--white-20);
    color: var(--white);
}

.tf-btn-stroke-light:hover {
    background: var(--white-10);
    color: var(--white);
}

.tf-btn-lg {
    min-height: 56px;
    padding: 14px 32px;
    font-size: 17px;
}

.tf-btn-sm {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 15px;
}

/* Metin bağlantısı — temanın .tf-btn-line-3 davranışı, animasyonsuz. */
.tf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--brand-light);
}

.tf-link::after {
    content: "›";
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.tf-link:hover::after {
    transform: translateX(3px);
}

/* ==========================================================================
   Bölüm ve yardımcı sınıflar
   ========================================================================== */

.section {
    padding-block: var(--section-space);
}

.section-tint {
    background: var(--bg);
}

.section-brand {
    background: var(--brand);
    color: var(--white);
}

.section-brand h1,
.section-brand h2,
.section-brand h3 {
    color: var(--white);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(28px, 3.5vw, 44px);
}

.section-head.is-centered {
    margin-inline: auto;
    text-align: center;
}

.section-head p {
    margin-bottom: 0;
    color: var(--text-2);
    font-size: 17px;
}

.section-brand .section-head p {
    color: var(--white-60);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.text-muted-2 {
    color: var(--text-2);
}

/* ==========================================================================
   Üst bilgi barı
   ========================================================================== */

.topbar {
    background: var(--brand-dark);
    color: var(--white-60);
    font-size: 13.5px;
}

.topbar a {
    color: var(--white-60);
}

.topbar a:hover {
    color: var(--white);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    padding-block: 6px;
}

.topbar-list {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--header-height);
    padding-block: 10px;
}

.site-logo img {
    width: 168px;
    height: auto;
    max-width: 100%;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.site-logo img {
    /* Logo 440px genişlikte üretilir, burada yarısı gösterilir (retina netliği). */
    width: 220px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 575px) {
    .site-logo img {
        width: 172px;
    }
}

/*
   Logonun yazıları koyu renk olduğu için koyu zeminli footer'da okunmaz.
   Marka renklerini bozmamak adına beyaz bir kart üzerinde gösterilir.
*/
.footer-logo {
    display: block;
    width: 200px;
    height: auto;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: 10px;
}

.site-logo small {
    display: block;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-2);
}

/* Header içindeki arama kutusu */
.header-search {
    flex: 1 1 220px;
    max-width: 280px;
    min-width: 180px;
    margin-left: auto;
}

.header-search form {
    display: flex;
    align-items: center;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    overflow: hidden;
}

.header-search input {
    flex: 1 1 auto;
    min-width: 100px;
    width: 100%;
    height: 100%;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}

.header-search input:focus {
    outline: 0;
}

.header-search button {
    flex-shrink: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    background: var(--brand);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.header-search button:hover {
    background: var(--brand-dark);
}

/* Header'ın sağındaki telefon / teklif alanı */
.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-phone {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.25;
}

.header-phone span {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
}

.header-phone strong {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.01em;
}

.header-phone:hover strong {
    color: var(--primary);
}

/* ==========================================================================
   Ana menü
   ========================================================================== */

.main-nav {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.main-nav-list {
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav-list > li {
    position: relative;
}

.main-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}

.main-nav-list > li > a:hover,
.main-nav-list > li.is-active > a {
    color: var(--primary);
}

.main-nav-list > li.has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

/* Dropdown — hover ve klavye/tıklama ile açılır. */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 260px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(12, 44, 72, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.main-nav-list > li:hover > .nav-dropdown,
.main-nav-list > li:focus-within > .nav-dropdown,
.main-nav-list > li.is-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.nav-dropdown a:hover {
    background: var(--brand-tint);
    color: var(--brand);
}

/* İlçe listesi gibi uzun dropdown'lar sütunlara bölünür. */
.nav-dropdown.is-wide {
    min-width: 560px;
    columns: 3;
    column-gap: 8px;
}

/* Mobil menü tetikleyicisi */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--brand);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: relative;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4px; }

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb-bar {
    background: var(--brand);
    color: var(--white-60);
    padding-block: 14px;
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-list li + li::before {
    content: "›";
    margin-right: 8px;
    color: var(--white-20);
}

.breadcrumb-list a {
    color: var(--white-60);
}

.breadcrumb-list a:hover {
    color: var(--white);
}

.breadcrumb-list [aria-current="page"] {
    color: var(--white);
    font-weight: 600;
}

/* ==========================================================================
   Sayfa başlığı bandı
   ========================================================================== */

.page-hero {
    background: var(--brand);
    color: var(--white);
    padding-block: clamp(32px, 4vw, 56px);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0;
}

.page-hero .page-hero-lead {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--white-60);
    font-size: 17px;
}

.search-hero-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
    max-width: 640px;
    margin-top: 22px;
}

.search-hero-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    color: var(--text);
}

.search-hero-form input[type="search"]:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.search-hero-form .tf-btn {
    flex-shrink: 0;
}

.search-group-title {
    font-size: 20px;
    margin-bottom: 16px;
}

@media (max-width: 575px) {
    .search-hero-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   Ana sayfa hero
   ========================================================================== */

.hero {
    position: relative;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--white);
    padding-block: clamp(44px, 6vw, 84px);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 18px;
}

.hero h1 .hero-sub {
    display: block;
    margin-top: 10px;
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 600;
    color: var(--white-60);
    letter-spacing: 0;
}

.hero-lead {
    max-width: 620px;
    margin-bottom: 28px;
    font-size: 17.5px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-note {
    margin: 0;
    font-size: 14.5px;
    color: var(--white-60);
}

.hero-photo img {
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Hero içindeki hızlı teklif kutusu */
.hero-card {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-card h2 {
    font-size: 21px;
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 14.5px;
    color: var(--text-2);
}

/* ==========================================================================
   Güven kartları
   ========================================================================== */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.trust-item {
    padding: 22px 24px;
    background: var(--white);
}

.trust-item h3 {
    margin-bottom: 4px;
    font-size: 17px;
}

.trust-item p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-2);
}

/* ==========================================================================
   Görseller ve saha galerisi
   ========================================================================== */

.site-figure {
    margin: 0;
}

.site-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.site-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}

/*
   Saha galerisi: eşit oranlı ızgara. Kaynak fotoğraflar dikey olsa da
   4:3 kırpılır; kaydırmalı şerit kullanılmaz.
*/
.photo-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.photo-strip > * {
    margin: 0;
}

.photo-strip .site-figure {
    margin: 0;
}

.photo-strip .site-figure img,
.photo-strip > img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.photo-strip .site-figure figcaption {
    display: none;
}

.photo-strip-inline .site-figure figcaption {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.photo-strip-hint {
    display: none;
}

@media (min-width: 768px) {
    .photo-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1200px) {
    .photo-strip:not(.photo-strip-inline) {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Kartlar
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card-grid.is-two {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.card-grid.is-four {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1200px) {
    .card-grid.is-four {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .card-grid.is-four .info-card {
        padding: 18px;
    }

    .card-grid.is-four .info-card h3 {
        font-size: 17px;
    }

    .card-grid.is-four .info-card p {
        font-size: 14px;
    }
}

.info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    border-color: var(--brand-tint);
    box-shadow: 0 10px 30px rgba(12, 44, 72, 0.08);
}

.info-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.info-card p {
    flex: 1;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-2);
}

/* Kartın tamamı tıklanabilir olsun ama bağlantı gerçek <a> kalsın. */
.info-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.info-card-link:hover {
    color: inherit;
}

.info-card-link h3 {
    transition: color 0.2s ease;
}

.info-card-link:hover h3 {
    color: var(--primary);
}

.card-media {
    margin: -24px -24px 16px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    aspect-ratio: 16 / 10;
    background: var(--bg);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 28px;
}

/* ==========================================================================
   Süreç adımları
   ========================================================================== */

.step-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    counter-reset: step;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .step-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.step-item {
    counter-increment: step;
    position: relative;
    padding-top: 52px;
}

.step-item::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
}

.step-item h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.step-item p {
    margin: 0;
    font-size: 15px;
    color: var(--text-2);
}

@media (min-width: 1200px) {
    .step-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px 14px;
    }

    .step-item h3 {
        font-size: 16px;
    }

    .step-item p {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   İçerik alanı (admin editöründen gelen HTML)
   ========================================================================== */

.prose {
    max-width: 78ch;
    font-size: 17px;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 {
    margin-top: 1.8em;
    padding-top: 0.1em;
}

.prose h3 {
    margin-top: 1.5em;
    font-size: clamp(19px, 2vw, 22px);
}

.prose ul,
.prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose li::marker {
    color: var(--primary);
    font-weight: 700;
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--primary);
    color: var(--text-2);
    font-size: 18px;
}

.prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Tablolar mobilde taşma yapmasın. */
.prose .table-wrap,
.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.4em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
}

.prose th,
.prose td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    text-align: left;
}

.prose th {
    background: var(--bg);
    font-weight: 600;
    color: var(--brand);
}

.prose img {
    border-radius: var(--radius);
}

/* Admin tarafında bırakılan taslak uyarısı; yayına alınmış sayfada görünmemeli. */
.admin-note {
    padding: 14px 18px;
    margin-bottom: 1.5em;
    border-left: 3px solid var(--yellow);
    background: #FFF8EC;
    border-radius: 8px;
    font-size: 15px;
}

/* ==========================================================================
   Kısa cevap bloğu — AI arama ve kullanıcı için doğrudan cevap
   ========================================================================== */

.short-answer {
    padding: 22px 26px;
    margin-bottom: 32px;
    background: var(--brand-tint);
    border-radius: var(--radius);
    border-left: 4px solid var(--brand);
}

.short-answer p {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--brand);
}

/* ==========================================================================
   SSS akordeonu — <details> ile, JavaScript gerekmez
   ========================================================================== */

.faq-list {
    max-width: 860px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--white);
    overflow: hidden;
}

.faq-item > summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 17.5px;
    font-weight: 700;
    color: var(--brand);
    list-style: none;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: var(--primary);
}

.faq-item[open] > summary::after {
    content: "–";
}

.faq-item[open] > summary {
    border-bottom: 1px solid var(--line);
}

.faq-answer {
    padding: 18px 22px;
    font-size: 16px;
}

.faq-answer > :last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   İlçe listesi
   ========================================================================== */

.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.district-grid a {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--brand);
}

.district-grid a:hover {
    border-color: var(--brand);
    background: var(--brand-tint);
}

/* ==========================================================================
   İlgili içerik bağlantıları
   ========================================================================== */

.link-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-chips a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
}

.link-chips a:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--white);
}

/* ==========================================================================
   Formlar
   ========================================================================== */

.form-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--brand);
}

.field .req {
    color: var(--primary);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="search"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    font: inherit;
    font-size: 16px;
    color: var(--text);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand-light);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(22, 69, 110, 0.12);
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 13.5px;
    color: var(--text-2);
}

.field-error,
.validation-message {
    display: block;
    margin-top: 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--critical);
}

.field input.input-validation-error,
.field select.input-validation-error,
.field textarea.input-validation-error {
    border-color: var(--critical);
}

.field-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-2);
}

.field-consent input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.field-consent label {
    margin: 0;
    font-weight: 400;
    color: var(--text-2);
}

/* Bot tuzağı; ekran okuyucudan ve görünümden gizlenir. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15.5px;
}

.alert-success {
    background: #EDF8EA;
    border-left: 3px solid var(--success);
    color: #1E5814;
}

.alert-error {
    background: #FDEDED;
    border-left: 3px solid var(--critical);
    color: #8C1D1D;
}

.alert-warning {
    background: #FFF8EC;
    border-left: 3px solid var(--yellow);
    color: #6B4A10;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--brand-dark);
    color: var(--white-60);
    padding-top: clamp(44px, 5vw, 66px);
    font-size: 15px;
}

.site-footer a {
    color: var(--white-60);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-brand {
    max-width: 340px;
}

.footer-brand .site-logo {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand .site-logo small {
    color: var(--white-60);
}

.footer-brand p {
    font-size: 15px;
}

.footer-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--white-10);
}

.footer-cta-row h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--white);
}

.footer-cta-row p {
    margin: 0;
}

.footer-map {
    margin-top: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--white-10);
}

.footer-map iframe,
.map-embed iframe {
    display: block;
    width: 100%;
    height: 280px;
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-embed-lg iframe {
    height: 450px;
}

.footer-col h2 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: 9px;
}

.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    margin-bottom: 12px;
}

.footer-contact strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--white-20);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-contact a,
.footer-contact span {
    color: var(--white);
    font-size: 16px;
}

.footer-bottom {
    margin-top: clamp(32px, 4vw, 48px);
    padding-block: 20px;
    border-top: 1px solid var(--white-10);
    font-size: 14px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   Sabit telefon / WhatsApp CTA
   ========================================================================== */

.floating-cta {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}

.floating-cta a:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.floating-cta .cta-phone {
    background: var(--primary);
}

.floating-cta .cta-whatsapp {
    background: var(--whatsapp);
}

.floating-cta svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* Mobilde başparmakla erişilebilen sabit alt bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    /* iPhone alt güvenli alanı */
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.mobile-cta-bar .cta-row {
    display: flex;
    gap: 8px;
}

.mobile-cta-bar .tf-btn {
    flex: 1;
    min-height: 52px;
    padding-inline: 12px;
    font-size: 15.5px;
}

/* ==========================================================================
   Hata sayfası
   ========================================================================== */

.error-page {
    padding-block: clamp(60px, 8vw, 110px);
    text-align: center;
}

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 800;
    line-height: 1;
    color: var(--brand-tint);
}

/* ==========================================================================
   Çerez bildirimi
   ========================================================================== */

.cookie-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1060;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(12, 44, 72, 0.16);
    font-size: 14.5px;
}

.cookie-bar[hidden] {
    display: none !important;
}

.cookie-bar p {
    flex: 1 1 320px;
    margin: 0;
    color: var(--text-2);
}

.cookie-bar .cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .header-search {
        display: none;
    }
}

@media (max-width: 991px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        border-top: 0;
    }

    /* Mobilde menü akordeon biçiminde açılır; gerçek <a> bağlantıları korunur. */
    .main-nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
        padding-bottom: 14px;
        border-top: 1px solid var(--line);
    }

    .main-nav-list.is-open {
        display: flex;
    }

    .main-nav-list > li {
        border-bottom: 1px solid var(--line);
    }

    .main-nav-list > li > a {
        padding: 14px 4px;
        font-size: 16px;
    }

    .nav-dropdown {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0 0 12px 12px;
        background: transparent;
    }

    .nav-dropdown.is-wide {
        columns: 2;
    }

    .main-nav-list > li.is-open > .nav-dropdown {
        display: block;
    }

    .header-phone strong {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .topbar-inner {
        justify-content: center;
    }

    .topbar-list {
        gap: 14px;
        justify-content: center;
    }

    .header-cta .tf-btn {
        display: none;
    }

    .hero-card {
        padding: 22px;
    }

    /* Mobilde sabit alt bar kullanıldığı için yuvarlak butonlar gizlenir. */
    .floating-cta {
        display: none;
    }

    .mobile-cta-bar {
        display: block;
    }

    /* Alt bar içeriği kapatmasın. */
    body.has-mobile-cta {
        padding-bottom: 76px;
    }

    .cookie-bar {
        bottom: 80px;
    }

    .nav-dropdown.is-wide {
        columns: 1;
    }

    .section-head p {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .hero-actions .tf-btn {
        width: 100%;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* Hareket azaltma tercihi olan kullanıcılar için geçişler kapatılır. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .floating-cta,
    .mobile-cta-bar,
    .cookie-bar,
    .breadcrumb-bar {
        display: none !important;
    }
}
