/* ==========================================================================
   Digihack — site layout
   Top bar, header + navigation, mobile drawer menu, footer,
   floating WhatsApp button and mobile action bar.
   Loaded on every page. (WordPress: header.php / footer.php.)
   ========================================================================== */

.hdr {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: 700 17px/40px "Poppins",sans-serif;
  text-align: center;
}

.logo-word {
  font: 700 22px/1 "Poppins",sans-serif;
  color: var(--ink);
}

.logo-word small {
  display: block;
  font: 500 11px/1.4 "Hind",sans-serif;
  color: var(--muted);
  letter-spacing: .04em;
}

.logo img {
  display: block;
  height: 55px;
  width: auto;
}

.ftr {
  position: relative;
  background: #fff;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.cloud {
  display: block;
  width: 100%;
  height: 120px;
  margin-bottom: -1px;
}

.ftr-body {
  background: linear-gradient(180deg,#ee6324 0%,#f07a1c 45%,#f39314 100%);
  padding: 24px 0 0;
}

.ftr-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: 40px;
}

.ftr h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.ftr p {
  line-height: 1.75;
}

.ftr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ftr a {
  color: #fff;
  text-decoration: none;
}

.ftr a:hover {
  text-decoration: underline;
  color: #fff;
}

.ftr-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.ftr-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.jd {
  display: inline-flex;
  align-items: stretch;
  margin-top: 20px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

.jd .jd-name {
  font: 700 15px/1 "Poppins",sans-serif;
  color: #1c5fb8;
  padding: 12px 12px;
}

.jd .jd-score {
  font: 600 20px/1 "Poppins",sans-serif;
  color: #fff;
  background: #1f8a3c;
  padding: 10px 14px;
  display: flex;
  align-items: center;
}

.jd .jd-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  color: #e8710a;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social a {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social a:hover {
  background: #fff;
  color: #e2561c;
}

.office {
  display: flex;
  flex-direction: column;
}

.office .row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.office .row:first-child {
  padding-top: 0;
}

.office .row:last-child {
  border-bottom: 0;
}

.office .fi {
  flex: none;
  margin-top: 4px;
}

.ftr-links {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.4);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.ftr-links a {
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,.6);
  line-height: 1.2;
}

.ftr-links a:first-child {
  padding-left: 0;
  border-left: 0;
}

.ftr-bottom {
  padding: 24px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  z-index: 5;
}

.mbar {
  display: none;
}

@media (max-width:1024px) {
  .ftr-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .ftr-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .hdr .hide-sm {
    display: none;
  }

  .wa-float {
    display: none;
  }

  .mbar {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 6;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

  .mbar .btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 10px;
    font-size: 15px;
  }

  .cloud {
    height: 72px;
  }

  .ftr h3 {
    font-size: 21px;
    margin-bottom: 14px;
  }

  .ftr-grid {
    gap: 36px;
  }

  .logo img {
    height: 44px;
  }
}

/* Lock page scroll while the drawer is open */
body.menu-open {
  overflow: hidden;
}

/* Footer cloud background must match the section above it */
.ftr--on-dark {
  background: var(--dark);
}

.ftr--on-soft {
  background: #faf7f500;
}

/* ==========================================================================
   Header navigation — desktop nav with "Our Services" dropdown
   ========================================================================== */
/* Sticky header: stays on screen while scrolling (the top bar scrolls away) */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
}

html {
  scroll-padding-top: 96px; /* anchor links land below the sticky header */
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font: 500 15px/1 "Poppins", sans-serif;
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--accent);
}

.nav-link:hover {
  background: var(--tint);
}

.has-dd .nav-link {
  padding-right: 4px;
}

.dd-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 34px;
  margin-left: -2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.dd-toggle .fi {
  transition: transform .2s;
}

.dd-toggle:hover {
  color: var(--accent);
}

/* Mega dropdown: anchored to the header, centred under the nav */
.dd {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  width: min(940px, calc(100vw - 48px));
  padding-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1), visibility .22s;
  transition-delay: .08s;  /* small grace period so the menu doesn't flicker shut */
}

.has-dd:hover .dd,
.has-dd:focus-within .dd,
.has-dd.is-open .dd {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.has-dd:hover .dd-toggle .fi,
.has-dd.is-open .dd-toggle .fi {
  transform: rotate(180deg);
}

.dd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.dd-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dd-title {
  margin: 0 0 8px;
  padding: 0 10px;
  font: 600 12px/1 "Poppins", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}

.dd-item:hover {
  background: #fff7f2;
}

.dd-item b {
  display: block;
  font: 600 15px/1.3 "Poppins", sans-serif;
  color: var(--ink);
}

.dd-item:hover b {
  color: var(--accent);
}

.dd-item small {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted);
}

.dd-ic,
.mm-sub-ic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.g-orange { background: #fde6da; color: #ee5f25; }
.g-blue { background: #dce8f7; color: #2b5c9e; }
.g-green { background: #d6eedf; color: #1d7a49; }

.dd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 32px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.dd-foot p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.dd-foot b {
  color: var(--ink);
}

.dd-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dd-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 600 14px/1 "Poppins", sans-serif;
  color: var(--accent);
  text-decoration: none;
}

.dd-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  gap: 8px;
}

/* ==========================================================================
   Mobile drawer menu
   ========================================================================== */
.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 21, 26, .55);
  animation: mm-fade .3s ease-out;
}

.mm-overlay.is-closing {
  animation: mm-fade-out .24s ease-in forwards;
}

.mm {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(92vw, 400px);
  background: #fff;
  animation: mm-in .38s cubic-bezier(.22, 1, .36, 1);
}

.mm.is-closing {
  animation: mm-out .26s cubic-bezier(.4, 0, 1, 1) forwards;
}

