/* Shared public-site header and footer. Loaded after each page stylesheet. */
.site-header,
.site-footer{
  --shell-navy:#043653;
  --shell-navy-2:#062b43;
  --shell-blue:#0876bb;
  --shell-orange:#ff8628;
  --shell-muted:#607487;
  --shell-line:#dfe9ee;
  --shell-white:#fff;
  --shell-shadow:0 18px 45px rgba(4,54,83,.13);
  --shell-container:1180px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.site-header *,
.site-footer *{box-sizing:border-box}
.site-header .container,
.site-footer .container{width:min(calc(100% - 40px),var(--shell-container));margin-inline:auto}
.site-header a,
.site-footer a{color:inherit;text-decoration:none}
.site-header button,
.site-header input{font:inherit}
.site-header svg{width:1em;height:1em;display:block;max-width:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}

.site-header{position:sticky;z-index:100;top:0;color:#0b2940;background:#fff;border:0;box-shadow:0 1px 0 rgba(4,54,83,.1);backdrop-filter:none}
.site-header .header-top{background:#fff}
.site-header .topbar-inner{min-height:70px;display:grid;grid-template-columns:205px 135px minmax(250px,1fr) auto;gap:16px;align-items:center}
.site-header .brand{display:inline-flex;align-items:center;min-width:0}
.site-header .brand img{display:block;width:190px;height:auto;max-width:100%;background:#fff;border:0;border-radius:0;box-shadow:none}
.site-header .location-field{display:flex;align-items:center;gap:8px}
.site-header .location-field>svg{width:20px;height:20px;color:var(--shell-blue);flex:0 0 auto}
.site-header .location-field span{display:grid;line-height:1.25}
.site-header .location-field select{width:auto;padding:0;color:#0b2940;background:transparent;border:0;outline:0;font-size:.76rem;font-weight:700;font-family:inherit;cursor:pointer}
.site-header .location-field small,
.site-header .top-call small{font-size:.64rem;color:var(--shell-muted)}
.site-header .top-call strong{font-size:.76rem}
.site-header .header-search{height:42px;display:flex;align-items:center;overflow:hidden;margin:0;background:#f5f8fa;border:1px solid var(--shell-line);border-radius:9px}
.site-header .header-search>svg{flex:0 0 auto;width:17px;height:17px;margin-left:13px;color:#8093a1}
.site-header .header-search input{min-width:0;flex:1;width:auto;height:100%;padding:0 10px;color:#0b2940;border:0;outline:0;background:transparent;font-size:.77rem;box-shadow:none}
.site-header .header-search button{height:100%;padding:0 16px;color:#fff;background:var(--shell-blue);border:0;border-radius:0;font-size:.72rem;font-weight:800;cursor:pointer}
.site-header .top-actions{display:flex;align-items:center;gap:13px}
.site-header .top-call{display:flex;align-items:center;gap:8px;white-space:nowrap}
.site-header .top-call>svg{width:20px;height:20px;color:var(--shell-orange)}
.site-header .top-call span{display:grid;line-height:1.25}
.site-header .top-appointment{padding:10px 15px;color:#fff;background:var(--shell-navy);border-radius:8px;font-size:.72rem;font-weight:800;white-space:nowrap}
.site-header .top-login{display:flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;white-space:nowrap}
[data-gh-logged-in] .site-header .top-login,[data-gh-logged-in] .nav-utility,[data-gh-logged-in] .mobile-nav-actions>a[href="login.php"]{display:none!important}
.site-header .top-login svg{width:16px;height:16px}
.site-header .mobile-menu-toggle{display:none;width:42px;height:42px;padding:0;place-items:center;color:#0b2940;background:#fff;border:1px solid var(--shell-line);border-radius:8px;cursor:pointer}
.site-header .mobile-menu-toggle svg{width:22px;height:22px}
.site-header .header-nav-wrap{position:static;display:block;padding:0;color:#dcecf4;background:var(--shell-navy);box-shadow:none}
.site-header .nav-inner{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.site-header .primary-nav{display:flex;align-items:center;justify-content:flex-start;gap:23px}
.site-header .primary-nav a{position:relative;padding:13px 0 12px;color:#dcecf4;border:0;font-size:.86rem;font-weight:650;line-height:1.2}
.site-header .primary-nav a::after{display:none}
.site-header .primary-nav a:hover,
.site-header .primary-nav a:focus-visible,
.site-header .primary-nav a.is-active{color:#fff}
.site-header .primary-nav a.is-active::after{content:"";position:absolute;display:block;left:0;right:0;bottom:0;height:3px;background:var(--shell-orange);border-radius:3px 3px 0 0}
.site-header .nav-utility{display:flex;align-items:center;gap:16px}
.site-header .nav-utility a{color:#fff;font-size:.82rem;font-weight:800;white-space:nowrap}
.site-header .nav-utility button{display:flex;align-items:center;gap:5px;padding:0;color:#dcecf4;background:transparent;border:0;font-size:.82rem;cursor:pointer;white-space:nowrap}
.site-header .nav-utility svg{width:14px;height:14px}
.site-header .mobile-nav-actions{display:none}

.site-footer{color:#c9dce7;background:var(--shell-navy-2);border:0}
.site-footer .footer-appbar{padding:12px 0;background:#061f31;border-bottom:1px solid rgba(255,255,255,.08)}
.site-footer .footer-appbar .container{display:flex;align-items:center;gap:16px}
.site-footer .brand{display:inline-flex;align-items:center;min-width:0}
.site-footer .brand img{display:block;width:180px;height:auto;max-width:100%;background:transparent;border:0;border-radius:0;box-shadow:none}
.site-footer .footer-appbar .brand img{width:148px}
.site-footer .footer-appbar p{margin:0 0 0 auto;color:#c9dce7;font-size:.62rem}
.site-footer .footer-appbar a:not(.brand){padding:7px 10px;color:#fff;background:rgba(255,255,255,.1);border-radius:6px;font-size:.58rem;font-weight:800;white-space:nowrap}
.site-footer .footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,.9fr);gap:40px;padding-top:42px;padding-bottom:36px}
.site-footer .footer-about p{max-width:320px;margin:10px 0 0;color:#9eb7c6;font-size:.67rem;line-height:1.55}
.site-footer .footer-grid h2{margin:0 0 13px;color:#fff;font-size:.69rem;line-height:1.2;text-transform:uppercase;letter-spacing:.08em}
.site-footer .footer-grid>div:not(.footer-about)>a{display:block;margin:8px 0;color:#b7ccd8;font-size:.64rem;line-height:1.4}
.site-footer .footer-grid a:hover{color:#fff}
.site-footer .socials{display:flex;gap:7px;margin-top:16px}
.site-footer .socials a{width:29px;height:29px;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.09);border-radius:50%;font-size:.62rem;font-weight:850}
.site-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:18px 0;color:#7f9cac;border-top:1px solid rgba(255,255,255,.08);font-size:.58rem}
.site-footer .footer-bottom p{margin:0;color:#7f9cac}
.site-footer .footer-bottom div{display:flex;gap:16px}
.site-footer .footer-bottom a{color:#7f9cac}

.site-toast{position:fixed;z-index:1100;left:50%;bottom:25px;transform:translate(-50%,20px);padding:11px 16px;color:#fff;background:#092f48;border-radius:8px;box-shadow:var(--shell-shadow);opacity:0;pointer-events:none;font-size:.68rem;transition:.25s ease}
.site-toast.is-visible{opacity:1;transform:translate(-50%,0)}

@media(max-width:1100px){
  .site-header .topbar-inner{grid-template-columns:185px 120px 1fr auto}
  .site-header .top-actions .top-call{display:none}
  .site-footer .footer-grid{grid-template-columns:1.3fr repeat(3,.95fr);gap:25px}
}
@media(max-width:900px){
  .site-header .topbar-inner{grid-template-columns:175px minmax(0,1fr) auto}
  .site-header .location-field,
  .site-header .top-actions{display:none}
  .site-header .header-search{grid-column:2}
  .site-header .mobile-menu-toggle{display:grid}
  .site-header .header-nav-wrap{position:absolute;left:0;right:0;top:70px;display:none;padding:12px 0;box-shadow:var(--shell-shadow)}
  .site-header .header-nav-wrap.is-open{display:block}
  .site-header .nav-inner{display:block;min-height:0}
  /* styles-v5.css turns .primary-nav into a white dropdown panel on small
     screens, but these links are coloured for the navy bar. Keep the panel on
     the navy background so the near-white link text stays legible.
     justify-items:stretch is needed because the desktop rule sets
     justify-content:flex-start, which otherwise shrinks the single column
     to the width of the longest link and leaves the row borders half-width. */
  .site-header .primary-nav{display:grid;gap:0;position:static;left:auto;right:auto;top:auto;
    justify-content:stretch;justify-items:stretch;
    padding:10px;color:inherit;background:none;border:0;border-radius:0;box-shadow:none}
  .site-header .primary-nav a{display:flex;align-items:center;min-height:44px;padding:11px 4px;border-bottom:1px solid rgba(255,255,255,.1)}
  .site-header .primary-nav a.is-active::after{display:none}
  /* The wrapper holds only the Login link, so a two-column grid would leave it
     at half width. */
  .site-header .mobile-nav-actions{display:grid;grid-template-columns:1fr;gap:9px;padding:13px 0 2px}
  .site-header .mobile-nav-actions a{display:grid;place-items:center;padding:10px;border:1px solid rgba(255,255,255,.18);border-radius:7px;color:#fff;background:rgba(255,255,255,.08);font-weight:800}
  .site-header .mobile-nav-actions a:first-child{background:var(--shell-orange);border-color:var(--shell-orange)}
  .site-header .nav-utility{justify-content:space-between;padding-top:12px}
  .site-footer .footer-grid{grid-template-columns:1.4fr repeat(2,1fr)}
  .site-footer .footer-about{grid-row:span 2}
}
@media(max-width:700px){
  .site-header .container,
  .site-footer .container{width:min(calc(100% - 28px),var(--shell-container))}
  .site-header .topbar-inner{min-height:62px;grid-template-columns:145px minmax(0,1fr) auto;gap:8px}
  .site-header .brand img{width:140px}
  .site-header .header-search{height:38px}
  .site-header .header-search button{display:none}
  .site-header .header-nav-wrap{top:62px}
  .site-footer .footer-appbar p{display:none}
  .site-footer .footer-appbar .container{justify-content:space-between}
  .site-footer .footer-grid{grid-template-columns:1fr 1fr}
  .site-footer .footer-about{grid-column:1/-1;grid-row:auto}
  .site-footer .footer-bottom{align-items:flex-start;flex-direction:column}
}
@media(max-width:450px){
  .site-header .topbar-inner{grid-template-columns:minmax(0,1fr) auto}
  .site-header .header-search{display:none}
  .site-header .mobile-menu-toggle{grid-column:2}
  .site-header .mobile-nav-actions{grid-template-columns:1fr}
  .site-footer .footer-appbar a:not(.brand){display:none}
  .site-footer .footer-grid{grid-template-columns:1fr}
  .site-footer .footer-about{grid-column:auto}
}

/* Mobile header: logo left, Drop Your Query button centered, hamburger right - same design as desktop */
.site-header .mobile-query-btn {
  display: none;
  padding: 6px 10px !important;
  color: #fff !important;
  background: #043653 !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
@media(max-width:900px) {
  .site-header .mobile-query-btn {
    display: inline-flex;
    align-items: center;
  }
  .site-header .top-actions,
  .site-header .location-field,
  .site-header .header-search {
    display: none;
  }
  .site-header .topbar-inner {
    display: flex !important;
    align-items: center;
  }
  .site-header .brand {
    flex: 0 0 auto;
  }
  .site-header .mobile-query-btn {
    margin: 0 auto;
  }
  .site-header .mobile-menu-toggle {
    margin-left: auto;
    cursor: pointer;
    z-index: 10;
  }
}

/* ─── Header Profile Chip ───────────────────────────────────────── */
.site-header .hdr-profile-chip{position:relative}
.site-header .hdr-profile-btn{display:flex;align-items:center;gap:7px;background:none;border:1.5px solid var(--shell-line);border-radius:40px;padding:3px 10px 3px 3px;cursor:pointer;color:#0b2940;font-size:.72rem;font-weight:700;white-space:nowrap;transition:background .15s,border-color .15s;line-height:1}
.site-header .hdr-profile-btn:hover{background:#f3f6fa;border-color:#b0c4d0}
.site-header .hdr-avatar{width:30px;height:30px;border-radius:50%;background:var(--shell-navy);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.site-header .hdr-avatar-img{width:100%;height:100%;object-fit:cover;display:block}
.site-header .hdr-avatar-txt{font-size:10.5px;font-weight:800;color:#fff;letter-spacing:.4px;line-height:1;text-transform:uppercase}
.site-header .hdr-profile-name{display:flex;flex-direction:column;gap:2px;text-align:left}
.site-header .hdr-profile-name>span{font-size:.72rem;font-weight:700;line-height:1.2;white-space:nowrap}
.site-header .hdr-profile-name small{font-size:.6rem;opacity:.6;text-transform:capitalize;font-weight:500;line-height:1.2;white-space:nowrap}
.site-header .hdr-chevron{flex-shrink:0;opacity:.55;transition:transform .2s;width:13px!important;height:13px!important;stroke-width:2.5!important}
.site-header .hdr-profile-btn[aria-expanded="true"] .hdr-chevron{transform:rotate(180deg)}
.hdr-profile-dropdown{position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #dfe7ef;border-radius:10px;box-shadow:0 8px 28px rgba(4,54,83,.13);min-width:190px;z-index:500;padding:4px 0;overflow:hidden}
.hdr-drop-item{display:block;width:100%;padding:10px 16px;text-align:left;font-size:.78rem;color:#1a2535;background:none;border:none;cursor:pointer;text-decoration:none;font-family:inherit;font-weight:500;line-height:1.3;transition:background .12s}
.hdr-drop-item:hover,.hdr-drop-item:focus{background:#f3f6fa;color:#043653;outline:none}
.hdr-drop-divider{height:1px;background:#f0f4f7;margin:4px 0}
.hdr-drop-signout{color:#c0392b!important;font-weight:600}
.hdr-drop-signout:hover{background:#fff5f5!important;color:#a93226!important}
/* Mobile nav auth — logged-in state */
.mobile-nav-actions .hdr-mobile-user{font-weight:700;color:#dcecf4;pointer-events:none;grid-column:1/-1;font-size:.82rem;padding:4px 0 2px}
.mobile-nav-actions .hdr-mobile-user small{font-weight:500;opacity:.7}
.site-header .mobile-nav-actions .mobile-dash-link{background:var(--shell-orange);border-color:var(--shell-orange)}
.site-header .mobile-nav-actions .mobile-signout-btn{display:grid;place-items:center;padding:10px;border:1px solid rgba(255,255,255,.18);border-radius:7px;color:#fff;background:rgba(255,255,255,.08);font-weight:800;cursor:pointer;font:inherit;font-size:inherit;text-align:center}
@media(max-width:450px) {
  .site-header .mobile-query-btn {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}
