/* css/styles.css
   Custom styles layered on top of Tailwind CSS (Play CDN, loaded in each page's <head>).
*/

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Sticky header gains a shadow once the page is scrolled (toggled in main.js) */
#site-header {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
#site-header.is-scrolled {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* Mobile nav panel animation */
#mobile-menu {
  transition: max-height 0.25s ease-out, opacity 0.2s ease-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
}

/* Active nav link indicator */
.nav-link {
  position: relative;
}
.nav-link.active {
  color: #ffffff;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background-color: #38bdf8; /* sky-400 accent */
  border-radius: 9999px;
}

/* Hero section background */
.hero-gradient {
  background: linear-gradient(135deg, #0b1f3a 0%, #0f2b52 45%, #14335f 100%);
}

/* Subtle card hover lift */
.lift-on-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lift-on-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

/* Form field states */
.form-field.field-error input,
.form-field.field-error textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626;
}
.field-error-message {
  display: none;
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
.form-field.field-error .field-error-message {
  display: block;
}

/* Toast / status banner for the contact form */
#form-status {
  display: none;
}
#form-status.visible {
  display: block;
}