/* 
   SPES PACK - Premium Industrial Design System
   Colors: Navy (#003366), White (#FFFFFF), Gold (#D4AF37)
*/

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

:root {
    --primary: #003366;
    --primary-dark: #002244;
    --secondary: #D4AF37;
    --accent: #F2994A;
    --white: #FFFFFF;
    --light: #F4F7FA;
    --grey: #7A8A9E;
    --dark: #1A2B3C;
    --border: #E1E8F0;
    --shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, .logo span {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOPBAR */
.topbar {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: inherit;
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition);
}

.topbar a:hover {
    color: var(--secondary);
}

.lang-sw {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

/* NAVIGATION */
nav {
    background: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo span {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.5px;
    white-space: nowrap;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

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

/* MOBILE MENU TOGGLE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-transform: none;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: var(--light);
}

/* HERO SECTION - HORIZONTAL SLIDER */
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
    background: var(--dark);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    width: 400%; /* 4 slides */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.slide {
    width: 25%; /* 1/4 of wrapper */
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Custom embedded cluster layout for Gıda Ambalajları */
.slide-bg-collage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at left center, #1b3a55 0%, var(--dark) 100%);
}

.images-cluster {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    z-index: 1;
}

.slide-bg-collage .cluster-item {
    position: relative !important;
    width: auto !important;
    height: 180px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4)) brightness(1) !important;
    transition: transform 0.4s ease;
}

.slide-bg-collage .cluster-item:hover {
    transform: scale(1.08) translateY(-5px) !important;
}

@media (max-width: 991px) {
    .images-cluster {
        width: 100%;
        right: auto;
        left: 0;
        transform: translate(0, -50%);
        gap: 15px;
        opacity: 0.4;
    }
    .slide-bg-collage .cluster-item { height: 90px !important; }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: var(--white);
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.9) 0%, transparent 80%);
    z-index: 20; /* Keep text always on top */
}

.slide-overlay .text-content {
    max-width: 700px;
}

.slide-overlay h2 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide-overlay p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* SLIDER CONTROLS */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.slider-btn.prev { left: 40px; }
.slider-btn.next { right: 40px; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--secondary);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-slider { height: 500px; }
    .slide-overlay h2 { font-size: 32px; }
    .slider-btn { display: none; }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    gap: 10px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #c5a02e;
    transform: translateY(-3px);
}

/* SECTION COMMON */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    background: rgba(0, 51, 102, 0.05);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.product-img {
    height: 180px;
    width: auto;
    aspect-ratio: 4/3;
    margin-bottom: 20px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    color: var(--grey);
}

/* STATS */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -1px;
    white-space: nowrap;
}

.stat-item p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 250px;
    margin: 0 auto;
}

/* FOOTER */
footer {
    background: #001a33;
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
}

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

.footer-info h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 13px;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    text-decoration: none;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(37, 211, 102, 0.45));
    transition: filter 0.25s, transform 0.25s;
}

.whatsapp-fixed .icon-box {
    display: block;
    width: 180px;
    height: 54px;
    background-image: url('images/whatsapp.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.whatsapp-fixed .icon-box svg,
.whatsapp-fixed .icon-box i {
    display: none;
}

.whatsapp-fixed span {
    display: none;
}

.whatsapp-fixed:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 22px rgba(37, 211, 102, 0.6));
}

@media (max-width: 768px) {
    .whatsapp-fixed {
        right: 16px;
        bottom: 16px;
    }
    .whatsapp-fixed .icon-box {
        width: 210px;
        height: 64px;
    }
    .stats {
        padding: 40px 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }
    .stat-item h3 {
        font-size: 28px;
    }
    .stat-item p {
        font-size: 11px;
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .topbar > .container > div:first-child {
        display: none;
    }

    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1002;
    }

    nav {
        position: fixed;
        top: 40px;
        left: 0;
        width: 100%;
        z-index: 1001;
    }

    body {
        padding-top: 130px;
    }

    .nav-links {
        position: fixed;
        top: 130px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        flex-direction: column;
        padding: 0 40px;
        transition: max-height 0.4s ease, padding 0.4s ease;
        z-index: 1000;
        gap: 20px;
        align-items: flex-start;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        max-height: 600px;
        padding: 30px 40px;
    }

    .nav-links a {
        font-size: 20px;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links a.btn {
        padding: 12px 24px;
        text-align: center;
        width: auto;
        display: inline-block;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        min-width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-trigger i {
        float: right;
    }
}

/* =============================================
   RESPONSIVE — MOBILE FIXES
   ============================================= */

/* Detail pages: image + content side-by-side → stack */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Vizyon-Misyon / Hakkımızda twin columns */
.twin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Blog: article + sidebar */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* About section: image + text side by side */
.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    max-width: 440px;
    width: 100%;
}

/* Corporate cards grid (hakkimizda) */
.corp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Contact section: info + map */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

/* Small 2-col stat boxes */
.stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stats-mini .stat-card {
    background: var(--light);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stats-mini .stat-card:hover {
    background: var(--white);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.stats-mini .stat-card h3 {
    font-size: 38px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1;
}

.stats-mini .stat-card p {
    font-size: 12px;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 768px) {
    /* Footer: 4 col → 2 col */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.3;
    }

    /* Detail page grids → single column */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-grid > div:first-child {
        order: 2;
    }

    .detail-grid > div:last-child {
        order: 1;
    }

    /* Twin grids → single column */
    .twin-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Blog grid → single column */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* About, corp cards, contact grids → single column */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-img {
        order: 2;
        text-align: center;
    }

    .about-img img {
        max-width: 280px;
        max-height: 260px;
        object-fit: contain;
    }

    .about-text {
        order: 1;
    }

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

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

/* Gallery Grid for Product Pages */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-content: start;
}

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

@media (max-width: 768px) {
    .responsive-about-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 600/440;
    }
}

@media (max-width: 480px) {
    /* Footer fully single column on very small screens */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }
}
