/* =========================================================
   Fonts
   ========================================================= */
@font-face{ font-family:"Cantarell"; src:url("../fonts/Cantarell-Regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:"Cantarell"; src:url("../fonts/Cantarell-Italic.woff2") format("woff2");   font-weight:400; font-style:italic; font-display:swap; }
@font-face{ font-family:"Cantarell"; src:url("../fonts/Cantarell-Bold.woff2") format("woff2");     font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:"Cantarell"; src:url("../fonts/Cantarell-BoldItalic.woff2") format("woff2");font-weight:700; font-style:italic; font-display:swap; }
/* Optional display face for headings */
@font-face{ font-family:"Josefin Slab"; src:url("../fonts/JosefinSlab-SemiBold.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }

/* =========================================================
   Design tokens
   ========================================================= */
:root{
  --max:1100px;
  --radius:12px;

  --accent:#0a66ff;
  --accent-dark:#004fd1;

  --bg:#efefef;
  --surface:#f6f6f8;
  --card:#ffffff;

  --text:#111;
  --muted:#777;
  --border:#e9e9ef;

  --link:var(--accent);
  --link-hover:var(--accent-dark);

  /* header + drawer */
  --header-h:64px;
  --nav-top:0px;               /* bumped automatically for admin-bar */
  --logo-h: 400px;
}

body.dark-mode{
  --bg:#2b2b2b; --surface:#2e2e2e; --card:#383838;
  --text:#f5f5f5; --muted:#a9a9a9; --border:#444;
  --accent:#66aaff; --accent-dark:#3388dd;
  --link:var(--accent); --link-hover:var(--accent-dark);
}

/* Admin bar offset */
body.admin-bar{ --nav-top:32px; }
@media (max-width:782px){ body.admin-bar{ --nav-top:46px; } }

/* =========================================================
   Base / reset
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scrollbar-gutter:stable; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font:16px/1.5 "Cantarell", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
/* Prevent sideways scroll from off-canvas transforms, etc. */
html, body{ overflow-x:hidden; }

img{ display:block; max-width:100%; height:auto; }
a{ color:var(--link); text-decoration:none; }
a:hover{ color:var(--link-hover); }

h1,h2,h3{ font-family:"Josefin Slab","Cantarell",serif; font-weight:600; margin:0 0 .5em; }
p{ margin:.75em 0; }

/* Form basics */
input,textarea,select,button{ font:inherit; color:inherit; }
input,textarea,select{
  width:100%; padding:12px; border-radius:10px;
  background:var(--card); border:1px solid var(--border);
}
input::placeholder,textarea::placeholder{ color:var(--muted); }
button{ cursor:pointer; }

/* Buttons */
.btn{
  display:inline-block; padding:12px 18px; border-radius:var(--radius);
  background:var(--accent); color:#fff; border:1px solid transparent;
  transition:background .2s,border-color .2s,color .2s;
}
.btn:hover{ background:var(--accent-dark); color:#fff; }
.btn.outline{ background:transparent; color:var(--accent); border-color:var(--accent); }
.btn.outline:hover{ background:var(--accent); color:#fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:relative; z-index:3000;
  background:var(--surface);
}
.container.header-bar{
  /* full-width bar with centered content window */
  display:grid;
  grid-template-columns:max-content 1fr max-content;
  align-items:center;
  min-height:var(--header-h);
  max-width:var(--max);
  margin-inline:auto;
  padding:12px 16px;
  gap:16px;
}

/* Left = brand, middle = (empty in mobile), right = actions */
.site-header .brand{ grid-column:1/2; justify-self:start; }
.site-header .header-actions{
  grid-column:3/4;
  justify-self:end;
  display:inline-flex; align-items:center; gap:12px;
}

/* Dark-mode + burger controls share styles */
.dark-toggle, .menu-toggle{
  display:inline-grid; place-items:center;
  width:44px; height:44px; padding:0; border:0; background:transparent;
  color:var(--text);
}

/* Burger: hidden on desktop by default */
.menu-toggle{ display:none; }

/* Desktop nav (normal horizontal list) */
.header-nav{ grid-column:2/3; justify-self:center; }
.header-nav .menu{
  display:flex; gap:20px; align-items:center; list-style:none; margin:0; padding:0;
}

/* =========================================================
   Drawer (mobile) + overlay
   ========================================================= */
.nav-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
  z-index:2900;
}
.nav-backdrop.show{ opacity:1; pointer-events:auto; }

@media (max-width:900px){
  /* show burger, keep actions pinned right */
  .menu-toggle{ display:inline-grid; }

  /* Take the nav out of header flow as an off-canvas panel */
  .header-nav{
    position:fixed !important;
    top:calc(var(--nav-top) + var(--header-h));
    left:0; bottom:0;
    width:min(86vw, 360px);
    background:var(--card);
    border-right:1px solid var(--border);
    box-shadow:8px 0 24px rgba(0,0,0,.18);
    transform:translateX(-100%);
    transition:transform .22s ease;
    z-index:3001;  /* above backdrop; below header actions */
    margin:0 !important; padding:18px 20px 24px;
    display:block !important;
  }
  /* Optional right-side drawer: add .drawer--right on the nav element */
  .header-nav.drawer--right{
    left:auto; right:0; border-right:none; border-left:1px solid var(--border);
    box-shadow:-8px 0 24px rgba(0,0,0,.18);
    transform:translateX(100%);
  }
  .header-nav.is-open{ transform:translateX(0) !important; }

  /* Stack menu items vertically inside the drawer */
  .header-nav .menu{
    display:flex !important; flex-direction:column !important;
    align-items:flex-start !important; gap:12px !important;
    padding:0; margin:0; list-style:none;
  }
  .header-nav .menu > li{ width:100%; }
  .header-nav .menu a{
    display:block; width:100%; padding:12px 10px; border-radius:8px;
  }
  .header-nav .menu a:hover{
    background:color-mix(in srgb, var(--text) 8%, transparent);
  }

  /* Close button INSIDE the panel (hidden until open) */
  .header-nav .nav__close{
    position:absolute; inset:12px 12px auto auto;
    width:44px; height:44px; display:flex; align-items:center; justify-content:center;
    border:0; background:transparent; color:inherit;
    opacity:0; pointer-events:none; transition:opacity .15s ease;
  }
  .header-nav.is-open .nav__close{ opacity:1; pointer-events:auto; }
}

/* Keep header above overlays and page content */
.site-header{ z-index:3002; }

/* Lock page scroll when drawer is open */
body.no-scroll{ overflow:hidden; touch-action:none; }

/* =========================================================
   Icon swap for burger (SVGs are in your markup)
   ========================================================= */
.menu-toggle .ico-close{ display:none; }
.menu-toggle[aria-expanded="true"] .ico-open{ display:none; }
.menu-toggle[aria-expanded="true"] .ico-close{ display:inline-block; }

/* =========================================================
   Desktop debug helper (force drawer on desktop)
   Toggle via:
   document.documentElement.setAttribute('data-drawer-desktop','1')
   ========================================================= */
html[data-drawer-desktop="1"] .menu-toggle{ display:inline-grid !important; }
@media (min-width:901px){
  html[data-drawer-desktop="1"] .header-nav{
    position:fixed !important;
    top:calc(var(--nav-top) + var(--header-h));
    left:0; bottom:0; width:380px; max-width:420px;
    background:var(--card); border-right:1px solid var(--border);
    transform:translateX(-100%); transition:transform .22s ease;
    z-index:3001; display:block !important; margin:0 !important; padding:18px 20px 24px;
  }
  html[data-drawer-desktop="1"] .header-nav.is-open{ transform:translateX(0) !important; }
  html[data-drawer-desktop="1"] .nav-backdrop{ opacity:0; pointer-events:none; }
}

/* =========================================================
   Small utilities
   ========================================================= */
.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* SAFETY: drawer must start closed on mobile */
@media (max-width:900px){
  /* default closed */
  .header-nav{
    transform: translateX(-100%) !important;
    visibility: hidden;           /* prevents stray clicks */
    pointer-events: none;
  }
  /* if you use right-side drawer */
  .header-nav.drawer--right{
    transform: translateX(100%) !important;
  }
  /* open state (menu.js toggles .is-open) */
  .header-nav.is-open{
    transform: translateX(0) !important;
    visibility: visible;
    pointer-events: auto;
  }

  /* backdrop is off until JS opens it */
  .nav-backdrop{
    opacity: 0; pointer-events: none;
  }
  .nav-backdrop.show{
    opacity: 1; pointer-events: auto;
  }
}
/* ---------------------- MOBILE HEADER FIX ---------------------- */
/* =========================
   GS HEADER — clean baseline
   ========================= */

/* 1) Bar layout: brand | spacer | actions */
.site-header .container.header-bar.gs-header{
  display:grid;
  grid-template-columns:max-content 1fr max-content; /* brand | spacer | actions */
  align-items:center;
  gap:12px;
  padding:8px 16px;         /* small, consistent vertical space */
  min-height:64px;
  max-width:var(--max);
  margin-inline:auto;
  overflow:visible;
}

/* 2) Lanes */
.site-header .brand{ justify-self:start; }
.site-header .header-actions{
  justify-self:end;
  display:inline-flex; align-items:center; gap:12px;
}

/* 3) Logo never drives header height */
.site-header .brand img{
  height:clamp(28px, 8vw, 44px);
  width:auto; max-width:100%;
  display:block;
}

/* 4) Primary menu spacing ONLY inside the header */
.site-header .header-nav ul#menu-main.menu{
  margin:0; padding:0; list-style:none;
}
.site-header .header-nav ul#menu-main.menu > li{
  margin:0; padding:0;
}

/* 5) Desktop menu row */
@media (min-width:901px){
  .site-header .header-nav{
    position:static; transform:none; width:auto; margin:0;
  }
  .site-header .header-nav .menu{
    display:flex; align-items:center; gap:28px;
  }
  .menu-toggle{ display:none !important; } /* burger hidden on desktop */
}

/* 6) Mobile — real off-canvas drawer that doesn't affect header width */
@media (max-width:900px){
  /* Show hamburger */
  .menu-toggle{
    display:inline-grid !important; place-items:center;
    width:44px; height:44px; background:transparent; border:0; padding:0;
    color:var(--text); z-index:2220; /* above drawer/backdrop edge */
    touch-action:manipulation;
  }
  /* Drawer panel */
  .site-header .header-nav{
    position:fixed; top:0; left:0; bottom:0;
    width:80vw; max-width:360px;
    background:var(--card);
    border-right:1px solid var(--border);
    box-shadow:8px 0 24px rgba(0,0,0,.18);
    transform:translateX(-100%);     /* closed by default */
    transition:transform .25s ease;
    margin:0; z-index:2000; padding:18px 20px 24px;
  }
  .site-header .header-nav.is-open{ transform:translateX(0); }

  /* Drawer menu layout */
  .site-header .header-nav .menu{
    display:flex; flex-direction:column; align-items:flex-start;
    gap:12px; margin:0; padding:0; list-style:none;
  }
  .site-header .header-nav .menu a{
    display:block; width:100%;
    padding:12px 10px; line-height:1.25; border-radius:8px;
  }
  .site-header .header-nav .menu a:hover{
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }

  /* Backdrop */
  .nav-backdrop{
    position:fixed; inset:0;
    background:rgba(0,0,0,.45);
    opacity:0; pointer-events:none; transition:opacity .2s ease;
    z-index:1990;
  }
  .nav-backdrop.show{ opacity:1; pointer-events:auto; }

  /* Keep actions on the right on phones */
  .site-header .header-actions{ justify-self:end; }
}

/* 7) Safety: header never causes sideways scroll */
html, body{ overflow-x:hidden; }

/* 8) Optional: scope big section padding AWAY from header containers */
.section > .container{ /* keep your large vertical section padding here */ }
/* ===== Mobile header: stable, compact, flex layout ===== */
@media (max-width: 900px){
  /* Header bar itself */
  .site-header{ position: relative; z-index: 2100; }
  .site-header .container.header-bar,
  .site-header .container.header-bar.gs-header{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* brand | actions */
    gap: 12px !important;
    padding: 8px 12px !important;
    min-height: 56px !important;  /* tweak 52–60px to taste */
    height: auto !important;
  }

  /* Brand (logo) */
  .site-header .brand{ flex: 0 0 auto !important; margin: 0 !important; }
  .site-header .brand img{
    display: block !important;
    height: 44px !important;      /* adjust if you want it bigger */
    width: auto !important;
    max-width: 70vw !important;    /* avoids overflow on very narrow phones */
    transform: none !important;    /* cancel any previous scaling tricks */
  }

  /* Actions (dark toggle + hamburger) */
  .site-header .header-actions{
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
  }
  .site-header .header-actions .dark-toggle,
  .site-header .header-actions .menu-toggle{
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  /* Drawer stays off-canvas; never affects header height */
  .site-header .header-nav{
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 80vw; max-width: 360px;
    background: var(--card);
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 24px rgba(0,0,0,.18);
    transform: translateX(-100%) !important;    /* closed by default */
    transition: transform .25s ease !important;
    z-index: 2000;
    margin: 0 !important;
    padding: 18px 20px 24px !important;
    height: auto !important;                     /* no header stretch */
  }
  .site-header .header-nav.is-open{ transform: translateX(0) !important; }

  /* Drawer menu column + zero out list spacing */
  .site-header .header-nav .menu{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 !important; padding: 0 !important; list-style: none !important;
  }
  .site-header .header-nav .menu > li{ margin: 0 !important; padding: 0 !important; }
  .site-header .header-nav .menu a{
    display: block; width: 100%; padding: 12px 10px; border-radius: 8px;
  }

  /* Hamburger visible on phones */
  .menu-toggle{
    display: inline-grid !important;
    place-items: center;
    background: transparent; border: 0; color: var(--text);
    z-index: 2220; /* above drawer edge/backdrop */
  }

  /* Backdrop */
  .nav-backdrop{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
    z-index: 1990;
  }
  .nav-backdrop.show{ opacity: 1; pointer-events: auto; }

  /* Safety: no stray margins in the bar */
  .site-header .container.header-bar > *{ margin: 0 !important; }
  .site-header .header-nav ul#menu-main.menu{ margin:0 !important; padding:0 !important; }
}

/* Desktop: burger hidden */
@media (min-width: 901px){
  .menu-toggle{ display: none !important; }
}

/* Prevent sideways scroll caused by off-canvas elements */
html, body{ overflow-x: hidden; }
/* ---------- MOBILE HEADER (≤900px) ---------- */
@media (max-width:900px){
  /* Header bar: 3 columns, fixed height */
  .site-header .container.header-bar{
    display:grid !important;
    grid-template-columns:max-content 1fr max-content !important;
    align-items:center !important;
    column-gap:12px !important;
    min-height:64px !important;
    padding:10px 14px !important;
  }
  .site-header .container.header-bar > *{ margin:0 !important; } /* prevent children from stretching height */

  /* Brand / logo size on phones */
  .site-header .brand img{
    height:40px !important; width:auto !important; display:block;
  }

  /* Right-side actions (dark toggle + burger) */
  .site-header .header-actions{
    grid-column:3 / 4 !important;
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }
  .site-header .header-actions > *{ flex:0 0 auto; } /* don’t stretch the toggle */

  /* Burger button */
  .menu-toggle{
    display:inline-grid !important;
    place-items:center;
    width:44px; height:44px;
    padding:0; border:0; background:transparent;
    color:inherit;
  }

  /* ⬇️ REMOVE NAV FROM HEADER LAYOUT (no more giant header) */
  .site-header .container.header-bar > nav.header-nav{
    position:fixed !important;
    top:var(--nav-top,0); right:0; bottom:0;
    width:78vw; max-width:360px;
    transform:translateX(100%);               /* hidden by default */
    transition:transform .22s ease;
    background:var(--card,#fff);
    border-left:1px solid var(--border,#e9e9e9);
    box-shadow:-8px 0 24px rgba(0,0,0,.18);
    padding:18px 18px 24px !important;
    z-index:2000;
    contain:layout;                            /* isolate layout; no reflow */
  }
  .site-header .container.header-bar > nav.header-nav.is-open{
    transform:translateX(0);
  }

  /* Drawer menu spacing ONLY inside the drawer */
  .site-header nav.header-nav .menu{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
  }
  .site-header nav.header-nav .menu > li{ margin:0 !important; }
  .site-header nav.header-nav .menu a{
    display:block; padding:12px 10px; border-radius:8px; text-decoration:none;
  }

  /* Backdrop layer */
  .nav-backdrop{
    position:fixed; inset:0;
    background:rgba(0,0,0,.45);
    opacity:0; pointer-events:none; transition:opacity .2s ease;
    z-index:1990;
  }
  .nav-backdrop.show{ opacity:1; pointer-events:auto; }

  /* Prevent horizontal scroll when the fixed drawer sits off-screen */
  html, body{ overflow-x:hidden; }
}

/* ---------- DESKTOP (≥901px) keeps your existing layout ---------- */
@media (min-width:901px){
  .menu-toggle{ display:none !important; }
  .site-header .container.header-bar > nav.header-nav{
    position:static !important; transform:none !important;
    box-shadow:none; border:0; padding:0;
  }
}

/* WordPress admin bar offset for the fixed drawer */
body.admin-bar{ --nav-top:32px; }
@media (max-width:782px){ body.admin-bar{ --nav-top:46px; } }
/* Mobile: center the logo and scale it up */
@media (max-width:900px){
  /* make the middle column the logo, keep actions on the right */
  .site-header .container.header-bar{
    grid-template-columns: 1fr auto max-content !important; /* spacer | logo | actions */
  }

  /* park brand in the center column */
  .site-header .brand{
    grid-column: 2 / 3 !important;
    justify-self: center !important;
    align-self: center !important;
    text-align: center;
  }
  .site-header .brand a{ display:inline-block; line-height:0; }

  /* bigger, responsive logo (won't overflow the header) */
  .site-header .brand img{
    height: clamp(40px, 9vw, 56px) !important; /* ~40–56px depending on screen */
    width: auto !important;
  }

  /* keep actions anchored to the far right */
  .site-header .header-actions{
    grid-column: 3 / 4 !important;
    justify-self: end !important;
  }
}
/* MOBILE: hard-center the logo in the header */
@media (max-width:900px){
  /* anchor for absolute positioning */
  .site-header .container.header-bar{
    position: relative !important;
    min-height: 68px;            /* adjust if you want a tighter header */
    padding: 8px 14px;           /* keeps edges comfy */
  }

  /* center the brand independently of the grid */
  .site-header .brand{
    position: absolute !important;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    z-index: 1;                  /* under the action buttons */
    text-align: center;
  }

  /* let taps still work on the logo link even though parent is absolute */
  .site-header .brand a{ display:inline-block; line-height:0; }

  /* larger, responsive logo */
  .site-header .brand img{
    height: clamp(48px, 9.5vw, 60px) !important;  /* bump these numbers if you want it bigger */
    width: auto !important;
  }

  /* keep toggle + burger on the right, above the brand if they overlap */
  .site-header .header-actions{
    position: relative;
    z-index: 2;
    justify-self: end !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
}
/* MOBILE: center BIGGER logo + keep actions pinned right */
@media (max-width:900px){
  .site-header .container.header-bar{
    position: relative !important;
    min-height: 200px;                 /* was ~104px; doubled to fit larger logo */
    padding: 12px 16px;
  }

  .site-header .brand{
    position: absolute !important;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    z-index: 1;
    text-align: center;
  }
  .site-header .brand a{ display:inline-block; line-height:0; }

  /* <<< doubled again >>> */
  .site-header .brand img{
    height: clamp(140px, 40vw, 240px) !important;  /* bigger on all phones */
    width: auto !important;
  }

  .site-header .header-actions{
    position: absolute !important;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    z-index: 2;
    left: auto !important;
    justify-self: end !important;
  }
}

/* tiny phones: nudge down a hair to avoid crowding */
@media (max-width:360px){
  .site-header .container.header-bar{ min-height: 186px; }
  .site-header .brand img{ height: clamp(128px, 38vw, 280px) !important; }
}
/* MOBILE: supersize the centered logo and let the header grow */
@media (max-width:900px){
  /* 1) Ignore --logo-h and any previous scale */
  .site-header .brand img,
  .site-header .brand .brand_logo,
  .site-header .brand img.custom-logo{
    max-height: none !important;      /* stop var(--logo-h) from capping */
    height: clamp(160px, 42vw, 260px) !important; /* 2–3× bigger */
    width: auto !important;
    transform: none !important;        /* cancel earlier scale/nudge tricks */
  }

  /* 2) Let the header grow so the big logo never clips */
  :root{ --header-h: 200px; }          /* keep hero offset in sync if used */
  .site-header .container.header-bar{
    min-height: var(--header-h) !important;
    padding-block: 12px !important;
  }

  /* 3) Make sure no parent is clipping the larger logo */
  .site-header,
  .site-header .container.header-bar,
  .site-header .brand{
    overflow: visible !important;
  }
}
/* ===== Mobile header: bigger centered logo + taller header ===== */
@media (max-width: 900px){

  /* 0) If you use an admin bar, keep the overlay math happy */
  body.admin-bar { --nav-top: 46px; }

  /* 1) Decide how tall the header should be (tweak as needed) */
  :root{
    --header-h: 132px;                 /* increase if logo clips */
  }

  /* 2) Header container grows to fit the bigger logo */
  .site-header,
  .site-header .container.header-bar{
    min-height: var(--header-h) !important;
    padding-block: 10px !important;
    align-items: center !important;
    overflow: visible !important;
  }

  /* 3) Center the brand, and make the logo ignore --logo-h */
  .site-header .brand{
    display: grid !important;
    place-items: center !important;
  }
  .site-header .brand img,
  .site-header .brand .brand_logo,
  .site-header .brand img.custom-logo{
    max-height: none !important;       /* ignore --logo-h caps */
    height: clamp(150px, 40vw, 220px) !important; /* scale 2–3× */
    width: auto !important;
    transform: none !important;        /* cancel any prior scale */
  }

  /* 4) Keep actions on the right */
  .site-header .header-actions{
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* 5) Make absolutely sure nothing clips horizontally */
  html, body, .site-header, .site-header .container.header-bar{ overflow-x: hidden; }
}
/* ===== Mobile: dark-toggle left | logo centered | burger right ===== */
@media (max-width: 900px){
  /* 3 columns: [dark-toggle] [brand/logo] [burger] */
  .site-header .container.header-bar{
    display: grid !important;
    grid-template-columns: max-content 1fr max-content !important;
    align-items: center !important;
    min-height: var(--header-h, 108px) !important; /* keep your current header height */
    position: relative;
  }

  /* Let the actions’ children (dark-toggle & menu-toggle) become direct grid items */
  .site-header .header-actions{
    display: contents !important;
  }

  /* Left: dark-mode toggle */
  .site-header .dark-toggle{
    grid-column: 1 / 2 !important;
    justify-self: start !important;
    z-index: 2220;               /* stay above backdrop */
    margin-left: 8px;
  }

  /* Middle: brand/logo centered */
  .site-header .brand{
    grid-column: 2 / 3 !important;
    justify-self: center !important;
  }

  /* Right: burger */
  .site-header .menu-toggle{
    grid-column: 3 / 4 !important;
    justify-self: end !important;
    z-index: 2220;
    margin-right: 8px;
  }
}
/* Desktop logo size override */
.site-logo img,
.custom-logo {
  width: auto !important;   /* keeps proportions */
}

/* Optional: adjust header height if it clips */
.site-header {
  min-height: 100px; /* or more if needed */
}
/* Desktop: make logo fill that empty left area without crushing the nav */
/* Desktop-only: make logo big, leave breathing room for nav + toggle */
@media (min-width: 1024px) {
  /* Make logo actually grow */
  .custom-logo,
  .custom-logo-link img,
  .site-logo img,
  .header__logo img,
  .wp-block-site-logo img {
    height: 150px !important;   /* adjust this number for how tall you want */
    width: auto !important;     /* keep proportions */
    max-width: none !important; 
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Give breathing room */
  .site-branding,
  .site-logo,
  .header__logo {
    margin-right: 48px; /* gap before nav */
  }

  .theme-toggle,
  .darkmode-toggle {
    margin-left: 32px;  /* gap after nav */
  }
}
