/* ============================================================
   Custom Header � matches reference image layout
   Left: Schedule Appointment | Center: Logo | Right: Phone + Menu
   ============================================================ */

.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.custom-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.custom-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  width: 100%;
  box-sizing: border-box;
}

/* ---- Left ---- */
.custom-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-header-appt {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.custom-header-appt:hover {
  color: #adce60;
}

.appt-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.custom-header-appt:hover .appt-arrow {
  transform: translateX(4px);
}

.custom-header-appt-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.2px;
}

/* ---- Center Logo ---- */
.custom-header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.custom-header-logo a {
  display: block;
}

.custom-header-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ---- Right ---- */
.custom-header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.custom-header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.custom-header-phone-num {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.custom-header-location {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-family: "Inter", sans-serif;
  text-align: right;
}

/* ---- Hamburger Button ---- */
.custom-hamburger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--white);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.custom-hamburger-btn:hover {
  color: #adce60;
}

.custom-hamburger-btn:hover .custom-hamburger-lines span {
  background: #adce60;
}

.custom-hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  position: relative;
}

.custom-hamburger-lines span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--white);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.25s ease,
              background 0.3s ease;
}

/* Line 1 → rotates +45° to form top arm of X */
.custom-hamburger-btn.is-open .custom-hamburger-lines span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

/* Line 2 → fades out */
.custom-hamburger-btn.is-open .custom-hamburger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

/* Line 3 → rotates −45° to form bottom arm of X */
.custom-hamburger-btn.is-open .custom-hamburger-lines span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.custom-hamburger-label {
  color: inherit;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ============================================================
   Full-Screen Menu Overlay — Fade In + Staggered Columns
   ============================================================ */

/* Header z-index 1000 naturally sits above overlay at 999 */
.hamburger-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease,
              visibility 0s linear 0.5s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hamburger-menu-overlay.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.5s ease,
              visibility 0s linear 0s;
}

.hamburger-menu-overlay.closing {
  visibility: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease,
              visibility 0s linear 0.5s;
}

body.menu-open {
  overflow: hidden;
}

/* ---- Button label swap ---- */
.hm-txt-close {
  display: none;
}

.custom-hamburger-btn.is-open .hm-txt-menu {
  display: none;
}

.custom-hamburger-btn.is-open .hm-txt-close {
  display: inline;
}

/* ---- Overlay inner — flex vertically centered ---- */
.hm-inner {
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding: 120px 60px 60px;
  box-sizing: border-box;
}

/* ---- Columns: staggered slide-up reveal ---- */
.hm-col {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hamburger-menu-overlay.active .hm-col:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.10s;
}
.hamburger-menu-overlay.active .hm-col:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 0.20s;
}
.hamburger-menu-overlay.active .hm-col:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 0.30s;
}
.hamburger-menu-overlay.active .hm-col:nth-child(4) {
  opacity: 1; transform: translateY(0); transition-delay: 0.40s;
}

/* Instant reset on close — no staggered exit */
.hamburger-menu-overlay.closing .hm-col {
  transition: none;
  opacity: 0;
  transform: translateY(40px);
}

/* ---- Category Labels ---- */
.hm-label {
  font-size: 2rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.2px;
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 14px;
}

/* ---- Navigation Links ---- */
.hm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.hm-list li a {
  display: inline-block;
  position: relative;
  color: #ffffff !important;
  font-size: 1.15rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 0.25s ease;
}

.hm-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

.hm-list li a:hover {
  color: #ffffff;
}

.hm-list li a:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1399px) {
  .custom-header-inner   { padding: 20px 40px; }
  .custom-header-logo img { height: 75px; }
  .custom-header-right   { gap: 28px; }
  .custom-header-phone-num { font-size: 18px; }
  .hm-inner { padding: 110px 40px 50px; }
}

@media (max-width: 991px) {
  .custom-header-inner   { padding: 16px 28px; }
  .custom-header-left    { display: none; }
  .custom-header-logo    { position: static; transform: none; }
  .custom-header-logo img { height: 60px; }
  .custom-header-phone-num { font-size: 15px; }
  .custom-header-location  { display: none; }
  .hm-inner { padding: 100px 28px 48px; }
  .hm-label { font-size: 1.7rem; }
  .hm-list li a { font-size: 1.05rem; }
}

@media (max-width: 767px) {
  .custom-header-inner  { padding: 14px 20px; }
  .custom-header-right  { gap: 16px; }
  .custom-header-phone  { display: none; }
  .hm-inner { padding: 90px 20px 40px; }
  .hm-label { font-size: 1.55rem; }
  .hm-list li a { font-size: 1rem; }
}

/* ---- Header always white ---- */
.custom-header,
.custom-header a,
.custom-header span,
.custom-header button {
  color: #fff !important;
}

.custom-hamburger-lines span {
  background: #fff !important;
}
