/*
Theme Name: Bupat Custom Theme
Theme URI: https://godigital.com.tr
Description: Bupat Ltd. Şti. için Go Digital tarafından sıfırdan geliştirilmiş özel, yüksek performanslı ve modern kurumsal WordPress teması.
Author: Go Digital
Author URI: https://godigital.com.tr
Version: 1.0.0
Text Domain: bupat
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* --- Base Theme Styling & Design System --- */
:root {
    /* Color Palette */
    --color-primary: #0a1128;      /* Deep Navy (Savunma & Havacılık) */
    --color-primary-light: #1c2541;/* Slate Navy */
    --color-accent: #ff5e14;       /* Brand Amber/Orange (CTA & Highlights) */
    --color-accent-hover: #e04f0f;
    --color-accent-light: #ffebd9;
    --color-bg-dark: #070a13;      /* Dark backgrounds */
    --color-bg-light: #f4f6f9;     /* Light grey backgrounds */
    --color-white: #ffffff;
    --color-text-dark: #1e293b;    /* Body text on light */
    --color-text-muted: #64748b;   /* Muted text */
    --color-text-light: #f8fafc;   /* Body text on dark */
    --color-border: #e2e8f0;
    
    /* Layout & Fonts */
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-grow: 1;
}

.site-main, main, #content, .site-content, .brand-detail-page, .category-detail-page, .stoktan-teslim-page, .partners-page-wrapper, .contact-page-wrapper, .brands-page-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.site-footer {
    margin-top: auto;
}

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

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography helper classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 20, 0.35);
}

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Mobile Submenu Accordion Toggle Styling */
@media (max-width: 992px) {
    .main-navigation li.menu-item-has-children, 
    .main-navigation li.menu-item-mega {
        position: relative;
    }
    
    .submenu-toggle-btn {
        position: absolute;
        right: 0;
        top: 2px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--color-primary);
        z-index: 10;
        transition: var(--transition);
        border-radius: 50%;
    }
    
    .submenu-toggle-btn:hover {
        color: var(--color-accent);
        background-color: var(--color-bg-light);
    }
    
    .submenu-toggle-btn i {
        font-size: 13px;
        transition: var(--transition);
    }
    
    .submenu-toggle-btn.active i {
        transform: rotate(180deg);
        color: var(--color-accent);
    }
    
    .main-navigation ul ul {
        display: none; /* Collapsed by default on mobile */
    }
    
    .main-navigation ul li.menu-item-mega > ul.sub-menu {
        display: none; /* Collapsed by default on mobile, let JS toggle it */
    }
}
