/*
Theme Name: Elbay
Theme URI: https://wordpress.org/themes/elbay/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A simple and clean theme with editable homepage sections and theme options.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elbay
*/

/* --- General Body & Layout --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px; /* Increased max-width for better spacing */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* This is the key flex container for the logo/nav split */
.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left Side: Logo and Site Title */
.site-logo-container {
    flex-shrink: 0; /* Prevents logo from shrinking */
}

.custom-logo {
    max-height: 60px; /* Control logo height */
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 1.8em;
}
.site-title a {
    text-decoration: none;
    font-weight: 700;
    color: #222;
}

.site-description {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

/* Right Side: Navigation Group */
.header-navigation-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Desktop Navigation Menu */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center; /* Vertically align menu items */
}

.main-navigation li {
    margin: 0 12px;
}

.main-navigation a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Header Nav Button (CTA) */
.main-navigation .menu-item.menu-button a {
    background-color: #0073aa;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-navigation .menu-item.menu-button a:hover {
    background-color: #005a87;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Mobile Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    width: 25px;
    height: 20px;
    position: relative;
    cursor: pointer;
}
.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    background: #333;
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}
.hamburger { top: 8px; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* --- Mobile Slide-Out Menu --- */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #222;
    padding: 60px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
    overflow-y: auto;
}
.side-menu-navigation ul { list-style: none; padding: 0; margin: 0; }
.side-menu-navigation li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 12px 10px;
    font-size: 1.1em;
    border-bottom: 1px solid #444;
}
.side-menu-navigation li a:hover { background: #333; }
.side-menu .menu-item.menu-button a {
    background-color: #0073aa;
    color: #ffffff;
    text-align: center;
    margin: 15px 10px 0;
    border-radius: 5px;
    border-bottom: none;
}
.side-menu .menu-item.menu-button a:hover { background-color: #005a87; }
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.side-menu-open .side-menu { transform: translateX(0); }
body.side-menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.side-menu-open .hamburger { background: transparent; }
body.side-menu-open .hamburger::before { transform: rotate(45deg); top: 0; }
body.side-menu-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

/* --- Main Content & Homepage Sections --- */
.site-content { padding: 40px 0; }
.hero-section {
    background: #0073aa;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}
/* ... other section styles here ... */

/* --- Footer --- */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}
/* ... other footer styles here ... */

/* --- Responsive Styles --- */
@media (max-width: 900px) {
    /* Main responsive breakpoint for navigation */
    .main-navigation {
        display: none; /* Hide desktop menu */
    }
    .menu-toggle {
        display: block; /* Show hamburger */
    }
}