/* THEME CSS
 * NQ25 — layout, header/footer, two-column grid, sidebar actions, print rules
 * v1.90
 */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sansita Swashed';
  src: url('../fonts/sansita-swashed-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sansita Swashed';
  src: url('../fonts/sansita-swashed-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sansita Swashed';
  src: url('../fonts/sansita-swashed-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== Base ===== */
:root{
  --divider: rgba(0,0,0,0.12);
  --nq-scrollbar-thumb: #1b75a6;
  --nq-scrollbar-thumb-hover: #0f5f95;
  --nq-scrollbar-track: #e8eef3;
}
html, body { overflow-y: auto !important; }     /* default scroll ON */
body.nq-no-content { overflow-y: hidden !important; } /* hide when hero-only */
html {
  scrollbar-color: var(--nq-scrollbar-thumb) var(--nq-scrollbar-track);
  scrollbar-width: auto;
}
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track {
  background: var(--nq-scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--nq-scrollbar-thumb);
  border-radius: 999px;
  border: 3px solid var(--nq-scrollbar-track);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--nq-scrollbar-thumb-hover);
}
body {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a {
  color: #1b75a6;
  text-decoration: none; /* Removes underline */
  transition: all 0.25s ease;
  padding: 8px 8px; /* Adds space for the box */
  border-radius: 6px; /* Rounded corners */
}
a:hover {
  background-color: rgba(0, 0, 0, 0.01); /* Light background on hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow */
  transform: translateY(-2px); /* Slight lift effect */
}
.row-link-sr{all: unset;cursor: pointer;}
.contact-icons-sr{
  display:grid;
  gap:10px;
  align-content:start;
  justify-items:start;
  width:min(100%, 32rem);
  color:#0f1113;
  font-size:clamp(15px, 1.4vw, 22px);
  line-height:1.2;
}
.contact-icons-sr .row-link-sr,
.contact-icons-sr .row-div-sr{
  display:grid;
  grid-template-columns:32px minmax(0, 1fr);
  gap:10px;
  align-items:center;
  width:100%;
  box-sizing:border-box;
}
.contact-icons-sr .icon-col-sr{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  min-width:32px;
  min-height:32px;
  color:#1b75a6;
  overflow:hidden;
  flex:none;
}
.contact-icons-sr .icon-col-sr svg{
  display:block;
  width:22px !important;
  height:22px !important;
  min-width:22px;
  min-height:22px;
  max-width:22px;
  max-height:22px;
  overflow:visible;
  flex:none;
}
.contact-icons-sr .icon-col-sr i{
  display:inline-block;
  width:22px;
  height:22px;
  line-height:22px;
  font-size:18px;
  text-align:center;
}
.contact-icons-sr .text-col-sr{
  display:block;
  min-width:0;
}
.contact-icons-sr .row-link-sr:hover,
.contact-icons-sr .row-link-sr:focus{
  text-decoration:underline;
  box-shadow:none;
  transform:none;
}
/* Improve paragraph readability */
p {
  margin-bottom: 1em;
  letter-spacing: -0.01em;
}

/* Base heading styles */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  letter-spacing: 0.3px;
}

ul {list-style-type: square; text-align: left;}
ul li li::marker{color:#A2A2A2;}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2c7bb6;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-top: 2em;
  margin-bottom: 1em;
  text-align: left;
}

/* ===== Header ===== */
.site-header {
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 80px;
  flex-wrap: wrap;
  height: 80px;
  overflow: visible; /* prevent logo clipping */
  position: relative;
  z-index: 6001; /* keep header above page chrome and pinned footer */
}
.site-logo img {
  height: auto;
  max-height: 60px;
  width: auto;
}
/* Screen: hide the content title (slider already shows it) */
.entry-title { 
  display: none;
}
/* ===== Hide Print Logo on Site ===== */
.site-logo .custom-logo--print { display: none; }

/* ===== Primary menu ===== */
.primary-menu {
  all: unset;
  font-family: 'Oswald', sans-serif;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 28px;
}
.primary-menu > li {
  position: relative;
  margin-left: 20px;
  text-transform: uppercase;
}
.primary-menu a {
  all: unset;
  color: #fff;
  text-decoration: none;
  padding: 10px;
  display: block;
  transition: background .3s ease;
  cursor: pointer;
}
.primary-menu > li:hover > a,
.primary-menu > li.focus > a {
  transform: translateY(0px);
  background-color: rgba(62,136,187,.8);
  border-radius: 10px 10px 0 0;
}

/* ===== Submenus ===== */
.primary-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(62,136,187,.9);
  padding: 10px 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .5s ease, transform .5s ease;
  border-radius: 0 10px 10px 10px;
  z-index: 999;
  list-style: none;
  font-size: 20px;
  min-width: 180px;
}
.primary-menu li:hover ul,
.primary-menu li.focus ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .25s;
}
.primary-menu li ul li { white-space: nowrap; }
.primary-menu li ul li a { padding: 10px 20px; font-weight: 400; }
.primary-menu li ul li a:hover { background: rgba(100,160,210,.9); color: #000; }

/* ===== Footer ===== */
.homepage-offices {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  padding: 48px 30px calc(28px + var(--nq-footer-h, 0px));
}

.homepage-offices__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.homepage-offices__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2c7bb6;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  text-align: left;
}

