/* Global helpers */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

main {
  width: 100%;
}

a,
button,
input,
textarea {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
}

.transition-custom {
  transition: all 0.2s ease;
}

.elevation-shift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elevation-shift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.radius-pill {
  border-radius: 9999px;
}

.radius-card-pill,
.radius-large-pill {
  border-radius: 1.5rem;
}

.text-balance {
  text-wrap: balance;
}

body.menu-open {
  overflow: hidden;
}

/* Header / nav states */
.nav-link[aria-current="page"],
.mobile-nav-link[aria-current="page"] {
  color: var(--color-teal-dark);
  font-weight: 700;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav-link:last-of-type {
  border-bottom: 0;
}

/* Contact form */
.contact-panel {
  align-items: start;
}

.form-panel {
  min-height: 100%;
}

.form-panel input,
.form-panel textarea {
  color: #111827;
}

.form-panel input::placeholder,
.form-panel textarea::placeholder {
  color: #94a3b8;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
}

.privacy-label {
  display: inline-flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.privacy-label input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.privacy-label a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Legal pages */
.legal-card {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.legal-sections > div {
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.legal-sections > div:first-child {
  padding-top: 0;
  border-top: 0;
}

/* Thanks page */
.thanks-card {
  max-width: 42rem;
  margin: 0 auto;
}

.thanks-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  background: #e6fffb;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.thanks-secondary:hover {
  background: #ccfbf1;
}

/* Utility spacing guards */
.site-footer .footer-link {
  word-break: break-word;
}

@media (max-width: 768px) {
  .legal-card,
  .thanks-card,
  .form-panel {
    padding: 1.5rem;
  }
}
