@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* ---------- THEME ---------- */
:root {
    --bg-color: #f8f5f0;
    --text-color: #1a1a1a;
    --accent-color: #b22222;
    --footer-bg: #eae7e1;
    --brand-gold: #bfa06c;
    --nav-h: 76px;
    --marquee-speed: 28s;
    --hero-cycle: 36s; /* 5 slides → ~7.2s each */
}

body.dark {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #e63946;
    --footer-bg: #1a1a1a;
}

/* ---------- BASE ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI',system-ui,-apple-system,Arial,sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background .3s,color .3s,padding-top .3s;
    padding-top: var(--nav-h);
}

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

/* ---------- BRAND TEXT ---------- */
.brand-text {
    font-family: 'Great Vibes',cursive;
    font-size: clamp(2.8rem,3.6vw,2rem);
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
    color: #000;
    margin-left: .6rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .brand-text .line1 {
        font-size: clamp(1.25rem,2.6vw,1.9rem);
        font-weight: 900;
    }

    .brand-text .line2 {
        font-size: clamp(.105rem,2vw,2.25rem);
        text-transform: uppercase;
        letter-spacing: .55em;
        margin-top: 2px;
    }

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    inset: 0 auto auto 0;
    right: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(.65rem,1.6vw,1rem) clamp(1rem,3vw,2.5rem);
    height: var(--nav-h);
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

    .logo img {
        height: calc(var(--nav-h) - 4px);
        width: calc(var(--nav-h) - 4px);
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        background: #fff;
    }

.brand-text::first-letter {
    color: #e60000;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(.6rem,2vw,1.6rem);
    white-space: nowrap;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 600;
        padding: .45rem .35rem;
        border-radius: 6px;
        line-height: 1;
        transition: color .2s,background .2s;
    }

        .nav-links a:hover {
            color: var(--brand-gold);
            background: rgba(191,160,108,.12);
        }

        .nav-links a.active {
            color: var(--brand-gold);
        }

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 1.9rem;
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 1;
    margin-left: auto;
    z-index: 3100;
    color: var(--brand-gold) !important;
}

/* ---------- MOBILE NAV ---------- */
@media (max-width:900px) {
    :root {
        --nav-h: 86px;
    }
    /* taller navbar on mobile */

    .navbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: .75rem;
        background: transparent; /* sits over hero */
        box-shadow: none;
    }

    .logo {
        grid-column: 1;
    }

    .menu-toggle {
        display: block;
        grid-column: 3;
        justify-self: end;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: clamp(1rem,3vw,2.5rem);
        flex-direction: column;
        align-items: flex-start;
        background: rgba(0,0,0,.92);
        border: 0;
        box-shadow: 0 10px 24px rgba(0,0,0,.35);
        padding: .5rem 0;
        min-width: 220px;
        border-radius: 10px;
        z-index: 3050;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s ease,transform .2s ease,visibility 0s .2s;
        max-height: calc(100vh - var(--nav-h) - 16px);
        overflow-y: auto;
        backdrop-filter: blur(4px);
    }

        .nav-links a {
            display: block;
            padding: .75rem 1rem;
            width: 100%;
            color: #fff !important;
        }

            .nav-links a:hover {
                background: rgba(255,255,255,.12) !important;
            }

        .nav-links.show {
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
        }
}

/* ---------- HERO (PRO SLIDESHOW) ---------- */
.hero-slideshow {
    position: relative;
    height: clamp(60vh,85vh,90vh); /* desktop default */
    overflow: hidden;
    background: #000; /* safe base behind slides */
}

.slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    animation: fadeZoom var(--hero-cycle) linear infinite both;
    will-change: opacity,transform;
    background-color: #000; /* prevents any flash */
}

    /* desktop images + seamless staggering (5 slides = 20% each) */
    .slide.s1 {
        background-image: url('../images/home1.jpg');
        animation-delay: calc(var(--hero-cycle) * 0);
    }

    .slide.s2 {
        background-image: url('../images/img23.jpg');
        animation-delay: calc(var(--hero-cycle) * -0.2);
    }

    .slide.s3 {
        background-image: url('../images/foto7.jpg');
        animation-delay: calc(var(--hero-cycle) * -0.4);
    }

    .slide.s4 {
        background-image: url('../images/img20.jpg');
        animation-delay: calc(var(--hero-cycle) * -0.6);
    }

    .slide.s5 {
        background-image: url('../images/img9.JPG');
       
        animation-delay: calc(var(--hero-cycle) * -0.8);
    }