.homepage-offices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.homepage-office-card {
  background: #fff;
  border: 1px solid rgba(44, 123, 182, 0.12);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.homepage-office-card:hover,
.homepage-office-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
  border-color: #d1d5db;
}

.homepage-office-card h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1rem;
}

.homepage-office-card__address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-style: normal;
  color: #334155;
  transition: color .25s ease, transform .25s ease;
}

.homepage-office-card__address span {
  display: block;
}

.homepage-office-card:hover .homepage-office-card__address,
.homepage-office-card:focus-within .homepage-office-card__address {
  color: #0f5f95;
}

.homepage-office-card__phone {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0;
  border-radius: 0;
  color: #0f5f95;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

.homepage-office-card__phone:hover,
.homepage-office-card__phone:focus {
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  background:#000;
  color:#fff;
  padding:5px 30px;
  font-family:'Oswald',sans-serif;
  font-size:14px;
  font-weight:200;

  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
}

/* Left menu */
.footer-menu {
  list-style:none;
  display:flex;
  flex:1 1 0%;
  margin:5px 0;
  padding:0;
  gap:20px;
}
.footer-menu a { color:#fff; }
.footer-menu a:hover { color:#2c7bb6; font-weight:300; }

/* Right copyright */
.footer-copy {
  display:flex;
  flex:1 1 0%;
  font-size:14px;
  justify-content:flex-end;
  text-align:right;
  white-space:nowrap;
}

/* Center Offices menu */
.footer-offices-nav {
  display:flex;
  flex:0 0 auto;
}

.footer-offices-menu {
  display:flex;
  gap:1.5rem;
  list-style:none;
  margin:0;
  padding:0;
}
.footer-offices-menu li {
  white-space: nowrap;
}
.footer-offices-menu a {
  color:#fff;
  text-decoration:none;
  font-weight:500;
  white-space: nowrap;
}
.footer-offices-menu a:hover { opacity:.8; }


/* ===== RTL ===== */
body.rtl{ direction: rtl; }
body.rtl .site-header, body.rtl .site-footer{ }
body.rtl .footer-copy{
  font-size: 14px;
  white-space: nowrap;
}


/* ===== Content spacing ===== */
.entry-content{ padding: 40px clamp(24px, 4vw, 70px) 40px; }
.entry-content li{ padding-left: 5px; padding-bottom: 10px; }


/* ===== Two-column grid (index.php wraps .main-content + get_sidebar()) ===== */
.content-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(320px, 24%);
  column-gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.main-content,
.sidebar-area {
  min-width: 0;
}

/* Full-height divider column */
.content-divider{
  background: var(--divider, rgba(0,0,0,0.12));
  min-height: 100%;
}

/* ===== Sidebar (full-height divider and icon row) ===== */
.sidebar{
  position: relative;
  /* remove padding meant to clear the old pseudo-line */
  padding-left: 0;
}

/* optional heading */
.sidebar-title{
  font-size:.95rem; font-weight:600; margin:0 0 .5rem; letter-spacing:.02em;
  text-transform:uppercase; opacity:.85;
}

/* horizontal icon row with hover tooltips (uses <a class="action-icon" data-label="...">) */
.sidebar-actions{ list-style:none; margin:0; padding:0;}
.sidebar-actions--row{ display:flex; justify-content: flex-end; gap:.3rem; align-items:center; flex-wrap:wrap; padding-right:10px;padding-top:5px;}
.action-icon{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:8px; text-decoration:none; color:inherit;
  background:transparent; border:1px solid rgba(0,0,0,.08);
  transition: background .2s ease, border-color .2s ease, transform .06s ease;
  cursor:pointer;
}
a.action-icon {
  padding: 0 !important;    /* remove global padding */
  border-radius: 8px;      /* keep same rounded corners as .action-icon */
}

/* Normalize button-based action icons to match link icons */
.sidebar-actions--row button.action-icon{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0,0,0,.08);
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
}
.action-icon:hover, .action-icon:focus{
  background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.16); outline:none;
}
.action-icon:active{ transform: translateY(1px); }
.action-icon::after{
  content: attr(data-label);
  position:absolute; bottom:-30px; left:50%; transform:translateX(-50%);
  background: rgba(0,0,0,.8); color:#fff; font-size:12px; line-height:1;
  padding:6px 8px; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none;
  transition: opacity .15s ease, transform .15s ease; transform-origin: top center;
}
.action-icon:hover::after, .action-icon:focus::after{
  opacity:1; transform:translateX(-50%) translateY(0);
}

/* Subpage list in sidebar */
.sidebar-subpages {
  margin-top: 1.5rem;
}
.sidebar-subpages-list {
  padding-left: 1.25rem;
  margin: 0;
}
.sidebar-subpages-list li {
  margin: .25rem 0;
}
.sidebar-subpages-list a {
  text-decoration: none;
  color: inherit;
}
.sidebar-subpages-list a:hover {
  text-decoration: underline;
  color: #1b75a6;
}
.person-sidebar{padding-right:20px;}
.person-sidebar li {padding-left: 5px;padding-bottom: 10px;}
.person-sidebar li li{padding-left: 0px;padding-bottom: 0px;}
.person-contact{display:none;}


/* Hide Headshot */
.person-headshot {
  display: none;
}

/* ===== Compress header & layout before mobile ===== */
@media (max-width:1104px) and (min-width:656px){
  /* Keep header items on one line and pull content inward */
  .site-header{
    padding: 8px 24px;
    flex-wrap: nowrap;        /* stop the menu from dropping under the topbar */
    column-gap: 16px;
  }

  /* Logo a bit smaller/left-biased */
  .site-logo img{
    max-height: 52px;
  }

  /* Tighter primary menu */
  .primary-menu{
    font-size: 24px;          /* was 28px */
  }
  .primary-menu > li{
    margin-left: 14px;        /* was 20px */
  }
  .primary-menu a{
    padding: 8px 8px;         /* was 10px 10px */
  }

  /* Squeeze page gutters & sidebar so header can keep one line */
  .entry-content{
    padding: 20px 28px 32px;
  }
  .content-grid{
    grid-template-columns: minmax(0, 1fr) 1px minmax(220px, 24%);
    column-gap: 1rem;
  }
  .sidebar-actions--row{ padding-right: 6px; }

  .homepage-offices__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tighten header/layout again under 860px (keep footer styles intact) --- */
@media (max-width: 860px) and (min-width: 656px){
  .site-header{
    padding: 6px 18px;
    flex-wrap: nowrap;
    column-gap: 12px;
  }
  .site-logo img{ max-height: 46px; }

  .primary-menu{ font-size: 21px; }   /* 28 → 24 → 21 */
  .primary-menu > li{ margin-left: 10px; }
  .primary-menu a{ padding: 6px 6px; }

  .entry-content{ padding: 16px 20px 28px; }
  .content-grid{
    grid-template-columns: minmax(0, 1fr) 1px minmax(210px, 24%);
    column-gap: 0.875rem;
  }
  .sidebar-area ul {
    list-style-position: inside;
    padding-left: .5em;
    margin-left: 0;
  }

  .sidebar-area li {
    margin-left: 0;
    padding-left: 0;
  }

  .sidebar-area ul ul {
    padding-left: 1rem; /* light indent only for nested lists */
  }
}

@media (max-width: 727px) and (min-width: 656px) {
  .site-header {
    padding: 4px 14px;
    column-gap: 8px;
  }

  .site-logo img {
    max-height: 42px;
  }

  .primary-menu {
    font-size: 19px;       /* slightly smaller text */
  }

  .primary-menu > li {
    margin-left: 8px;      /* reduce horizontal spacing */
  }

  .primary-menu a {
    padding: 5px 6px;      /* tighter tap zones before hamburger kicks in */
  }

  /* Content spacing tightened to compensate for narrower viewport */
  .entry-content {
    padding: 14px 16px 24px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 1px minmax(190px, 24%);
    column-gap: 0.75rem;
  }
}
/* ===================== CHANGE FOOTER UNDER 860px ===================== */
@media (max-width: 860px){
  .homepage-offices {
    padding: 40px 24px calc(24px + var(--nq-footer-h, 0px));
  }

  .homepage-offices__grid {
    grid-template-columns: 1fr;
  }

  .site-footer{ flex-wrap: wrap; }

  /* Let “Offices” reflow instead of absolute center on small screens */
  .footer-offices-nav{
    position: static;
    transform: none;
    order: 2;
    flex: 1 1 0;
    display: flex;
    justify-content: flex-start;
    padding-left: 24px;
    margin: 4px 0;
  }

  .footer-menu{ order: 1; }
  .footer-copy{
    order: 3;
    
    text-align: center;   /* or left/right if you prefer */
    margin-top: 6px;
    margin-left: 0px;
    margin-right: 0px;
    max-width: 80%;
  }
}

/* ===================== MOBILE ===================== */
.menu-toggle {
  display: none;
  background: #2c7bb6; color:#fff; border:0;
  font-size: 24px; padding: 10px 15px; margin-left: auto; cursor: pointer;
  position: relative;   /* so z-index applies */
  z-index: 6002;        /* higher than footer & slider */
}
@media (max-width: 655px) {
  /* Your sticky footer can keep its transparency and position,
     just confirm it has a lower z-index than the menu */
  .site-footer {
    position: relative;
    left: 0; right: 0; bottom: 0;
    z-index: 1000; /* keep/footer baseline */
  }
	
	  /* Content spacing tightened to compensate for narrower viewport */
  .entry-content {
    padding: 14px 16px 24px;
  }

  .homepage-offices {
    padding: 36px 16px calc(20px + var(--nq-footer-h, 0px));
  }

  /* Hamburger sits on top */
  .menu-toggle{
    display: block;
      position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    z-index: 10006;
  }
	.primary-menu {
	  position: fixed !important;
	  top: var(--nq-header-h, 80px);
	  left: 0;
	  right: 0;
	  bottom: 0;
	  background: rgba(0,0,0,0.98);
	  display: none;
	  flex-direction: column;
	  padding: 0.5rem 0;
	  overflow-y: auto;
	  z-index: 10005 !important;
	}
	.primary-menu.show {
	  display: flex !important;
	}

/* Parent items get a toggle arrow on the right */
  .primary-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 40px;
  }

  .primary-menu li.menu-item-has-children > a::after {
    content: "▸";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.7;
  }

  /* When submenu is open */
  .primary-menu li.menu-item-has-children.open > a::after {
    content: "▾";
  }

/* hide submenus by default */
  .primary-menu li.menu-item-has-children > ul {
    display: none;
  }

/* show when .open is added by JS */
  .primary-menu li.menu-item-has-children.open > ul {
    display: block;
    background: #0d0d0d;
    padding-left: 20px;
  }

  /* Submenu items */
  .primary-menu li.menu-item-has-children > ul > li > a {
    padding: 12px 26px;
    font-size: 18px;
    border-left: 4px solid rgba(255,255,255,0.20);
  }
	

  /* Hide sidebar/divider on mobile */
  .sidebar,
  .content-divider{
    display: none !important;
  }
  .content-grid{
    grid-template-columns: 1fr !important;
	  
  }
	.sidebar-area{
		padding: 0px 16px 24px;
	}

	.main-content{
		padding-bottom:0px !important;
	}

/* When menu open: lock page; footer can’t capture taps under overlay */
body.nq-menu-open{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
}
body.nq-menu-open .site-footer{
  pointer-events: none;
}

}

/* ===================== PRINT ===================== */
@media print {
  /* Hide the slider completely */
  .nq-header-slider-wrap {
    display: none !important;
  }

  /* Turn off floating behaviors & any header offsets in print */
  body.nq-nav-float .site-header {
    position: static !important;
  }
  body.nq-nav-float .nq-header-slider-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Header: show only the print logo, no black box, no nav */
  .site-header {
    background: transparent !important;
    color: #000 !important;
    border: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 0 0 12pt 0 !important;
  }
  /* Hide the normal logo in print */
  .site-logo img.custom-logo { 
    display: none !important; 
  }
  /* Show the print logo only in print (make sure header.php renders it with this class) */
  .site-logo .custom-logo--print {
    display: inline-block !important;
    max-height: 80px !important;
    height: auto !important;
    width: auto !important;
  }

  /* Hide nav and toggles in print */
  .menu-toggle,
  .primary-menu,
  nav,
  .site-header nav,
  .site-header .primary-menu {
    display: none !important;
  }

  /* Layout: single column; no sidebar or divider */
  .content-grid {
    display: block !important;
  }
  .sidebar,
  .content-divider {
    display: none !important;
  }
	
/* Print Contact Information */	
	.person-contact{display:block;}
	
/* Print headshot at top right, wrapped with text */
  .person-headshot {
    display: block;
    float: left;
    margin: 0px 20px 6px 0px;
    max-width: 200px;
  }

  .person-headshot img {
    width: 100%;
    height: auto;
    border: none;
  }
	
	
  /* Title: show in print above the content */
  .entry-title { 
    display: block !important; 
    font-size: 22pt !important; 
    margin: 30px 0 12pt !important;
  }
	
	.entry-content { padding: 0px; }
	

  /* General print cleanup */
  body { 
    background: #fff !important; 
    color: #000 !important; 
  }
  a { 
    color: #000 !important; 
    text-decoration: underline; 
  }
}
