/* Custom Properties for fluid design */
:root {
  --primary: #0A3D91;
  --secondary: #F26522;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-surface: #f8fafc;
}

/* Base resets and smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text-main);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Pushes footer to the bottom */
}

/* Accessibility: Skip to content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  outline: 4px solid rgba(242, 101, 34, 0.5); /* Secondary color ring */
}

/* Responsive Section Padding */
.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .section-pad { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .section-pad { padding-top: 8rem; padding-bottom: 8rem; }
}

/* Base Form Inputs (Overriding default browser styles) */
.input, .textarea, .select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 61, 145, 0.15); /* Soft primary ring */
}
.textarea {
  min-height: 150px;
  resize: vertical;
}

/* Scrolled Navigation State */
.nav-shell {
  transition: all 0.3s ease;
}
.nav-shell.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-color: rgba(0,0,0,0.05);
}
.nav-shell.scrolled .nav-link {
  color: var(--text-main);
}
.nav-shell.scrolled .nav-link:hover, 
.nav-shell.scrolled .nav-link.active {
  color: var(--secondary);
}

/* Line Clamping for Cards */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}