:root {
  /* Brand palette tuned for Financial Trust + Energy */
  /* Primary: Deep Navy */
  --brand: #0b1f3a;
  /* Accent: Bright Blue (used sparingly on CTAs, icons, dividers) */
  --brand-accent: #2563eb;
  /* Highlight: Soft Gold for emphasis states */
  --highlight: #f4c15d;
  /* Optional alternate highlight (Warm Coral) for rare emphasis */
  --highlight-alt: #ff6b6b;

  --text: #0f172a;
  --muted: #64748b;
  /* Background: very light gray keeps the layout clean */
  --bg: #f8fafc;
  --white: #ffffff;
  /* Success/affirmative tone shifted to blue family for brand cohesiveness */
  --success: #2563eb;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; }
/* Typography hierarchy */
h1 { font-weight: 600; font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); }
.eyebrow { display:inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brand-accent); margin-bottom: 6px; }
.site-header { flex-shrink: 0; }
main { flex: 1 0 auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.site-header { background: var(--white); border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.site-header .brand a { color: var(--brand); font-weight: 500; text-decoration: none; font-size: 1.2rem; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: clamp(32px, 7vw, 58px); width: clamp(32px, 7vw, 58px); object-fit: contain; border-radius: 4px; display: inline-block; }
.brand-name { line-height: 1; }
.site-header nav a { margin-left: 16px; text-decoration: none; color: var(--text); padding: 10px 12px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color .2s ease, color .2s ease, transform .18s ease; }
.site-header nav a:hover { background: #eff6ff; transform: translateY(-1px); }
.site-header nav .cta { background: var(--brand); color: white; }
.site-header nav .cta:hover { background: #071427; }
.hero { padding: 64px 0; }
.hero h1 { margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; }
.card h3 { margin-top: 0; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 8px; text-decoration: none; cursor: pointer; border: none; min-height: 44px; transition: transform .18s ease, box-shadow .18s ease, background-color .2s ease, color .2s ease; }
.btn-primary { background: var(--brand); color: white; }
/* Darker navy on hover for stronger trust signal */
.btn-primary:hover { background: #071427; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11,31,58,.15); }
.btn-secondary { background: var(--brand-accent); color: white; }
.btn-highlight { background: var(--highlight); color: #1f2937; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(2,8,23,.12); }
.btn-block { display: block; width: 100%; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.alert.info { background: #e0f2fe; color: #075985; }
.alert.success { background: #dbeafe; color: #1e40af; }
form .form-group { margin-bottom: 12px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form input[type="text"], form input[type="email"], form input[type="password"], form input[type="number"], form input[type="tel"], form select, form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 6px; min-height: 44px; background: var(--white); color: var(--text); }
/* Switch focus ring to blue to match accent */
form input:focus, form select:focus, form textarea:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.small { color: var(--muted); font-size: 0.9rem; }
.site-footer { margin-top: 40px; padding: 20px 0; border-top: 1px solid #e2e8f0; background: var(--white); }
/* Feature blocks and icons */
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .content { flex: 1; }
.icon { width: 28px; height: 28px; color: var(--brand-accent); flex: 0 0 28px; transition: transform .2s ease, color .2s ease; }
.icon:hover { transform: scale(1.05); color: var(--highlight); }
/* Contact list alignment */
.contact-list { list-style: none; padding-left: 0; margin: 0; }
.contact-item { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.contact-item svg { display: block; }
.contact-item .icon { width: 18px; height: 18px; flex: 0 0 auto; color: currentColor; }
/* Responsive Google Map embed */
.map-embed { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; background: var(--white); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Section dividers */
.divider { height: 28px; position: relative; overflow: hidden; }
.divider-angle::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0 49%, var(--brand-accent) 50%, transparent 51% 100%); opacity: .6; }
/* Curved divider echoing flyer waves */
.divider-curve { position: relative; height: 44px; overflow: hidden; margin-bottom: 24px; }
.divider-curve::before { content: ""; position: absolute; inset: -20px 0 0; background: radial-gradient(120% 80% at 50% 10%, transparent 60%, rgba(37,99,235,.25) 61% 100%); }
/* Hero split inspired by flyer (image right, content left) */
.hero-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: center; }
.hero-split .hero-copy { grid-column: span 12; }
.hero-split .hero-visual { grid-column: span 12; min-height: clamp(240px, 40vw, 460px); border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(2,8,23,.12); }
/* Option 2: wrapper + object-fit for IMG hero */
.hero-split .hero-visual-wrap { grid-column: span 12; height: clamp(240px, 40vw, 460px); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(2,8,23,.12); }
.hero-visual-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (min-width: 769px) {
  .hero-split .hero-copy { grid-column: span 6; align-self: self-start; }
  .hero-split .hero-visual { grid-column: span 6; }
  .hero-split .hero-visual-wrap { grid-column: span 6; }
}
/* Pill headers for brochure-style blocks */
.pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--highlight-alt); color: #fff; font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(255,107,107,.24); }
.pill-dark { background: #4a0c0c; color: #fff; }
/* Info blocks grid */
.info-columns { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.info-columns .col { grid-column: span 12; }
@media (min-width: 769px) { .info-columns .col { grid-column: span 4; } }
/* Contact band inspired by flyer */
.contact-band { background: #1e3a8a; color: #fff; padding: 18px 0; margin-top: 24px; }
.contact-band .row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: center; }
.contact-band .item { grid-column: span 12; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact-band a { color: #fff; text-decoration: none; }
@media (min-width: 769px) {
  .contact-band .item { grid-column: span 4; }
}
/* Marquee announcement band */
.marquee { position: relative; display: flex; overflow: hidden; width: 100%; height: 600px; flex-direction: row; justify-content: center; align-items: flex-start; flex: 1; }
.marquee-horizontal { position: relative; z-index: 200; display: flex; overflow: hidden; width: 100%; height: 60px; justify-content: flex-start; align-items: center; background-color: var(--brand-accent); margin-bottom: 32px; }
.track-horizontal {display: flex; justify-content: flex-start; align-content: center; position: absolute; white-space: nowrap; animation: marquee-horizontal 40s linear infinite; }
.marquee-horizontal-large { position: relative; z-index: 200; display: flex; overflow: hidden; width: 100%; height: 190px; justify-content: flex-start; align-items: center; flex: 0 0 auto; }
.marquee-text { margin-right: 8vw; flex: 0 0 auto; color: #fff; text-transform: uppercase; font-weight: 700;}
.track-horizontal-alt { display: flex; justify-content: flex-start; align-content: center; }
.track-horizontal-alt { position: absolute; white-space: nowrap; will-change: transform; animation: marquee-horizontal-alt 40s linear infinite; }

@keyframes marquee-horizontal {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes  marquee-horizontal-alt {
  from{ transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Media defaults */
img, video { max-width: 100%; height: auto; display: block; }
/* Accessible hide utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Grid column utilities */
.col-12 { grid-column: span 12; }
@media (min-width: 769px) {
  .md-col-4 { grid-column: span 4; }
  .md-col-5 { grid-column: span 5; }
  .md-col-6 { grid-column: span 6; }
  .md-col-7 { grid-column: span 7; }
  .md-col-8 { grid-column: span 8; }
}

/* Mobile navigation */
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; margin-left: 8px; border-radius: 6px; }
.nav-toggle:focus { outline: 2px solid #60a5fa; outline-offset: 2px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* Desktop nav layout */
.site-header > .container { gap: 16px; }
.site-header nav { display: flex; align-items: center; }

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  /* Collapse nav to a drawer */
  .nav-toggle { display: inline-block; }
  .site-header nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid #e2e8f0; display: none; flex-direction: column; padding: 8px 16px; }
  .site-header.open nav { display: flex; }
  .site-header nav a { margin: 4px 0; }
  /* Table horizontal scroll */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th, .table td { white-space: nowrap; }
  /* Tighten hero spacing on small screens */
  .hero { padding: 40px 0; }
  .marquee { display: none; }
}

@media (min-width: 1024px) {
  .container { max-width: 1200px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__inner { animation: none !important; position: static !important; }
  .marquee { text-align: center; }
}

/* Dark scheme variables */
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1020; --text: #e5e7eb; --white: #0f172a; --muted: #94a3b8; }
  .site-header, .site-footer { background: var(--white); }
  .site-header nav a:hover { background: rgba(255,255,255,0.06); }
  /* Ensure brand link stays readable on dark header, especially on mobile */
  .site-header .brand a { color: var(--text); }
  /* Make the header CTA ("Apply Now") stand out on dark header */
  .site-header nav .cta { background: var(--brand-accent); color: #fff; }
  .site-header nav .cta:hover { background: #1d4ed8; }
  /* Subtle border for embeds in dark mode */
  .map-embed { border-color: rgba(255,255,255,.12); }
}

/* --- Services page reveal animations --- */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-left { transform: translateX(-18px); }
.reveal-right { transform: translateX(18px); }
.reveal-fade { transform: none; }
.reveal-up.in, .reveal-left.in, .reveal-right.in, .reveal-fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Validation styles */
.field-validation-error, .validation { color: #dc2626; font-size: 0.85rem; margin-top: 4px; display: block; }
.field-validation-valid { display: none; }
.input-validation-error { border-color: #dc2626 !important; background-color: #fef2f2 !important; }
.input-validation-error:focus { outline-color: #fca5a5 !important; }
