/* Compact header: logo lockup on the left, menu on the right, one 72px sticky bar. */

/* ---- Logo lockup: vector mark + live text. --s is the "ATHENS" font size; everything else scales from it. ---- */
.site-header .logo-link .site-img-logo { display: none; }
.gmc-logo {
  --s: 18.7px;
  display: inline-flex; align-items: center; gap: calc(var(--s) * .633);
  color: var(--gmc-navy); font-family: "Quicksand", var(--gmc-font); text-decoration: none; white-space: nowrap;
}
.gmc-logo__mark { height: calc(var(--s) * 2.357); width: auto; flex: none; display: block; }
.gmc-logo__text { display: flex; flex-direction: column; align-items: flex-start; }
.gmc-logo__name { font-size: var(--s); font-weight: 700; line-height: 1; letter-spacing: .005em; }
.gmc-logo__sub { font-size: calc(var(--s) * .672); font-weight: 700; line-height: 1; letter-spacing: .017em; margin-top: calc(var(--s) * .065); }
.gmc-logo__tag { font-size: calc(var(--s) * .56); font-weight: 500; line-height: 1; letter-spacing: -.008em; margin-top: calc(var(--s) * .07); }
.logo-link:hover .gmc-logo { color: var(--gmc-navy-2); }

/* ---- Desktop: one row ---- */
@media (min-width: 1025px) {
  #masthead.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgb(255 255 255 / .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--gmc-border); box-shadow: none;
  }
  #masthead-inner {
    display: grid !important; grid-template-columns: auto 1fr; align-items: center; column-gap: 32px;
    max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 72px;
  }
  #cb-row--header-main, #cb-row--header-bottom { height: auto !important; min-height: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  #cb-row--header-main .header--row-inner, #cb-row--header-bottom .header--row-inner,
  #cb-row--header-main .customify-container, #cb-row--header-bottom .customify-container {
    height: auto !important; min-height: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
    padding-top: 0 !important; padding-bottom: 0 !important; padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; margin: 0 !important;
  }
  #cb-row--header-main .customify-grid, #cb-row--header-bottom .customify-grid { height: auto !important; min-height: 0 !important; margin: 0 !important; }
  #cb-row--header-main .customify-grid { justify-content: flex-start; }
  #cb-row--header-bottom .customify-grid { justify-content: flex-end; }
  #cb-row--header-main .customify-col, #cb-row--header-bottom .customify-col { padding: 0 !important; }
  #cb-row--header-main .site-branding { padding: 0; margin: 0; }
  #cb-row--header-main .customify-col-4_md-4, #cb-row--header-main .builder-item { flex: 0 0 auto; width: auto; max-width: none; }
}

/* ---- Menu ---- */
.primary-menu-desktop > .menu, .primary-menu-desktop > ul { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin: 0; }
.primary-menu-desktop .menu > li > a, .primary-menu-desktop > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px !important; border-radius: 999px;
  font-family: var(--gmc-font); font-size: .9rem !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--gmc-navy) !important; line-height: 1.2; transition: background .15s ease, color .15s ease;
}
.primary-menu-desktop .menu > li > a:hover, .primary-menu-desktop .menu > li:hover > a { background: #eef3f8; color: var(--gmc-navy) !important; }
.primary-menu-desktop .menu > li.current-menu-item > a, .primary-menu-desktop .menu > li.current-menu-ancestor > a,
.primary-menu-desktop .menu > li.current_page_item > a { background: var(--gmc-green-soft); color: var(--gmc-green) !important; }
.primary-menu-desktop .menu > li { margin: 0 !important; }
.primary-menu-desktop .menu > li > a::before { display: none; }
.primary-menu-desktop .nav-icon-angle { opacity: .55; }
.primary-menu-desktop .sub-menu {
  min-width: 220px; margin-top: 6px; padding: 6px; background: #fff; border: 1px solid var(--gmc-border); border-radius: var(--gmc-radius); box-shadow: var(--gmc-shadow-hover);
}
.primary-menu-desktop .sub-menu a { display: block; padding: 9px 12px !important; border-radius: 8px; font-size: .88rem !important; font-weight: 500 !important; text-transform: none !important; color: var(--gmc-navy) !important; }
.primary-menu-desktop .sub-menu a:hover { background: #eef3f8; }

/* ---- Tablet and phone: compact bar, same lockup ---- */
@media (max-width: 1024px) {
  #masthead.site-header {
    position: sticky; top: 0; z-index: 60; background: rgb(255 255 255 / .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gmc-border); box-shadow: none;
  }
  #cb-row--header-main { height: auto !important; min-height: 0 !important; }
  #cb-row--header-main .header--row-inner, #cb-row--header-main .customify-container, #cb-row--header-main .customify-grid {
    height: auto !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
  }
  #cb-row--header-main .customify-container { padding: 10px 16px !important; }
  #cb-row--header-main .site-branding { margin: 0; padding: 0; }
  .gmc-logo { --s: 15.5px; }
}
@media (max-width: 420px) {
  .gmc-logo { --s: 14px; }
  .gmc-logo__tag { display: none; }
}

