:root{
  --navy:#16324F;
  --navy-deep:#0E2036;
  --sage:#7E9D8B;
  --crimson:#B4232D;
  --gold:#C8A96A;
  --bg:#FAFAF8;
  --heading:#1F2933;
  --body-text:#5E6B78;
  --border:#E5E7EB;
  --soft-white:#F8F8F8;
  --ease:0.3s ease;
}
*{ margin:0; padding:0; box-sizing:border-box; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; border:none; cursor:pointer; background:none; }
img,svg{ display:block; }
body{
  font-family:'Work Sans', sans-serif;
  background:var(--bg);
  color:var(--body-text);
  -webkit-font-smoothing:antialiased;
}
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

/* ============================================
   CONSULTATION CTA BAR
============================================ */
.consult-banner{
  position:relative;
  background:linear-gradient(115deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow:hidden;
  padding-bottom:46px;
}

.consult-inner{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:60px 40px 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  flex-wrap:wrap;
}

.consult-left{
  display:flex;
  align-items:center;
  gap:20px;
  flex:1;
  min-width:280px;
}

.consult-icon{
  width:58px; height:58px;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.consult-icon svg{ width:24px; height:24px; stroke:var(--gold); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

.footer-consult-eyebrow{
  font-size:11.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
  margin-bottom:8px;
}
.consult-text{
  font-family:'Merriweather', serif;
  font-weight:700;
  font-size:1.5rem;
  color:#fff;
  line-height:1.3;
  letter-spacing:-0.01em;
  margin-bottom:8px;
}
.consult-sub{
  font-size:0.92rem;
  color:rgba(255,255,255,0.62);
  line-height:1.5;
  max-width:420px;
}

.consult-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  flex-shrink:0;
}
.consult-cta-footer{
  background:#fff;
  color:var(--navy);
  font-weight:600;
  font-size:0.95rem;
  padding:16px 32px;
  border-radius:9px;
  white-space:nowrap;
  border:1px solid #fff;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition:background var(--ease), color var(--ease), transform var(--ease);
}
.consult-cta-footer svg{ width:16px; height:16px; stroke:var(--navy); fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; transition:stroke var(--ease); }
.consult-cta-footer:hover, .consult-cta:focus-visible{
  background:var(--gold);
  color:var(--navy);
  transform:translateY(-2px);
}

.consult-phone{
  font-size:0.86rem;
  color:rgba(255,255,255,0.72);
}
.consult-phone a{
  color:#fff;
  font-weight:600;
  border-bottom:1px solid rgba(255,255,255,0.3);
  transition:border-color var(--ease);
}
.consult-phone a:hover{ border-color:var(--gold); }

/* wave divider into footer */
.consult-wave{
  position:absolute;
  left:0; right:0; bottom:-1px;
  z-index:1;
  line-height:0;
}
.consult-wave svg{ width:100%; height:56px; display:block; }
.consult-wave path{ fill:rgba(255,255,255,0.045); }

/* ============================================
   FOOTER
============================================ */
footer.site-footer{
  position:relative;
  background:var(--navy-deep);
  color:var(--soft-white);
}

.footer-inner{
  max-width:1300px;
  margin:0 auto;
  padding:64px 40px 0;
}

/* ---- four-column grid ---- */
.footer-columns{
  display:grid;
  grid-template-columns:1.3fr 0.7fr 1.2fr 1.1fr;
  gap:40px;
  padding-bottom:48px;
}

.footer-brand-col{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.footer-logo{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer-logo-mark{
  width:300px; height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.footer-logo-text{
  font-family:'Merriweather', serif;
  font-weight:700;
  font-size:1.15rem;
  color:#fff;
  line-height:1.2;
}
.footer-logo-text span{
  display:block;
  font-family:'Work Sans', sans-serif;
  font-weight:500;
  font-size:0.7rem;
  color:var(--sage);
  text-transform:uppercase;
  letter-spacing:0.09em;
  margin-top:4px;
}

.footer-tagline{
  font-size:0.88rem;
  line-height:1.7;
  color:rgba(248,248,248,0.6);
  max-width:280px;
}

.footer-socials{
  display:flex;
  gap:10px;
  margin-top:6px;
}
.social-icon{
  width:34px; height:34px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.14);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(248,248,248,0.6);
  transition:color var(--ease), border-color var(--ease), transform var(--ease);
}
.social-icon svg{ width:14px; height:14px; }
.social-icon:hover, .social-icon:focus-visible{
  color:var(--gold);
  border-color:var(--gold);
  transform:translateY(-2px);
}

.col-heading{
  font-family:'Merriweather', serif;
  font-size:0.92rem;
  font-weight:700;
  color:#fff;
  margin-bottom:22px;
  letter-spacing:0.01em;
  position:relative;
  padding-bottom:12px;
}
.col-heading::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:22px; height:2px;
  background:var(--gold);
}

.footer-columns ul{ display:flex; flex-direction:column; gap:13px; }

.footer-link{
  position:relative;
  font-size:0.87rem;
  color:rgba(248,248,248,0.65);
  display:inline-flex;
  align-items:center;
  gap:9px;
  transition:color var(--ease), transform var(--ease);
}
.footer-link .dot{
  width:4px; height:4px;
  border-radius:50%;
  background:var(--gold);
  opacity:0;
  transform:scale(0.3);
  transition:opacity var(--ease), transform var(--ease);
}
.footer-link:hover, .footer-link:focus-visible{
  color:#fff;
  transform:translateX(2px);
}
.footer-link:hover .dot, .footer-link:focus-visible .dot{
  opacity:1;
  transform:scale(1);
}

.contact-line{
  display:flex;
  align-items:flex-start;
  gap:11px;
  font-size:0.87rem;
  color:rgba(248,248,248,0.65);
  line-height:1.55;
}
.contact-line svg{
  width:15px; height:15px;
  stroke:var(--sage);
  fill:none;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
  margin-top:2px;
}
.contact-line + .contact-line{ margin-top:15px; }
.contact-line a:hover{ color:#fff; }

/* ---- bottom bar ---- */
.footer-bottom{
  padding:26px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,0.08);
}

.bottom-left{
  font-size:0.8rem;
  color:rgba(248,248,248,0.45);
}

.bottom-right{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:0.8rem;
  color:rgba(248,248,248,0.5);
  flex-wrap:wrap;
}
.bottom-right a{ transition:color var(--ease); }
.bottom-right a:hover, .bottom-right a:focus-visible{ color:#fff; }
.bottom-sep{ opacity:0.4; }

/* ============================================
   SCROLL-REVEAL
============================================ */
.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ============================================
   RESPONSIVE — main layout
============================================ */
@media (max-width: 980px){
  .footer-columns{ grid-template-columns:1fr 1fr; gap:36px 28px; }
  .footer-brand-col{ grid-column:1 / -1; }
  .consult-inner{ padding-left:28px; padding-right:28px; }
  .footer-inner{ padding-left:28px; padding-right:28px; }
}

@media (max-width: 640px){
  .consult-inner{ flex-direction:column; align-items:flex-start; text-align:left; }
  .consult-right{ align-items:flex-start; width:100%; }
  .consult-cta{ width:100%; justify-content:center; }
  .consult-left{ min-width:0; }
  .footer-columns{ grid-template-columns:1fr; gap:34px; }
  .footer-inner{ padding:52px 24px 0; }
  .consult-inner{ padding-left:24px; padding-right:24px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:14px; }
}

/* ================================================================
   VISIT US WIDGET
   Desktop  -> fixed, vertically centered on the right edge,
               vertical "Visit Us" tab, panel opens to the left.
   Mobile   -> fixed, bottom-left, horizontal pill tab,
               panel opens as its own fixed sheet above the tab.
   No transitions/animations anywhere in this block on purpose.
================================================================ */

.dcc-widget{
 position:fixed !important;
  z-index:9998 !important;
  font-family:'Work Sans', -apple-system, sans-serif;

  /* desktop default: centered on the right edge */
  top:50% !important;
  right:8px !important;
  left:auto !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;

  display:flex;
  align-items:center;
}

.dcc-tab{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  background:var(--crimson);
  color:#fff;
  padding:16px 10px;
  border-radius:12px 0 0 12px;
  box-shadow:-8px 8px 24px -12px rgba(15,27,48,.45);
}
.dcc-tab svg{ width:20px; height:20px; }
.dcc-tab span{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.03em;
}
.dcc-tab:hover{ background:#8e2836; }

/* desktop panel: absolute inside the widget, opens to the left, vertically centered */
.dcc-panel{
  position:absolute;
  right:100%;
  left:auto;
  top:50%;
  bottom:auto;
  transform:translateY(-50%);
  width:280px;
  max-height:none;
  overflow:visible;
  background:#fff;
  border-radius:18px;
  padding:26px 24px 22px;
  box-shadow:0 30px 60px -20px rgba(15,27,48,.35);
  display:none;
}
.dcc-widget.is-open .dcc-panel{
  display:block;
}

.dcc-close{
  position:absolute;
  top:14px; right:14px;
  width:26px; height:26px;
  border-radius:50%;
  border:1px solid rgba(22,35,63,.1);
  background:var(--cream,#F7F4EE);
  color:var(--navy,#16233F);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.dcc-close svg{ width:13px; height:13px; }

.dcc-brand{ font-family:'Merriweather',Georgia,serif; color:var(--navy,#16233F); font-size:1.05rem; font-weight:700; }
.dcc-doc{ color:var(--muted,#6B7280); font-size:.78rem; margin:4px 0 16px; }

.dcc-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
  font-size:.85rem;
  color:var(--ink,#232323);
  line-height:1.5;
}
.dcc-row svg{ width:16px; height:16px; flex-shrink:0; margin-top:1px; color:var(--crimson,#A6303F); }
.dcc-row a{ color:var(--ink,#232323); text-decoration:none; }
.dcc-row a:hover{ text-decoration:underline; }

.dcc-actions{ display:flex; flex-direction:column; gap:8px; margin-top:18px; }
.dcc-btn{
  text-align:center;
  font-size:.82rem;
  font-weight:600;
  padding:10px 14px;
  border-radius:9px;
  text-decoration:none;
}
.dcc-btn--primary{ background:var(--crimson,#A6303F); color:#fff; }
.dcc-btn--ghost{ background:var(--cream,#F7F4EE); color:var(--navy,#16233F); }

/* mobile: bottom-left pill, panel becomes its own fixed sheet above the tab */
@media (max-width:640px){

  .dcc-widget{
    top:auto !important;
    bottom:18px !important;
    left:14px !important;
    right:auto !important;
    transform:none !important;
  }

  .dcc-tab{
    flex-direction:row !important;
    align-items:center !important;
    padding:12px 16px !important;
    border-radius:999px !important;
    gap:8px !important;
  }
  .dcc-tab svg{
    writing-mode:initial !important;
    transform:none !important;
  }
  .dcc-tab span{
    writing-mode:horizontal-tb !important;
    text-orientation:initial !important;
    transform:none !important;
    white-space:nowrap;
  }

  .dcc-panel{
    position:fixed !important;
    left:14px !important;
    right:14px !important;
    bottom:80px !important;   /* clears the tab itself */
    top:auto !important;
    transform:none !important;
    width:auto !important;
    max-height:min(65vh, 420px);
    overflow-y:auto;
  }
}

/* back-to-top stays bottom-right, no animation */
@media (max-width: 640px) {
  .back-to-top {
    right: 14px !important;
    bottom: 18px !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    transition: none !important;
  }

  .back-to-top svg {
    width: 27px !important;
    height: 27px !important;
  }
}/* ============================================
   BACK TO TOP — always fixed, always on top
============================================ */

.back-to-top {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;

  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10000 !important;

  border: none !important;
  border-radius: 50% !important;

   background-color: #16324F !important;
  color: #ffffff !important;
}

.back-to-top svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  flex-shrink: 0 !important;
}
@media (max-width: 640px){
  .back-to-top,
  .dcc-widget{
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
  }
}

html, body{
  overscroll-behavior-y: contain;
}