/* desktop cross-fade with subtle zoom */
@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(1.06);
    }

    6% {
        opacity: 1;
    }

    20% {
        opacity: 1;
        transform: scale(1.00);
    }

    24% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1.00);
    }
}

/* overlay content */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1rem,3vw,2rem);
    color: #fff;
    /* gentle darkening for legibility */
    background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.28));
}

.hero-content h1 {
    font-size: clamp(1.8rem,5vw,3rem);
    margin: 0 0 .75rem;
}

.hero-content p {
    font-size: clamp(1rem,2.5vw,1.2rem);
    margin: 0 0 1.25rem;
}

.hero-content .btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* reduce motion */
@media (prefers-reduced-motion:reduce) {
    .slide {
        animation: none;
    }

        .slide.s1 {
            opacity: 1;
        }
}

/* ---------- MOBILE HERO: TRUE FULL SCREEN + STABLE FRAMING ---------- */
@media (max-width: 900px) {
    /* no page push-down under fixed navbar */
    body {
        padding-top: 0;
    }

    /* fill the real viewport height on mobile (URL bar aware) */
    .hero-slideshow {
        height: 100svh;
        min-height: 100svh;
    }

    @supports (height: 100dvh) {
        .hero-slideshow {
            height: 100dvh;
            min-height: 100dvh;
        }
    }

    /* keep the subject a bit higher; remove zoom to avoid edge peeks */
    .slide {
        transform: none;
        background-position: center 42%;
        animation-name: fadeOnly; /* fade without scale on phones */
    }

    /* make overlay respect notches/safe areas */
    .hero-overlay {
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.25));
    }
}

/* mobile fade-only timeline (matches desktop timing) */
@keyframes fadeOnly {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    22% {
        opacity: 1;
    }

    32% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ---------- SPECIALS ---------- */
.specials {
    padding: clamp(2rem,6vw,4rem) clamp(1rem,4vw,2rem);
    background: var(--bg-color);
    text-align: center;
}

    .specials h2 {
        font-size: clamp(1.6rem,4.5vw,2.5rem);
        margin-bottom: clamp(1.25rem,3vw,3rem);
    }

.specials-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(240px,1fr));
    gap: clamp(1.25rem,3vw,3rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.special-item {
    padding: 1rem;
}

    .special-item img {
        width: auto;
        height: 90px;
        object-fit: contain;
        margin: 0 auto 1.2rem;
    }

    .special-item h3 {
        font-family: 'Playfair Display',serif;
        font-size: clamp(1.1rem,2.6vw,1.5rem);
        font-weight: 700;
        font-style: italic;
        margin: .5rem 0;
    }

    .special-item .divider {
        width: 100px;
        height: 1px;
        background: var(--text-color);
        margin: .5rem auto 1.2rem;
        position: relative;
    }

        .special-item .divider::before {
            content: "◆";
            position: absolute;
            top: -.7rem;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1rem;
            background: var(--bg-color);
            padding: 0 .3rem;
            color: var(--text-color);
        }

    .special-item p {
        font-size: .95rem;
        line-height: 1.5;
        margin: 0;
    }

@media (max-width:900px) {
    .specials-grid {
        grid-template-columns: repeat(2,minmax(220px,1fr));
    }
}

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

/* ---------- GALLERY (marquee) ---------- */
.gallery-strip {
    background: #eee;
    padding: 2rem 0;
}

.gallery-marquee {
    overflow: hidden;
    position: relative;
}

    .gallery-marquee .track {
        display: flex;
        align-items: center;
        gap: 16px;
        width: max-content;
        animation: marquee var(--marquee-speed) linear infinite;
    }

    .gallery-marquee img {
        height: 150px;
        width: 150px;
        object-fit: cover;
        border-radius: 10px;
        flex: 0 0 auto;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform .3s ease;
        cursor: pointer;
    }

        .gallery-marquee img:hover {
            transform: scale(1.05);
        }

    .gallery-marquee:hover .track {
        animation-play-state: paused;
    }

@keyframes marquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

@media (max-width:768px) {
    .gallery-marquee img {
        height: 110px;
        width: 110px;
    }
}

@media (max-width:768px) {
    :root {
        --marquee-speed: 18s;
    }
}

/* ---------- WHY US ---------- */
.why-us {
    padding: clamp(2rem,6vw,4rem) clamp(1rem,4vw,2rem);
    text-align: center;
}

.reasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.reason {
    width: clamp(220px,40vw,250px);
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: transform .3s;
}

    .reason:hover {
        transform: translateY(-5px);
    }

    .reason img {
        width: 60px;
        margin-bottom: 1rem;
    }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--footer-bg);
    padding: 2rem;
    text-align: center;
}

    .footer .socials a {
        margin: 0 1rem;
        color: var(--text-color);
        text-decoration: none;
    }

