@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    /* Base palette */
    --navy: #1E3A5F;      /* Lacivert */
    --gold: #D4A017;      /* Altın */
    --orange: #F28C28;    /* Sıcak Turuncu */
    --beige: #F5F2E7;     /* Yumuşak Bej */
    --green: #4CAF50;     /* Canlı Yeşil */

    /* Derived tokens */
    --bg: linear-gradient(180deg, var(--beige) 0%, #EEF2F2 100%);
    --text: #1f2937;
    --muted: #6b7280;
    --surface: rgba(255, 255, 255, 0.92);
    --radius: 16px;
    --shadow: 0 10px 26px rgba(15, 23, 42, 0.08);

    --brand: var(--navy);
    --brand-contrast: #ffffff;
    --cta: var(--orange);
    --cta-contrast: #1b1b1b;
}
.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
}
/* Mobile-first stacking; override desktop grid on small screens */
@media (max-width: 600px) {
    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
        padding: 0 10px;
    }
}

.top-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 300px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  z-index: 0;
}
body, html {
  position: relative;
}
.parent {
  position: relative;
  z-index: 1;
}

/* Sayfa kenar boşlukları: sağ, sol ve üst */
body {
    margin: 0;
    padding: 32px 32px 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 600px) {
    body {
        padding: 16px 0 0;
    }
}

.div1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    height: calc(96vh - 32px);
}
@media (max-width: 600px) {
    .div1 {
        grid-column: 1;
        grid-row: auto;
        height: 56vh;
        min-height: 360px;
    }
}

.div2 {
    margin-top: 0;
    grid-row: 5;
    grid-column: 1;
}

.div3 {
    margin-top: 0;
    grid-row: 5;
    grid-column: 2;
}

.div4 {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
@media (max-width: 600px) {
    .div4 {
        grid-column: 1;
        grid-row: auto;
        margin-top: 8px;
    }
}

/* Div4 eylem çubuğu - cam zemin üstünde beyaz konturlu yuvarlak butonlar */
.action-bar {
    backdrop-filter: saturate(120%) blur(0px);
}

.action-bar .btn {
    color: var(--brand-contrast);
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255,255,255,0.06);
}

.action-bar .btn:hover {
    background: rgba(212, 160, 23, 0.15);
    color: var(--brand-contrast);
    border-color: var(--gold);
}

.icon-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}

.btn {
    transition: transform .2s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover {
    transform: translateY(-1px);
}

/* Büyük alt çağrı butonu - koyu konturlu, yuvarlak */
.btn.btn-outline-brand {
    color: var(--brand-contrast);
    background: var(--cta);
    border-color: var(--cta);
    min-width: 370px;
}
@media (max-width: 600px) {
    .btn.btn-outline-brand {
        min-width: 0;
        width: 92vw;
        max-width: 560px;
        padding: 12px 16px !important;
        font-size: 16px;
    }
}

.btn.btn-outline-brand:hover {
    background: #ff991e;
    color: var(--cta-contrast);
    border-color: #ff991e;
}

/* Div4 özel buton stilleri Bootstrap kullanıldığı için kaldırıldı */

.div5 {
    grid-column: 3;
    grid-row: 2;
}
@media (max-width: 600px) {
    .div5 {
        grid-column: 1;
        grid-row: auto;
    }
}

.div5 {
    overflow: auto;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.div5 h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.div5 h3 {
    margin: 12px 0 6px;
    font-size: 16px;
}

.div5 p {
    margin: 0 0 8px;
    line-height: 1.5;
    font-size: 14px;
}

.div6 {
    margin-top: 0;
    grid-row: 5;
    grid-column: 3;
}
@media (max-width: 600px) {
    .div2, .div3, .div6 {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
    }
}

/* Kare kısıtları kaldırıldı; oranlar grid satır/yapısına göre ayarlı */

/* Slayt - div1 */
.div1 .gallery {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.div1 .gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.div1 .gallery img.active {
    opacity: 1;
}

.div1 .gallery::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    pointer-events: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}
.div1 .hero-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: 70%;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    z-index: 3;
}

.hero-caption h2 {
    margin: 0 0 10px;
    font-size: 54px; /* Eskisi 44px idi, büyütüldü */
    line-height: 1.08;
}
@media (max-width: 600px) {
    .hero-caption h2 {
        font-size: 32px;
        line-height: 1.1;
    }
}

.hero-caption p {
    margin: 0;
    font-size: 18px; /* Eskisi 24px idi, küçültüldü */
    line-height: 1.5;
}
@media (max-width: 600px) {
    .hero-caption p {
        font-size: 14px;
        line-height: 1.45;
    }
}

/* Kutu görselleri (div2, div3, div6) */
.tile-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    border-radius: 18px;
    will-change: transform;
}
@media (max-width: 600px) {
    .tile-card { height: auto; }
    .tile-img { height: 220px; }
}

