/* Calyptus Celeste v3.3 — refined header and accessible navigation.
 * Keeps every branding/color choice editable in Settings > Calyptus Theme.
 * Works with the built-in header AND the existing Elementor ccgh-header layout.
 */
body.ccgh-site .ccgh-topbar{
  background:var(--cc-topbar-bg,var(--cc-blue));color:var(--cc-topbar-text,#fff);
  font-size:12px;font-weight:550;letter-spacing:.005em;line-height:1.45;
}
body.ccgh-site .ccgh-topbar .ccgh-topbar-row{max-width:1260px;min-height:34px;gap:14px;padding-top:6px;padding-bottom:6px;}
body.ccgh-site .ccgh-topbar-location{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ccgh-site .ccgh-topbar-contact{flex:none;white-space:nowrap}
body.ccgh-site .ccgh-topbar-contact a{font-weight:800;text-underline-offset:3px;text-decoration:underline}
body.ccgh-site .ccgh-topbar .ccgh-top-dot{background:var(--cc-menu-underline,var(--cc-gold));flex:none;box-shadow:none;width:6px;height:6px}
body.ccgh-site .ccgh-topbar-separator{padding:0 6px;opacity:.55}

body.ccgh-site .ccgh-site-header,
body.ccgh-site .ccgh-builder-header{
  background:var(--cc-nav-bg,#fff);
  border-bottom:1px solid rgba(0,0,0,.075);
  box-shadow:0 7px 25px rgba(0,0,0,.055);
  position:relative;z-index:95;
}
body.ccgh-site .ccgh-site-header .ccgh-nav-row{
  max-width:1260px;min-height:94px;display:flex;align-items:center;gap:24px;
  padding:12px 26px;
}
body.ccgh-site .ccgh-brand,
body.ccgh-site .ccgh-builder-header .ccgh-brand{
  display:flex;align-items:center;flex:0 0 var(--cc-header-logo-width,250px);
  width:var(--cc-header-logo-width,250px);max-width:100%;min-width:0;
}
body.ccgh-site .ccgh-brand img,
body.ccgh-site .ccgh-builder-header .ccgh-brand img{
  display:block;width:100%;height:auto;max-height:73px;object-fit:contain;object-position:left center;
}
body.ccgh-site .ccgh-site-header .ccgh-primary-nav{flex:1;min-width:0;margin-left:auto;}
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list{
  display:flex;align-items:center;justify-content:flex-end;
  gap:clamp(10px,1.4vw,22px);margin:0;padding:0;
}
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li{position:relative;flex:0 0 auto}
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a{
  position:relative;display:block;padding:16px 0;color:var(--cc-nav-text,var(--cc-blue));
  font-family:var(--cc-body,'DM Sans',sans-serif);font-size:13px;line-height:1.45;
  font-weight:750;letter-spacing:0;white-space:nowrap;
}
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a:after{
  content:'';display:block;position:absolute;bottom:9px;left:0;right:100%;height:2px;
  border-radius:2px;background:var(--cc-menu-underline,var(--cc-gold));transition:right .2s ease;
}
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a:hover:after,
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li.current-menu-item > a:after,
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li.current_page_item > a:after,
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li.current-menu-ancestor > a:after{right:0}
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a:hover,
body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li.current-menu-item > a{color:var(--cc-link-color,var(--cc-blue))}
body.ccgh-site .ccgh-nav-list .sub-menu{
  min-width:240px;padding:10px;background:var(--cc-nav-bg,#fff);
  border:1px solid rgba(0,0,0,.08);border-radius:12px;
  box-shadow:0 16px 42px rgba(0,0,0,.12);
}
body.ccgh-site .ccgh-nav-list .sub-menu a{padding:11px 12px;white-space:normal;font-size:13px;line-height:1.45}
body.ccgh-site .ccgh-nav-list .sub-menu a:hover{background:rgba(0,0,0,.045)}
body.ccgh-site .ccgh-nav-list .ccgh-submenu-toggle{position:absolute;right:-20px;top:15px;font-size:14px;line-height:1.4;border-radius:5px}

body.ccgh-site .ccgh-site-header .ccgh-nav-cta,
body.ccgh-site .ccgh-builder-header .elementor-widget-button .elementor-button{
  flex:0 0 auto;min-height:45px;padding:13px 17px;border-radius:7px;
  background:var(--cc-button-bg,var(--cc-gold));background-image:none;
  color:var(--cc-button-text,#fff);border:2px solid var(--cc-button-border,var(--cc-gold));
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:var(--cc-body,'DM Sans',sans-serif);font-size:12px;line-height:1.2;
  font-weight:800;letter-spacing:0;white-space:nowrap;box-shadow:0 5px 15px rgba(0,0,0,.09);
}
body.ccgh-site .ccgh-site-header .ccgh-nav-cta:hover,
body.ccgh-site .ccgh-builder-header .elementor-widget-button .elementor-button:hover{
  background:var(--cc-button-hover-bg,#fff);color:var(--cc-button-hover-text,var(--cc-gold));
  border-color:var(--cc-button-hover-border,var(--cc-gold));transform:translateY(-1px)
}
body.ccgh-site .ccgh-nav-cta span{font-size:15px;line-height:1}
body.ccgh-site .ccgh-menu-toggle{color:var(--cc-nav-text,var(--cc-blue))}
body.ccgh-site .ccgh-menu-toggle span{background:currentColor}
body.ccgh-site .ccgh-mobile-nav-actions{display:none}

/* Elementor-based header: these flexible widths override Elementor's generated
   28/52/20 columns without changing or overwriting its saved document. */
body.ccgh-site .ccgh-builder-header{width:100%;}
body.ccgh-site .ccgh-builder-header > .elementor-container{
  display:flex;align-items:center;flex-wrap:nowrap;max-width:1260px!important;
  width:100%;min-height:94px;gap:24px;padding:12px 26px;
}
body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column{
  min-width:0;float:none;display:flex;align-items:center;
}
body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column:first-child{
  flex:0 0 var(--cc-header-logo-width,250px);width:var(--cc-header-logo-width,250px)!important;
}
body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column:nth-child(2){
  flex:1 1 auto;width:auto!important;min-width:0;
}
body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column:nth-child(3){
  flex:0 0 auto;width:auto!important;
}
body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column > .elementor-widget-wrap{
  width:100%;align-items:center;align-content:center;padding:0;
}
body.ccgh-site .ccgh-builder-header .elementor-widget{margin-bottom:0}
body.ccgh-site .ccgh-builder-header .ccgh-build-menu-wrap{width:100%;position:relative}
body.ccgh-site .ccgh-builder-header .ccgh-primary-nav{position:static;display:block;width:100%;margin:0;}
body.ccgh-site .ccgh-builder-header .ccgh-primary-nav .ccgh-nav-list{justify-content:flex-end;flex-wrap:nowrap;}
body.ccgh-site .ccgh-builder-header .ccgh-nav-cta{white-space:nowrap}

/* Always collapse before the menu, logo and CTA collide. */
@media(max-width:1200px){
 body.ccgh-site .ccgh-site-header .ccgh-nav-row{min-height:76px;padding:11px 24px;gap:14px}
 body.ccgh-site .ccgh-brand,body.ccgh-site .ccgh-builder-header .ccgh-brand{
   flex:0 0 auto;width:min(var(--cc-header-logo-width,250px),230px);max-width:calc(100vw - 120px);
 }
 body.ccgh-site .ccgh-brand img,body.ccgh-site .ccgh-builder-header .ccgh-brand img{max-height:63px}
 body.ccgh-site .ccgh-site-header .ccgh-menu-toggle,
 body.ccgh-site .ccgh-builder-header .ccgh-menu-toggle{
   display:flex!important;flex-direction:column;align-items:center;justify-content:center;
   width:45px;height:45px;min-width:45px;order:3;margin-left:auto;padding:9px;
   border:1px solid rgba(0,0,0,.14);border-radius:8px;background:var(--cc-nav-bg,#fff);
   color:var(--cc-nav-text,var(--cc-blue));cursor:pointer;
 }
 body.ccgh-site .ccgh-menu-toggle span{width:21px;height:2px;margin:3px 0;border-radius:2px}
 body.ccgh-site .ccgh-site-header .ccgh-primary-nav{
   display:none;position:absolute;top:calc(100% - 1px);left:16px;right:16px;width:auto;
   margin:0;max-height:min(75vh,600px);overflow:auto;padding:14px 18px 18px;
   border:1px solid rgba(0,0,0,.10);border-radius:0 0 14px 14px;
   background:var(--cc-nav-bg,#fff);box-shadow:0 20px 35px rgba(0,0,0,.14);z-index:120;
 }
 body.ccgh-site .ccgh-site-header .ccgh-primary-nav.is-open{display:block}
 body.ccgh-site .ccgh-primary-nav .ccgh-nav-list{display:block!important;width:100%;text-align:left}
 body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li{border-bottom:1px solid rgba(0,0,0,.07)}
 body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a{display:block;padding:13px 35px 13px 8px;font-size:15px;white-space:normal}
 body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a:after{display:none}
 body.ccgh-site .ccgh-nav-list .ccgh-submenu-toggle{right:2px;top:8px;width:35px;height:35px;padding:5px;font-size:19px}
 body.ccgh-site .ccgh-primary-nav .sub-menu{
   display:none;position:static;min-width:0;margin:0 0 10px 10px;padding:4px;
   box-shadow:none;border:0;border-left:2px solid var(--cc-menu-underline,var(--cc-gold));border-radius:0;
 }
 body.ccgh-site .ccgh-primary-nav li.is-submenu-open > .sub-menu,
 body.ccgh-site .ccgh-primary-nav li.is-submenu-open:hover > .sub-menu{display:block}
 body.ccgh-site .ccgh-primary-nav li:hover > .sub-menu:not(.is-open){display:none}
 body.ccgh-site .ccgh-site-header .ccgh-nav-cta{display:none}
 body.ccgh-site .ccgh-mobile-nav-actions{display:block;padding-top:16px}
 body.ccgh-site .ccgh-mobile-nav-cta{
   display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:13px 20px;
   background:var(--cc-button-bg,var(--cc-gold));color:var(--cc-button-text,#fff);
   border:2px solid var(--cc-button-border,var(--cc-gold));border-radius:7px;
   font-size:14px;line-height:1.3;font-weight:800;text-align:center;
 }
 body.ccgh-site .ccgh-mobile-nav-cta:hover,
 body.ccgh-site .ccgh-mobile-nav-cta:focus-visible{
   background:var(--cc-button-hover-bg,#fff);color:var(--cc-button-hover-text,var(--cc-gold));border-color:var(--cc-button-hover-border,var(--cc-gold));
 }
 /* Elementor header collapses to the same drawer, including its own button. */
 body.ccgh-site .ccgh-builder-header > .elementor-container{min-height:76px;gap:10px;padding:10px 24px;flex-wrap:nowrap!important}
 body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column:first-child{
   width:auto!important;flex:1 1 auto;min-width:0;
 }
 body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column:nth-child(2){
   width:49px!important;flex:0 0 49px;min-width:49px;
 }
 body.ccgh-site .ccgh-builder-header > .elementor-container > .elementor-column:nth-child(3){display:none!important}
 body.ccgh-site .ccgh-builder-header .ccgh-build-menu-wrap{display:flex;align-items:center;justify-content:flex-end;position:relative}
 body.ccgh-site .ccgh-builder-header .ccgh-menu-toggle{margin:0;order:0}
 body.ccgh-site .ccgh-builder-header .ccgh-primary-nav{
   display:none;position:absolute;right:0;left:auto;top:calc(100% + 12px);
   width:min(365px,calc(100vw - 32px));max-height:min(75vh,600px);
   overflow:auto;padding:14px 18px 18px;background:var(--cc-nav-bg,#fff);
   border:1px solid rgba(0,0,0,.1);border-radius:12px;
   box-shadow:0 20px 40px rgba(0,0,0,.16);z-index:120;
 }
 body.ccgh-site .ccgh-builder-header .ccgh-primary-nav.is-open{display:block}
 body.ccgh-site .ccgh-builder-header .ccgh-primary-nav .ccgh-nav-list{display:block;}
}
@media(max-width:680px){
 body.ccgh-site .ccgh-topbar .ccgh-topbar-row{justify-content:center;padding-inline:16px;}
 body.ccgh-site .ccgh-topbar-location{font-size:11px;max-width:100%;text-align:center;}
 body.ccgh-site .ccgh-topbar-location .ccgh-topbar-separator,
 body.ccgh-site .ccgh-topbar-tagline{display:none}
 body.ccgh-site .ccgh-topbar-contact{display:none}
 body.ccgh-site .ccgh-site-header .ccgh-nav-row{padding:10px 17px;min-height:70px}
 body.ccgh-site .ccgh-builder-header > .elementor-container{padding:8px 17px;min-height:70px}
 body.ccgh-site .ccgh-brand img,body.ccgh-site .ccgh-builder-header .ccgh-brand img{max-height:51px}
 body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
 body.ccgh-site .ccgh-primary-nav .ccgh-nav-list > li > a:after{transition:none}
}
