/* ==========================================================================
   Arban Host — header & footer  (paste into Appearance ▸ Customize ▸ Additional CSS)
   Scoped to .ah- classes and Phox/Elementor header+footer markup only.
   Nothing here touches page content.
   ========================================================================== */

:root{
  /* Brand green kept as-is for decoration. White text on it is only 2.45:1,
     so anything with text on top uses --ah-g7 (5.0:1) instead. */
  --ah-g:      #29BF5F;
  --ah-g7:     #14803C;
  --ah-g8:     #0F6630;
  --ah-g-soft: rgba(41,191,95,.12);

  --ah-ink:    #1B1F23;
  --ah-ink-2:  #4A5257;

  --ah-dark:   #0F1613;   /* footer bg, tinted toward the brand hue */
  --ah-dark-2: #17211C;
  --ah-on-dark:      #E8EEEA;
  --ah-on-dark-mute: #A7B3AC;   /* 7.1:1 on --ah-dark */
  --ah-line-dark: rgba(255,255,255,.10);

  --ah-r:    10px;
  --ah-r-lg: 14px;
  --ah-ease: cubic-bezier(.22,1,.36,1);

  --ah-z-header: 100;
  --ah-z-drawer: 200;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

/* Sticky, but only the nav bar — not the promo strip above it. */
.wdes-nav-wrap{ --ah-hdr: 1; }

.elementor-element-de819fb{
  position: sticky;
  top: 0;
  z-index: var(--ah-z-header);
  background: #fff;
  border-bottom: 1px solid rgba(27,31,35,.08);
  transition: box-shadow .25s var(--ah-ease);
}
.admin-bar .elementor-element-de819fb{ top: 32px; }
@media (max-width:782px){ .admin-bar .elementor-element-de819fb{ top: 46px; } }

.elementor-element-de819fb > .elementor-container{
  align-items: center;
  /* Tight gaps: the nav needs ~600px and the row only has ~1140px to give. */
  gap: clamp(8px, 1.5vw, 20px);
}

/* 33/33/33 wastes space on the logo and squeezes the nav.
   logo: intrinsic · nav: takes the slack · actions: intrinsic */
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(1){ width:auto; flex:0 0 auto; }
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(2){ width:auto; flex:1 1 auto; min-width:0; }
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3){ width:auto; flex:0 0 auto; }

.elementor-element-de819fb .elementor-widget-wdes-logo img{
  max-height: 46px;
  width: auto;
}

/* ---- Nav links ---- */
.wdes-nav-wrap .menu-item-link{
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ah-ink);
  letter-spacing: -0.005em;
  border-radius: 8px;
  transition: color .18s var(--ah-ease), background-color .18s var(--ah-ease);
}
.wdes-nav-wrap .menu-item-link-depth-0{
  padding: 10px 14px;
  line-height: 1.2;
}
.wdes-nav-wrap .menu-item-link:hover,
.wdes-nav-wrap .menu-item-link:focus-visible{
  color: var(--ah-g7);
  background: var(--ah-g-soft);
}
.wdes-nav-wrap .current-menu-item > .menu-item-link,
.wdes-nav-wrap .current-page-ancestor > .menu-item-link{
  color: var(--ah-g7);
}

/* Keyboard focus must always be visible. */
.elementor-element-de819fb a:focus-visible,
.ah-footer a:focus-visible,
.ah-footer button:focus-visible{
  outline: 2px solid var(--ah-g7);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Header actions (Support / Log in) ---- */
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3) .elementor-widget-wrap{
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.elementor-element-de819fb .elementor-widget-image-box{ width:auto; }
.elementor-element-de819fb .elementor-image-box-wrapper{
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.elementor-element-de819fb .elementor-image-box-img{ margin:0 !important; width:auto !important; }
.elementor-element-de819fb .elementor-image-box-img img{ width:18px; height:18px; object-fit:contain; }
.elementor-element-de819fb .elementor-image-box-content{ text-align:left; }
.elementor-element-de819fb .elementor-image-box-title{
  margin:0;
  font-family: Poppins, system-ui, sans-serif;
  font-size:15px;
  font-weight:500;
  line-height:1.2;
}
.elementor-element-de819fb .elementor-image-box-title a{ color: var(--ah-ink); }

/* Second action ("Log in") becomes the one solid button in the header. */
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3)
  .elementor-widget-image-box:last-child .elementor-image-box-wrapper{
  background: var(--ah-g7);
  padding: 11px 20px;
  border-radius: 999px;
  transition: background-color .18s var(--ah-ease), transform .18s var(--ah-ease);
}
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3)
  .elementor-widget-image-box:last-child .elementor-image-box-wrapper:hover{
  background: var(--ah-g8);
  transform: translateY(-1px);
}
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3)
  .elementor-widget-image-box:last-child .elementor-image-box-title a{ color:#fff; }
.elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3)
  .elementor-widget-image-box:last-child img{ filter: brightness(0) invert(1); }