/* Görsel + başlık/metin kartı */
.tile-card {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
}

.tile-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
    color: #fff;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    transition: transform .3s ease, opacity .3s ease;
}

.tile-caption h4 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.tile-caption p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.div2, .div3, .div6 {
    margin-top: 70px;
}

/* Facilities row: desktop keeps grid, mobile becomes horizontal scroll */
.facilities-row {
    display: contents;
    grid-column: 1 / span 3;
    grid-row: 5;
}
@media (max-width: 600px) {
    .facilities-row {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 10px 12px 10px;
        margin-top: 0;
    }
    .facilities-row > .div2,
    .facilities-row > .div3,
    .facilities-row > .div6 {
        flex: 0 0 84vw;
        max-width: 420px;
        scroll-snap-align: start;
    }
    .facilities-row .tile-img { height: 240px; }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
/* Only play animation when .in-view is added by JS */
.fade-in { animation-play-state: paused; }
.fade-in.in-view { animation-play-state: running; }

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }
.fade-in.delay-4 { animation-delay: 0.8s; }
.fade-in.delay-5 { animation-delay: 1s; }

/* Butonlar için giriş animasyonu */
.btn.fade-in, .icon-btn.fade-in {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.btn.fade-in, .icon-btn.fade-in { animation-play-state: paused; }
.btn.fade-in.in-view, .icon-btn.fade-in.in-view { animation-play-state: running; }

.btn.fade-in.delay-1, .icon-btn.fade-in.delay-1 { animation-delay: 0.2s; }
.btn.fade-in.delay-2, .icon-btn.fade-in.delay-2 { animation-delay: 0.4s; }
.btn.fade-in.delay-3, .icon-btn.fade-in.delay-3 { animation-delay: 0.6s; }
.btn.fade-in.delay-4, .icon-btn.fade-in.delay-4 { animation-delay: 0.8s; }
.btn.fade-in.delay-5, .icon-btn.fade-in.delay-5 { animation-delay: 1s; }

.about-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 36px 32px 90px 32px;
    margin: 0 auto 24px auto;
    max-width: 700px;
    text-align: left;
    position: relative;
    min-height: 420px;
}
.about-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 18px;
    letter-spacing: -1px;
    text-align: left;
}
.about-desc {
    font-size: 28px;
    color: #222;
    margin-bottom: 36px;
    line-height: 1.6;
    font-weight: 600;
}
.about-stats {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    width: 100%;
    padding: 0 32px;
}
.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    flex: 1 1 120px;
    max-width: 220px;
}
.about-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
    line-height: 1;
}
.about-stat-label {
    font-size: 18px;
    color: #222;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}
@media (max-width: 900px) {
    .about-box { padding: 24px 10px 80px 10px; min-height: 340px; }
    .about-title { font-size: 32px; }
    .about-desc { font-size: 20px; font-weight: 600; }
    .about-stats { gap: 16px; flex-wrap: wrap; padding: 0 10px; bottom: 16px; }
    .about-stat { min-width: 100px; max-width: 180px; }
    .about-stat-number { font-size: 32px; }
    .about-stat-label { font-size: 14px; }
}

.custom-info-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 64px 32px 64px;
    margin: 48px auto 32px auto;
    max-width: 1200px;
    text-align: left;
    position: relative;
    z-index: 2;
    grid-column: 1 / span 3;
    grid-row: 3;
}
.custom-info-title {
    font-size: 38px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 18px;
    letter-spacing: -1px;
}
.custom-info-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
    margin: 32px 0 10px 0;
}
.custom-info-desc {
    font-size: 20px;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.7;
    font-weight: 500;
}
@media (max-width: 900px) {
    .custom-info-box { padding: 18px 8px; margin: 32px 0 24px 0; max-width: 98vw; }
    .custom-info-title { font-size: 26px; }
    .custom-info-subtitle { font-size: 20px; }
    .custom-info-desc { font-size: 15px; }
    .div2 { margin-top: 0; grid-row: 4; grid-column: 1; }
    .div3 { margin-top: 0; grid-row: 4; grid-column: 1; }
    .div6 { margin-top: 0; grid-row: 4; grid-column: 1; }
}

