* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #24302a;
    background: #f6f7f4;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: #1f6f54;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    /* Üst ve alt iç boşluğu sıfırlayarak logonun siyah kutusunu menüye tam eşitledik */
    padding: 0 clamp(20px, 5vw, 72px); 
    background: #000000; /* Menü arka planı tamamen siyah oldu */
    border-bottom: 1px solid #1a1a1a; /* İnce, koyu bir alt çizgi ekledik */
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;
    height: 100px; /* Logonun menü içinde dikine tam oturması için ideal yükseklik */
    width: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px; /* Linklerin arasındaki boşluğu biraz açtık */
    font-weight: 600;
}

/* Menü içerisindeki linklerin rengini beyaz yapar */
.site-nav a {
    color: #ffffff; 
    transition: color 0.2s ease; /* Renk değişiminin yumuşak olması için */
}

/* Fareyle menü linklerinin üzerine gelindiğinde (Hover durumu) */
.site-nav a:hover {
    color: #1f6f54; /* Sitenizin ana yeşil tonunda parlamasını sağlar */
}




.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 600;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 72px clamp(20px, 6vw, 88px);
    color: #fff;
    background: #263c2f;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -18px;
    background:
        linear-gradient(90deg, rgba(20, 38, 29, 0.86), rgba(20, 38, 29, 0.38)),
        linear-gradient(180deg, rgba(20, 38, 29, 0.18), rgba(20, 38, 29, 0.28)),
        url("../../upload/hero-bg.png") center / cover no-repeat;
    filter: blur(3px);
    transform: scale(1.04);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(19, 32, 25, 0.16);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1,
.page-head h1,
.detail-copy h1,
.content-page h1,
.not-found h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.hero p {
    max-width: 560px;
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn,
.site-form button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

.btn.primary,
.site-form button {
    color: #fff;
    background: #1f6f54;
}

.btn.secondary {
    color: #183b2d;
    background: #fff;
}

.section,
.page-head,
.detail-layout,
.content-page,
.form-section,
.not-found {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 54px 0;
}

.section.muted {
    width: 100%;
    padding: 54px max(20px, calc((100% - 1120px) / 2));
    background: #eef2ea;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0;
    font-size: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.horse-card,
.info-link,
.empty-state,
.site-form,
.alert {
    background: #fff;
    border: 1px solid #e1e6dc;
    border-radius: 8px;
}

.horse-card {
    overflow: hidden;
}

.horse-card img,
.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #dfe7d7;
}

.horse-card img {
    object-fit: cover;
}

.image-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #536158;
    font-weight: 800;
}

.image-placeholder.large {
    min-height: 340px;
    border-radius: 8px;
}

.horse-card div {
    padding: 18px;
}

.horse-card h3 {
    margin: 0 0 6px;
    color: #183b2d;
}

.horse-card p {
    margin: 0 0 12px;
    color: #5d6b62;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.info-link {
    padding: 18px;
    color: #183b2d;
    font-weight: 800;
}

.info-link span {
    display: block;
    margin-top: 6px;
    color: #65736a;
    font-size: 14px;
    font-weight: 600;
}

.page-head {
    padding: 64px 0 20px;
}

.page-head p,
.meta {
    color: #5d6b62;
    font-size: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 36px;
    padding: 56px 0;
    align-items: start;
}

.detail-media img,
.content-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.detail-media img {
    aspect-ratio: 4 / 3;
}

.content-text {
    color: #35443b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #dfe7d7;
}

.content-page {
    padding: 56px 0;
}

.content-image {
    max-height: 420px;
    margin-bottom: 28px;
}

.form-section {
    padding: 24px 0 64px;
}

.site-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
}

.site-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.site-form .full,
.site-form button {
    grid-column: 1 / -1;
}

.site-form input,
.site-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5c4;
    border-radius: 6px;
    font: inherit;
}

.alert,
.empty-state {
    padding: 16px;
    margin-bottom: 16px;
}

.alert.success {
    color: #155724;
    background: #d9f0df;
}

.alert.error {
    color: #842029;
    background: #f8d7da;
}

.not-found {
    min-height: 56vh;
    display: grid;
    align-content: center;
    justify-items: start;
}

.contact-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px;
    margin-bottom: 54px;
    color: #fff;
    background: #183b2d;
    border-radius: 8px;
}

.contact-strip h2 {
    margin: 0 0 6px;
}

.contact-strip p {
    margin: 0;
    color: #dce8e1;
}

.contact-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-layout {
    width: min(1120px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    margin: 24px auto 64px;
}

.contact-panel,
.map-panel {
    background: #fff;
    border: 1px solid #e1e6dc;
    border-radius: 8px;
}

.contact-panel {
    display: grid;
    gap: 18px;
    align-content: start;
    padding: 24px;
}

.contact-panel h2 {
    margin: 0;
    color: #183b2d;
}

.contact-item {
    display: grid;
    gap: 4px;
}

.contact-item strong {
    color: #183b2d;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    color: #fff;
    background: #1f6f54;
    border-radius: 6px;
    font-weight: 800;
}

.map-panel {
    overflow: hidden;
    min-height: 360px;
}

.map-panel iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(20px, 5vw, 72px);
    color: #fff;
    background: #183b2d;
}

