:root {
    --primary-blue: #1a365d;
    --secondary-blue: #2c5282;
    --accent-red: #c41e3a;
    --light-bg: #f8fafc;
    --white: #ffffff;
}
body {
    font-family: 'Nunito', sans-serif;
    color: var(--primary-blue);
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 15px rgba(26, 54, 93, 0.1);
}
.navbar-brand img {
    height: var(--logo-h-desktop, 95px);
    width: auto;
    object-fit: contain;
}
.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}
.nav-link:hover,
.nav-link:focus,
.dropdown-item:hover {
    color: var(--accent-red) !important;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.12);
    border-radius: 12px;
}
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 70px 0 50px;
}
.section-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
}
section.site-section {
    padding: 80px 0;
}
section.site-section:nth-of-type(even) {
    background: var(--light-bg);
}
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(26, 54, 93, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
}
.age-card {
    border-left: 4px solid var(--accent-red);
}
.btn-primary {
    background: var(--primary-blue);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--secondary-blue);
}
.contact-info {
    background: var(--primary-blue);
    color: white;
    padding: 2rem;
    border-radius: 15px;
}
.contact-info a {
    color: white;
    text-decoration: none;
}
.map-embed {
    border-radius: 15px;
    overflow: hidden;
    min-height: 300px;
}
.map-embed iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}
footer {
    background: var(--primary-blue);
    color: white;
    padding: 2rem 0;
}
.footer-logo img {
    height: var(--logo-h-footer, 80px);
    width: auto;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
}
.footer-social a,
.header-social a,
.home-social a,
.float-social a {
    text-decoration: none;
    transition: opacity .2s, color .2s, transform .2s;
}
.footer-social a {
    color: white;
    font-size: 1.4rem;
    margin: 0 .4rem;
    opacity: .9;
}
.footer-social a:hover {
    opacity: 1;
    color: #ffd7de;
}
.header-social {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.header-social a {
    color: var(--primary-blue);
    font-size: 1.25rem;
}
.header-social a:hover {
    color: var(--accent-red);
}
.home-social-strip {
    padding: 2rem 0;
    background: var(--light-bg);
    border-top: 1px solid rgba(26, 54, 93, 0.06);
    border-bottom: 1px solid rgba(26, 54, 93, 0.06);
}
.home-social-label {
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}
.home-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.home-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary-blue);
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.1);
}
.home-social a:hover {
    color: #fff;
    background: var(--accent-red);
    transform: translateY(-2px);
}
.float-social-stack {
    position: fixed;
    right: 25px;
    bottom: 220px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.float-social-stack:not(.has-whatsapp):not(.has-call) {
    bottom: 90px;
}
.float-social-stack.has-call:not(.has-whatsapp) {
    bottom: 155px;
}
.float-social {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.float-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.35);
}
.float-social a:hover {
    background: var(--accent-red);
    color: #fff;
    transform: scale(1.06);
}
/* Mobil logo ortada — detay stiller header.php inline (yükseklik taşması olmasın diye grid) */
.smooth-scroll {
    scroll-margin-top: 110px;
}
/* .hero-carousel-wrap Bootstrap .container ile aynı genişlikte ortalanır */
.hero-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(26, 54, 93, 0.08);
    background: var(--light-bg);
}
.hero-carousel .carousel-item img {
    height: 480px;
    object-fit: cover;
    width: 100%;
}
.hero-carousel .carousel-inner {
    padding-bottom: 2.75rem;
}
.hero-carousel .carousel-indicators {
    bottom: 0.5rem;
    margin-bottom: 0;
}
.hero-carousel .carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
}
.hero-carousel .carousel-caption .caption-strip {
    display: block;
    background: linear-gradient(90deg, rgba(26, 54, 93, 0.98) 0%, rgba(196, 30, 58, 0.98) 100%);
    padding: 1.25rem 2rem 2.75rem;
    margin: 0;
    text-decoration: none;
    color: inherit;
    transition: filter .2s;
}
.hero-carousel .carousel-caption a.caption-link:hover {
    filter: brightness(1.06);
    color: inherit;
}
.hero-carousel .carousel-caption h2 {
    font-size: 1.75rem;
    color: white !important;
    margin-bottom: 0.25rem;
}
.hero-carousel .carousel-caption p {
    color: rgba(255,255,255,0.98) !important;
    margin-bottom: 0;
}
.photo-fit {
    border-radius: 15px;
    overflow: hidden;
    background: var(--light-bg);
    box-shadow: 0 5px 20px rgba(26, 54, 93, 0.08);
    line-height: 0;
}
.photo-fit img {
    width: 100%;
    height: auto;
    display: block;
}
.photo-fit.photo-hero {
    aspect-ratio: 16 / 9;
    position: relative;
}
.photo-fit.photo-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Eşit sütun: Chrome’da kartın yazı genişliğine sıkışmasını engelle */
.icon-grid-row > .col {
    display: flex;
    flex: 0 0 auto;
    width: calc(100% / var(--ig-cols-m, 2));
    max-width: calc(100% / var(--ig-cols-m, 2));
    min-width: 0;
}
@media (min-width: 768px) {
    .icon-grid-row > .col {
        width: calc(100% / var(--ig-cols-t, 3));
        max-width: calc(100% / var(--ig-cols-t, 3));
    }
}
@media (min-width: 992px) {
    .icon-grid-row > .col {
        width: calc(100% / var(--ig-cols-d, 4));
        max-width: calc(100% / var(--ig-cols-d, 4));
    }
}
.icon-grid-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--primary-blue);
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    box-shadow: 0 5px 20px rgba(26, 54, 93, 0.08);
    transition: transform .25s, box-shadow .25s, color .25s;
    height: 100%;
    min-height: 140px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    align-self: stretch;
}
.icon-grid-link span {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.icon-grid-link i {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: .75rem;
    transition: transform .25s;
}
.icon-grid-link:hover {
    transform: translateY(-4px);
    color: var(--accent-red);
    box-shadow: 0 10px 28px rgba(26, 54, 93, 0.14);
}
.icon-grid-link:hover i {
    transform: scale(1.08);
}
.icon-grid-link img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: .75rem;
}
.btn-scroll-top,
.float-action {
    position: fixed;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.35);
    transition: transform .2s, opacity .3s, visibility .3s;
    text-decoration: none;
}
.btn-scroll-top {
    bottom: 25px;
    right: 25px;
    background: var(--primary-blue);
    color: white;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}
