@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===== HEADER STYLES ===== */

/* Header navigation wrapper */
.header-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-header .nav {
  padding-right: 0;
}

.header-mobile-toggle {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111827;
  transition: all 0.3s ease;
}

/* Phone pill button */
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--wk-blue, #3B82F6);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  margin-right: 24px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.phone-pill:hover {
  background: #2563eb;
}

.phone-pill svg {
  width: 18px;
  height: 18px;
}

/* ===== MAIN CONTENT STYLES ===== */

.content-page {
  min-height: 60vh;
}

.content-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.content-page h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.content-page h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.content-page p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #4b5563;
}

.content-page ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-page li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: #4b5563;
}

.content-page .last-updated {
  font-style: italic;
  color: #6b7280;
  margin-bottom: 2rem;
}

.content-page address {
  font-style: normal;
  line-height: 1.75;
  margin-top: 1.5rem;
}

.content-page a {
  color: #3B82F6;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.content-page a:hover {
  color: #2563eb;
}

/* ===== FOOTER STYLES ===== */

.footer-phone {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-phone:hover {
  opacity: 1;
}

.footer-phone svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ===== FLOATING PHONE BUTTON ===== */

.floating-phone-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #60a5fa, var(--wk-blue, #3B82F6));
  color: #fff;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.18);
  z-index: 1000;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease,
    background 0.18s ease;
}

.floating-phone-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 24, 39, 0.24);
  filter: saturate(1.05);
}

.floating-phone-button:active {
  transform: translateY(0);
  filter: saturate(1);
}

.floating-phone-button:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 6px rgba(59, 130, 246, 0.45), 0 14px 32px rgba(16, 24, 39, 0.24);
}

.floating-phone-button svg {
  width: 30px;
  height: 30px;
  display: block;
  color: currentColor;
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 1024px) {
  .header-nav-wrapper {
    display: none;
  }
  .header-mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .content-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-page h1 {
    font-size: 2rem;
  }

  .content-page h2 {
    font-size: 1.5rem;
  }

  .content-page h3 {
    font-size: 1.25rem;
  }

  footer.site-footer .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  footer.site-footer .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .phone-pill {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-phone-button {
    bottom: 15px;
    right: 15px;
    width: 56px;
    height: 56px;
  }

  .floating-phone-button svg {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-phone-button {
    transition: none;
  }
  .header-mobile-toggle span {
    transition: none;
  }
  .phone-pill {
    transition: none;
  }
}