/* ===== MWS Investments — Professional Investment Company ===== */
:root {
  --brandBlue: #1E3A8A;
  --brandGold: #D4AF37;
  --goldLight: #F5D76E;
  --ink: #0B0F14;
  --night: #0A0E14;
  --midnight: #121826;
  --slate: #1A2232;
  --surface: #FFFFFF;
}

/* Global */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  line-height: 1.2;
}
h1 { line-height: 1.1; }
h2 { line-height: 1.15; }
h3 { line-height: 1.25; }

/* Header improvements */
header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nav link (premium underline, subtle) */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(11, 15, 20, 0.78);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
.nav-link:hover { color: rgba(11, 15, 20, 1); }
.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-0.25rem;
  height:1.5px;
  width:0;
  background: linear-gradient(90deg, transparent, var(--brandGold), transparent);
  transition: width .24s ease;
}
.nav-link:hover::after{ width:100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.78rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid var(--brandGold);
  outline-offset: 2px;
}

.btn-ink {
  background: var(--ink);
  color: white;
  border-color: rgba(11,15,20,0.12);
  box-shadow: 0 10px 30px rgba(11, 15, 20, 0.12);
}
.btn-ink:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(11, 15, 20, 0.14);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11,15,20,0.70);
}
.btn-outline:hover {
  transform: translateY(-1px);
  background: rgba(11,15,20,0.04);
  box-shadow: 0 4px 12px rgba(11, 15, 20, 0.08);
}

.btn-ghost {
  background: transparent;
  color: rgba(11,15,20,0.70);
  border-color: transparent;
}
.btn-ghost:hover {
  color: rgba(11,15,20,1);
  background: rgba(11,15,20,0.04);
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37, #E7C46B);
  color: rgba(11,15,20,0.95);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 45px rgba(212, 175, 55, 0.20);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.18);
}

.btn-primary {
  background: var(--brandBlue);
  color: white;
  border-color: rgba(30, 58, 138, 0.12);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: #152B66;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.20);
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37, #F5D76E);
  color: #0B0F14;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.22);
}
.btn-gold:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #F5D76E, #D4AF37);
}

.btn-outline-gold {
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #F5D76E;
  background: transparent;
}
.btn-outline-gold:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.1);
}

.btn-premium {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.35s ease;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.22);
}

.btn-outline-invert {
  background: transparent;
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-invert:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Luxury blocks */
.premium-block {
  background: rgba(18, 24, 38, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 18px;
  padding: 1.4rem 1.4rem;
  box-shadow: 0 24px 60px rgba(8, 10, 15, 0.45);
}
.premium-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: rgba(245, 215, 110, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.2), rgba(10, 14, 20, 0.0));
}

/* Services cards */
.service-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(26, 34, 50, 0.98), rgba(12, 16, 26, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 22px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 16px 40px rgba(8, 10, 15, 0.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(8, 10, 15, 0.45);
  border-color: rgba(212, 175, 55, 0.35);
}
.service-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}
.service-tag{
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(11,15,20,0.92);
}
.service-arrow{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(11,15,20,0.04);
  color: rgba(11,15,20,0.70);
  transition: background .18s ease, color .18s ease;
}
.service-card:hover .service-arrow{
  background: rgba(30,58,138,0.16);
  color: rgba(11,15,20,0.92);
}
.service-desc{
  margin-top: 0.75rem;
  color: rgba(11,15,20,0.60);
  line-height: 1.7;
}

/* Location panel */
.location-panel{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 26px;
  border: 1px solid rgba(212,175,55,0.2);
  background: linear-gradient(180deg, rgba(18,24,38,0.95), rgba(10,14,20,0.98));
  box-shadow: 0 26px 90px rgba(8, 10, 15, 0.45);
}
@media (min-width: 1024px){
  .location-panel{ grid-template-columns: 1.2fr 0.8fr; align-items: stretch; padding: 2rem; }
}

/* Luxury helpers */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.92) 0%, rgba(18, 24, 38, 0.78) 50%, rgba(18, 24, 38, 0.9) 100%);
}
.luxury-panel {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.92), rgba(10, 14, 20, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 24px 60px rgba(8, 10, 15, 0.45);
}
.gold-rail {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}
.gold-text-gradient {
  background: linear-gradient(90deg, #F5D76E 0%, #D4AF37 40%, #A67C00 70%, #F5D76E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-dark {
  background: linear-gradient(180deg, rgba(26, 34, 50, 0.98), rgba(12, 16, 26, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 16px 40px rgba(8, 10, 15, 0.35);
}
.image-frame {
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 14px 40px rgba(10, 14, 20, 0.6);
}
.eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Image fallbacks */
.hero-image-fallback {
  background: linear-gradient(135deg, #0A0E14 0%, #1E3A8A 50%, #0A0E14 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}
.location-image-fallback {
  background: linear-gradient(135deg, #0A0E14 0%, #1A2232 100%);
}
.fallback-bg {
  background: linear-gradient(135deg, #0A0E14 0%, #1E3A8A 50%, #0A0E14 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-image-fallback,
  .location-image-fallback,
  .fallback-bg {
    animation: none !important;
    background: linear-gradient(135deg, #1E3A8A 0%, #4A7DDB 100%) !important;
  }
}
