/* ==========================================================================
   Panem Pazarlama Gıda Tic. Ltd. Şti. - Modern Design System & Styles
   ========================================================================== */

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

:root {
    --primary: #5A2D18;
    --primary-dark: #3D1B0D;
    --primary-light: #7A3E22;
    --accent: #D9822B;
    --accent-hover: #BF6F1F;
    --accent-gold: #E5A642;
    --accent-cream: #F5E8D4;
    --bg-main: #FFFFFF;
    --bg-alt: #FAF7F2;
    --bg-card: #FFFFFF;
    --text-dark: #2A1F1A;
    --text-muted: #6B5E55;
    --text-light: #9E9187;
    --border-light: #EBE4DA;
    --border-accent: #E5D5C3;
    --shadow-sm: 0 2px 8px rgba(90, 45, 24, 0.06);
    --shadow-md: 0 8px 24px rgba(90, 45, 24, 0.09);
    --shadow-lg: 0 16px 40px rgba(90, 45, 24, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Header Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #E8DFD8;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item i {
    color: var(--accent-gold);
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-social a {
    color: #D6C9BF;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    font-size: 0.75rem;
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #FFF;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(217, 130, 43, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 130, 43, 0.45);
    color: #FFF;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(42, 21, 11, 0.88) 0%, rgba(90, 45, 24, 0.78) 100%), url('images/hero_bg.png') center/cover no-repeat;
    color: #FFF;
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 166, 66, 0.2);
    border: 1px solid rgba(229, 166, 66, 0.4);
    color: var(--accent-gold);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-description {
    font-size: 1.18rem;
    color: #E2D7CE;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.92rem;
    color: #D1C5BC;
    margin-top: 6px;
}

/* Features Cards */
.features-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-cream);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--accent-cream);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-main);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--primary-dark);
    color: #FFF;
    padding: 24px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-badge i {
    font-size: 2.2rem;
    color: var(--accent-gold);
}

.about-badge-text h4 {
    color: #FFF;
    font-size: 1.4rem;
}

.about-badge-text p {
    color: #D1C5BC;
    font-size: 0.85rem;
}

.about-content h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 36px;
}

.about-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.about-list-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: #FFF;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(90, 45, 24, 0.2);
}

.search-box-wrapper {
    max-width: 460px;
    margin: 0 auto 48px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 50px;
    border: 1px solid var(--border-accent);
    background: #FFF;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(217, 130, 43, 0.15);
}

.search-box-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(42, 21, 11, 0.85);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.product-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.product-spec {
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-detail {
    background: var(--bg-alt);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail:hover {
    background: var(--primary);
    color: #FFF;
}

/* Contact Section & Map */
.contact-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--primary-dark);
    color: #FFF;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-header h2 {
    color: #FFF;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.contact-info-header p {
    color: #D1C5BC;
    margin-bottom: 36px;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(229, 166, 66, 0.15);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #FFF;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-text p, .contact-text a {
    color: #D1C5BC;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-accent);
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition);
    background: #FAF8F5;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Leaflet Map Styling */
.map-section {
    padding: 0 0 100px;
}

.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    height: 440px;
    width: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

.map-overlay-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(42, 21, 11, 0.9);
    color: #FFF;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 166, 66, 0.3);
}

.map-overlay-badge h4 {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 2px;
}

.map-overlay-badge p {
    font-size: 0.82rem;
    color: #D1C5BC;
}

/* Footer */
.footer {
    background: #1F1510;
    color: #D1C5BC;
    padding: 80px 0 30px;
    border-top: 3px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    background: #FFF;
    padding: 6px 12px;
    border-radius: 8px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #B5A89E;
}

.footer-title {
    color: #FFF;
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #B5A89E;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #8C7E74;
}

/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-card {
    background: #FFF;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: #FFF;
}

.modal-header-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.modal-body {
    padding: 32px;
}

/* Responsive Utilities */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .about-badge {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        left: 0;
        width: 100%;
        background: #FFF;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

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

    .hero {
        padding: 80px 0 60px;
    }

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

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