.site-footer div {
    display: grid;
    gap: 6px;
}

.site-footer a {
    color: #fff;
}

/* Modern tam sayfa galeri */
.gallery-slider {
    --gallery-accent: #d7a83e;
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - 100px);
    padding: clamp(24px, 4vw, 54px) clamp(16px, 5vw, 72px) 30px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(31, 111, 84, .28), transparent 36%),
        radial-gradient(circle at 90% 80%, rgba(215, 168, 62, .13), transparent 32%),
        #07110d;
}

.gallery-slider-head {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    width: min(1400px, 100%);
    margin: 0 auto 24px;
}

.gallery-kicker {
    color: var(--gallery-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gallery-slider-head h1 {
    margin: 4px 0 2px;
    color: #fff;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1;
}

.gallery-slider-head p { margin: 10px 0 0; color: #b8c6bf; }

.gallery-albums {
    display: flex;
    overflow-x: auto;
    max-width: 65%;
    gap: 8px;
    padding: 4px 0;
    scrollbar-width: none;
}

.gallery-albums::-webkit-scrollbar { display: none; }
.gallery-albums a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    color: #dce7e1;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    transition: .25s ease;
}

.gallery-albums a:hover,
.gallery-albums a.active { color: #07110d; background: var(--gallery-accent); border-color: var(--gallery-accent); }
.gallery-albums small { opacity: .7; }

.gallery-stage {
    position: relative;
    overflow: hidden;
    width: min(1400px, 100%);
    height: clamp(410px, 62vh, 760px);
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: clamp(14px, 2vw, 28px);
    background: #020604;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .7s cubic-bezier(.22,.8,.22,1);
    touch-action: pan-y;
}

.gallery-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.gallery-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.76) 100%);
    pointer-events: none;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    transform: scale(1.04);
    transition: opacity .8s ease, transform 5s ease;
}