/* The customizer's Additional CSS sets overflow-x:hidden on html/body, which stops position:sticky from working */
html body { overflow-x: clip !important; }
html { overflow-x: clip !important; }

/* Theme v2 layout: remove the 80px item margins, let columns size to content, keep the menu in one line */
#masthead .builder-item--logo, #masthead .site-header-inner .item--inner { margin-top: 0 !important; margin-bottom: 0 !important; }
#masthead .site-name-desc { display: none; }
.gmc-logo { text-transform: none; }
@media (min-width: 1025px) {
  #cb-row--header-main .row-v2 { justify-content: flex-start; width: auto; }
  #cb-row--header-bottom .row-v2 { justify-content: flex-end; width: 100%; }
  #cb-row--header-main .col-v2-center { flex: 0 0 auto; }
  #cb-row--header-bottom .col-v2 { flex: 1 1 auto; }
  #cb-row--header-bottom .col-v2-center { justify-content: flex-end; }
  #cb-row--header-bottom .col-v2-left, #cb-row--header-bottom .col-v2-right { flex: 0 0 0; }
}
.primary-menu-desktop .menu > li, .primary-menu-desktop > ul > li { flex: 0 0 auto; }
.primary-menu-desktop .menu > li > a { white-space: nowrap; }

@media (min-width: 1025px) { #cb-row--header-main .col-v2-center { justify-content: flex-start; } #cb-row--header-main .col-v2 { flex: 0 0 auto; } }

#masthead .builder-item--logo, #masthead .item--inner { margin-left: 0 !important; margin-right: 0 !important; }
#masthead .col-v2 { margin-left: 0 !important; margin-right: 0 !important; }
@media (min-width: 1025px) { #masthead-inner { max-width: 1248px; } }

/* ---- Slide-out menu: fill the full height, calmer welcome line ---- */
#header-menu-sidebar { background: var(--gmc-ink) !important; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
#header-menu-sidebar .header-menu-sidebar-inner { flex: 1 1 auto; min-height: 100%; padding-bottom: 32px; overflow-y: auto; background: var(--gmc-ink) !important; }
#header-menu-sidebar .builder-header-html-item, #header-menu-sidebar .builder-header-html-item p {
  margin: 0; color: #a9c4dc !important; background: none !important; -webkit-text-fill-color: currentColor;
  font-family: var(--gmc-font); font-size: .78rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}
#header-menu-sidebar .primary-menu-sidebar .menu > li > a { font-size: 1rem; padding-top: 14px; padding-bottom: 14px; }
#header-menu-sidebar .primary-menu-sidebar .sub-menu a { padding-left: 32px; opacity: .85; }

/* ---- One search box style everywhere: header menu, 404, shop, catalog ---- */
form.search-form, .header-search-form, .woocommerce-product-search, .gmc-catalog__search {
  display: flex; align-items: stretch; gap: 0; width: 100%; background: #fff;
  border: 1px solid var(--gmc-border); border-radius: 10px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease;
}
form.search-form:focus-within, .header-search-form:focus-within, .woocommerce-product-search:focus-within, .gmc-catalog__search:focus-within {
  border-color: var(--gmc-green); box-shadow: 0 0 0 3px rgb(19 122 69 / .15);
}
form.search-form .search-field, .header-search-form .search-field, .woocommerce-product-search .search-field, .gmc-catalog__search input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 0 !important; border-radius: 0 !important; background: transparent !important;
  box-shadow: none !important; color: var(--gmc-ink); font-family: var(--gmc-font); font-size: .95rem;
}
form.search-form .search-fields, .header-search-form .search-form-fields { flex: 1 1 auto; display: flex; }
form.search-form .search-submit, .header-search-form .search-submit, .woocommerce-product-search button, .gmc-catalog__search button {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 44px; padding: 0; margin: 0;
  border: 0 !important; border-radius: 0 !important; background: var(--gmc-navy) !important; color: #fff !important; cursor: pointer; transition: background .15s ease;
}
.gmc-catalog__search button { width: auto; padding: 0 22px; font-weight: 600; text-transform: none; letter-spacing: 0; }
form.search-form .search-submit:hover, .header-search-form .search-submit:hover, .woocommerce-product-search button:hover, .gmc-catalog__search button:hover { background: var(--gmc-green) !important; }
form.search-form .search-submit svg, .header-search-form .search-submit svg { width: 18px; height: 18px; fill: currentColor; }

