/* ==========================================================================
   MONEXA REACH - Brand Design System (Blue + Gold Palette)
   Dark Navy: #002B67 | Royal Blue: #0757A6 | Gold: #FFC400 | Dark Gold: #E39400
   Main BG: #FFFFFF | Light Grey: #F5F7FA | Charcoal: #111111
   Public pages combine business photography with the existing brand graphics.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Primary Brand Colors */
  --navy: #002B67;
  --navy-dark: #001C44;
  --navy-light: #003B8D;
  --royal: #0757A6;
  --royal-hover: #054687;
  --royal-light: #EBF3FC;
  
  /* Gold Accents */
  --gold: #FFC400;
  --gold-dark: #E39400;
  --gold-light: #FFF8E1;
  --gold-glow: rgba(255, 196, 0, 0.25);
  
  /* Neutrals */
  --white: #FFFFFF;
  --light-grey: #F5F7FA;
  --light-grey-alt: #EDF2F7;
  --border: #E2E8F0;
  --border-gold: rgba(227, 148, 0, 0.35);
  --charcoal: #111111;
  --text-muted: #556987;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 43, 103, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 43, 103, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 43, 103, 0.12);
  --shadow-gold: 0 4px 20px rgba(255, 196, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--charcoal);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Hero Background Slider (Webi2, Webi3, Webi4) */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background: transparent;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}

.hero-bg-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.hero-bg-slide.prev {
  opacity: 0;
  visibility: hidden;
}

.hero-overlay-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 30%, rgba(255, 255, 255, 0.45) 48%, transparent 68%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-overlay-fade {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.78) 60%, rgba(255, 255, 255, 0.35) 100%);
  }
}

/* Public page photography: separate copy and images for readable headings. */
.page-photo-hero .page-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.page-photo-copy {
  min-width: 0;
  text-align: left;
}

.page-photo-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--royal-light);
  box-shadow: var(--shadow-md);
}

.page-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.section-team-photo {
  margin: 0 0 3rem;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}

.section-team-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .page-photo-hero .page-photo-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .page-photo-frame img {
    aspect-ratio: 16 / 9;
  }
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--light-grey);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--royal);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-alt {
  background-color: var(--light-grey);
}

.section-navy {
  background-color: var(--navy);
  color: var(--white);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-4, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* Typography & Gold Highlights */
.text-navy { color: var(--navy) !important; }
.text-royal { color: var(--royal) !important; }
.text-gold { color: var(--gold) !important; }
.text-gold-dark { color: var(--gold-dark) !important; }
.text-charcoal { color: var(--charcoal) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-royal { background-color: var(--royal) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-light-grey { background-color: var(--light-grey) !important; }

.gradient-text-gold {
  background: linear-gradient(135deg, #FFC400 0%, #E39400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #002B67 0%, #0757A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gold Accent Line */
.gold-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 9999px;
  display: inline-block;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.card-navy {
  background: var(--navy-dark);
  border: 1px solid rgba(255, 196, 0, 0.2);
  color: var(--white);
}

.card-navy:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Service Icon Circle */
.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--royal-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.card:hover .service-icon-wrap {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
  transform: scale(1.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-royal {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(7, 87, 166, 0.25);
}
.btn-royal:hover {
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 6px 18px rgba(0, 43, 103, 0.3);
  border-color: var(--gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 196, 0, 0.3);
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  font-weight: 800;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FFE082 0%, var(--gold) 100%);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.775rem;
  border-radius: 0.625rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: var(--gold-light);
  color: var(--navy);
  border: 1px solid rgba(227, 148, 0, 0.4);
}

.badge-navy {
  background: rgba(0, 43, 103, 0.08);
  color: var(--navy);
  border: 1px solid rgba(0, 43, 103, 0.15);
}

/* Forms */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(7, 87, 166, 0.15);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  padding: 0.85rem 1rem;
  background: var(--light-grey);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}

.table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:hover td {
  background: var(--royal-light);
}

/* Abstract Graphic Elements (Replacements for photos) */
.abstract-grid-bg {
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(0, 43, 103, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 43, 103, 0.04) 1px, transparent 1px);
}

.abstract-dots-bg {
  background-image: radial-gradient(rgba(7, 87, 166, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
}

.abstract-navy-mesh {
  background: radial-gradient(circle at 10% 20%, rgba(7, 87, 166, 0.25) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(255, 196, 0, 0.12) 0%, transparent 40%),
              linear-gradient(135deg, #001C44 0%, #002B67 60%, #0757A6 100%);
}

.abstract-glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 196, 0, 0.35);
  box-shadow: 0 20px 40px rgba(0, 43, 103, 0.12);
}

/* Floating Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Ticker Animation */
@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerSlide 35s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes noticeMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.notice-marquee {
  position: relative;
}

.notice-marquee-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  gap: 4rem;
  color: #e2e8f0;
  white-space: nowrap;
  animation: noticeMarquee 22s linear infinite;
}

.notice-marquee-track:hover {
  animation-play-state: paused;
}

/* Helper flex */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
