/* ==========================================================
   WordPress Header Framework v2
   Author: ChatGPT + Rodel ðŸ˜„
   ========================================================== */


/* ==========================================================
   VARIABLES
   ========================================================== */

:root{
    --wf-header-height:80px;
    --wf-max-width:1100px;
    --wf-bg:#0F2A43;
    --wf-text:#fff;
    --wf-hover:#fff;
    --wf-border:#e5e7eb;
    --wf-shadow:0 8px 30px rgba(0,0,0,.08);
    --wf-radius:12px;
    --wf-speed:.30s;
}

/* ==========================================================
   RESET
   ========================================================== */
*,
*::before,
*::after{
    box-sizing:border-box;
}
.wf-header *,
.wf-mobile-nav *{
    margin:0;
    padding:0;
}

/* ==========================================================
   HEADER
   ========================================================== */
.wf-header{
    position:relative;
    width:100%;
    background:var(--wf-bg);
    border-bottom:none;
    z-index:1000;
}

/* Sticky (optional later) */
.wf-header.is-sticky{
    position:fixed;
    top:0;
    left:0;
    right:0;
    box-shadow:var(--wf-shadow);
}

/* ==========================================================
   CONTAINER
   ========================================================== */
.wf-container{
    max-width:var(--wf-max-width);
    height:var(--wf-header-height);
    margin:auto;
    padding:0 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* ==========================================================
   LOGO
  ========================================================== */
.wf-logo{
    display:flex;
    align-items:center;
}

.wf-logo img {
    display: block;
    width: 221px;
    height: auto;
    aspect-ratio: 921 / 217;
    max-width: 100%;
}

@media (max-width: 900px) {
    .wf-logo img {
        width: 190px;
        height: auto;
    }
}		


/* ==========================================================
   DESKTOP NAVIGATION
   ========================================================== */
.wf-nav{
    margin-left:auto;
}

.wf-menu{
    display:flex;
    align-items:center;
    list-style:none;
    gap:34px;
}

.wf-menu li{
    position:relative;
}

.wf-menu a{
    display:block;
    text-decoration:none;
    color:var(--wf-text);
    font-weight:600;
    transition:color var(--wf-speed);
    padding:30px 0;
}

.wf-menu a:hover{
    color:var(--wf-hover);
}

/* ==========================================================
   SUBMENU
   ========================================================== */
.wf-menu .sub-menu{
    position:absolute;
    left:0;
    top:100%;
    width:240px;
    list-style:none;
    background:var(--wf-bg);
    border-radius:var(--wf-radius);
    box-shadow:var(--wf-shadow);
    border:1px solid var(--wf-border);
    opacity:0;
    visibility:hidden;
    transform:translateY(15px);
    transition:all .25s ease;
    padding:12px 0;
    z-index:999;
}

.wf-menu li:hover>.sub-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.wf-menu .sub-menu li{
    width:100%;
}

.wf-menu .sub-menu a{
    padding:12px 20px;
}

/* ==========================================================
   HAMBURGER
   ========================================================== */
.wf-toggle{

    display:none;

    width:34px;

    height:34px;

    border:none;

    background:none;

    cursor:pointer;

    padding:0;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:4px;

}

.wf-toggle span{

    width:26px;

    height:2px;

    background:#fff;

    border-radius:3px;

    transition:.3s;

}


/* ==========================================================
   MOBILE MENU
   ========================================================== */

.wf-mobile-nav{

    position:fixed;

    top:0;

    left:-360px;

    width:320px;

    height:100vh;

    background:#0f2a43;

    z-index:3000;

    transition:left .35s ease;

    overflow-y:auto;

    box-shadow:var(--wf-shadow);

}

body.wf-menu-open .wf-mobile-nav{

    left:0;

}


/* ==========================================================
   MOBILE HEADER
   ========================================================== */

.wf-mobile-header{

    height:80px;

    padding:20px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    border-bottom:1px solid var(--wf-border);

}

.wf-mobile-logo img{

    max-height:42px;

}


/* ==========================================================
   CLOSE BUTTON
   ========================================================== */

.wf-close{

    font-size:34px;

    border:none;

    background:none;

    cursor:pointer;
    color: #fff;

}


/* ==========================================================
   MOBILE MENU ITEMS
   ========================================================== */

.wf-mobile-menu{

    list-style:none;

}

.wf-mobile-menu li{

    border-bottom:1px solid var(--wf-border);

}

.wf-mobile-menu a{
    display:block;
    padding:18px 22px;
    text-decoration:none;
    color:var(--wf-text);
    font-weight:600;
}

.wf-mobile-menu a:hover{
    color:#fff;
}

/* ==========================================================
   OVERLAY
   ========================================================== */

.wf-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:all .3s;

    z-index:2000;

}

body.wf-menu-open .wf-overlay{

    opacity:1;

    visibility:visible;

}


/* ==========================================================
   TABLET
   ========================================================== */

