/* 
   Kofteci Ali - Standard Corporate Theme
   Concept: Clean, Trustworthy, High Contrast, Traditional
*/

/* Variables */
:root {
    --primary: #722F37;
    /* Merlot - Brand Color */
    --accent: #C5A059;
    /* Gold - Highlights */
    --dark: #222222;
    /* Headings */
    --text: #555555;
    /* Body */
    --light: #f2f2f2;
    /* Backgrounds */
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;

    --container: 1200px;
    --nav-height: 90px;
}

/* Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    /* Fix horizontal scroll */
    width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

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

.justify-between {
    justify-content: space-between;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--primary);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Top Bar */
.top-bar {
    background-color: #111;
    color: #ccc;
    font-size: 0.85rem;
    padding: 10px 0;
}

.top-bar i {
    color: var(--accent);
    margin-right: 8px;
}

.top-bar-info {
    display: flex;
    gap: 30px;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
}

/* Top Bar Social Buttons */
.top-bar-social a {
    color: #fff;
    transition: 0.3s;
    font-size: 0.9rem;
    /* Sligthly smaller icon */
    background: rgba(255, 255, 255, 0.1);
    width: 28px;
    /* Reduced from 32px */
    height: 28px;
    /* Reduced from 32px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 5px;
    padding: 0;
    /* Remove potential padding */
    line-height: 1;
    /* Fix vertical alignment */
}

.top-bar-social a i {
    margin: 0;
    /* Remove inherited margin */
}

.top-bar-social a:hover {
    background: var(--accent);
}

.top-bar-social a:hover i {
    color: #000 !important;
}

/* Footer Social - Larger & Nicer */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ccc;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    text-decoration: none;
}

.footer-social a i {
    margin: 0;
    display: block;
    line-height: 1;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    padding-left: 0 !important;
}

/* Header / Navbar */
.navbar {
    font-size: 1.2rem;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: var(--nav-height);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 600px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    /* Enhance centering */
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 30px;
}

/* Features Stripe */
.features-stripe {
    background: var(--primary);
    color: #fff;
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.stripe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.features-box {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.features-box:last-child {
    border: none;
}

.features-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.features-box h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* About Section */
.about-img-group {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.menu-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.menu-card-img {
    height: 250px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.1);
}

.menu-card-body {
    padding: 30px;
    text-align: center;
}

.menu-card-title {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: stretch;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: 0.3s;
    border-radius: 4px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: #fff;
}

.tab-content {
    display: none !important;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid !important;
    /* restored grid for active state */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    transition: 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Contact */
.contact-info-box {
    background: var(--light);
    padding: 40px;
    border-radius: 8px;
    height: 100%;
}

.contact-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Modern CTA */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/akcaabat-kofte.png');
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    padding: 80px 0;
}

.cta-box {
    border: 3px dashed rgba(255, 255, 255, 0.2);
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    /*max-width: 800px;*/
    margin: 0 auto;
}

.cta-btn {
	width: 100%;
    max-width: 430px;
    background: var(--white);
    color: var(--dark);
    border: none;
    padding: 18px 40px;
    white-space: nowrap;
    /* Prevent awkward breaks */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-btn:hover {
    background: var(--accent);
}

.hours-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.hour-item {
    text-align: center;
    padding: 15px 30px;
    border: 1px solid var(--accent);
    min-width: 200px;
}

.hour-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.hour-item strong {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.footer ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Mobile */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-btn {
        padding: 15px 20px;
        /* Reduce padding on mobile */
        font-size: 0.9rem;
        /* Slightly smaller text */
        width: 100%;
        /* Full width on mobile */
    }

    .features-stripe {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .cta-section {
        padding: 20px 0;
    }

    .cta-box {
        padding: 20px;
    }

    .cta-btn {
        background: var(--white);
        color: var(--dark);
        border: none;
        padding: 15px 0px;
    }
}

@media (max-width: 768px) {

    /* Fixed Header on Mobile */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    body {
        padding-top: var(--nav-height);
        /* Prevent content hiding */
    }

    .top-bar {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .logo {
        z-index: 1001;
        position: relative;
    }

    /* Keep logo above menu if needed */

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Full screen menu */
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px;
        box-shadow: none;
        transform: translateY(-100%);
        transition: 0.3s;
        gap: 20px;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    /* Fix Footer Mobile Stacking */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Overflow */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }
}