.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.btn-scroll-top:hover {
    background: var(--accent-red);
    color: white;
}
.float-call {
    bottom: 90px;
    right: 25px;
    background: var(--primary-blue);
    color: white;
}
.float-whatsapp {
    bottom: 155px;
    right: 25px;
    background: #25D366;
    color: white;
}
.float-action:hover {
    transform: scale(1.08);
    color: white;
}
.alert-form {
    border-radius: 12px;
}
/* iOS Safari: vw + padding yatay taşma yapmasın; görünürlük sınıf ile */
.site-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.site-popup[hidden] {
    display: none !important;
}
.site-popup.is-open:not([hidden]) {
    display: flex !important;
}
.site-popup-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(26, 54, 93, 0.55);
}
.site-popup-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 85%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
/* Animasyon kasıtlı yok — Safari/Brave’de opacity/transform takılması olmasın */
.site-popup-close {
    position: absolute;
    top: .4rem;
    right: .55rem;
    left: auto;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.9);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}
.site-popup-close:hover {
    background: var(--accent-red);
}
.site-popup-media {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}
.site-popup-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
    margin: 0 auto;
}
/* iOS body scroll lock */
html.popup-open,
html.popup-open body {
    overflow: hidden;
    overscroll-behavior: none;
}
body.popup-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
@media (max-width: 767px) {
    .site-popup-dialog {
        max-width: 420px;
    }
    .hero-carousel .carousel-item img {
        height: 280px;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 1.25rem;
    }
}