@media(max-width:991px){

    .wf-nav{

        display:none;

    }

    .wf-toggle{

        display:flex;

    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:767px){

    .wf-container{

        padding:0 18px;

    }


    .wf-mobile-nav{

        width:320px;

        max-width:85%;

        left:-100%;

    }

}

/* ==========================================================
   MOBILE SUBMENU
   ========================================================== */

.wf-mobile-menu .sub-menu{

    display:none;

    list-style:none;

    background:#f8f8f8;

}

.wf-mobile-menu .menu-item-has-children.open > .sub-menu{

    display:block;

}

.wf-mobile-menu .sub-menu a{

    padding-left:40px;

    font-size:1.4rem;
    background: #0f2a43;

}

/* Active menu item */

.wf-menu .current-menu-item > a,
.wf-menu .current_page_item > a,
.wf-menu .current-menu-ancestor > a{
    color:var(--wf-hover) !important;
    text-decoration: none !important;
}

.wf-menu .current-menu-item > a,
.wf-menu .current_page_item > a,
.wf-menu .current-menu-ancestor > a{
    color:var(--wf-text) !important;
    text-decoration: none !important;
}

/* ==========================================
   SUBMENU ARROWS
   ========================================== */

.wf-menu .menu-item-has-children > a,
.wf-mobile-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 24px;
}

/* Desktop arrow */
.wf-menu .menu-item-has-children > a::after {

    content: "";

    position: absolute;

    right: 0;

    top: 50%;

    width: 7px;

    height: 7px;

    border-right: 2px solid currentColor;

    border-bottom: 2px solid currentColor;

    transform: translateY(-60%) rotate(45deg);

    transition: transform .3s ease;

}

/* Rotate on hover */
.wf-menu .menu-item-has-children:hover > a::after {

    transform: translateY(-40%) rotate(-135deg);

}

.wf-mobile-menu .menu-item-has-children > a::after {

    content: "";

    position: absolute;

    right: 22px;

    top: 50%;

    width: 8px;

    height: 8px;

    border-right: 2px solid #ffffff;

    border-bottom: 2px solid #ffffff;

    transform: translateY(-50%) rotate(45deg);

    transition: .3s ease;

}

.wf-mobile-menu .menu-item-has-children.open > a::after {

    transform: translateY(-30%) rotate(-135deg);

}

/* Global link hover (excludes header nav, which has its own hover color) */
a:not(.wf-menu a):not(.wf-mobile-menu a):focus,
a:not(.wf-menu a):not(.wf-mobile-menu a):hover {
    color: #2f6f5e;
    text-decoration: none !important;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero{
    background:var(--wf-bg);
    text-align:center;
    padding:60px 20px 120px;
}

.hero .wrap{
    max-width:700px;
    margin:auto;
}

.hero h1{
    color:#fff;
    font-size:40px;
    font-weight:700;
    margin-bottom:16px;
}

.hero p{
    color:#fff;
    font-size:16px;
    line-height:1.6;
    margin:0;
}

/* ==========================================================
   FILTER BOX (overlaps hero bottom edge)
   ========================================================== */
.filter-box{
    background:#fff;
    max-width:900px;
    margin:-10px auto 0;
    padding:10px 20px;
    border-radius:5px;
    box-shadow:var(--wf-shadow);
    display:flex;
    gap:24px;
    position:relative;
    z-index:2;
}

.filter-box .filter-item{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.filter-box label{
    font-weight:600;
    font-size:12px;
    color:var(--wf-bg);
}

.filter-box select{
    font-size:14px;
    padding:10px 14px;
    border:1px solid var(--wf-border);
    border-radius:5px;
    min-width:160px;
}

/* ==========================================================
   HERO / FILTER BOX — MOBILE
   ========================================================== */
@media(max-width:767px){
    .hero h1{
        font-size:28px;
    }
    .filter-box{
        flex-direction:column;
        margin:-40px 16px 0;
    }
}

.filter-reset{
    justify-content:flex-end;
}

.reset-filters{
    display:inline-block;
    font-size:13px;
    font-weight:600;
    color:#fff;
    text-decoration:underline;
    align-self:flex-end;
    padding-bottom:11px; /* aligns roughly with select bottom */
    background: #2b6cb0;
    width: 100px;
    text-align: center;
    padding: 11px 0;
    border-radius: 5px;
    text-decoration: none;
}

.reset-filters:hover{
    color:#fff !important;
}

@media(max-width:767px){
    .filter-reset{
        justify-content:flex-start;
    }
    .reset-filters{
        padding-bottom:0;
    }
}

.filter-box--slider {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-end;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 20px 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filter-item--slider {
	flex: 1 1 200px;
	min-width: 180px;
}

.filter-item--slider label {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.filter-value {
	font-weight: 500;
	color: #0a66c2; /* swap for your brand accent */
}

.filter-item--slider input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 4px;
	background: #e2e8f0;
	outline: none;
}

.filter-item--slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0a66c2;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.25);
	cursor: pointer;
}

.filter-item--slider input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0a66c2;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.25);
	cursor: pointer;
}

.filter-reset {
	flex: 0 0 auto;
}

.reset-filters {
	display: inline-block;
	padding: 8px 14px;
	font-size: 13px;
	color: #0a66c2;
	text-decoration: none;
	border: 1px solid #0a66c2;
	border-radius: 6px;
}
.reset-filters:hover {
	background: #0a66c2;
	color: #fff;
}
