
/*
Theme Name: Blissful Independent Living
Theme URI: https://example.com/blissful-independent-living-theme
Author: ChatGPT
Author URI: https://openai.com
Description: Accessible community living theme with Customizer controls for hero, services, amenities, menus, logo toggle, and colors. Mobile hamburger menu included.
Version: 3.6.1
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bil-theme
Tags: custom-colors, custom-logo, custom-menu, one-column, responsive-layout
*/

:root{
  --blue-50:#f0f6ff;
  --primary:#246fe6;
  --accent:#6ea6ff;
  --footer-bg:#0b1a33;
  --ink-900:#0f172a;
  --ink-700:#334155;
  --ink-500:#64748b;
  --radius:18px;
  --shadow:0 10px 25px rgba(0,0,0,.08);
  --max:1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;color:var(--ink-900);background:var(--blue-50)}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

/* Header */
header.site-header{background:rgba(255,255,255,.85);border-bottom:1px solid #e5eaf3;backdrop-filter:saturate(180%) blur(10px);position:sticky;top:0;z-index:1000}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}

/* Brand (no nested anchors) */
.brand{display:flex;align-items:center;gap:12px}
.brand .custom-logo-link{display:flex;align-items:center;justify-content:flex-start}
.brand img.custom-logo{height:48px;width:auto;display:block;margin:0}
.brand .brand-link{display:flex;align-items:center}
.brand .logo-box{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--primary));display:grid;place-items:center;color:#fff;font-weight:800;box-shadow:var(--shadow)}
.brand .name{font-weight:800;margin:0}

/* Hamburger button */
.hamburger{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #e6edff;border-radius:10px;background:#fff;cursor:pointer}
.hamburger span{position:relative;display:block;width:22px;height:2px;background:var(--ink-900)}
.hamburger span::before,.hamburger span::after{content:"";position:absolute;left:0;width:22px;height:2px;background:var(--ink-900);transition:.2s}
.hamburger span::before{top:-6px}
.hamburger span::after{top:6px}
.hamburger[aria-expanded="true"] span{background:transparent}
.hamburger[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.hamburger[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}

/* Collapsible nav */
.site-menu-wrap{display:flex;align-items:center;gap:16px}
.site-menu{display:flex;gap:16px;flex-wrap:wrap}
.site-menu li{list-style:none}
@media (max-width: 900px){
  .site-menu-wrap{position:fixed;inset:60px 0 auto 0;background:#fff;border-top:1px solid #e5eaf3;box-shadow:0 10px 25px rgba(0,0,0,.08);display:none;flex-direction:column;padding:16px 20px;z-index:999}
  .site-menu-wrap.open{display:flex}
  .site-menu{flex-direction:column;gap:8px}
  .hamburger{display:flex}
}

/* Buttons */
.btn{border:0;border-radius:999px;padding:12px 18px;font-weight:700;cursor:pointer;box-shadow:var(--shadow);transition:.2s;background:var(--primary);color:#fff;display:inline-block}
.btn.ghost{background:#fff;color:var(--primary);border:1px solid #e6edff}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

/* Hero */
.hero{background:linear-gradient(180deg,rgba(62,129,255,.15),rgba(62,129,255,.05));padding:48px 0;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;inset:0;opacity:.25;background-size:cover;background-position:center;pointer-events:none} /* CTA fix */
.hero .hero-wrap{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;z-index:1} /* ensure above overlay */
.headline{font-size:clamp(28px,4vw,44px);line-height:1.1;margin:14px 0}
.sub{font-size:18px;color:var(--ink-700)}
.hero-img{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);min-height:280px;background-size:cover;background-position:center}

/* Sections */
.section{padding:48px 0}
.card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:0;overflow:hidden}
.card .inner{padding:24px}
.card h3{color:var(--primary);margin:0 0 8px}
.card p{margin:0;color:var(--ink-700);display:block}
.card img{display:block;width:100%;height:180px;object-fit:cover}
.three-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-top:32px}
.amenities-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:24px}
.amenities-grid .card img{height:140px}

/* Refer Band */
.band{background:linear-gradient(135deg,#dcecff,#ffffff);border-top:1px solid #e5eaf3;border-bottom:1px solid #e5eaf3}
.band .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:28px 0}
.band h3{margin:0;font-size:clamp(18px,2.6vw,24px)}

/* Footer */
.footer{padding:28px 0;color:#e6eefc;border-top:1px solid #e5eaf3;text-align:center;background:var(--footer-bg)}
.footer a{color:#ffffff}
.footer-menu{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.footer-menu li{list-style:none}
.footer-menu li a{padding:8px 10px;display:inline-block}

/* Desktop-only: align logo far left by removing container left padding */
@media (min-width: 901px){
  header.site-header .container{padding-left:0}
  header.site-header .brand,
  header.site-header .custom-logo-link,
  header.site-header .logo-box{margin-left:0}
}

/* Smooth anchor scrolling */
html{scroll-behavior:smooth}

/* Mobile polish */
img{max-width:100%;height:auto}
@media (max-width:720px){
  .brand .name{font-size:16px}
}