/* menu rows slide in one after another */
.mm:not(.is-closing) .mm-list > li,
.mm:not(.is-closing) .mm-card,
.mm:not(.is-closing) .mm-info {
  animation: mm-item .45s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms + 90ms);
}

@keyframes mm-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mm-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes mm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mm-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes mm-item { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.mm-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--line);
}

.mm-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.mm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--tint);
  color: var(--ink);
  cursor: pointer;
}

.mm-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* never squash drawer blocks to fit the screen — the body scrolls instead */
.mm-body > * {
  flex-shrink: 0;
}

.mm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-list > li + li {
  border-top: 1px solid var(--line);
}

.mm-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: 600 17px/1 "Poppins", sans-serif;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mm-ic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f6f1ed;
  color: var(--muted);
}

.mm-label {
  flex: 1;
}

.mm-chev {
  display: flex;
  color: #b9aea6;
  transition: transform .2s;
}

.mm-link.is-current {
  color: var(--accent);
}

.mm-link.is-current .mm-ic {
  background: #fde6da;
  color: var(--accent);
}

.mm-acc-btn[aria-expanded="true"] .mm-chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.mm-panel {
  padding: 2px 0 16px;
  overflow: hidden;
}

.mm-group {
  margin: 12px 4px 6px;
  font: 600 11.5px/1 "Poppins", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mm-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px;
  border-radius: 10px;
  font: 500 15.5px/1.25 "Poppins", sans-serif;
  color: var(--text);
  text-decoration: none;
}

.mm-sub:hover {
  background: #fff7f2;
  color: var(--accent);
}

.mm-sub-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.mm-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 10px 4px 0;
  font: 600 14px/1 "Poppins", sans-serif;
  color: var(--accent);
  text-decoration: none;
}

/* Quote card */
.mm-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
  background: var(--dark);
  color: var(--on-dark);
}

.mm-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6923c 0%, #ee5f25 55%, #d9461c 100%);
  opacity: .9;
}

.mm-card > * {
  position: relative;
  z-index: 1;
}

.mm-card-title {
  margin: 0;
  font: 700 20px/1.2 "Poppins", sans-serif;
  color: #fff;
}

.mm-card-text {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 260px;
}

.mm-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.mm-q {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 62px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font: 600 13px/1 "Poppins", sans-serif;
  color: #fff;
  text-decoration: none;
}

.mm-q:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.mm-q.wa {
  background: var(--wa);
  border-color: var(--wa);
}

.mm-cta {
  width: 100%;
  margin-top: 10px;
}

.mm-info {
  margin: 0;
  padding: 0 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.mm-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-info .fi {
  flex: none;
  color: var(--accent);
}

.mm-info b {
  color: var(--ink);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .mm,
  .mm-overlay,
  .dd {
    animation: none;
    transition: none;
  }
}

/* Breakpoints -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-link {
    padding: 10px 9px;
    font-size: 14.5px;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 640px) {
  /* header CTA is replaced by the sticky mobile bar on phones */
  .hdr .hdr-cta {
    display: none;
  }
}

/* ==========================================================================
   Top bar — rotating taglines + contact links
   ========================================================================== */
.topbar {
  background: #ee5f25;   /* brand orange */
  color: #fff;
  font-size: 14px;
}

.tb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}

.tb-msg {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  overflow: hidden;
}

.tb-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

.tb-item.is-active {
  opacity: 1;
  transform: none;
}

.tb-item.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

.tb-item > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-item b {
  color: #fff;
  font-weight: 700;
}

.tb-item a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(255, 255, 255, .7);
}

.tb-item a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.tb-ic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.tb-links {
  flex: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-links li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  white-space: nowrap;
}

.tb-links li + li {
  border-left: 1px solid rgba(255, 255, 255, .45);
}

.tb-links li:last-child {
  padding-right: 0;
}

.tb-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.tb-links a:hover {
  color: #fff;
  opacity: .82;
}

.tb-links b {
  color: #fff;
  font-weight: 600;
}

.tb-links .fi {
  flex: none;
  color: #fff;
}

.tb-links li {
  color: #fff;
}

@media (max-width: 1200px) {
  .tb-hours {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .tb-links li:first-child {
    display: none;
  }

  .tb-links li + li {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  /* phones: one centred rotating tagline only */
  body .topbar {
    display: block;
    font-size: 13px;
  }

  .tb {
    min-height: 36px;
    justify-content: center;
  }

  .tb-links {
    display: none;
  }

  .tb-msg {
    height: 20px;
  }

  .tb-item {
    justify-content: center;
  }

  .tb-ic {
    display: none;
  }
}

/* ==========================================================================
   Footer — phone number as a prominent call card
   ========================================================================== */
.office .row-call {
  padding-top: 18px;
  border-bottom: 0;
}

.ftr .ftr-call {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 10px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .2s ease;
}

.ftr .ftr-call:hover {
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
  background: #fff7f2;
}

.ftr-call-ic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.ftr-call:hover .ftr-call-ic .fi {
  animation: ftr-ring .6s ease;
}

@keyframes ftr-ring {
  20%, 60% { transform: rotate(-14deg); }
  40%, 80% { transform: rotate(14deg); }
}

.ftr-call small {
  display: block;
  font: 500 12.5px/1.3 "Hind", sans-serif;
  color: var(--muted);
}

.ftr-call b {
  display: block;
  margin-top: 2px;
  font: 700 22px/1.2 "Poppins", sans-serif;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ftr .ftr-call {
    display: flex;
    width: 100%;
  }

  .ftr-call b {
    font-size: 21px;
  }
}

/* Top bar: on the orange bar the number stays white, just bold */
.tb-links .tel-hl,
.tb-links a:hover > .tel-hl {
  color: #fff !important;
}