/* Sidebar search sits on navy: same shape, translucent field */
#header-menu-sidebar .header-search-form { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .16); }
#header-menu-sidebar .header-search-form .search-field { color: #fff; }
#header-menu-sidebar .header-search-form .search-field::placeholder { color: #8ba3b9; }
#header-menu-sidebar .header-search-form .search-submit { background: var(--gmc-green) !important; }
#header-menu-sidebar .header-search-form .search-submit:hover { background: var(--gmc-green-2) !important; color: var(--gmc-ink) !important; }

.header-search-form .search-submit svg, form.search-form .search-submit svg { width: 18px !important; height: 18px !important; min-width: 18px; }
.header-search-form .search-submit { position: static; }
#header-menu-sidebar-bg .menu-mobile-toggle, .menu-mobile-toggle.close-menu, #header-menu-sidebar .menu-close { background: transparent; }

/* Footer lockup: same mark and text, light on navy and a little larger */
.gmc-logo--light { --s: 21px; color: #fff; margin-bottom: 16px; }
.gmc-footer a.gmc-logo--light:hover { color: #fff; }
.gmc-footer .gmc-logo__text { display: flex; }
.gmc-footer__brand { display: block; }

#site-footer a.gmc-logo--light, #site-footer a.gmc-logo--light * { color: #fff; }
.gmc-catalog__search button, .gmc-catalog__search button:hover { text-transform: none !important; letter-spacing: 0 !important; font-size: .95rem; }
.header-search-modal-wrapper .header-search-form, .header-search-modal { border-radius: 10px; }

/* Mobile search popup: a real field next to the button */
.header-search-modal-wrapper { right: 0; left: auto; }
.header-search-modal-wrapper .header-search-modal, .header-search-modal { width: min(340px, calc(100vw - 32px)); min-width: 260px; padding: 0; }
.header-search-modal .search-form-fields { flex: 1 1 auto; min-width: 0; }
.header-search-modal .search-field { width: 100% !important; }

/* Home hero on phones: stack the two columns at full width */
@media (max-width: 768px) {
  .gmc-sections .elementor-element-e4e23fa { flex-direction: column !important; align-items: stretch !important; }
  .gmc-sections .elementor-element-e4e23fa > .e-con { width: 100% !important; max-width: 100% !important; }
  .gmc-sections .elementor-element-e4e23fa .elementor-heading-title { text-align: left !important; font-size: 1.7rem; }
  .gmc-sections .elementor-element-e4e23fa .elementor-widget-text-editor { text-align: left !important; }
}

@media (max-width: 1024px) {
  .header-search-modal-wrapper { position: fixed !important; top: 66px !important; left: 16px !important; right: 16px !important; width: auto !important; transform: none !important; z-index: 70; }
  .header-search-modal-wrapper .header-search-modal, .header-search-modal { width: 100% !important; min-width: 0; box-shadow: var(--gmc-shadow-hover); }
}
