/*
Theme Name:		 Ecoscaping Theme
Theme URI:		 http://childtheme-generator.com/
Description:	 Ecoscaping Theme is a child theme of Hello Elementor, created by ChildTheme-Generator.com
Author:			 Chan Inthisone
Author URI:		 http://childtheme-generator.com/
Template:		 hello-elementor
Version:		 1.0.0
Text Domain:	 ecoscaping-theme
*/


/*
    Add your custom styles here
*/

/* ============================================
   CUSTOM HEADER - CSS Variables
   ============================================ */
:root {
    --eco-red: #C10000;
    --eco-red-dark: #9a0000;
    --eco-green: #215324;
    --eco-dark: #1a1a1a;
    --eco-gray: #373737;
    --eco-white: #ffffff;
    --eco-font-heading: 'Oswald', sans-serif;
    --eco-font-body: 'Quicksand', sans-serif;
}

/* ============================================
   TWO-ROW HEADER LAYOUT
   ============================================ */
.eco-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

body.admin-bar .eco-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .eco-header {
        top: 46px;
    }
}

.eco-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Top Row: Logo + Actions */
.eco-header-top {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.eco-header-top .eco-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.eco-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.eco-header-logo img {
    max-height: 55px;
    width: auto;
}

/* Logo swap for transparent header */
.eco-header--transparent .eco-logo-dark {
    display: none;
}

.eco-header--transparent .eco-logo-white {
    display: block;
}

.eco-header--transparent.eco-header-scrolled .eco-logo-dark {
    display: block;
}

.eco-header--transparent.eco-header-scrolled .eco-logo-white {
    display: none;
}

.eco-site-title {
    font-family: var(--eco-font-heading);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Actions (phone + CTA) */
.eco-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.eco-header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--eco-font-heading);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.eco-header-phone svg {
    flex-shrink: 0;
}

.eco-header-cta {
    font-family: var(--eco-font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 12px 28px;
    background: var(--eco-red);
    color: var(--eco-white) !important;
    transition: all 0.2s ease;
}

.eco-header-cta:hover {
    background: var(--eco-red-dark);
    color: var(--eco-white) !important;
}

/* Bottom Row: Navigation */
.eco-header-nav-row {
    background: rgba(0,0,0,0.2);
}

.eco-header-nav {
    display: flex;
    justify-content: center;
}

.eco-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.eco-nav-menu li {
    position: relative;
}

.eco-nav-menu > li > a {
    font-family: var(--eco-font-heading);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 16px 28px;
    display: block;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.eco-nav-menu > li > a:hover,
.eco-nav-menu > li.current-menu-item > a {
    border-bottom-color: var(--eco-red);
}

/* Dropdown */
.eco-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--eco-white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.eco-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eco-nav-menu .sub-menu a {
    font-family: var(--eco-font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    color: var(--eco-gray) !important;
    padding: 12px 20px;
    display: block;
    border-bottom: none;
}

.eco-nav-menu .sub-menu a:hover {
    background: #f5f5f5;
    color: var(--eco-red) !important;
}

/* Mobile Toggle - Hamburger */
.eco-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
}

.eco-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.eco-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ============================================
   STYLE 1: Transparent Hero
   ============================================ */
.eco-header--transparent {
    background: transparent;
}

.eco-header--transparent .eco-header-top {
    border-bottom-color: rgba(255,255,255,0.15);
}

.eco-header--transparent .eco-site-title,
.eco-header--transparent .eco-nav-menu > li > a,
.eco-header--transparent .eco-header-phone {
    color: var(--eco-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.eco-header--transparent .eco-header-phone svg {
    stroke: var(--eco-white);
}

.eco-header--transparent .eco-nav-menu > li > a:hover {
    color: var(--eco-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.eco-header--transparent .eco-menu-toggle {
    border-color: var(--eco-white);
    color: var(--eco-white);
}

.eco-header--transparent .eco-menu-toggle span {
    background: var(--eco-white);
}

/* Scrolled state */
.eco-header--transparent.eco-header-scrolled {
    background: var(--eco-white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.eco-header--transparent.eco-header-scrolled .eco-header-top {
    border-bottom-color: rgba(0,0,0,0.08);
}

.eco-header--transparent.eco-header-scrolled .eco-header-nav-row {
    background: #f8f8f8;
}

.eco-header--transparent.eco-header-scrolled .eco-site-title,
.eco-header--transparent.eco-header-scrolled .eco-nav-menu > li > a,
.eco-header--transparent.eco-header-scrolled .eco-header-phone {
    color: var(--eco-gray);
    text-shadow: none;
}

.eco-header--transparent.eco-header-scrolled .eco-header-phone svg {
    stroke: var(--eco-gray);
}

.eco-header--transparent.eco-header-scrolled .eco-nav-menu > li > a:hover {
    color: var(--eco-red);
}

.eco-header--transparent.eco-header-scrolled .eco-menu-toggle {
    border-color: var(--eco-gray);
    color: var(--eco-gray);
}

.eco-header--transparent.eco-header-scrolled .eco-menu-toggle span {
    background: var(--eco-gray);
}

/* ============================================
   STYLE 2: Clean Modern (Light)
   ============================================ */
.eco-header--light {
    background: var(--eco-white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.eco-header--light .eco-header-top {
    border-bottom-color: rgba(0,0,0,0.08);
}

.eco-header--light .eco-header-nav-row {
    background: #f8f8f8;
}

.eco-header--light .eco-site-title,
.eco-header--light .eco-nav-menu > li > a,
.eco-header--light .eco-header-phone {
    color: var(--eco-gray);
}

.eco-header--light .eco-header-phone svg {
    stroke: var(--eco-gray);
}

.eco-header--light .eco-nav-menu > li > a:hover,
.eco-header--light .eco-header-phone:hover {
    color: var(--eco-red);
}

.eco-header--light .eco-header-phone:hover svg {
    stroke: var(--eco-red);
}

.eco-header--light .eco-menu-toggle {
    border-color: var(--eco-gray);
    color: var(--eco-gray);
}

.eco-header--light .eco-menu-toggle span {
    background: var(--eco-gray);
}

.eco-header--light.eco-header-scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

/* ============================================
   STYLE 3: Bold Dark
   ============================================ */
.eco-header--dark {
    background: var(--eco-dark);
}

.eco-header--dark .eco-header-top {
    border-bottom-color: rgba(255,255,255,0.1);
}

.eco-header--dark .eco-header-nav-row {
    background: rgba(255,255,255,0.05);
}

.eco-header--dark .eco-site-title,
.eco-header--dark .eco-nav-menu > li > a,
.eco-header--dark .eco-header-phone {
    color: var(--eco-white);
}

.eco-header--dark .eco-header-phone svg {
    stroke: var(--eco-white);
}

.eco-header--dark .eco-nav-menu > li > a:hover {
    color: var(--eco-red);
}

.eco-header--dark .eco-header-phone:hover {
    color: var(--eco-red);
}

.eco-header--dark .eco-header-phone:hover svg {
    stroke: var(--eco-red);
}

.eco-header--dark .eco-menu-toggle {
    border-color: var(--eco-white);
    color: var(--eco-white);
}

.eco-header--dark .eco-menu-toggle span {
    background: var(--eco-white);
}

.eco-header--dark.eco-header-scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ============================================
   MOBILE STYLES
   ============================================ */
@media screen and (max-width: 1024px) {
    .eco-header-nav-row {
        display: none;
    }

    .eco-header-phone span {
        display: none;
    }

    .eco-header-phone {
        padding: 8px;
    }

    .eco-menu-toggle {
        display: flex;
    }

    .eco-header-actions {
        gap: 12px;
    }

    .eco-header-cta {
        padding: 10px 18px;
        font-size: 12px;
    }
}

@media screen and (max-width: 600px) {
    .eco-header-cta {
        display: none;
    }

    .eco-header-logo img {
        max-height: 45px;
    }
}

/* Mobile Menu */
.eco-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--eco-dark);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding-top: 100px;
    overflow-y: auto;
}

body.admin-bar .eco-mobile-menu {
    padding-top: 132px;
}

.eco-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.eco-mobile-menu-inner {
    padding: 20px 30px;
}

.eco-mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eco-mobile-nav-menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Parent menu items with submenus */
.eco-mobile-nav-menu > li.menu-item-has-children {
    position: relative;
}

.eco-mobile-nav-menu > li.menu-item-has-children > a {
    padding-right: 50px;
}

/* Toggle button for submenus */
.eco-submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 54px;
    background: rgba(255,255,255,0.05);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 300;
    transition: all 0.2s ease;
}

.eco-submenu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.eco-submenu-toggle::before {
    content: '+';
    color: #ffffff;
}

.eco-submenu-toggle.active {
    background: var(--eco-red);
}

.eco-submenu-toggle.active::before {
    content: '−';
    color: #ffffff;
}

/* Menu links */
.eco-mobile-nav-menu > li > a {
    display: block;
    padding: 16px 0;
    font-family: var(--eco-font-heading);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--eco-white) !important;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.eco-mobile-nav-menu > li > a:hover {
    color: var(--eco-red) !important;
}

/* Submenus - hidden by default */
.eco-mobile-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.eco-mobile-nav-menu .sub-menu.active {
    max-height: 500px;
}

.eco-mobile-nav-menu .sub-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.eco-mobile-nav-menu .sub-menu li:last-child {
    border-bottom: none;
}

.eco-mobile-nav-menu .sub-menu a {
    display: block;
    font-family: var(--eco-font-body);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
}

.eco-mobile-nav-menu .sub-menu a:hover {
    color: var(--eco-red) !important;
    background: rgba(255,255,255,0.05);
}

.eco-mobile-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eco-mobile-phone,
.eco-mobile-cta {
    display: block;
    text-align: center;
    padding: 16px 24px;
    font-family: var(--eco-font-heading);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
}

.eco-mobile-phone {
    background: transparent;
    border: 2px solid var(--eco-white);
    color: #ffffff !important;
}

.eco-mobile-phone:hover {
    background: var(--eco-white);
    color: var(--eco-dark) !important;
}

.eco-mobile-cta {
    background: var(--eco-red);
    color: #ffffff !important;
}

.eco-mobile-cta:hover {
    background: var(--eco-red-dark);
}

/* Toggle animation - X shape when active */
.eco-menu-toggle.active {
    border-color: var(--eco-white);
}

.eco-menu-toggle.active span {
    background: var(--eco-white) !important;
}

.eco-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.eco-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.eco-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Body offset for fixed header */
body.eco-has-custom-header {
    padding-top: 110px;
}

body.eco-has-custom-header.eco-header-transparent-style {
    padding-top: 0;
}

/* Prevent scroll when menu is open */
body.eco-menu-open {
    overflow: hidden;
}