/* Mobile brand helpers */
@media (max-width:768px) {
    body:not(.nav-solid) .brand-text {
        color: #fff !important;
        text-shadow: 0 1px 3px rgba(0,0,0,.55);
    }

    .brand-text {
        max-width: 55vw;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo img {
        margin-right: .4rem;
    }

    body.nav-solid .brand-text {
        color: var(--text-color) !important;
        text-shadow: none;
    }
}

/* Mobile dropdown theming fix */
@media (max-width:900px) {
    body.nav-solid .navbar {
        background: var(--bg-color);
        box-shadow: 0 2px 10px rgba(0,0,0,.05);
    }

        body.nav-solid .navbar .nav-links {
            background: var(--bg-color) !important;
            border: 1px solid rgba(0,0,0,.06) !important;
            box-shadow: 0 10px 24px rgba(0,0,0,.10) !important;
            backdrop-filter: none;
        }

            body.nav-solid .navbar .nav-links a {
                color: var(--text-color) !important;
            }

                body.nav-solid .navbar .nav-links a:hover {
                    background: rgba(0,0,0,.06) !important;
                }
}

/* ===== Bottom CTA ===== */
.cta {
    background: linear-gradient(0deg,#f6f3ed,#f9f6f0);
    border-radius: 14px;
    max-width: 1200px;
    margin: clamp(1.5rem,4vw,3rem) auto;
    padding: clamp(1.25rem,4vw,2rem) clamp(1rem,4vw,2rem);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

    .cta h2 {
        margin: 0;
        font-size: clamp(1.25rem,3.2vw,1.8rem);
        line-height: 1.25;
    }

    .cta .btn {
        display: inline-block;
        white-space: nowrap;
        padding: .9rem 1.5rem;
        border-radius: 999px;
        background: linear-gradient(180deg,#e6d386,#caa94b);
        color: #1e1e1e;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 8px 18px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.35);
        transition: transform .15s ease, box-shadow .2s ease;
    }

        .cta .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.45);
        }

        .cta .btn:focus-visible {
            outline: 3px solid rgba(202,169,75,.6);
            outline-offset: 2px;
        }

@media (max-width:700px) {
    .cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

        .cta .btn {
            justify-self: center;
            width: max-content;
        }
}

/* --- DESKTOP: hero fills view (header height removed) --- */
@media (min-width:901px) {
    .hero-slideshow {
        height: calc(100vh - var(--nav-h));
    }
}

/* --- Global pill button (shared) --- */
.btn {
    display: inline-block;
    white-space: nowrap;
    padding: .9rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(180deg,#e6d386,#caa94b);
    color: #1e1e1e;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .15s ease, box-shadow .2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.45);
    }

    .btn:focus-visible {
        outline: 3px solid rgba(202,169,75,.6);
        outline-offset: 2px;
    }
/* keep hero button red */
.hero-content .btn {
    border-radius: 6px;
    background: var(--accent-color);
    color: #fff;
    padding: .75rem 1.25rem;
    box-shadow: none;
}

/* --- Lightbox (click-to-zoom) --- */
.gallery-marquee img:active {
    transform: scale(.98);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.85);
    z-index: 9999;
}

    .lightbox.active {
        display: flex;
    }

    .lightbox img {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0,0,0,.45);
        animation: lb-zoom .28s ease;
    }

@keyframes lb-zoom {
    from {
        transform: scale(.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox::after {
    content: "✕";
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    opacity: .9;
    cursor: pointer;
    user-select: none;
}

/* Galeri şeridi – biraz daha yavaş */
.gallery-strip {
    --marquee-speed: 65s;
}

@media (max-width:768px) {
    .gallery-strip {
        --marquee-speed: 50s;
    }
}
