:root {
  --brand-blue: #0551a3;
  --brand-gray: #b8b9bb;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f4f6f8;
  --white: #ffffff;
  --max-width: 1200px;
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  /* Premium Heading Font */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #f4f7f9;
  background-image:
    radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(220, 100%, 98%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(200, 100%, 96%, 1) 0, transparent 50%);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 81, 163, 0.3);
}

.section-padding {
  padding: 80px 0;
}

/* Top Bar */
.top-bar {
  background-color: #032d5a;
  /* Darker blue */
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  /* Align to right */
  gap: 20px;
}

.top-bar a {
  color: #e2e8f0;
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Header */
/* Header - Modern Glass */
header {
  background-color: rgba(255, 255, 255, 0.85);
  /* More transparent */
  backdrop-filter: blur(12px);
  /* Stronger blur */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  /* Softer shadow */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modern Typography Tweaks */
h1,
h2,
h3 {
  letter-spacing: -0.01em;
  /* Trendy tight tracking */
  font-family: var(--font-serif);
  /* Apply Premium Font */
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(5, 81, 163, 0.85) 0%, rgba(3, 105, 163, 0.8) 100%),
    url("../assets/James%20Town%20Courthouse-Williamsburg_2026.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 160px 0 140px;
  /* Taller hero */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Glass Card Effect */
.hero-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: 0 auto;
}

/* Remove old hero::before */
.hero::before {
  display: none;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h2 {
  font-size: 1.6rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: var(--white);
  color: var(--brand-blue);
  padding: 14px 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: #f8f9fa;
}

/* Content Sections */
/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--brand-blue);
  border-radius: 2px;
  opacity: 0.8;
}

.section-title h2 {
  color: #1a1a1a;
  margin-bottom: 10px;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

/* Trust Strip */
.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-badge {
  height: 80px;
  width: auto;
  transition: transform 0.3s;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.trust-badge:hover {
  transform: scale(1.05);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards */
.card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  /* Increased roundness */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  /* Deeper, softer shadow */
  border: 1px solid rgba(0, 0, 0, 0.01);
  /* Basically invisible border */
  /* border-top removed for "unboxed" look */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(5, 81, 163, 0.12);
  /* Blue-tinted shadow on hover */
}

/* Add a subtle top gradient instead of a hard border for specific cards if needed, 
   or we can stick to the clean shadow look. */

.card h3 {
  color: var(--brand-blue);
  font-size: 1.35rem;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #151516;
  color: var(--white);
  padding: 60px 0;
  margin-top: 80px;
}

footer h4 {
  color: #0551a3;
  font-weight: 700;
  margin-bottom: 20px;
}

footer a {
  color: var(--brand-gray);
}

footer a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}
/* ADA Accessibility Tools */
#ada-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.2s;
}

#ada-btn:hover {
  transform: scale(1.1);
}

#ada-menu {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  width: 200px;
}

#ada-menu.active {
  display: block;
}

.ada-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #333;
}

.ada-toggle {
  background: #eee;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.ada-toggle.active {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}

/* High Contrast Mode */
body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
  background-image: none !important;
}

body.high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

body.high-contrast .btn-primary, 
body.high-contrast #ada-btn,
body.high-contrast .ada-toggle.active {
  background-color: #ffff00 !important;
  color: #000 !important;
}

body.high-contrast img {
  filter: grayscale(100%) contrast(120%);
}

/* Large Text Mode */
html.large-text {
  font-size: 125%; /* Increases base size to ~20px */
}

