/*
Theme Name: Ideal Location
Theme URI: https://ideallocation.org
Author: Ideal Location
Description: Lightweight, modern theme for the Ideal Location ecosystem. No page builder, no legacy dependencies. PHP 8 ready.
Version: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ideallocation
*/

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:"Raleway",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:#020202;line-height:26px;font-size:16px;background:#fff;overflow-x:hidden}
img{max-width:100%;height:auto}
a{color:#5a7d2d}
h1,h2,h3,h4{font-weight:400;line-height:1.25;color:#2d5a3d}

/* ---------- header: transparent, sits ON TOP of the hero video ---------- */
.il-header{position:absolute;top:0;left:0;right:0;z-index:100;transition:background .3s,box-shadow .3s}
.il-header-inner{display:flex;align-items:center;justify-content:space-between;
  max-width:1300px;margin:0 auto;padding:18px 28px}
.il-logo img{height:56px;width:auto;display:block;transition:opacity .3s}
.il-logo img.il-logo-dark{display:none}
.il-header-tools{display:flex;align-items:center;gap:14px}
.il-icon{background:none;border:0;cursor:pointer;color:#fff;padding:8px;display:flex;
  align-items:center;justify-content:center;border-radius:6px}
.il-icon:hover{background:rgba(255,255,255,.12)}
.il-menu-toggle{flex-direction:column;gap:4px;width:38px}
.il-menu-toggle span{display:block;width:20px;height:2px;background:currentColor;transition:.25s}
.il-menu-toggle.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.il-menu-toggle.is-open span:nth-child(2){opacity:0}
.il-menu-toggle.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* once scrolled (or on pages with no hero) the header becomes solid */
.il-header.il-stuck,
body:not(.il-has-hero) .il-header{position:fixed;background:#fff;box-shadow:0 2px 18px rgba(0,0,0,.09)}
.il-header.il-stuck .il-logo img.il-logo-light,
body:not(.il-has-hero) .il-logo img.il-logo-light{display:none}
.il-header.il-stuck .il-logo img.il-logo-dark,
body:not(.il-has-hero) .il-logo img.il-logo-dark{display:block}
.il-header.il-stuck .il-icon,
body:not(.il-has-hero) .il-icon{color:#2d5a3d}
.il-header.il-stuck .il-icon:hover,
body:not(.il-has-hero) .il-icon:hover{background:rgba(45,90,61,.08)}
body:not(.il-has-hero) .il-main{padding-top:96px}

/* search + nav drawers */
.il-search{background:rgba(255,255,255,.97);border-top:1px solid #e6ece7;padding:16px 28px}
.il-search form{display:flex;gap:10px;max-width:1300px;margin:0 auto}
.il-search input{flex:1;padding:12px 14px;border:1px solid #cfd9d0;border-radius:8px;font-size:16px}
.il-search button{padding:12px 22px;border:0;border-radius:8px;background:#2d5a3d;color:#fff;font-weight:600;cursor:pointer}
.il-nav{position:fixed;top:0;right:0;bottom:0;width:320px;max-width:86vw;background:#12261a;z-index:99;
  padding:110px 30px 30px;overflow-y:auto}
.il-nav-list{list-style:none;margin:0;padding:0}
.il-nav-list li{margin:0 0 6px}
.il-nav-list a{display:block;color:#dfeadf;text-decoration:none;padding:12px 10px;border-radius:8px;font-size:17px}
.il-nav-list a:hover{background:rgba(255,255,255,.08);color:#fff}

/* ---------- content ---------- */
.il-main{min-height:50vh}
.il-page{max-width:none}          /* our components handle their own widths */
.il-content{max-width:960px;margin:0 auto;padding:60px 24px}
.il-page-title{max-width:960px;margin:0 auto;padding:120px 24px 0}
.il-page-title h1{font-size:clamp(28px,4vw,40px);margin:0}

/* ---------- footer ---------- */
.il-footer{background:#14251a;color:#c9d6ca;margin-top:60px}
.il-footer-cols{display:flex;flex-wrap:wrap;gap:40px;max-width:1300px;margin:0 auto;padding:64px 28px 40px}
.il-footer-col{flex:1 1 240px;min-width:0}
.il-footer h4{color:#fff;font-size:18px;margin:0 0 16px;font-weight:600}
.il-footer p{margin:0 0 8px}
.il-footer a{color:#a9dcb6;text-decoration:none}
.il-footer a:hover{color:#fff;text-decoration:underline}
.il-quick{list-style:none;margin:0;padding:0}
.il-quick li{margin:0 0 10px}
.il-footer-bottom{border-top:1px solid rgba(255,255,255,.1);text-align:center;padding:20px;font-size:14px}
.il-footer-bottom p{margin:0;color:#8fa891}

@media(max-width:860px){
  .il-logo img{height:42px}
  .il-header-inner{padding:14px 18px}
  .il-footer-cols{padding:44px 20px 30px;gap:28px}
}
.il-footer .menu,.il-footer ul{list-style:none;margin:0;padding:0}
.il-footer .menu li,.il-footer ul li{margin:0 0 10px}
.il-fw{margin-bottom:18px}