@keyframes fadeInUpFooter {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.custom-footer {
    background: var(--navy);
    color: #fff;
    padding: 48px 0 24px 0;
    margin-top: 64px;
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.2s;
}
.footer-animate-in {
    animation: fadeInUpFooter 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.3s;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 32px;
}
.footer-left h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
.footer-left p {
    font-size: 16px;
    margin-bottom: 18px;
}
.footer-left small {
    color: #d1d5db;
    font-size: 13px;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.footer-contact-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.footer-phones {
    display: flex;
    gap: 24px;
    font-size: 20px;
    font-weight: 600;
}
.footer-link a {
    color: #fff;
    font-size: 16px;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-link a:hover {
    color: var(--gold);
}
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 0 10px;
    }
    .footer-right {
        align-items: flex-start;
    }
}
.map-section {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 0 32px;
}
.map-intro {
    max-width: 1200px;
    margin: 32px auto 8px auto;
    padding: 0 32px;
    text-align: center;
}
.map-intro-lead {
    margin: 0 0 6px 0;
    color: #374151;
    font-weight: 600;
}
.map-intro-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #111827;
}
.map-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.map-address {
    margin: 0 0 14px 0;
    color: #374151;
}
.map-embed {
    position: relative;
    width: 100%;
    padding-top: 52%; /* 16:9 ~ 56%, biraz alçaltılmış */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 900px) {
    .map-section { padding: 0 10px; margin: 24px auto 12px auto; }
    .map-title { font-size: 18px; }
    .map-address { font-size: 14px; }
}
.facilities-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin: 24px 0 16px 0;
    letter-spacing: -1px;
    grid-column: 1 / span 3;
    grid-row: 4;
}
/* Utility to show only on mobile */
.mobile-only { display: none; }
@media (max-width: 600px) { .mobile-only { display: block; margin: 24px 0 8px 0; } }
@media (max-width: 900px) {
    .facilities-title {
        font-size: 28px;
        margin: 16px 0 8px 0;
    }
}

/* ===== Facility hover overlay (desktop) ===== */
.facility-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    contain: layout paint style;
}
.facility-overlay.show { display: flex; }
.facility-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.62);
    opacity: 0;
    transition: opacity .25s ease;
    will-change: opacity;
}
.facility-overlay.show .facility-overlay-backdrop { opacity: 1; }
.facility-overlay-content {
    position: relative;
    width: min(940px, 92vw);
    height: min(560px, 70vh);
    background: #000;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), opacity .25s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.facility-overlay.show .facility-overlay-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
/* Hide content while fly-in animation runs */
.facility-overlay.animating .facility-overlay-content {
    opacity: 0;
}
.facility-slider { position: absolute; inset: 0; }
.facility-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .4s ease;
    will-change: opacity;
}
.facility-slide.active { opacity: 1; }
.facility-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.85) 100%);
    padding: 18px 20px 20px 20px;
    font-size: 18px;
    letter-spacing: .2px;
}

/* Overlay sizing tweaks on small screens */
@media (max-width: 900px) {
    .facility-overlay-content {
        width: 96vw;
        height: 72vh;
        border-radius: 12px;
    }
}

/* --- Mobile-only overrides (<=600px): align with palette --- */
@media (max-width: 600px) {
    /* Action bar buttons: İletişim Kur, Yol Tarifi Al */
    .action-bar .btn {
        background: var(--navy);
        color: #ffffff;
        border-color: var(--navy);
    }
    .action-bar .btn:hover {
        background: #224872;
        color: #ffffff;
        border-color: #224872;
    }

    /* Big CTA: Kayıtlarımız devam etmektedir */
    .btn.btn-outline-brand {
        background: var(--cta);
        color: var(--cta-contrast);
        border-color: var(--cta);
    }
    .btn.btn-outline-brand:hover {
        background: #ff991e;
        color: var(--cta-contrast);
        border-color: #ff991e;
    }

    /* WhatsApp rounded icon button */
    .icon-btn {
        background: var(--green);
        border-color: var(--green);
        color: #ffffff;
    }
    .icon-btn i {
        color: #ffffff;
    }
}