/* ===== Cihan Balık Restaurant — Styles ===== */
:root {
    --primary: #0a6e8c;
    --primary-dark: #074e63;
    --accent: #f4a261;
    --accent-dark: #e76f51;
    --bg: #f7fafb;
    --bg-dark: #0c1f26;
    --text: #1d2d35;
    --text-light: #5a6b73;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(10, 110, 140, 0.12);
    --radius: 16px;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }

a { text-decoration: none; color: inherit; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(10, 110, 140, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 110, 140, 0.45); }
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.0);
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 18px 0;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.4rem; color: var(--white); }
.header.scrolled .logo { color: var(--text); }
.logo-icon { font-size: 1.6rem; }
.logo-text em { color: var(--accent); font-style: normal; }
.logo-img { height: 58px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--white); position: relative; transition: color .3s; }
.header.scrolled .nav-links a { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--accent); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { color: var(--white) !important; }
.mobile-cta { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; transition: transform .3s ease; }
.hamburger span { width: 26px; height: 3px; background: var(--white); border-radius: 3px; transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.header.scrolled .hamburger span { background: var(--text); }
.hamburger.open span { background: var(--text) !important; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(7, 78, 99, 0.85), rgba(12, 31, 38, 0.6));
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 720px; padding-top: 80px; }
.hero-badge {
    display: inline-block; background: rgba(244, 162, 97, 0.2); color: var(--accent);
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px;
    border: 1px solid rgba(244, 162, 97, 0.4);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.1rem; opacity: 0.92; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2rem; font-family: 'Playfair Display', serif; color: var(--accent); }
.hero-stats span { font-size: 0.9rem; opacity: 0.85; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block; color: var(--primary); font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--text-light); }

/* ===== About ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 22px; }
.about-list li { padding: 8px 0; color: var(--text); font-weight: 500; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-card {
    position: absolute; bottom: -24px; left: -24px; background: var(--white);
    padding: 18px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.about-card span { font-size: 1.6rem; font-weight: 700; color: var(--accent); font-family: 'Playfair Display', serif; }
.about-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ===== Branches ===== */
.branches { background: var(--white); }
.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.branch-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg); transition: transform .3s ease; }
.branch-card:hover { transform: translateY(-6px); }
.branch-img { height: 220px; background-size: cover; background-position: center; }
.branch-body { padding: 28px; }
.branch-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.branch-addr { color: var(--text-light); margin-bottom: 16px; }
.branch-info { list-style: none; margin-bottom: 20px; }
.branch-info li { padding: 6px 0; color: var(--text); }
.branch-info a { color: var(--primary); font-weight: 500; }

/* ===== Gallery ===== */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; transition: transform .35s ease; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.05); }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: #cdd9dd; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer-about { font-size: 0.92rem; opacity: 0.8; max-width: 320px; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.1rem; }
.footer a { display: block; padding: 6px 0; opacity: 0.8; transition: opacity .3s, color .3s; }
.footer a:hover { opacity: 1; color: var(--accent); }
.socials { display: flex; gap: 14px; font-size: 1.5rem; }
.socials a { display: inline; }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    transition: background .3s ease, transform .3s ease, color .3s ease;
}
.social-icon:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; padding: 22px 0; font-size: 0.85rem; opacity: 0.7; }

/* ===== Modal ===== */
.modal {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(7, 31, 38, 0.75); backdrop-filter: blur(4px); }
.modal-box {
    position: relative; z-index: 2; width: 100%; max-width: 1000px; height: 86vh;
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: modalIn .35s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px;
    border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--text);
    font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); transition: transform .2s, background .2s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--accent); color: var(--white); }
.modal-frame-wrap { width: 100%; height: 100%; }
.modal-frame-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===== Reveal Animation ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== Lightbox Modal ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.open {
    display: flex;
}
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 38, 0.92);
    backdrop-filter: blur(8px);
}
.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxIn .35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--white);
}
.lightbox-caption {
    color: var(--white);
    margin-top: 14px;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
    position: absolute;
    top: -55px;
    right: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s, color .2s;
}
.lightbox-close:hover {
    transform: rotate(90deg);
    background: var(--accent);
    color: var(--white);
}

@media (max-width: 640px) {
    .lightbox-close {
        top: -48px;
        right: 0;
    }
    .lightbox-content img {
        border: 2px solid var(--white);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-grid, .contact-grid, .branch-grid { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .about-card { left: 16px; }
}
@media (max-width: 640px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 70%;
        background: var(--white); flex-direction: column; justify-content: center; align-items: center;
        gap: 30px; transition: right .35s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: var(--text) !important; font-size: 1.1rem; }
    .nav-cta { display: none; }
    .mobile-cta { display: inline-block; margin-top: 15px; width: 85%; text-align: center; color: var(--white) !important; }
    .hamburger { display: flex; z-index: 1001; }
    .menu-grid, .gallery-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .section { padding: 70px 0; }
}
