/* =========================================================
   Camara Investigations — SPA styles
   ========================================================= */

:root {
  --navy-900: #0a1c3d;
  --navy-800: #0d2244;
  --navy-700: #14305e;
  --gold-500: #c8a04a;
  --gold-600: #b18a3a;
  --cream-50: #faf8f3;
  --cream-100: #f4f1e8;
  --cream-200: #ebe6d9;
  --text-900: #1a2440;
  --text-700: #2d3958;
  --text-500: #5b6480;
  --text-300: #8a93ad;
  --line: #e3decf;

  --shadow-sm: 0 2px 6px rgba(13, 34, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 34, 68, 0.08);

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-700);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-900);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.section { padding: 88px 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--gold-500);
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.eyebrow-on-dark { color: var(--gold-500); text-align: left; }

.section-title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 14px;
}

.divider {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold-500);
  margin: 0 auto 56px;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  border-radius: 0;
  line-height: 1;
}
.btn-primary {
  background: var(--gold-500);
  color: #fff;
  border-color: var(--gold-500);
}
.btn-primary:hover { background: var(--gold-600); border-color: var(--gold-600); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.btn-outline-dark:hover { background: var(--gold-500); color: #fff; }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand-logo-footer { height: 64px; }

.primary-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: center;
}
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--gold-500); }

.header-cta { padding: 12px 22px; font-size: 12px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all .2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-900);
  padding: 16px 24px 24px;
  gap: 14px;
}
.mobile-nav a {
  color: #fff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav .btn { margin-top: 10px; align-self: flex-start; }

/* ============== HERO ============== */
.hero {
  position: relative;
  background: var(--navy-800);
  color: #fff;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,34,68,.96) 0%, rgba(13,34,68,.85) 45%, rgba(13,34,68,.5) 70%, rgba(13,34,68,.4) 100%),
    url('https://images.unsplash.com/photo-1572883454114-1cf0031ede2a?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 88px 24px 80px;
  width: 100%;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 54px);
  margin: 0 0 22px;
  line-height: 1.1;
}
.hero .lead {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.92);
}

/* ============== SERVICES ============== */
.services { background: var(--cream-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.service-card {
  background: #fff;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.service-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 17px;
  margin: 0 0 12px;
  line-height: 1.25;
}
.service-card p {
  font-size: 13.5px;
  color: var(--text-500);
  margin: 0 0 18px;
  flex: 1;
}
.learn-more {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.learn-more:hover { gap: 10px; color: var(--gold-600); }

/* ============== ACADEMY ============== */
.academy { background: var(--cream-100); }
.academy-intro {
  text-align: center;
  max-width: 640px;
  margin: 4px auto 40px;
  color: var(--text-500);
  font-size: 15px;
}
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.course-card {
  background: #fff;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.course-icon {
  width: 52px; height: 52px;
  margin: 0 0 18px;
}
.course-icon svg { width: 100%; height: 100%; }
.course-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  line-height: 1.3;
}
.course-card p {
  font-size: 14px;
  color: var(--text-500);
  margin: 0 0 20px;
  flex: 1;
}

/* ============== WHY ============== */
.why { background: var(--cream-200); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.why-item {
  position: relative;
  padding: 0 30px;
}
.why-item + .why-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(13,34,68,.15);
}
.why-icon { width: 48px; height: 48px; margin-bottom: 16px; }
.why-icon svg { width: 100%; height: 100%; }
.why-item h3 {
  font-size: 19px;
  margin: 0 0 12px;
}
.why-item p {
  font-size: 14px;
  color: var(--text-500);
  margin: 0;
}

/* ============== ABOUT ============== */
.about {
  background: var(--navy-800);
  color: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.about-copy {
  display: flex;
  align-items: center;
  padding: 64px 24px;
}
.about-inner {
  max-width: 520px;
  margin-left: auto;
  padding-right: 40px;
}
.about-copy h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 18px;
}
.about-text {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  margin: 0 0 28px;
}
.about-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.about-pillars li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}
.about-pillars svg { width: 26px; height: 26px; }

.about-image {
  position: relative;
  background: url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  min-height: 360px;
}
.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,34,68,.4) 0%, rgba(13,34,68,0) 30%);
}

/* ============== CONTACT ============== */
.contact { background: var(--cream-50); padding: 64px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 40px;
  align-items: center;
}
.contact-copy h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 10px;
}
.contact-copy p {
  margin: 0;
  color: var(--text-500);
  font-size: 14px;
}
.contact-list {
  list-style: none;
  padding: 0 0 0 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--line);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  color: var(--text-900);
}
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--gold-500); }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.brand-light .brand-name,
.brand-light .brand-sub { color: #fff; }

.footer-tag {
  font-size: 12.5px;
  margin: 18px 0 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}
.social {
  display: inline-flex;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.25);
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.social:hover { background: rgba(255,255,255,.08); }

.footer-col h4 {
  color: var(--gold-500);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-500); }
.footer-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.footer-col p {
  font-size: 13px;
  margin: 0 0 14px;
  color: rgba(255,255,255,.7);
}
.footer-col p strong { color: #fff; font-weight: 500; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-bottom p {
  text-align: center;
  font-size: 12px;
  margin: 0;
  color: rgba(255,255,255,.55);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .academy-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.open { display: flex; }

  .section { padding: 64px 0; }
  .hero-inner { padding: 64px 24px; }
  .hero h1 br { display: none; }

  .brand-logo { height: 44px; }
  .brand-logo-footer { height: 56px; }

  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-item + .why-item::before { display: none; }
  .why-item { padding: 0; border-top: 1px solid rgba(13,34,68,.12); padding-top: 24px; }
  .why-item:first-child { border-top: 0; padding-top: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-inner { margin: 0; padding-right: 0; max-width: none; }
  .about-image { min-height: 260px; }
  .about-pillars { grid-template-columns: repeat(2, 1fr); }

  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-list {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    align-items: center;
  }
  .contact-list li { justify-content: center; text-align: left; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .academy-grid { grid-template-columns: 1fr; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; }
  .footer-cols-2 { grid-template-columns: 1fr; }
}

/* ============== MODAL + FORM ============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 61, 0.72);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
.modal-dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 620px;
  padding: 40px 40px 32px;
  border-top: 3px solid var(--gold-500);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  margin: auto;
  animation: slideUp .25s ease;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--text-500);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--cream-100); color: var(--text-900); }
.modal-header { margin-bottom: 24px; }
.modal-header .eyebrow { margin-bottom: 8px; }
.modal-header h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 0 0 8px;
}
.modal-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-500);
}
.eyebrow-left { text-align: left; }

body.modal-open { overflow: hidden; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Form ----- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-700);
  margin-bottom: 6px;
}
.form-field label span { color: var(--gold-500); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-900);
  background: var(--cream-50);
  border: 1px solid var(--line);
  padding: 11px 13px;
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,160,74,.18);
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.form-actions .btn { align-self: flex-start; min-width: 180px; }
.form-actions .btn:disabled { opacity: .6; cursor: not-allowed; }
.form-disclaimer {
  font-size: 12px;
  color: var(--text-500);
  margin: 0;
  line-height: 1.5;
}
.form-status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.show { display: block; }
.form-status.success {
  background: #e8f5ea;
  color: #1d6b34;
  border: 1px solid #b8dec1;
}
.form-status.error {
  background: #fdecea;
  color: #a82a1c;
  border: 1px solid #f3c1bb;
}

@media (max-width: 600px) {
  .modal { padding: 16px; }
  .modal-dialog { padding: 32px 22px 26px; }
  .form-row { grid-template-columns: 1fr; }
}
