:root {
  --navy: #161433;
  --navy-mid: #23204a;
  --gold: #d9a528;
  --gold-light: #f4d98c;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --text: #1e2230;
  --muted: #52596e;
  --border: #e2e6f0;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container { width: min(1120px, 92%); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.brand { text-decoration: none; color: #fff; display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.2px; }
.brand-lic { font-size: 0.95rem; color: var(--gold-light); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: #e6e8f2; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 6px;
  font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: 0.2s ease;
}
.btn-sm { padding: 0.45rem 1rem; background: var(--gold); color: var(--navy); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e8b434; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; font-size: 1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #f9faff 0%, #eef1f9 100%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.82rem;
  font-weight: 700; color: #8c6508; margin-bottom: 0.6rem;
}
.eyebrow-gold { color: var(--gold); }
h1 { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.18; color: var(--navy); margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.75rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.75rem; }
.credential-bar {
  padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 1rem; color: var(--navy);
}
.license-badge { display: inline-block; margin-top: 0.2rem; font-weight: 700; color: var(--navy); }

.portrait-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--gold); box-shadow: 0 14px 30px rgba(22,20,51,0.14);
  background: var(--navy);
}
.portrait-frame img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.75rem; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--navy); line-height: 1.25; }
.section-dark h2 { color: #fff; }
.section-sub { color: var(--muted); margin-top: 0.5rem; }

/* Solutions Grid */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem;
}
.card {
  background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Video Grid */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.video-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.video-card h3 { font-size: 1.08rem; color: var(--navy); padding: 1rem 1.2rem 0.3rem; }
.video-card p { font-size: 0.92rem; color: var(--muted); padding: 0 1.2rem 1.2rem; }

.yt-facade {
  position: relative; aspect-ratio: 16 / 9; background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
}
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  width: 100%; height: 100%; background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  border: none; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem;
}
.play-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: bold;
}
.yt-label { font-weight: 600; font-size: 0.95rem; color: var(--gold-light); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.about-grid p { margin: 1rem 0; color: var(--muted); }
.check-list { list-style: none; margin-top: 1rem; display: grid; gap: 0.6rem; }
.check-list li::before { content: "✓ "; color: #8c6508; font-weight: 700; }
.process-box {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
}
.process-box h3 { color: var(--navy); margin-bottom: 1rem; }
.steps { list-style: none; display: grid; gap: 1rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2.5rem; align-items: start; }
.direct-details { margin-top: 1.5rem; display: grid; gap: 0.75rem; font-size: 1.05rem; }
.direct-details a { color: var(--gold-light); text-decoration: none; }
.license-prominent { font-size: 1.1rem; font-weight: 700; color: var(--gold); }

.contact-form {
  background: #fff; color: var(--text); padding: 1.8rem;
  border-radius: var(--radius); display: grid; gap: 1rem;
}
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid #cbd2e1;
  border-radius: 6px; font: inherit;
}

/* Footer */
.site-footer {
  background: #0e0c22; color: #b8bfd4; padding: 2.2rem 0; font-size: 0.88rem;
}
.footer-id { font-size: 1rem; color: #fff; margin-bottom: 0.9rem; }
.footer-id a { color: var(--gold-light); text-decoration: none; }
.disclaimer { line-height: 1.55; color: #949cb5; }

/* Authentication Modal */
.auth-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); 
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 1; transition: opacity 0.3s ease;
}
.auth-modal.hidden {
  display: none; opacity: 0;
}
.auth-modal-content {
  background: #fff; border-radius: var(--radius); padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  max-width: 400px; width: 92%; position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.auth-modal-content h2 {
  color: var(--navy); font-size: 1.5rem; margin-bottom: 0.5rem;
}
.auth-modal-content p {
  color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem;
}
#auth-form {
  display: grid; gap: 1rem;
}
#auth-form label {
  display: block; font-weight: 600; color: var(--navy); font-size: 0.95rem;
}
#auth-form input {
  width: 100%; padding: 0.75rem; border: 2px solid var(--border);
  border-radius: 6px; font: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
#auth-form input:focus {
  outline: none; border-color: var(--gold);
}
#auth-form button {
  width: 100%; margin-top: 0.5rem;
}
.auth-error {
  color: #d9534f; font-size: 0.9rem; margin-top: 0.5rem; display: none;
}
.auth-error.show {
  display: block;
}
.close-auth {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--muted); transition: color 0.2s;
}
.close-auth:hover {
  color: var(--navy);
}

/* Videos section locked state */
#videos.locked {
  position: relative;
}
#videos.locked .video-grid {
  filter: blur(8px); pointer-events: none; opacity: 0.4;
}
#videos.locked .section-head {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 820px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 1rem 4%; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .auth-modal-content {
    padding: 2rem;
  }
}