.gallery-slide.active img { opacity: 1; transform: scale(1); }
.gallery-slide figcaption {
    position: absolute;
    z-index: 2;
    left: clamp(22px, 5vw, 72px);
    bottom: clamp(24px, 5vw, 58px);
    display: grid;
    gap: 4px;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.gallery-slide figcaption strong { color: #fff; font-size: clamp(24px, 3vw, 44px); line-height: 1.1; }
.gallery-slide figcaption span { color: #dce7e1; font-size: 15px; }

.gallery-arrow,
.gallery-play {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(4,15,10,.48);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: .2s ease;
}

.gallery-arrow { top: 50%; width: 50px; height: 50px; font-size: 25px; transform: translateY(-50%); }
.gallery-arrow.prev { left: 20px; }
.gallery-arrow.next { right: 20px; }
.gallery-arrow:hover,
.gallery-play:hover { color: #07110d; background: var(--gallery-accent); border-color: var(--gallery-accent); }

.gallery-counter {
    position: absolute;
    z-index: 4;
    right: 28px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.gallery-counter i { width: 36px; height: 1px; background: rgba(255,255,255,.55); }
.gallery-play { top: 22px; right: 22px; width: 42px; height: 42px; font-size: 15px; }
.gallery-play .play-icon,
.gallery-play.paused .pause-icon { display: none; }
.gallery-play.paused .play-icon { display: inline; }

.gallery-thumbs {
    display: flex;
    overflow-x: auto;
    width: min(1400px, 100%);
    gap: 10px;
    margin: 16px auto 0;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #456052 transparent;
}

.gallery-thumb {
    flex: 0 0 88px;
    overflow: hidden;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #101b16;
    opacity: .55;
    cursor: pointer;
    scroll-snap-align: center;
    transition: .2s ease;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover,
.gallery-thumb.active { opacity: 1; border-color: var(--gallery-accent); transform: translateY(-2px); }
.gallery-empty { display: grid; place-items: center; min-height: 55vh; color: #b8c6bf; font-size: 18px; }

@media (max-width: 760px) {
    .gallery-slider { min-height: calc(100svh - 85px); padding: 24px 14px 20px; }
    .gallery-slider-head { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 16px; }
    .gallery-slider-head h1 { font-size: 38px; }
    .gallery-slider-head p { font-size: 14px; }
    .gallery-albums { max-width: 100%; }
    .gallery-stage { height: min(62vh, 570px); min-height: 420px; border-radius: 16px; }
    .gallery-arrow { top: auto; bottom: 18px; width: 44px; height: 44px; transform: none; }
    .gallery-arrow.prev { left: 16px; }
    .gallery-arrow.next { left: 68px; right: auto; }
    .gallery-counter { right: 18px; bottom: 30px; }
    .gallery-slide figcaption { left: 18px; right: 18px; bottom: 84px; }
    .gallery-play { top: 14px; right: 14px; }
    .gallery-thumb { flex-basis: 72px; height: 49px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-track,
    .gallery-slide img,
    .gallery-thumb { transition: none; }
}

.site-footer .footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-footer .footer-actions .secondary {
    color: #183b2d;
}

@media (max-width: 760px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 20px; /* Mobil görünümde siyah arka plana küçük bir nefes alma payı */
    }
    
    /* Mobilde logonun çok devasa durmasını engellemek için */
    .brand-logo {
        height: 70px; 
    }

    .detail-layout,
    .site-form,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-strip {
        align-items: flex-start;
        flex-direction: column;
    }
/* --- MOBIL MENÜ CSS AYARLARI --- */

/* Masaüstünde üç çizgi butonunu gizle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Üç çizgi tıklandığında X işaretine dönüşme efekti */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobil Görünüm Kapsayıcısı (760px ve altı) */
@media (max-width: 760px) {
    .site-header {
        position: relative;
        flex-direction: row !important; /* Alt alta gelmesini engelle, yan yana kalsınlar */
        justify-content: center !important; /* Logoyu yatayda tam ortala */
        padding: 10px 20px !important;
    }

    .brand {
        margin: 0 auto; /* Logonun sağ ve soldan eşit itilerek ortalanmasını sağlar */
    }

    .brand-logo {
        height: 65px; /* Mobilde ideal logo boyutu */
    }

    /* Üç çizgi butonunu mobilde sağ köşeye sabitle */
 /* Masaüstünde üç çizgi butonunu tamamen gizle */
.menu-toggle {
    display: none !important; /* !important ekleyerek kesin olarak gizlenmesini sağladık */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}


    /* Menüyü mobilde tamamen gizle ve açılır panel yap */
    .site-nav {
        display: none; /* Varsayılan olarak kapalı */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Header'ın hemen altından başlasın */
        left: 0;
        width: 100%;
        background: #050505; /* Header'dan hafif farklı koyu ton */
        padding: 20px;
        gap: 20px !important;
        border-bottom: 2px solid #1f6f54;
        z-index: 100;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    /* JS ile 'open' sınıfı eklendiğinde menüyü göster */
    .site-nav.open {
        display: flex !important;
    }

    .site-nav a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        font-size: 18px;
        border-bottom: 1px solid #111;
    }
    
    .site-nav a:last-child {
        border-bottom: none;
    }
}


}

/* Responsive navigation overrides */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

@media (max-width: 760px) {
    .site-header {
        position: relative;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center;
    }

    .brand { margin: 0; }
    .menu-toggle { display: flex !important; flex: 0 0 auto; }
}

/* Mobil başlık: eski kuralları kesin olarak geçersiz kılar */
@media (max-width: 760px) {
    .site-header {
        position: sticky !important;
        top: 0;
        z-index: 1000;
        display: flex !important;
        width: 100%;
        min-height: 76px;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px;
        padding: 7px 18px !important;
        background: #000 !important;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .site-header .brand {
        position: absolute !important;
        top: 7px !important;
        right: auto !important;
        left: calc(50% - 22px) !important;
        display: flex !important;
        width: auto !important;
        max-width: calc(100% - 60px);
        margin: 0 !important;
        padding: 0 !important;
        align-items: center;
        transform: translateX(-50%);
    }

    .site-header .brand-logo {
        display: block !important;
        width: auto !important;
        max-width: 170px !important;
        height: 62px !important;
        max-height: 62px !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    .site-header .menu-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 18px !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 26px !important;
        flex: 0 0 34px !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        margin: 0 !important;
        padding: 2px 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        appearance: none;
        transform: translateY(-50%);
    }

    .site-header .menu-toggle span {
        display: block !important;
        width: 34px !important;
        height: 3px !important;
        flex: 0 0 3px;
        margin: 0 !important;
        background: #fff !important;
        border-radius: 999px;
        opacity: 1;
    }

    .site-header .menu-toggle.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .site-header .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .site-header .menu-toggle.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

    .site-header .site-nav {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 999;
        display: none !important;
        width: 100% !important;
        max-height: calc(100vh - 76px);
        max-height: calc(100svh - 76px);
        overflow-y: auto;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 10px 18px 18px !important;
        background: #050505 !important;
        border-bottom: 2px solid #1f6f54;
        box-shadow: 0 14px 28px rgba(0,0,0,.45);
    }

    .site-header .site-nav.open { display: flex !important; }

    .site-header .site-nav a {
        display: block;
        width: 100%;
        padding: 13px 4px;
        color: #fff !important;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .site-header .site-nav a:last-child { border-bottom: 0; }
}


