:root {
  --primary: #0e4b7b;
  --secondary: #1177b8;
  --accent: #f49d37;
  --bg: #f4f8ff;
  --surface: #ffffff;
  --text: #162230;
  --muted: #5f6d81;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(16, 49, 94, 0.12);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header,
footer {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid rgba(16, 49, 94, 0.08);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Container constraints handled by Bootstrap */

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.site-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(14, 75, 123, 0.12);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tagline {
  font-size: 25px;
  font-weight: bold;
  background: linear-gradient(to right, #0d6efd, #00c6ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #e0f2fe 100%);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
}

.hero-description,
.hero-copy p,
.section p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.hero-panel,
.contact-card,
.form-card,
.status-box,
.service-card,
.card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2rem;
  border: 1px solid rgba(17, 119, 184, 0.12);
}

.hero-panel h2 {
  margin-top: 0;
}

.role-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-card {
  display: block;
  padding: 1.5rem;
  border-radius: 18px;
  background: #f3f7ff;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
}

.role-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(17, 119, 184, 0.15);
}

.role-card h3 {
  margin: 0 0 0.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 18px 35px rgba(14, 75, 123, 0.18);
}

.button-secondary {
  color: var(--primary);
  background: rgba(17, 119, 184, 0.1);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.section {
  padding: 2.5rem 0;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.section-title,
.page-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}

.service-card,
.card {
  padding: 1.75rem;
  border: 1px solid rgba(17, 119, 184, 0.12);
}

.service-card {
  text-align: center;
}

.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.service-card li {
  margin-bottom: 0.75rem;
}

.card h3,
.service-card h3 {
  margin-top: 0;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: #fff8f0;
  color: #66421c;
  border-radius: 18px;
}

.quote {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.form-panel {
  padding: 0.5rem 0 2rem;
}

.form-card {
  padding: 2rem;
  border: 1px solid rgba(17, 119, 184, 0.12);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

form label {
  display: grid;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 49, 94, 0.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 130px;
}

.checkbox-label {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.status-box {
  padding: 1.5rem 1.75rem;
  margin-top: 1.75rem;
}

.page-content {
  flex: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  color: var(--muted);
}

.page-shell {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-card {
  padding: 2rem;
  border: 1px solid rgba(17, 119, 184, 0.12);
}

/* FAQ styling inside contact-card */
.faq-card .faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-card .faq-item {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fbfeff;
  border: 1px solid rgba(16, 49, 94, 0.04);
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  outline: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card details[open] summary {
  color: var(--primary);
}

.faq-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
}

.role-button {
  flex: 1;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 119, 184, 0.18);
  background: #f8fbff;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.role-button.active,
.role-button:hover {
  background: rgba(17, 119, 184, 0.15);
}

.role-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {

  .hero,
  .page-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 2rem 0;
  }

  .role-switcher {
    grid-template-columns: 1fr;
  }
}

/* Admin Panel Styles */
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(17, 119, 184, 0.12);
  padding-bottom: 1rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-button.active,
.tab-button:hover {
  background: var(--secondary);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-card {
  padding: 1.5rem;
  border: 1px solid rgba(17, 119, 184, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
}

.user-list,
.job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-item,
.job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(17, 119, 184, 0.08);
  border-radius: 12px;
  background: #f8fbff;
}

.user-item div,
.job-item div {
  flex: 1;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(17, 119, 184, 0.18);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.status-box {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.status-box.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-box.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}