/* The nav already links to the Client Area, and so does the Log in button.
   Hide the duplicate nav item on desktop; the drawer keeps it on mobile.
   NB: Phox puts .wdes-mobile-menu on the wrapper at every width, so the
   breakpoint has to do this work, not a :not() on that class. */
@media (min-width: 1025px){
  .wdes-nav-wrap .menu-item > a[href*="clientarea.php"]{ display: none; }

  /* One line, and it must not spill past its column — a centred flex row that
     overflows pushes "Home" left, straight over the logo. */
  .wdes-nav-wrap .menu-main-container > div,
  .wdes-nav-wrap .menu-main-container{
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }
  /* Phox ships 8px 15px here with higher specificity, which makes the row
     645px wide inside a 590px column. Match its specificity and trim the
     horizontal padding until the row fits. */
  .wdes-nav-wrap .menu-main-container .menu-item > a.menu-item-link.menu-item-link-depth-0{
    padding: 10px 9px;
    font-size: 14.5px;
    white-space: nowrap;
  }
}

/* Narrow desktops have less slack still. */
@media (min-width: 1025px) and (max-width: 1300px){
  .wdes-nav-wrap .menu-main-container .menu-item > a.menu-item-link.menu-item-link-depth-0{
    padding: 10px 6px;
    font-size: 14px;
  }
  .elementor-element-de819fb .elementor-widget-wdes-logo img{ max-height: 40px; }
  .elementor-element-de819fb .elementor-image-box-title{ font-size: 14px; }
}

/* ==========================================================================
   HEADER — mobile
   ========================================================================== */
@media (max-width: 1024px){
  .elementor-element-de819fb > .elementor-container{
    gap: 10px;
    padding-block: 6px;
  }
  .elementor-element-de819fb .elementor-widget-wdes-logo img{ max-height: 38px; }

  /* Keep "Log in" reachable next to the burger; drop the Support label. */
  .elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3)
    .elementor-widget-image-box:first-child{ display:none; }
  .elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3)
    .elementor-widget-image-box:last-child .elementor-image-box-wrapper{ padding: 9px 16px; }
  .elementor-element-de819fb .elementor-image-box-title{ font-size:14px; }

  /* Drawer links: real 48px tap targets, clear separation.
     Selectors match Phox's own specificity or its padding/colour wins. */
  .wdes-mobile-menu .menu-main-container .menu-item > a.menu-item-link{
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(27,31,35,.07);
  }
  .wdes-mobile-menu .menu-main-container .menu-item > a.menu-item-link.menu-item-link-depth-1{
    padding-left: 38px;
    font-size: 15px;
    font-weight: 400;
    color: var(--ah-ink-2);
  }
  /* Client Area reads as the action it is, not one more list row.
     The colour needs this specificity — Phox was leaving the label black on
     the green pill, which is only 4.2:1. */
  .wdes-mobile-menu .menu-main-container .menu-item > a.menu-item-link[href*="clientarea.php"]{
    margin: 14px 16px;
    background: var(--ah-g7);
    color: #fff;
    justify-content: center;
    border-radius: 999px;
    border-bottom: 0;
    font-weight: 600;
  }
  .wdes-mobile-menu .menu-main-container .menu-item > a.menu-item-link[href*="clientarea.php"]:hover,
  .wdes-mobile-menu .menu-main-container .menu-item > a.menu-item-link[href*="clientarea.php"]:focus-visible{
    background: var(--ah-g8);
    color: #fff;
  }

  /* Phox hides the whole actions column below 1025px, which takes "Log in"
     off the mobile header entirely. Bring the button back next to the burger;
     returning customers should not have to open the menu to reach it. */
  .elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3){
    display: flex !important;
    flex: 0 0 auto;
  }
  .elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3)
    .elementor-widget-image-box:first-child{ display: none; }
}

