/* ══════════════════════════════════════════════════════
   MRGS DESIGN SYSTEM — shared.css
   Fonts: Poppins Bold (headers) + Poppins Semibold (subheaders) + Inter (body)
   Colors: Black · White · #9B0F06 (company red)
══════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg:        #0d0d0d;
  --bg2:       #111111;
  --bg3:       #161616;
  --surface:   #1a1a1a;
  --border:    rgba(255,255,255,0.07);
  --accent:    #9B0F06;
  --accent-h:  #B31208;
  --accent-dk: #6E0A04;
  --gold:      #C41209;
  --gold-lt:   #ffffff;
  --white:     #ffffff;
  --off-white: #f5f2ed;
  --text:      rgba(255,255,255,0.85);
  --text-mid:  rgba(255,255,255,0.45);
  --text-dim:  rgba(255,255,255,0.22);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── TYPOGRAPHY ─── */
h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.25px;
}

.section-h {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.5px;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.label-tag::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.body-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1024px) { .container { padding: 0 48px; } }
@media (max-width: 768px)  { .container { padding: 0 24px; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow:
    0 4px 20px rgba(155,15,6,0.45),
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-accent:hover {
  background: var(--accent-h);
  box-shadow:
    0 8px 32px rgba(155,15,6,0.6),
    0 2px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
  background: rgba(255,255,255,0.04);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--accent);
  box-shadow:
    0 6px 28px rgba(255,255,255,0.2),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,1);
}
.btn-white:hover {
  background: var(--off-white);
  box-shadow:
    0 10px 40px rgba(255,255,255,0.25),
    0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  color: var(--accent-dk);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-nav.scrolled {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 80px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-links > li { display: flex; align-items: center; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: white; }

/* ─── DROPDOWN ─── */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-links .has-dropdown > a::after { display: none !important; }
.nav-links .has-dropdown > a.active { color: white; }
.nav-links .has-dropdown > a.active .nav-chevron { opacity: 1; }
.nav-chevron {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  opacity: 0.4;
  transition: transform 0.25s, opacity 0.25s;
  flex-shrink: 0;
}
.has-dropdown:hover .nav-chevron { transform: rotate(-135deg) translateY(2px); opacity: 1; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  min-width: 210px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(155,15,6,0.07);
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 10px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  white-space: nowrap;
  text-decoration: none;
  width: 100%;
  height: auto;
}
.nav-dropdown li a::after { display: none !important; }
.nav-dropdown li a:hover {
  color: white;
  background: rgba(155,15,6,0.1);
  padding-left: 30px;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 6px 0;
}

/* Mobile menu service groups */
.mobile-nav-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 16px 0 4px;
  align-self: stretch;
  text-align: center;
}
.mobile-nav-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  transition: color 0.2s;
  line-height: 1.6;
  text-decoration: none;
}
.mobile-nav-sub:hover { color: white; }
.mobile-nav-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 0;
}

.nav-cta {
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 11px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: white;
  transition: all 0.35s var(--ease);
  transform-origin: left;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  z-index: 800;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-overlay.open { display: flex; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mobile-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
  line-height: 1.3;
}
.mobile-nav a:hover { color: var(--accent); }

/* ─── FLAG CARDS ─── */
.flag-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px 22px;
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s;
}
.flag-card:hover {
  border-color: rgba(155,15,6,0.3);
  background: rgba(155,15,6,0.05);
}
.flag-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
  font-family: 'Inter', sans-serif;
}
.flag-city {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: white;
  font-family: 'Inter', sans-serif;
}

/* ─── FOOTER ─── */
.site-footer {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity 0.25s;
}
.footer-logo:hover { opacity: 0.75; }
.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}
.footer-about {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 28px;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: all 0.25s;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(155,15,6,0.4);
  transform: translateY(-2px);
}
.footer-col-h {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

/* ─── PAGE HERO (subpages) ─── */
.page-hero {
  padding: 180px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(155,15,6,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 20%, rgba(155,15,6,0.04) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--accent); }
.page-hero-breadcrumb span { color: var(--text-dim); }
.page-h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 1.0;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.page-h1 em { font-style: normal; color: var(--accent); }
.page-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.8;
}

/* ─── SECTION DIVIDER LINE ─── */
.section-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 48px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-about { max-width: 100%; }
  .section-h { font-size: clamp(32px, 9vw, 56px); }

  /* Tighten container on small screens */
  .container { padding: 0 20px; }

  /* Page hero */
  .page-hero { padding: 110px 0 56px; }
  .page-h1 { font-size: clamp(44px, 13vw, 72px); }
  .page-hero-sub { font-size: 14px; max-width: 100%; }

  /* Buttons stacked */
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Mobile nav */
  .mobile-nav { gap: 16px; }
}
