/* ============================================================
   MARINE SECURITY SERVICES — PREMIUM CSS
   Mobile-first · Brand-driven · Motion-aware
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --navy:        #0B1D3A;
  --navy-deep:   #07142a;
  --navy-darkest:#020617;
  --gold:        #D4AF37;
  --gold-soft:   rgba(212, 175, 55, 0.15);
  --ink:         #111;
  --muted:       #5b6370;
  --line:        #e7e9ee;
  --bg:          #f6f7fa;
  --white:       #ffffff;
  --green:       #25D366;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f6f7fa 80%, #e7e9ee 100%);
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .eyebrow, .stat, .card-icon, .contact-label, .leadership-intro, .footer-links a, .trust-item, .btn-whatsapp {
  color: unset !important;
}

.card h3, .why-card h3, .service-block h3 {
  color: var(--navy) !important;
  font-weight: 800;
  text-shadow: none;
}

.card p, .why-card p, .service-block .lead, .service-block p {
  color: #1a2233 !important;
  opacity: 1 !important;
  font-weight: 500;
}

section h2, .service-block h3 {
  color: var(--navy) !important;
  font-weight: 900;
  text-shadow: none;
}

.footer, .footer-links a, .footer-base {
  color: #fff !important;
}

.hero h1, .hero .subtitle, .contact h2, .cta-band h2 {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.eyebrow {
  color: var(--gold) !important;
}

/* === HERO TEXT MAXIMUM CONTRAST — ENHANCED === */
.hero {
  /* Overlay: even darker for max readability */
  background: linear-gradient(135deg, rgba(7,20,42,0.98) 0%, rgba(11,29,58,0.94) 45%, rgba(2,6,23,0.98) 100%) !important;
  color: #fff;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 80px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  color: #fff !important;
  font-size: 2.9rem;
  font-weight: 1000;
  line-height: 1.13;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 36px rgba(0,0,0,0.85), 0 2px 0 #111, 0 1px 18px rgba(0,0,0,0.55);
  margin-bottom: 18px;
  background: rgba(11,29,58,0.32);
  border-radius: 10px;
  padding: 0.18em 0.32em;
  display: inline-block;
  border: 2.5px solid var(--gold, #D4AF37);
  box-shadow: 0 4px 32px rgba(11,29,58,0.18);
}
.hero .subtitle {
  color: #f6f7fa !important;
  font-size: 1.22rem;
  font-weight: 700;
  text-shadow: 0 4px 22px rgba(0,0,0,0.48);
  background: rgba(11,29,58,0.18);
  border-radius: 7px;
  padding: 0.13em 0.28em;
  display: inline-block;
  border: 1.5px solid var(--gold, #D4AF37);
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3.7rem; }
  .hero .subtitle { font-size: 1.38rem; }
}
@media (min-width: 960px) {
  .hero h1 { font-size: 4.3rem; }
}

/* ==================== ICONS ==================== */
.icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; }
.icon-gold { color: var(--gold); }
.icon-navy { color: var(--navy); }

/* ==================== SECTION ==================== */
section {
  padding: 80px 8vw;
  margin-bottom: 38px;
  text-align: center;
  position: relative;
  background: none;
}
section h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(11,29,58,0.08);
}
section > p.lead,
section > p.section-sub {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 15px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ==================== NAVBAR ==================== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}
.nav-inner {
  max-width: 1080px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-darkest));
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: none;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold); border-radius: 2px;
}

.nav-cta {
  background: var(--navy);
  color: white;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }

/* AI assistant nav button */
.nav-ai {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #fff8e3, #fff);
  color: var(--navy);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-ai svg { width: 16px; height: 16px; color: var(--gold); }
.nav-ai::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212,175,55,0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.nav-ai:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,175,55,0.35); }
.nav-ai:hover::before { opacity: 1; }
@media (min-width: 720px) {
  .nav-ai { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 10px 20px 16px;
  border-top: 1px solid var(--line);
  background: white;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.active { color: var(--navy); font-weight: 700; }
.nav-mobile a:last-child { border-bottom: none; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 22px auto 0;
  padding: 16px 24px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.30);
}
.btn:hover, .btn:active {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.40);
}
.btn svg { width: 18px; height: 18px; }

