/* index.mobile.css – mobile + tablet only (≤ 1024px) */

:root {
  --header-height: 4.5rem;
  --sidebar-border: 0.25rem;
  --bg-dark: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Base reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 0;
  background-color: var(--bg-dark);
  font-family: inherit;
}

/* =========================
   HEADER (top bar)
   ========================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.12);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 0.18rem solid #000000;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03rem;
  line-height: 1.1;
  color: #000000;
}

.logo-text h2 {
  margin: 0;
  font-size: 0.5rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #333333;
}

/* header right side container */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* hide desktop contact text on mobile+tablet */
.contact-info {
  display: none;
}

/* show mobile header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* phone & email icons */
.header-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999rem;
  border: 0.14rem solid #000000;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-icon i {
  font-size: 1.1rem;
}

.header-icon:hover {
  transform: translateY(-0.08rem);
  background: #111111;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.35);
}

/* hamburger button, Font Awesome bars → ⛌ */
.menu-toggle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999rem;
  border: 0.14rem solid #000000;
  background: #000000;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 1.1rem;
}

.menu-icon-bars {
  display: inline;
}

.menu-icon-close {
  display: none;
}

body.nav-open .menu-icon-bars {
  display: none;
}

body.nav-open .menu-icon-close {
  display: inline;
}

/* =========================
   MAIN LAYOUT
   ========================= */

.main-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
}

/* =========================
   SIDEBAR (off-canvas nav)
   ========================= */

.sidebar {
  width: min(16rem, 80vw);
  background: #ffffff;
  color: #000000;
  padding: 1.5rem 1rem;
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;

  border-right: var(--sidebar-border) solid #000000;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.25);

  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 950;
}

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

.sidebar li + li {
  margin-top: 0.4rem;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  transition: all 0.25s ease;
  text-transform: none;
}

.nav-link:hover,
.nav-link.nav-active {
  background: #000000;
  transform: translateX(0.2rem);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 1.1rem rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

/* when nav is open */
body.nav-open .sidebar {
  transform: translateX(0);
}

/* =========================
   CONTENT / IFRAME
   ========================= */

.content {
  width: 100%;
  margin-left: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.page-frame {
  width: 100%;
  height: calc(100vh - var(--header-height));
  border: none;
  display: block;
  margin: 0;
  background-color: var(--bg-dark);
}

/* =========================
   NAV OVERLAY
   ========================= */

.nav-overlay {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 900;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* =========================
   ADVANCED SCROLL TOGGLE BUTTON (↑ / ↓) – BLACK & WHITE
   ========================= */

.back-to-top-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: radial-gradient(circle at 30% 20%, #fdfdfd, #d8d8d8 80%);
  color: #000000;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(5px);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

/* inner arrow style */
.back-to-top-btn .arrow {
  position: relative;
  z-index: 4;
  line-height: 1;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

/* label below orb */
.back-to-top-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: -0.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.48rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.25s ease, letter-spacing 0.25s ease, bottom 0.25s ease;
}

/* rotating light ring – grey/black */
.back-to-top-btn .btn-ring {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(0, 0, 0, 0.28) 60deg,
      transparent 120deg,
      transparent 360deg
    );
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* soft outer glow – white */
.back-to-top-btn .btn-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.25s ease;
}

/* inner core */
.back-to-top-btn::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #000000, #777777 80%);
  opacity: 0.06;
  z-index: 2;
  mix-blend-mode: multiply;
  transition: opacity 0.25s ease, inset 0.25s ease;
}

/* hover & active depth */
.back-to-top-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.4);
  background: radial-gradient(circle at 30% 20%, #ffffff, #d0d0d0 85%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(255, 255, 255, 0.3);
}

.back-to-top-btn:hover .btn-ring {
  opacity: 1;
  animation: spinRing 2s linear infinite;
}

.back-to-top-btn:hover .btn-glow {
  opacity: 1;
}

.back-to-top-btn:hover::before {
  inset: 24%;
  opacity: 0.1;
}

.back-to-top-btn:hover::after {
  opacity: 1;
  bottom: -0.4rem;
  letter-spacing: 0.24rem;
}

.back-to-top-btn:hover .arrow {
  transform: translateY(-1px);
}

.back-to-top-btn:active {
  transform: translateY(0px) scale(0.97);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(255, 255, 255, 0.2);
}

/* direction-based animations for arrow */
.back-to-top-btn.dir-up .arrow {
  animation: floatUp 1.8s ease-in-out infinite;
}

.back-to-top-btn.dir-down .arrow {
  animation: floatDown 1.8s ease-in-out infinite;
}

/* keyframes */

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(1px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes floatDown {
  0%, 100% {
    transform: translateY(-1px);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ============================
   TABLET ONLY OVERRIDES
   (header + logo bigger)
   ============================ */

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --header-height: 5.3rem;
  }

  header {
    padding: 0.75rem 1.5rem;
  }

  .logo {
    gap: 0.9rem;
  }

  .logo img {
    width: 3.6rem;
    height: 3.6rem;
    border-width: 0.22rem;
  }

  .logo-text h1 {
    font-size: 1.35rem;
  }

  .logo-text h2 {
    font-size: 0.75rem;
  }
}

/* Small phones – slightly bigger headshot */
@media (min-width: 370px) and (max-width: 768px) {
  .logo img {
    width: 3.2rem;
    height: 3.2rem;
  }
}