/* ===== MercSEA – Modern Redesign ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0d1b2a;
  --teal: #0a7e6f;
  --teal-light: #12a98d;
  --gold: #e8a835;
  --cream: #faf7f2;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --border: rgba(13,27,42,0.1);
  --shadow: 0 4px 24px rgba(13,27,42,0.08);
  --shadow-lg: 0 16px 48px rgba(13,27,42,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  padding: 0 40px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.nav-logo img {
  height: 65px;
  width: auto;
  border-radius: 4px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1px;
  text-shadow: none;
}

/* nav-logo-text span overrides handled below */

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--gold); background: rgba(232,168,53,0.1); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px; /* bridge gap so hover doesn't break */
  min-width: 190px;
  z-index: 999;
}

.dropdown-menu-inner {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
}

.dropdown-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #0d4a3e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(10,126,111,0.25) 0%, transparent 70%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.hero-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: block;
  background: rgba(232,168,53,0.15);
  border: 1px solid rgba(232,168,53,0.4);
  color: var(--gold);
  padding: 14px 24px;
  border-radius: 14px;
  font-size: clamp(1rem, 2.8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--teal);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid var(--teal);
  letter-spacing: 0.3px;
}

.btn-primary:hover { background: var(--teal-light); border-color: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,126,111,0.4); }

.btn-outline {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
section { padding: 96px 40px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 620px;
  line-height: 1.8;
}

/* ===== VISION/MISSION CARDS ===== */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.vm-card {
  background: var(--navy);
  color: white;
  padding: 36px 28px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.vm-card:hover { transform: translateY(-6px); }

.vm-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(232,168,53,0.08);
  border-radius: 50%;
}

.vm-icon {
  width: 48px;
  height: 48px;
  background: rgba(10,126,111,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.vm-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.vm-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  height: 460px;
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--navy);
  padding: 20px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
}

.about-text .section-desc { max-width: 100%; margin-bottom: 20px; }

.founder-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 28px;
  margin-top: 32px;
  border-left: 4px solid var(--teal);
}

.founder-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.founder-card .credentials {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.founder-card ul { list-style: none; padding: 0; }
.founder-card ul li {
  font-size: 0.88rem;
  color: var(--gray);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.founder-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 6px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  background: var(--white);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(10,126,111,0.1), rgba(10,126,111,0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-link::after { content: '→'; transition: transform 0.2s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  padding: 140px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(10,126,111,0.2) 0%, transparent 70%);
}

.page-hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

/* ===== CONTENT SECTIONS ===== */
.content-block {
  background: var(--white);
}

.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }

/* ===== ACCORDION / LIST ITEMS ===== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.topic-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.topic-item:hover { background: var(--cream); border-color: var(--teal); }

.topic-item::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: rgba(10,126,111,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white;
  padding: 48px 56px;
  border-radius: 24px;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.highlight-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.highlight-box p { font-size: 0.95rem; opacity: 0.85; line-height: 1.8; max-width: 700px; }

/* ===== TWO COLUMN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.two-col-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.two-col-text p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== METHODOLOGY CARDS ===== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.method-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.method-card .method-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.method-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.method-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-filter {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: white;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover img { transform: scale(1.07); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.6);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(10,126,111,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail-text span {
  font-size: 0.9rem;
  color: var(--gray);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
  background: var(--teal);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  width: 100%;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.btn-submit:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,126,111,0.3); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 40px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* footer-brand nav-logo-text handled below */

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
}

.footer-col h5 {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 24px; }
  nav { padding: 0 24px; }
  .hero { padding: 100px 24px 60px; }
  .page-hero { padding: 120px 24px 60px; }
  .highlight-box { padding: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-img-badge { position: static; margin-top: 20px; display: inline-block; }
}

/* ===== DROPDOWN FIX: invisible bridge covers the gap ===== */
.nav-dropdown > a::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown { position: relative; }
.dropdown-menu {
  top: calc(100% + 2px) !important;
  padding-top: 10px !important;
}
/* Extend hover zone with pseudo element on the UL */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
}

/* ===== FINAL DROPDOWN FIX ===== */
/* Remove gap entirely — dropdown sits flush below nav item, no break in hover */
.nav-dropdown {
  position: relative;
  padding-bottom: 8px; /* extends clickable area downward */
  margin-bottom: -8px;
}
.dropdown-menu {
  top: 100% !important;
  padding-top: 0 !important;
  background: var(--navy) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
  padding: 8px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3) !important;
}



/* ===== NESTED DROPDOWN — Train the Trainer sub-menu ===== */
.has-nested { position: relative; }

.nested-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  z-index: 1000;
  padding-left: 6px;
}

.nested-menu-inner {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.has-nested:hover .nested-menu { display: block; }

.has-nested > a::after {
  content: ' ›';
  font-size: 0.85rem;
  float: right;
  margin-left: 6px;
}

.nested-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nested-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Mobile: show nested inline */
@media (max-width: 768px) {
  .nested-menu {
    position: static;
    padding-left: 0;
    padding-top: 4px;
  }
  .nested-menu-inner {
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: none;
  }
  .has-nested > a::after { content: ' ▾'; }
  .has-nested:hover .nested-menu { display: block; }
}

/* ═══════════════════════════════════════════════════
   MercSEA Brand Name — Purple + White Outline
   ═══════════════════════════════════════════════════ */

/* NO font-size here — inherit from context so nothing breaks */
.brand-name,
.brand-name-dark,
.brand-full,
.brand-full-dark {
  color: #8B2FC9 !important;
  font-weight: 700 !important;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9) !important;
  paint-order: stroke fill !important;
  font-size: inherit !important;
}

/* Nav logo */
.nav-logo-text,
.nav-logo-text span,
.nav-logo-text .brand-name,
.nav-logo-text .brand-name-dark {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  font-size: 2rem !important;
}

/* Footer brand logo */
.footer-brand .nav-logo-text,
.footer-brand .nav-logo-text span,
.footer-brand .nav-logo-text .brand-name,
.footer-brand .nav-logo-text .brand-name-dark {
  color: #8B2FC9 !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9) !important;
  paint-order: stroke fill !important;
  text-shadow: none !important;
}

/* Hero badge */
.hero-badge,
.hero-badge .brand-full,
.hero-badge .brand-full-dark,
.hero-badge .brand-name,
.hero-badge .brand-name-dark,
.hero-badge .brand-colored,
.hero-badge .bc-orange,
.hero-badge .bc-white {
  -webkit-text-stroke: 0 !important;
  paint-order: stroke fill !important;
  font-size: clamp(1rem, 2.8vw, 2.8rem) !important;
}

/* Section labels */
.section-label { color: #8B2FC9; }

/* ── Brand Name Letter Coloring ─────────────────────────────────── */
.brand-colored { display: inline; font-weight: inherit; font-size: inherit; }
.bc-orange { color: #E8A835 !important; font-weight: inherit; -webkit-text-stroke: 0 !important; }
.bc-white  { color: #FFFFFF !important; font-weight: inherit; -webkit-text-stroke: 0 !important; }

/* On light backgrounds — orange stays, white becomes navy */
.light-bg .bc-white,
section:not(.hero):not(footer) .bc-white,
.section-inner .bc-white {
  color: var(--navy) !important;
}

/* Nav MercSEA — all white, no orange split */
.nav-logo-text .brand-colored .bc-orange,
.nav-logo-text .brand-colored .bc-white {
  color: #FFFFFF !important;
  -webkit-text-stroke: 0 !important;
}
/* MercSEA standalone (not full name) — all white everywhere */
.bc-merc-white { color: #FFFFFF !important; font-weight: inherit; }