.btn-outline {
  color: var(--gold, #D4AF37) !important;
  border: 2px solid var(--gold, #D4AF37) !important;
  background: transparent !important;
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: white;
  box-shadow: none;
}
.btn-on-light {
  color: var(--navy) !important;
  border-color: var(--navy) !important;
}
.btn-on-light:hover {
  background: var(--gold-soft) !important;
  border-color: var(--navy) !important;
}
.services-cta { text-align: center; margin-top: 28px; }
.services-cta .btn { margin-top: 0; }

.btn-dark {
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 18px rgba(11, 29, 58, 0.30);
}
.btn-dark:hover { box-shadow: 0 10px 24px rgba(11, 29, 58, 0.40); }

.btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  border: none;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.btn-row .btn { margin: 0; }

/* ==================== HERO (home) ==================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(7,20,42,0.98) 0%, rgba(11,29,58,0.94) 45%, rgba(2,6,23,0.98) 100%) !important;
  color: #fff;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 80px;
}
.hero-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  color: #fff !important;
  font-size: 2.9rem;
  font-weight: 1000;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 36px rgba(0,0,0,0.85), 0 2px 0 #111, 0 1px 18px rgba(0,0,0,0.55);
  margin-bottom: 18px;
  background: rgba(11,29,58,0.32);
  border-radius: 10px;
  padding: 0.18em 0.32em;
  display: inline-block;
  border: 2.5px solid rgba(212,175,55,0.13);
  box-shadow: 0 2px 18px rgba(11,29,58,0.18);
}
.hero .subtitle {
  color: #f6f7fa !important;
  font-size: 1.22rem;
  font-weight: 700;
  text-shadow: 0 4px 22px rgba(0,0,0,0.48);
  background: rgba(11,29,58,0.18);
  border-radius: 7px;
  padding: 0.13em 0.28em;
  display: inline-block;
  border: 1.5px solid rgba(212,175,55,0.10);
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3.7rem; }
  .hero .subtitle { font-size: 1.38rem; }
}
@media (min-width: 960px) {
  .hero h1 { font-size: 4.4rem; }
}

/* === TRUST/VERIFIED STRIP BELOW HERO === */
.trust-strip {
  width: 100%;
  background: linear-gradient(90deg, #fffbe8 0%, #f6f7fa 100%);
  border-bottom: 1.5px solid var(--gold, #D4AF37);
  padding: 18px 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 18px rgba(212,175,55,0.04);
  z-index: 10;
}
.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 600;
  background: rgba(212,175,55,0.07);
  border-radius: 8px;
  padding: 6px 16px;
}
.trust-strip .trust-item svg {
  color: var(--gold);
  width: 18px; height: 18px;
}
@media (max-width: 600px) {
  .trust-strip {
    flex-direction: column;
    gap: 10px;
    font-size: 0.98rem;
    padding: 14px 0 12px;
  }
  .trust-strip .trust-item {
    padding: 7px 10px;
    font-size: 0.97rem;
  }
}

/* ==================== TRUST STATS ==================== */
.trust-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  background: #10192b;
  color: #fff;
  padding: 32px 0 18px;
  font-size: 17px;
  font-weight: 600;
}
.trust-stats .stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--gold, #D4AF37);
  box-shadow: 0 2px 12px rgba(212,175,55,0.07);
}
.trust-stats .stat svg { color: var(--gold, #D4AF37); width: 22px; height: 22px; }

/* ==================== SERVICES (grid cards) ==================== */
.services { background: white; }
.grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 28px !important;
  margin-top: 38px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  background: linear-gradient(135deg, #fff 92%, #f6f7fa 100%) !important;
  border: 2px solid var(--gold, #D4AF37) !important;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(11,29,58,0.10), 0 0 0 2px rgba(212,175,55,0.07) inset !important;
  padding: 38px 28px 28px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.28s cubic-bezier(.23,1.01,.32,1), border-color 0.22s, transform 0.22s;
  will-change: transform;
  animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.07) inset;
  opacity: 0.7;
}
.card:hover {
  box-shadow: 0 22px 54px rgba(212,175,55,0.22), 0 2px 18px rgba(11,29,58,0.13);
  border-color: #D4AF37;
  transform: translateY(-8px) scale(1.035);
}
.card h3, .why-card h3 {
  color: var(--navy) !important;
  font-weight: 800;
  text-shadow: none;
}
.card p, .why-card p {
  color: #1a2233 !important;
  opacity: 1 !important;
  font-weight: 500;
}

/* ==================== SERVICES — DETAILED PAGE ==================== */
.service-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
  max-width: 1080px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-block .card-icon { width: 56px; height: 56px; }
.service-block .card-icon svg { width: 28px; height: 28px; }
.service-block h3 { font-size: 20px; margin: 0 0 8px; }
.service-block .lead { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.feature-list {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #2c333f;
}
.feature-list li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}

/* ==================== WHY CHOOSE US (ENHANCED) ==================== */
.why {
  background: linear-gradient(135deg, #f6f7fa 80%, #e7e9ee 100%);
}
.why-card {
  background: linear-gradient(135deg, #fff 85%, #f6f7fa 100%);
  color: #0B1D3A;
  border: 2px solid var(--gold, #D4AF37);
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: left;
  box-shadow: 0 8px 32px rgba(212,175,55,0.10), 0 2px 18px rgba(11,29,58,0.07);
  transition: transform 0.22s cubic-bezier(.23,1.01,.32,1), box-shadow 0.22s cubic-bezier(.23,1.01,.32,1);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.07) inset;
  opacity: 0.7;
}
.why-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 18px 44px rgba(212,175,55,0.18), 0 2px 18px rgba(11,29,58,0.10);
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-soft), #fff8e3 80%);
  color: var(--gold);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(212,175,55,0.10);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--gold, #D4AF37) !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(212,175,55,0.08);
}
.why-card p {
  font-size: 15px;
  color: #2c333f;
  margin: 0;
  opacity: 0.92;
}

/* ==================== TRUST / LICENSE ==================== */
.trust { background: #fafbfc; }
.license-box {
  margin: 28px auto 0;
  padding: 14px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
  max-width: 720px;
  border: 1px solid var(--line);
  position: relative;
}
.license-box img { width: 100%; border-radius: 10px; }
.license-stamp {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.trust-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 28px auto 0;
}
.compliance-row {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  align-items: flex-start;
}
.compliance-row svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--gold);
  margin-top: 2px;
}
.compliance-row strong { display: block; font-size: 15px; margin-bottom: 2px; }
.compliance-row span { font-size: 13px; color: var(--muted); }

/* ==================== REQUEST FORM ==================== */
.request { background: white; }
.form-box {
  background: white;
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
  max-width: 480px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  text-align: left;
}
.request form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.request input,
.request select,
.request textarea {
  padding: 14px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.request input:focus,
.request select:focus,
.request textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 29, 58, 0.10);
}
.request textarea { resize: vertical; min-height: 90px; }
.request button[type="submit"] {
  margin-top: 6px;
  padding: 16px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.request button[type="submit"]:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}
.form-disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

/* Reassurance side panel (request page) */
.reassure {
  margin: 24px auto 0;
  max-width: 480px;
  display: grid;
  gap: 12px;
  text-align: left;
}
.reassure-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  align-items: flex-start;
}
.reassure-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.reassure-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.reassure-item span,
.reassure-item a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.reassure-item a:hover { color: var(--navy); }

