/* ============================================================
   COMPONENTS.CSS — Nav, Buttons, Cards, Recruiter, Footer
   ============================================================ */

/* ============================================================
   DYNAMIC ISLAND NAVIGATION
   ============================================================ */
.nav-island-wrap {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--island-top-offset));
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.nav-island {
  pointer-events: auto;
  width: 100%;
  max-width: var(--island-max-width);
  height: var(--island-height);
  border-radius: var(--island-radius);

  background: rgba(255, 255, 255, var(--nav-transparency));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);

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

  /* ✅ Symmetric padding — all four sides */
  padding: 0 14px;

  transition:
    height 0.35s var(--ease),
    max-width 0.35s var(--ease),
    padding 0.35s var(--ease),           /* ✅ NEW — padding also transitions */
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

[data-theme="dark"] .nav-island {
  background: rgba(11, 13, 16, var(--nav-transparency));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-island.scrolled {
  height: 54px;
  max-width: 980px;
  padding: 0 7px;                        
  background: rgba(255, 255, 255, calc(var(--nav-transparency) + 0.15));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 6px 24px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-island.scrolled {
  background: rgba(11, 13, 16, calc(var(--nav-transparency) + 0.15));
}

/* Logo */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  /* ✅ NO padding — the island handles it */
  flex-shrink: 0;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease);
}

.nav-logo-wrap:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-logo-wrap:hover .nav-logo {
  opacity: 0.7;
}

/* Center links */
.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-center a {
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.2s, background 0.25s;
  white-space: nowrap;
  position: relative;
}

.nav-center a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .nav-center a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-center a.active {
  color: var(--text);
  font-weight: 500;
}

.nav-center a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Right side actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  /* ✅ No padding or margin here */
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.2s;
  font-size: 1rem;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

[data-theme="dark"] .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  padding: 9px 18px;
  border-radius: 100px;
  transition: all 0.25s;
  white-space: nowrap;
  /* ✅ NO margin-right */
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 600px) {
  :root {
    --island-height: 56px;
    --island-top-offset: 10px;
    --island-radius: 32px;
  }
  .nav-island-wrap { padding: 0 12px; }
  .nav-island.scrolled { max-width: calc(100% - 24px); }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.m-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 32px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.m-menu.open {
  opacity: 1;
  pointer-events: all;
}

.m-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-menu nav a {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 8px 0;
  transition: color 0.2s, padding-left 0.2s;
}

.m-menu nav a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.m-social {
  margin-top: 44px;
  display: flex;
  gap: 22px;
  font-size: 0.82rem;
  color: var(--text-3);
}

.m-social a:hover {
  color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 111, 219, 0.25);
}

.btn-primary .arrow {
  transition: transform 0.25s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}

/* ============================================================
   RECRUITER QUICK VIEW
   ============================================================ */
.recruiter-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2b3a5c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(43, 58, 92, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 950;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  cursor: pointer;
}

.recruiter-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(43, 58, 92, 0.45), 0 4px 10px rgba(0, 0, 0, 0.2);
  background: #1d2a44;
}

.recruiter-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.recruiter-btn.active {
  background: var(--accent);
}

.recruiter-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  width: 340px;
  max-width: calc(100vw - 40px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  z-index: 949;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

[data-theme="dark"] .recruiter-panel {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recruiter-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.recruiter-panel h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.recruiter-panel .role {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 18px;
}

.recruiter-panel .info-row {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 6px;
}

.recruiter-panel .info-row strong {
  color: var(--text);
  font-weight: 550;
}

.recruiter-panel .panel-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.recruiter-panel .panel-links a {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, gap 0.2s;
}

.recruiter-panel .panel-links a:hover {
  color: var(--accent-hover);
  gap: 6px;
}

@media (max-width: 600px) {
  .recruiter-btn {
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
  }
  .recruiter-btn svg { width: 20px; height: 20px; }
  .recruiter-panel {
    right: 16px;
    left: 16px;
    bottom: 74px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    padding: 20px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-big {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 40px;
  max-width: 560px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.f-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}

.f-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-2);
  padding: 3px 0;
  transition: color 0.2s;
}

.f-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 14px;
}

.back-top {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.back-top:hover {
  color: var(--accent);
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   BOOKING MODAL (Cal.com embed)
   ============================================================ */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.booking-modal.open {
  opacity: 1;
  pointer-events: all;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

[data-theme="dark"] .booking-modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.booking-modal-card {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 90vh;
  max-height: 720px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.booking-modal.open .booking-modal-card {
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .booking-modal-card {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.booking-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.booking-modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

.booking-modal-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.booking-modal-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.booking-modal-head p {
  font-size: 0.82rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.booking-modal-body {
  flex: 1;
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Loading state */
.booking-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-3);
  font-size: 0.9rem;
}

.booking-modal-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bookingSpin 0.8s linear infinite;
}

@keyframes bookingSpin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .booking-modal {
    padding: 0;
    align-items: flex-end;
  }

  .booking-modal-card {
    max-width: 100%;
    height: 92vh;
    max-height: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }

  .booking-modal.open .booking-modal-card {
    transform: translateY(0);
  }

  .booking-modal-head {
    padding: 18px 20px 14px;
  }

  .booking-modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
}

/* Prevent body scroll when modal is open */
body:has(.booking-modal.open) {
  overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .booking-modal,
  .booking-modal-card,
  .booking-modal-close,
  .booking-modal-spinner {
    transition: none;
    animation: none;
  }
}

