﻿/*
Theme Name: MarangozTezgahi Retro-Modern
Theme URI: http://www.muratserdar.com
Author: Murat Serdar
Description: A modern take on the classic 2015 design. Solid, durable, and responsive.
Version: 4.0
*/

:root {
    /* Brand Colors (Classic) */
    --bg-dark: #2c3e50;
    /* Main Background - Dark Blue/Grey */
    --accent-orange: #d64e07;
    /* Primary Accent - Burnt Orange */
    --accent-blue: #18557D;
    /* Secondary Accent - Deep Blue */
    --text-white: #ffffff;
    --text-off-white: #ecf0f1;
    --text-dark: #333333;

    /* UI Elements */
    --border-radius: 4px;
    /* Small radius for a "solid" feel */
    --shadow-solid: 0 4px 0 rgba(0, 0, 0, 0.2);
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - Solid Block */
.site-header {
    background: var(--accent-orange);
    border-bottom: 4px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img {
    height: 60px;
    background: white;
    padding: 5px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-solid);
}

/* Navigation - Solid Blue Blocks */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    background: var(--accent-blue);
    color: var(--text-white);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
    background: #134466;
    /* Darker Blue */
    transform: translateY(2px);
    box-shadow: none;
}

/* Hero Slider */
.hero-slider-section {
    background: var(--bg-dark);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.splide__slide {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 4px solid var(--text-white);
}

.slide-bg {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.slide-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    /* Dark Blue Overlay */
    padding: 2rem;
    border-top: 4px solid var(--accent-orange);
}

.slide-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
}

.slide-desc {
    font-size: 1.1rem;
    color: var(--text-off-white);
}

/* Section Styling - Solid Blocks */
.section-about,
.section-products {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--accent-orange);
    border-radius: var(--border-radius);
    border-bottom: 4px solid rgba(0, 0, 0, 0.2);
    color: var(--text-white);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    display: inline-block;
    color: var(--text-white);
}

/* Content Box Styles (Fixing Contrast) */
.content-box,
.about-text {
    background: white;
    /* Keep white card for readability */
    color: var(--text-dark);
    /* Ensure text is dark on white bg */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-solid);
    font-size: 1.1rem;
}

.content-box p,
.about-text p {
    margin-bottom: 1rem;
}

/* Product Grid & Gallery */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

/* Single Product Gallery specific */
.product-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Smaller items for gallery */
}

.card {
    background: var(--text-white);
    /* White Card */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-solid);
    transition: transform 0.2s ease;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-blue);
    position: relative;
    background: #f1f1f1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Overlay - Zoom Icon */
.card-image a {
    display: block;
    height: 100%;
    position: relative;
}

.card-image a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.card-image a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-image:hover a::after {
    transform: translate(-50%, -50%) scale(1);
}

.card-image:hover a::before {
    opacity: 1;
}

.card-content {
    padding: 1rem;
    text-align: center;
}

.card-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.card-title a {
    color: var(--accent-blue);
}

/* Buttons */
.button-primary {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--text-white);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 0 #0f3550;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.button-primary:hover {
    background: #206da0;
    transform: translateY(1px);
    box-shadow: 0 2px 0 #0f3550;
    color: white;
}

/* Footer - Solid Block */
.site-footer {
    background: #1a252f;
    /* Darker than BG */
    color: var(--text-off-white);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 5px solid var(--accent-orange);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-widget h4 {
    color: var(--accent-orange);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.footer-menu li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Mobile */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* Add toggle logic if needed, but keeping simple for now */
    }

    .slide-bg {
        height: 300px;
    }

    .slide-content-wrapper {
        position: relative;
    }

    .section-about,
    .section-products {
        padding: 1.5rem;
    }

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