/* ==================== LEADERSHIP ==================== */
.leadership {
  background: white;
  text-align: center;
}
.leadership h2 { color: var(--navy) !important; }
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 32px auto 0;
}
.leader-card {
  background: linear-gradient(135deg, #fff 90%, #f6f7fa 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(11,29,58,0.06);
}
.leader-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  border: 3px solid var(--gold);
}
.leader-card h4 {
  margin: 0 0 6px;
  color: var(--navy) !important;
  font-size: 1.1rem;
}
.leader-title {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.leader-bio {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==================== CONTACT CARDS ==================== */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 520px;
  margin: 28px auto 0;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  padding: 22px 20px;
}
.contact-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9) !important;
}
.contact-card .btn { margin-top: 0; }

/* ==================== CTA BAND ==================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-darkest));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, var(--gold-soft), transparent 50%),
              radial-gradient(circle at 80% 70%, var(--gold-soft), transparent 50%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: white; font-size: 24px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto; }

/* ==================== CONTACT ==================== */
.contact {
  background: linear-gradient(135deg, var(--navy), var(--navy-darkest));
  color: white;
  overflow: hidden;
}
.contact h2 { color: white; }
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  opacity: 0.92;
  font-size: 15px;
}
.contact-line .icon {
  color: var(--gold);
  width: 18px; height: 18px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #10192b;
  color: #fff;
  padding: 38px 0 18px;
  text-align: center;
  font-size: 15px;
  border-top: 2px solid var(--gold, #D4AF37);
}
.footer .logo { color: white; margin-bottom: 14px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 10px;
}
.footer-links a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold, #D4AF37); }
.footer-base {
  opacity: 0.8;
  font-size: 13px;
}

/* ==================== BACK TO TOP ==================== */
.back-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: inline-flex;
  align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(11,29,58,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top svg { width: 20px; height: 20px; }

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }
.hero.reveal, .page-header.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-overlay { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .why-card:hover { transform: none; }
}

/* ============================================================
   TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .hero .subtitle { font-size: 16px; }
  .page-header h1 { font-size: 34px; }
  .hero-trust { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 22px; }

  .btn { width: auto; max-width: none; padding: 14px 28px; }
  .btn-row { flex-direction: row; }

  .service-block {
    grid-template-columns: 80px 1fr;
    align-items: start;
    padding: 32px;
    gap: 24px;
  }
  .service-block .card-icon { width: 64px; height: 64px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   DESKTOP (≥ 960px)
   ============================================================ */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }

  section { padding: 90px 24px; }
  section h2 { font-size: 32px; }

  .hero { padding: 130px 24px 110px; }
  .hero h1 { font-size: 44px; line-height: 1.15; }
  .page-header { padding: 100px 24px 90px; }
  .page-header h1 { font-size: 40px; }

  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { gap: 12px; }
  .stat-num { font-size: 32px; }

  .request-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
    max-width: 1080px;
    margin: 28px auto 0;
  }
  .request-layout .form-box { margin: 0; max-width: none; }
  .request-layout .reassure { margin: 0; max-width: none; }

  .leadership-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .services .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MARINE AI — Chat Assistant
   ============================================================ */
