/*
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.5
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:#1a1a1a;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:#283891}

/* ---------- 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}
/* Edward Abbey parallax quote: smaller than section headers, balanced wrapping */
.ile-px-content h1.ile-abbey{font-size:clamp(22px,2.8vw,34px);line-height:1.3;margin:0 0 6px}
.ile-px-content h1.ile-abbey-long{max-width:880px;margin:14px auto 16px;text-wrap:balance}

/* hero video credit: tight under the video, right edge */
.ile-credit{text-align:right;padding:6px 28px 0;margin:0;font-size:12px;color:#8a93a8;line-height:1.4}
.ile-credit a{color:#8a93a8;text-decoration:none}
.ile-credit a:hover{color:#2d5a3d;text-decoration:underline}
          /* components handle their own widths */
/* raw text in page content gets a readable column - full width is for maps and parallax only */
.il-page > p,
.il-page > h1, .il-page > h2, .il-page > h3, .il-page > h4, .il-page > h5, .il-page > h6,
.il-page > ul, .il-page > ol, .il-page > blockquote, .il-page > figure, .il-page > table,
.il-page > .wp-block-image, .il-page > .wp-block-embed{
  max-width:900px; margin-left:auto; margin-right:auto; padding-left:24px; padding-right:24px;
}
.il-page > p:first-child{padding-top:20px}
.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 ---------- */
/* footer: white, with the logo blue for headings and links */
.il-footer{background:#fff;color:#5b6478;margin-top:60px;border-top:1px solid #e4e8f2}
.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:#2d5a3d;font-size:18px;margin:0 0 16px;font-weight:700}
.il-footer p{margin:0 0 8px;color:#5b6478}
.il-footer a{color:#283891;text-decoration:none}
.il-footer a:hover{color:#1d2a6e;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 #e4e8f2;text-align:center;padding:20px;font-size:14px}
.il-footer-bottom p{margin:0;color:#8a93a8}
/* the globe wordmark in the About Us column */
.il-footer-quote{font-style:italic;color:#2d5a3d;font-size:16px;margin:10px 0 0;max-width:250px;text-align:center}
.il-footer-mark{margin-top:22px}
.il-footer-mark img{max-width:250px;width:100%;height:auto;display:block}

@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-footer .menu a,.il-footer ul a{color:#283891}
.il-fw{margin-bottom:18px}
