/*
Theme Name: Bagatelle Energy
Theme URI: https://bagatelleenergy.com.au/
Description: Modern B2B theme for Bagatelle Energy — solar installation delivery.
Version: 3.0
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --black:       #111111;
  --dark:        #1d2329;
  --grey:        #666666;
  --grey-light:  #999999;
  --light:       #f6f6f6;
  --border:      #dddddd;
  --orange:      #ff6a00;
  --orange-dark: #e05c00;
  --orange-glow: rgba(255,106,0,.14);
  --white:       #ffffff;
  --text:        #111111;
  --max:         1200px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(17,17,17,.06);
  --shadow-md:   0 8px 28px rgba(17,17,17,.10);
  --shadow-lg:   0 20px 60px rgba(17,17,17,.14);
  --transition:  0.2s ease;
}

/* ============================================================
   BAGATELLE FAMILY REFRESH — HOME-ALIGNED DESIGN SYSTEM
   ============================================================ */
:root {
  --ink:#1D1D1F;
  --ink-2:#494B50;
  --ink-3:#6E7178;
  --paper:#ffffff;
  --surface:#F5F5F7;
  --surface-2:#EFEFF2;
  --hair:#D9DBDF;
  --hair-soft:#E8E9EC;
  --sand:#EADFCB;
  --head:'Poppins','Avenir Next',system-ui,sans-serif;
  --body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body { color:var(--ink-2); background:var(--paper); font-family:var(--body); font-size:17px; line-height:1.6; }
h1,h2,h3,h4 { font-family:var(--head); color:var(--ink); letter-spacing:-.028em; }
.site-header.no-hero { position:sticky; top:0; background:rgba(255,255,255,.88); backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px); box-shadow:none; border-bottom:1px solid var(--hair-soft); }
.header-inner { height:auto; min-height:64px; padding:10px 0; }
.brand-wordmark { display:flex; align-items:center; gap:.55rem; text-decoration:none; flex:0 0 auto; }
.brand-wordmark .brand-mark { width:34px; height:34px; flex:0 0 auto; }
.brand-wordmark .wordmark { display:flex; flex-direction:column; line-height:1; font-family:var(--head); }
.brand-wordmark .wordmark b { font-size:.98rem; letter-spacing:.01em; color:var(--ink); font-weight:700; }
.brand-wordmark .wordmark i { font-size:.66rem; letter-spacing:.30em; color:var(--orange); font-style:normal; font-weight:600; margin-top:.2rem; }
.site-nav { gap:1.35rem; }
.site-nav a { color:var(--ink-2); font-size:.88rem; font-weight:500; }
.site-nav a:hover { color:var(--ink); }
.header-cta { border-radius:10px; padding:10px 16px; color:#fff!important; }
.energy-home-main { max-width:76rem; margin:0 auto; padding:2.2rem 1.5rem 6rem; }
.energy-hero { display:grid; grid-template-columns:.78fr 1.22fr; align-items:stretch; min-height:27rem; border-radius:20px; overflow:hidden; background:linear-gradient(135deg,#fff 0%,#fbfaf7 100%); box-shadow:0 18px 55px rgba(26,26,26,.08); margin:.5rem 0 1.5rem; }
.energy-hero-copy { padding:2.2rem 2.6rem; display:flex; flex-direction:column; justify-content:center; }
.energy-eyebrow,.section__label { font-family:var(--head); text-transform:uppercase; letter-spacing:.13em; font-size:.68rem; font-weight:700; color:var(--orange); margin:0 0 .7rem; }
.energy-hero h1 { font-size:clamp(2.15rem,3.6vw,3.35rem); line-height:1.02; margin:0 0 1rem; text-wrap:balance; }
.energy-hero h1 span { color:var(--ink); }
.energy-hero-points { font-size:.95rem; line-height:1.45; color:var(--ink-2); margin:0 0 .9rem; font-weight:600; }
.energy-lede { font-size:.93rem; line-height:1.55; max-width:31rem; margin:0 0 1.2rem; color:var(--ink-3); }
.energy-hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.9rem 1.1rem; }
.energy-cta { display:inline-flex; align-items:center; justify-content:center; gap:.7rem; min-height:2.8rem; padding:.68rem 1rem; text-decoration:none; background:var(--orange); color:#fff; font-weight:650; border-radius:10px; box-shadow:0 8px 24px rgba(255,106,0,.18); }
.energy-cta:hover { color:#fff; transform:translateY(-1px); }
.energy-text-link { display:inline-flex; gap:.45rem; align-items:center; color:var(--ink-2); font-size:.82rem; font-weight:600; text-decoration:none; }
.energy-text-link:hover { color:var(--orange); }
.energy-hero-media { margin:0; min-height:27rem; overflow:hidden; background:var(--sand); }
.energy-hero-media img { width:100%; height:100%; display:block; object-fit:cover; object-position:center; }
.energy-intro { padding:5rem 0 4rem; }
.energy-intro-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:5rem; align-items:start; }
.energy-intro-grid h2 { font-size:clamp(2rem,3.2vw,3rem); line-height:1.08; margin:0; }
.energy-intro-grid p { margin:0 0 1rem; color:var(--ink-2); }
.energy-capability-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-top:3rem; }
.energy-capability-grid article { position:relative; background:linear-gradient(145deg,#fff 0%,#fafaf9 100%); padding:1.55rem 1.5rem 1.65rem; min-height:13rem; border:1px solid var(--hair-soft); border-radius:16px; box-shadow:0 8px 26px rgba(29,29,31,.035); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; overflow:hidden; }
.energy-capability-grid article::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--orange); transform:scaleX(.28); transform-origin:left; transition:transform .2s ease; }
.energy-capability-grid article:hover { transform:translateY(-3px); border-color:var(--hair); box-shadow:0 14px 34px rgba(29,29,31,.07); }
.energy-capability-grid article:hover::after { transform:scaleX(1); }
.capability-icon { width:2.65rem; height:2.65rem; display:grid; place-items:center; margin:0 0 1.45rem; border-radius:12px; background:rgba(255,106,0,.08); }
.capability-icon svg { width:1.55rem; height:1.55rem; fill:none; stroke:var(--orange); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.energy-capability-grid h3 { font-size:1.12rem; margin:0 0 .6rem; }
.energy-capability-grid p { font-size:.86rem; line-height:1.5; color:var(--ink-3); margin:0; max-width:17rem; }
.energy-process-section { border-top:1px solid var(--hair-soft); margin-top:1rem; }
.energy-process-section>.container { max-width:none; padding:0; }
.energy-process-section h2 { font-size:clamp(2rem,3.2vw,3rem); line-height:1.08; margin:.2rem 0 .7rem; }
.energy-process-section .section__intro { max-width:42rem; color:var(--ink-3); margin:0 0 2.6rem; }
.energy-process-section .process-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--hair-soft); border-bottom:1px solid var(--hair-soft); }
.energy-process-section .process-steps::before { content:none; display:none; }
.energy-process-section .process-step { position:relative; padding:2rem 1.6rem 2.2rem 0; min-height:13rem; border-right:1px solid var(--hair-soft); }
.energy-process-section .process-step:not(:first-child) { padding-left:1.6rem; }
.energy-process-section .process-step:last-child { border-right:0; padding-right:0; }
.energy-process-section .process-step__num,
.energy-process-section .process-step:not(:first-child) .process-step__num { display:block; width:auto; height:auto; margin:0 0 1.4rem; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; color:var(--orange); font-family:var(--head); font-size:.67rem; line-height:1; letter-spacing:.14em; font-weight:700; text-align:left; }
.energy-process-section .process-step h4 { font-size:1.05rem; margin:0 0 .55rem; color:var(--ink); }
.energy-process-section .process-step p { margin:0; font-size:.86rem; line-height:1.52; color:var(--ink-3); }
@media(max-width:850px){ .energy-process-section .process-steps{grid-template-columns:repeat(2,1fr)}.energy-process-section .process-step{border-bottom:1px solid var(--hair-soft)}.energy-process-section .process-step:nth-child(2){border-right:0}.energy-process-section .process-step:nth-child(3),.energy-process-section .process-step:nth-child(4){border-bottom:0} }
@media(max-width:520px){ .energy-process-section .process-steps{grid-template-columns:1fr}.energy-process-section .process-step,.energy-process-section .process-step:not(:first-child){padding:1.6rem 0;border-right:0;border-bottom:1px solid var(--hair-soft)}.energy-process-section .process-step:last-child{border-bottom:0} }
.energy-home-main .section { padding:5rem 0; }
.energy-home-main .section-alt { background:var(--surface); margin-left:-1.5rem; margin-right:-1.5rem; padding-left:1.5rem; padding-right:1.5rem; }
.bagatelle-home-bridge { margin:5rem 0 0; display:grid; grid-template-columns:1.15fr .85fr; border-radius:20px; overflow:hidden; border:1px solid var(--hair-soft); background:#fff; }
.bagatelle-home-bridge__copy { padding:3.5rem; }
.bagatelle-home-bridge__copy h2 { font-size:clamp(2rem,3vw,2.8rem); line-height:1.08; max-width:15ch; margin:.2rem 0 1.4rem; }
.bagatelle-home-bridge__copy>p { max-width:40rem; color:var(--ink-2); }
.bridge-rule { margin:1.6rem 0 1.4rem; padding-left:1rem; border-left:3px solid var(--orange); color:var(--ink)!important; }
.energy-text-link--orange { color:var(--orange); font-size:.92rem; }
.bagatelle-home-bridge__panel { position:relative; background:linear-gradient(145deg,#f1e8d8 0%,var(--sand) 100%); padding:3.5rem; display:flex; flex-direction:column; justify-content:center; overflow:hidden; }
.bagatelle-home-bridge__panel::after { content:""; position:absolute; width:18rem; height:18rem; border:1px solid rgba(255,106,0,.18); border-radius:50%; right:-8rem; top:-8rem; }
.bridge-brand { display:flex; align-items:center; gap:.6rem; margin-bottom:2.2rem; }
.bridge-brand__mark { width:2rem; height:2rem; border:.24rem solid var(--orange); border-radius:50%; position:relative; flex:0 0 auto; }
.bridge-brand__mark::after { content:""; position:absolute; width:.8rem; height:.8rem; background:var(--orange); border-radius:50%; inset:0; margin:auto; }
.bridge-brand>span:last-child { display:flex; flex-direction:column; font-family:var(--head); line-height:1; }
.bridge-brand b { font-size:.9rem; color:var(--ink); letter-spacing:.01em; }
.bridge-brand i { font-size:.58rem; color:var(--orange); font-style:normal; letter-spacing:.30em; margin-top:.18rem; }
.bagatelle-home-bridge blockquote { position:relative; z-index:1; font-family:var(--head); font-size:clamp(1.7rem,2.4vw,2.25rem); font-weight:650; letter-spacing:-.03em; line-height:1.12; color:var(--ink); margin:0 0 1rem; }
.bagatelle-home-bridge__panel>p { position:relative; z-index:1; max-width:26rem; color:var(--ink-2); font-size:.9rem; }
.bridge-distinction { position:relative; z-index:1; display:grid; grid-template-columns:auto 1fr; gap:.2rem .8rem; align-items:baseline; margin-top:2rem; padding-top:1.25rem; border-top:1px solid rgba(29,29,31,.14); }
.bridge-distinction span { color:var(--orange); font-family:var(--head); font-size:.62rem; letter-spacing:.16em; font-weight:700; }
.bridge-distinction strong { color:var(--ink); font-size:.84rem; }
.energy-final-cta { position:relative; margin:1.5rem 0 0; padding:4.5rem 3.5rem; border-radius:20px; background:linear-gradient(125deg,#1D1D1F 0%,#28282b 100%); color:#fff; overflow:hidden; }
.energy-final-cta::after { content:""; position:absolute; right:-6rem; bottom:-11rem; width:28rem; height:28rem; border:1px solid rgba(255,106,0,.22); border-radius:50%; box-shadow:0 0 0 4rem rgba(255,106,0,.025),0 0 0 8rem rgba(255,106,0,.018); pointer-events:none; }
.energy-final-cta>* { position:relative; z-index:1; }
.energy-final-cta .energy-eyebrow { color:var(--orange); }
.energy-final-cta h2 { color:#fff; font-size:clamp(2rem,3.5vw,3.2rem); line-height:1.08; max-width:18ch; margin:.2rem 0 1rem; }
.energy-final-cta p:not(.energy-eyebrow) { color:rgba(255,255,255,.68); max-width:40rem; margin-bottom:1.6rem; }
.energy-final-cta .energy-cta { box-shadow:none; }
@media(max-width:900px){ .energy-intro-grid,.bagatelle-home-bridge{grid-template-columns:1fr;gap:2rem}.energy-capability-grid{grid-template-columns:repeat(2,1fr)}.bagatelle-home-bridge{gap:0} }
@media(max-width:600px){ .energy-capability-grid{grid-template-columns:1fr}.bagatelle-home-bridge__copy,.bagatelle-home-bridge__panel,.energy-final-cta{padding:2rem 1.5rem} }
/* ABOUT — BAGATELLE GROUP */
.about-energy-main { max-width:76rem; margin:0 auto; padding:2.7rem 1.5rem 6rem; }
.about-hero { padding:4.5rem 0 5.5rem; max-width:62rem; }
.about-hero h1 { font-size:clamp(3rem,6vw,5.7rem); line-height:.96; margin:.35rem 0 1.6rem; letter-spacing:-.05em; }
.about-hero h1 span { color:var(--orange); }
.about-hero>p:last-child { max-width:45rem; font-size:1.1rem; color:var(--ink-2); }
.about-story,.about-founder { display:grid; grid-template-columns:.9fr 1.1fr; gap:5rem; padding:5rem 0; border-top:1px solid var(--hair-soft); }
.about-story h2,.about-founder h2,.about-group h2 { font-size:clamp(2rem,3.2vw,3rem); line-height:1.08; margin:.2rem 0 0; }
.about-story__copy p,.about-founder__copy p { margin:0 0 1.1rem; color:var(--ink-2); }
.about-story__copy strong { color:var(--ink); }
.about-principles { padding:4rem; margin:0 0 1rem; background:var(--surface); border-radius:20px; }
.about-principles__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2.8rem; margin-top:2rem; }
.about-principles .principle-mark { display:block; width:2.25rem; height:3px; border-radius:999px; background:var(--orange); }
.about-principles h3 { margin:1rem 0 .55rem; font-size:1.12rem; }
.about-principles p { margin:0; color:var(--ink-3); font-size:.9rem; line-height:1.55; }
.about-group { padding:5rem 0; border-top:1px solid var(--hair-soft); }
.about-group__heading { max-width:42rem; margin-bottom:2.5rem; }
.about-group__heading>p:last-child { color:var(--ink-3); }
.about-businesses { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.about-business { padding:2.5rem; border:1px solid var(--hair-soft); border-radius:20px; background:#fff; }
.about-business--home { background:linear-gradient(145deg,#f6efe4 0%,var(--sand) 100%); }
.about-business__brand { display:flex; align-items:center; gap:.55rem; margin-bottom:2.2rem; }
.about-brand-mark { width:2rem; height:2rem; border:.24rem solid var(--orange); border-radius:50%; position:relative; flex:0 0 auto; }
.about-brand-mark::after { content:""; position:absolute; width:.8rem; height:.8rem; background:var(--orange); border-radius:50%; inset:0; margin:auto; }
.about-business__brand>span:last-child { display:flex; flex-direction:column; font-family:var(--head); line-height:1; }
.about-business__brand b { font-size:.88rem; color:var(--ink); }
.about-business__brand i { font-size:.58rem; color:var(--orange); font-style:normal; letter-spacing:.28em; margin-top:.18rem; }
.about-business h3 { font-size:1.55rem; margin:0 0 .8rem; }
.about-business>p { color:var(--ink-2); max-width:31rem; }
.about-business .about-independence { font-size:.82rem; color:var(--ink-3); padding-top:.8rem; border-top:1px solid rgba(29,29,31,.1); }
.about-closing { position:relative; padding:4.5rem 3.5rem; border-radius:20px; background:var(--ink); color:#fff; overflow:hidden; }
.about-closing::after { content:""; position:absolute; width:24rem; height:24rem; border:1px solid rgba(255,106,0,.2); border-radius:50%; right:-8rem; bottom:-12rem; }
.about-closing>* { position:relative; z-index:1; }
.about-closing h2 { color:#fff; font-size:clamp(2.2rem,4vw,3.7rem); line-height:1.05; max-width:18ch; margin:.25rem 0 1rem; }
.about-closing>p:last-child { color:rgba(255,255,255,.7); max-width:45rem; }
@media(max-width:800px){ .about-story,.about-founder,.about-businesses{grid-template-columns:1fr;gap:2rem}.about-principles__grid{grid-template-columns:1fr;gap:1.8rem}.about-principles{padding:2rem 1.5rem}.about-hero{padding:3rem 0 4rem}.about-closing{padding:3rem 1.5rem} }

@media(max-width:1000px){ .site-nav{gap:.8rem} .site-nav a{font-size:.8rem} }
@media(max-width:900px){ .energy-hero{grid-template-columns:1fr;min-height:0}.energy-hero-media{min-height:20rem;order:-1}.energy-hero-copy{padding:2.2rem 1.6rem} }
@media(max-width:760px){ .energy-home-main{padding-top:1rem}.energy-hero h1{font-size:2.5rem} }

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.container--wide {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.kicker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--orange-glow);
  color: var(--orange);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker--light {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.90);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 16px var(--orange-glow);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--orange-glow);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-outline-black {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline-black:hover {
  background: var(--black);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
}
.site-header.is-solid,
.site-header.no-hero {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img {
  height: 52px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  transition: color var(--transition);
}
.site-header.is-transparent .site-nav a { color: rgba(255,255,255,.85); }
.site-header.is-transparent .site-nav a:hover { color: var(--white); }
.site-nav a:hover { color: var(--orange); }
.header-cta { padding: 10px 22px !important; font-size: 14px !important; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
.site-header.is-transparent .nav-toggle { color: var(--white); }
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 24px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.hero {
  position: relative;
  min-height: 82vh;
  margin-top: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-color: var(--black);
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero__bg.loaded { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.82) 0%,
    rgba(10,10,10,.60) 55%,
    rgba(10,10,10,.35) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 0 80px;
  max-width: 780px;
}
.hero__content .kicker { margin-bottom: 20px; }
.hero__content h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__content h1 span { color: var(--orange); }
.hero__content p {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,.80);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.50);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--black); }
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-bar__item {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-bar__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--black); color: var(--white); }
.section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.section-dark h2 { color: var(--white); }
.section__intro {
  font-size: 18px;
  color: var(--grey);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.section-dark .section__intro { color: rgba(255,255,255,.60); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 52px; height: 52px;
  background: var(--orange-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--black); }
.card p, .card ul { color: var(--grey); font-size: 15px; line-height: 1.7; }
.card ul { padding-left: 18px; list-style: disc; }
.card ul li { margin-bottom: 6px; }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(255,106,0,.15) 100%);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; padding: 0 20px; text-align: center; }
.process-step__num {
  width: 56px; height: 56px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px var(--orange-glow);
}
.process-step:not(:first-child) .process-step__num {
  background: var(--black);
  box-shadow: none;
}
.process-step h4 { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--grey); line-height: 1.6; }

/* ============================================================
   PHOTO GRID
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-grid__item { overflow: hidden; position: relative; }
.photo-grid__item:first-child { grid-row: span 2; }
.photo-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-grid__item:hover img { transform: scale(1.04); }

/* ============================================================
   SPLIT SECTIONS (photo + text)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.split__text .kicker { margin-bottom: 16px; }
.split__text h2 { margin-bottom: 16px; }
.split__text p { color: var(--grey); font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.split__text ul { list-style: none; margin-bottom: 32px; }
.split__text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--grey);
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.split__text ul li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  background: var(--orange-glow);
  color: var(--orange);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--black);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 16px;
  position: relative;
}
.cta-band p {
  color: rgba(255,255,255,.65);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}
.cta-band__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: #0d0d0d;
  color: rgba(255,255,255,.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer-brand img {
  height: 48px; width: auto;
  opacity: .95;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,.40);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-contact-item span:first-child { color: var(--orange); font-size: 15px; margin-top: 1px; }
.footer-contact-item a, .footer-contact-item p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  margin: 0;
}
.footer-contact-item a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.28);
}

/* ============================================================
   PAGE BANNER (inner pages with photo)
   ============================================================ */
.page-banner {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 72px;
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,.90) 0%,
    rgba(10,10,10,.50) 55%,
    rgba(10,10,10,.20) 100%
  );
}
.page-banner__content {
  position: relative;
  z-index: 1;
  padding: 0 0 52px;
}
.page-banner__content .kicker { margin-bottom: 14px; }
.page-banner__content h1 {
  /* Raise the last value to make the heading physically bigger; raise --max on
     .container (or add max-width below) to let it run wider before wrapping. */
  font-size: clamp(34px, 5vw, 64px);
  /* Evens out the line lengths so you rarely need a manual break at all.
     Set an explicit max-width (e.g. 18ch) if you want it to wrap sooner. */
  text-wrap: balance;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.page-banner__content p {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  max-width: 600px;
}

/* ============================================================
   PORTAL SECTION (login embed)
   ============================================================ */
.portal-section { padding: 72px 0; background: var(--light); }
.portal-header { margin-bottom: 36px; }
.portal-header h2 { font-size: 30px; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.portal-header p { color: var(--grey); font-size: 16px; }
.portal-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 620px;
}

/* ============================================================
   GENERIC PAGE HERO (dark banner, no photo)
   ============================================================ */
.page-hero-simple {
  margin-top: 72px;
  background: var(--black);
  padding: 64px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero-simple::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-simple .kicker { margin-bottom: 14px; }
.page-hero-simple h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--white);
  margin-bottom: 14px;
}
.page-hero-simple p {
  font-size: 18px;
  color: rgba(255,255,255,.68);
  max-width: 620px;
  line-height: 1.7;
}
.page-section { padding: 72px 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-info h3 { font-size: 22px; font-weight: 700; color: var(--black); margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-item__icon {
  width: 40px; height: 40px;
  background: var(--orange-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 14px; color: var(--black); margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 15px; color: var(--grey); }
.contact-item a:hover { color: var(--orange); }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-size: 22px; font-weight: 700; color: var(--black); margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-note { font-size: 13px; color: var(--grey); margin-top: 12px; }
.form-success { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; font-size: 15px; background: #f0faf4; color: #1a6b3c; border: 1px solid #b3e8c8; }
.form-error   { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; font-size: 15px; background: #fff2f2; color: #8b1a1a; border: 1px solid #f5c0c0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps::before { display: none; }
  .photo-grid { grid-template-rows: 220px 220px; }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .split, .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse { direction: ltr; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .stats-bar__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .photo-grid__item:first-child { grid-row: span 1; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .grid-3, .grid-4, .process-steps { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: unset; }
  .photo-grid__item { height: 220px; }
  .hero__content { padding-top: 120px; padding-bottom: 80px; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .page-banner { height: 320px; }
  .portal-shell { padding: 24px; }
}


/* ── Insights / blog ────────────────────────────────────────────────── */
/* ---------------------------------------------------------------------------
   Insights / blog
   --------------------------------------------------------------------------- */

/* --- listing cards --- */
.post-card { display:flex; flex-direction:column; }
.post-card__excerpt { flex:1 1 auto; }
.post-card__more { margin-top:auto; margin-bottom:0; }

.post-meta { font-size:.75rem; letter-spacing:.06em; text-transform:uppercase;
             color:#8a8a8a; margin:0 0 8px; }
.post-meta__series { display:inline-block; color:#ff6a00; font-weight:700;
                     margin-right:.5em; }
.post-meta__series::after { content:"\2022"; color:#d6d6d6; margin-left:.55em;
                            font-weight:400; }

.post-card__thumb { display:block; margin:-4px 0 14px; overflow:hidden; border-radius:8px; }
.post-card__thumb img { width:100%; height:190px; object-fit:cover; display:block;
                        transition:transform .35s ease; }
.post-card__thumb:hover img { transform:scale(1.04); }

.card h3 a { color:inherit; text-decoration:none; }
.card h3 a:hover { color:#ff6a00; }
.post-more { font-weight:600; color:#ff6a00; text-decoration:none; }
.post-more:hover { text-decoration:underline; }

/* --- single post --- */
.page-banner__date { font-size:.95rem; opacity:.85; margin-top:.6rem; }

.post-lead-image { max-width:860px; margin:0 auto 2.6rem; }
.post-lead-image img { width:100%; height:auto; display:block; border-radius:10px;
                       box-shadow:0 8px 30px rgba(0,0,0,.12); }
.post-lead-image figcaption { font-size:.85rem; color:#777; text-align:center;
                              margin-top:.8rem; }

.post-body { max-width:34em; margin:0 auto; font-size:1.14rem; line-height:1.72;
             color:#2b2b2b; }
.post-body p { margin:0 0 1.4em; }
.post-body > * { margin-bottom:1.4em; }
.post-body > *:last-child { margin-bottom:0; }

/* Opening paragraph carries the reader in - slightly larger, slightly lighter. */
.post-body > p:first-of-type { font-size:1.28rem; line-height:1.6; color:#1a1a1a; }

.post-body h2 { font-size:1.42rem; line-height:1.3; margin:2.6em 0 .7em;
                text-wrap:balance;
                color:#141414; letter-spacing:-.01em; }
.post-body h2::before { content:""; display:block; width:38px; height:3px;
                        background:#ff6a00; margin-bottom:.85em; border-radius:2px; }
.post-body h2:first-child { margin-top:0; }

.post-body ul, .post-body ol { margin:0 0 1.4em 1.2em; }
.post-body li { margin-bottom:.5em; }

.post-body a { color:#c25000; text-decoration:underline;
               text-underline-offset:3px; text-decoration-thickness:1px; }
.post-body a:hover { color:#ff6a00; }

.post-body blockquote { margin:2.4em 0; padding:0 0 0 1.4em;
                        border-left:4px solid #ff6a00; font-style:normal; }
.post-body blockquote p { font-size:1.3rem; line-height:1.5; font-weight:600;
                          color:#141414; margin:0; letter-spacing:-.01em; }

.post-body img { max-width:100%; height:auto; border-radius:8px; }
.post-body figure { margin:2.2em 0; }
.post-body figcaption { font-size:.85rem; color:#777; margin-top:.7rem; }

.post-back { max-width:34em; margin:3rem auto 0; }
.post-back a { color:#ff6a00; text-decoration:none; font-weight:600; }
.post-back a:hover { text-decoration:underline; }

/* --- pagination --- */
.post-pagination { display:flex; gap:8px; justify-content:center; margin-top:2.5rem; flex-wrap:wrap; }
.post-pagination .page-numbers { padding:8px 14px; border:1px solid #ddd; border-radius:4px;
                                 text-decoration:none; color:#222; }
.post-pagination .page-numbers:hover { border-color:#ff6a00; color:#ff6a00; }
.post-pagination .page-numbers.current { background:#ff6a00; border-color:#ff6a00; color:#fff; }

@media (max-width:700px){
  .post-body { font-size:1.05rem; }
  .post-body > p:first-of-type { font-size:1.15rem; }
  .post-body h2 { font-size:1.25rem; margin-top:2.1em; }
  .post-body blockquote p { font-size:1.12rem; }
  .post-lead-image { margin-bottom:2rem; }
}

/* --- Insights: series grouping ------------------------------------------- */
/* Native <details>/<summary>, so no JavaScript and it works on a phone. */
.series { border:1px solid #e6e6e6; border-radius:10px; margin-bottom:1.25rem;
          background:#fff; overflow:hidden; }
.series__head { display:flex; align-items:center; gap:.75rem; cursor:pointer;
                padding:1.15rem 1.35rem; list-style:none; user-select:none;
                transition:background .15s; }
.series__head::-webkit-details-marker { display:none; }   /* hide the default triangle */
.series__head:hover { background:#fafafa; }
.series__name { font-weight:700; font-size:1.18rem; color:#141414; letter-spacing:-.01em; }
.series__count { font-size:.78rem; letter-spacing:.05em; text-transform:uppercase;
                 color:#8a8a8a; }
.series__chev { margin-left:auto; font-size:1.5rem; line-height:1; color:#ff6a00;
                transform:rotate(90deg); transition:transform .2s; }
.series[open] .series__chev { transform:rotate(-90deg); }

.series__list { list-style:none; margin:0; padding:0 1.35rem 1.1rem; }
.series__item { display:flex; gap:1.1rem; padding:1.1rem 0; border-top:1px solid #f0f0f0; }
.series__thumb { flex:0 0 128px; display:block; border-radius:8px; overflow:hidden; }
.series__thumb img { width:128px; height:96px; object-fit:cover; display:block; }
.series__body { flex:1 1 auto; min-width:0; }
.series__body h3 { font-size:1.12rem; margin:.15rem 0 .4rem; line-height:1.3; }
.series__body h3 a { color:inherit; text-decoration:none; }
.series__body h3 a:hover { color:#ff6a00; }
.series__part { font-size:.75rem; letter-spacing:.06em; text-transform:uppercase;
                color:#ff6a00; font-weight:700; margin:0; }
.series__date { color:#8a8a8a; font-weight:400; margin-left:.6em; }
.series__excerpt { font-size:.93rem; color:#555; margin:0 0 .5rem; }
.series__standalone { margin-top:1.5rem; }

@media (max-width:600px){
  .series__item { flex-direction:column; gap:.7rem; }
  .series__thumb, .series__thumb img { width:100%; flex-basis:auto; }
  .series__thumb img { height:170px; }
  .series__head { padding:1rem; flex-wrap:wrap; }
  .series__name { font-size:1.05rem; }
}