.ai-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Launcher button */
.ai-launcher {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-darkest));
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(11, 29, 58, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 29, 58, 0.45); }
.ai-launcher svg { width: 24px; height: 24px; }
.ai-launcher .ai-icon-close { display: none; }
.ai-root.ai-open .ai-launcher .ai-icon-open { display: none; }
.ai-root.ai-open .ai-launcher .ai-icon-close { display: block; }

.ai-launcher-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}
.ai-launcher.ai-attention .ai-launcher-pulse {
  animation: aiPulse 1.6s ease-out 2;
}
@keyframes aiPulse {
  0%   { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.4); }
}

/* Push back-to-top so it doesn't collide */
.back-top { right: 86px; }

/* Panel */
.ai-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 110px));
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11, 29, 58, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ai-root.ai-open .ai-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-darkest));
  color: white;
}
.ai-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-avatar svg { width: 20px; height: 20px; }
.ai-meta { flex: 1; min-width: 0; }
.ai-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.ai-status {
  font-size: 11px;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.ai-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: aiDot 2s ease-in-out infinite;
}
@keyframes aiDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
}
.ai-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0.8;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.ai-close:hover { background: rgba(255,255,255,0.1); opacity: 1; }
.ai-close svg { width: 18px; height: 18px; }

/* Messages */
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-messages::-webkit-scrollbar { width: 6px; }
.ai-messages::-webkit-scrollbar-thumb { background: #d4d8de; border-radius: 6px; }

.ai-msg {
  display: flex;
  max-width: 85%;
  animation: aiSlideIn 0.25s ease;
}
@keyframes aiSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-msg-bot { align-self: flex-start; }
.ai-msg-user { align-self: flex-end; }

.ai-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.ai-msg-bot .ai-bubble {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.ai-msg-bot .ai-bubble a { color: var(--navy); font-weight: 600; }
.ai-msg-user .ai-bubble {
  background: var(--navy);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.ai-typing .ai-bubble {
  display: inline-flex;
  gap: 4px;
  padding: 14px 14px;
}
.ai-typing .ai-bubble span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c2c7d0;
  animation: aiBlink 1.2s infinite ease-in-out;
}
.ai-typing .ai-bubble span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing .ai-bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiBlink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-3px); }
}