/* Very small phones: the pill would crowd the burger, so drop it and rely on
   the Client Area button inside the drawer. */
@media (max-width: 400px){
  .elementor-element-de819fb > .elementor-container > .elementor-column:nth-child(3){ display: none !important; }
}

/* Burger: 44px hit area (was a bare icon). */
.wdes-nav-wrap .wdes-nav-toggle,
.wdes-nav-wrap [class*="menu-toggle"]{
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ah-footer{
  background: var(--ah-dark);
  color: var(--ah-on-dark);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;   /* light-on-dark needs the extra leading */
}
.ah-footer *{ box-sizing: border-box; }
.ah-footer__inner{
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 40px) 0;
}

/* --- Build-a-site band: sends non-hosting work to Arban Tech --- */
.ah-cta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 4vw, 36px);
  margin-bottom: clamp(40px, 5vw, 60px);
  background: var(--ah-dark-2);
  border: 1px solid var(--ah-line-dark);
  border-radius: var(--ah-r-lg);
}
.ah-cta__text{ flex: 1 1 320px; min-width: 0; }
.ah-cta__title{
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.ah-cta__sub{ margin: 0; color: var(--ah-on-dark-mute); font-size: 15px; }
.ah-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ah-g);
  color: #08240F;              /* dark ink on brand green = 8.4:1 */
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ah-ease), transform .18s var(--ah-ease);
}
.ah-btn:hover{ background:#3ED873; color:#08240F; transform: translateY(-1px); }
.ah-btn svg{ flex:none; }

/* --- Link columns --- */
/* Explicit tracks, not auto-fit: auto-fit gave 4 tracks, the brand block ate
   two of them and Company wrapped onto its own row. */
.ah-cols{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 52px);
}
.ah-col--brand{ min-width: 0; }

@media (min-width: 620px){
  .ah-cols{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-col--brand{ grid-column: 1 / -1; }
}
@media (min-width: 940px){
  .ah-cols{ grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); }
  .ah-col--brand{ grid-column: auto; }
}

/* Wordmark instead of the logo PNG: the logo's dark text is unreadable on the
   dark footer, and inverting it would kill the green. */
.ah-wordmark{
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.ah-wordmark span{
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ah-g);
}
.ah-col__blurb{
  margin: 0 0 18px;
  max-width: 34ch;
  color: var(--ah-on-dark-mute);
}
.ah-col h3{
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.ah-col ul{ list-style:none; margin:0; padding:0; }
.ah-col li + li{ margin-top: 2px; }
.ah-col a{
  display: block;
  padding: 7px 0;
  color: var(--ah-on-dark-mute);
  text-decoration: none;
  transition: color .16s var(--ah-ease);
}
.ah-col a:hover{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.ah-contact{ margin:0; color: var(--ah-on-dark-mute); font-style: normal; }
.ah-contact a{ display:inline; padding:0; color: var(--ah-on-dark); }

/* --- Bottom bar --- */
.ah-bottom{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--ah-line-dark);
  color: var(--ah-on-dark-mute);
  font-size: 14px;
}
.ah-bottom__legal{ display:flex; flex-wrap:wrap; gap: 6px 20px; align-items:center; }
.ah-bottom a{ color: var(--ah-on-dark-mute); text-decoration:none; }
.ah-bottom a:hover{ color:#fff; text-decoration:underline; text-underline-offset:3px; }

@media (max-width: 700px){
  .ah-cta{ flex-direction: column; align-items: stretch; }
  .ah-btn{ justify-content:center; }
  .ah-bottom{ flex-direction: column; align-items: flex-start; }
}

/* Motion is a nicety, never a requirement. */
@media (prefers-reduced-motion: reduce){
  .ah-btn, .ah-col a, .wdes-nav-wrap .menu-item-link,
  .elementor-element-de819fb,
  .elementor-element-de819fb .elementor-image-box-wrapper{
    transition: none !important;
  }
  .ah-btn:hover,
  .elementor-element-de819fb .elementor-image-box-wrapper:hover{ transform:none; }
}

/* Old Phox footer strip is replaced by .ah-footer */
.elementor-element-f28e4ba{ display:none; }