/* Quick reply chips */
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 4px;
  align-self: flex-start;
  max-width: 100%;
  animation: aiSlideIn 0.25s ease;
}
.ai-chip {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ai-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Input bar */
.ai-input {
  display: flex;
  gap: 8px;
  padding: 10px 10px 12px;
  background: white;
  border-top: 1px solid var(--line);
}
.ai-input input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ai-input input:focus {
  outline: none;
  background: white;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 29, 58, 0.10);
}
.ai-input button {
  width: 42px;
  border: none;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ai-input button:hover { background: var(--navy-deep); transform: translateY(-1px); }
.ai-input button svg { width: 18px; height: 18px; }

/* Mobile fullscreen feel */
@media (max-width: 600px) {
  .ai-root {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .ai-launcher {
    width: 54px;
    height: 54px;
  }
  .ai-launcher svg { width: 22px; height: 22px; }

  /* Full-screen sheet, keyboard-safe (uses dvh where supported) */
  .ai-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    bottom: auto;
    right: auto;
    transform: translateY(20px) scale(1);
  }
  .ai-root.ai-open .ai-panel {
    transform: translateY(0) scale(1);
  }
  /* Lock body scroll when chat is open on mobile */
  body.ai-locked { overflow: hidden; touch-action: none; }

  .ai-header {
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px 16px;
  }
  .ai-messages {
    padding: 14px 12px;
    /* Leave room above the input on small screens */
    padding-bottom: 8px;
  }
  .ai-msg { max-width: 90%; }
  .ai-bubble { font-size: 14.5px; }

  .ai-input {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .ai-input input {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 12px 14px;
  }
  .ai-input button {
    width: 46px;
    height: 46px;
  }

  .ai-chip {
    padding: 9px 13px;
    font-size: 13px;
  }

  /* Hide the floating launcher while panel is open on mobile (full-screen takes over) */
  .ai-root.ai-open .ai-launcher { display: none; }
}

/* Tiny phones */
@media (max-width: 360px) {
  .ai-launcher { width: 50px; height: 50px; }
  .ai-bubble { font-size: 14px; padding: 9px 12px; }
  .ai-chip { padding: 8px 11px; font-size: 12.5px; }
}

/* ============================================================
   END OF STYLES
   ============================================================ */
