/* =====================================================
   McNair Media — Fully Bespoke Theme
   Applied via ThemeManager when branding.theme = 'mcnairmedia'
   Zero framework class dependencies — all mnm- prefixed
   ===================================================== */

/* ── Design Tokens ─────────────────────────────────── */

:root {
  --font-body: 'Figtree', 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 15px; }
body { line-height: 1.7; font-family: var(--font-body); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}

h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.5rem; }

a:hover { color: var(--color-secondary); }

/* ── Container ─────────────────────────────────── */

.mnm-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Notification Bar ──────────────────────────── */

.mnm-notification-bar {
  background-color: var(--color-dark, #121212);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  z-index: 1100;
}

.mnm-notification-bar a { color: var(--color-primary); text-decoration: underline; margin-left: 0.5rem; }

/* ── Header ────────────────────────────────────── */

.mnm-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-header-bg, #fff);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: padding 0.4s ease, background 0.4s ease;
}

.mnm-header.mnm-scrolled {
  padding: 0.5rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.mnm-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* ── Logo ──────────────────────────────────────── */

.mnm-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mnm-logo-img {
  height: clamp(22px, 4vw, 38px);
  max-width: clamp(80px, 8vw, 120px);
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.mnm-header.mnm-scrolled .mnm-logo-img {
  height: clamp(16px, 3vw, 28px);
  max-width: clamp(60px, 6vw, 90px);
}

.mnm-logo-text {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-dark, #121212);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Menu Group (mobile: hamburger + label) ────── */

.mnm-menu-group { display: contents; }
.mnm-menu-label { display: none; }

.mnm-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mnm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark, #121212);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Desktop Nav ───────────────────────────────── */

.mnm-nav { margin-left: auto; }

.mnm-nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.mnm-nav-link {
  color: var(--color-dark, #121212);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.mnm-nav-link:hover { color: var(--color-primary); }

.mnm-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.mnm-nav-link:hover::after { width: 100%; }

.mnm-chevron { font-size: 0.6rem; opacity: 0.7; transition: transform 0.3s ease; }

/* ── Dropdowns ─────────────────────────────────── */

.mnm-has-dropdown { position: relative; }

.mnm-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  min-width: 220px;
  list-style: none;
  padding: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mnm-has-dropdown:hover .mnm-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mnm-has-dropdown:hover .mnm-chevron { transform: rotate(180deg); color: var(--color-primary); }

.mnm-dropdown li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-dark, #121212);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mnm-dropdown li a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  padding-left: 1.75rem;
}

/* ── Mobile Actions (call/text) ────────────────── */

.mnm-mobile-actions { display: none; }

.mnm-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mnm-action-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── Mobile Overlay ────────────────────────────── */

.mnm-mobile-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1100;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.mnm-mobile-overlay.active { display: flex; opacity: 1; }

.mnm-mobile-overlay-content {
  text-align: center;
  position: relative;
  width: 100%;
}

.mnm-mobile-overlay-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mnm-mobile-overlay-content a {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.mnm-mobile-overlay-content a:hover { color: var(--color-primary); }

.mnm-mobile-submenu {
  list-style: none;
  padding: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mnm-mobile-submenu a { font-size: 1.1rem; font-weight: 400; opacity: 0.8; }

.mnm-mobile-close {
  position: absolute;
  top: -6rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.mnm-mobile-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.mnm-mobile-action-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.mnm-mobile-action-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ── Buttons ───────────────────────────────────── */

.btn {
  padding: 13px 15px;
  border-radius: 3px;
  font-size: 0.9375rem;
  text-transform: none;
  letter-spacing: normal;
}

/* ── Gradient Text ─────────────────────────────── */

.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* ── Framework Section Overrides (for fallback sections) ── */

.service-card {
  background: #fff; padding: 2rem; border-radius: 1rem;
  border: 1px solid #f3f4f6; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); transform: translateY(-4px); }
.service-card .icon-wrap { width: 56px; height: 56px; background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: 1.5rem; }
.service-card:hover .icon-wrap { background: var(--color-primary); color: #fff; }

.btn-pill { display: inline-block; padding: 0.875rem 2rem; border-radius: 9999px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.btn-pill-primary { background: var(--color-primary); color: #fff; }
.btn-pill-primary:hover { background: var(--color-accent); color: #fff; }
.btn-pill-outline { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.btn-pill-outline:hover { background: #f9fafb; color: #374151; }

.contact-split { max-width: 1024px; margin: 0 auto; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); display: flex; flex-direction: column; }
.contact-split .info-side { background: var(--color-primary); color: #fff; padding: 3rem; position: relative; }
.contact-split .info-side::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-accent) 20%, transparent); mix-blend-mode: overlay; }
.contact-split .info-side > * { position: relative; z-index: 1; }
.contact-split .form-side { background: #fff; padding: 3rem; }
.contact-split .form-side input, .contact-split .form-side textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; outline: none; transition: border-color 0.15s; font-family: var(--font-body); }
.contact-split .form-side input:focus, .contact-split .form-side textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent); }
@media (min-width: 768px) { .contact-split { flex-direction: row; } .contact-split .info-side { width: 50%; } .contact-split .form-side { width: 50%; } }

.check-item { display: flex; align-items: center; gap: 0.75rem; color: #374151; font-size: 0.95rem; }
.check-item svg { flex-shrink: 0; }

.expertise-feature { display: flex; gap: 1rem; }
.expertise-feature .icon-circle { flex-shrink: 0; width: 48px; height: 48px; background: color-mix(in srgb, var(--color-accent) 10%, transparent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-accent); }

.blog-preview-card { background: #fff; border-radius: 1rem; overflow: hidden; border: 1px solid #f3f4f6; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); transition: all 0.3s ease; }
.blog-preview-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.blog-preview-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-preview-card .card-body { padding: 1.5rem; }
.blog-preview-card .card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-preview-card .card-body p { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Footer ────────────────────────────────────── */

.mnm-footer { background: var(--color-footer-bg, #0a0a0a); color: #d1d5db; padding: 5rem 0 2rem; margin-top: auto; }

.mnm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.mnm-footer-logo { height: 50px; width: auto; margin-bottom: 2rem; }
.mnm-footer-col p { opacity: 0.8; margin-bottom: 2rem; max-width: 400px; }

.mnm-footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.mnm-footer-links { list-style: none; padding: 0; }
.mnm-footer-links li { margin-bottom: 0.75rem; opacity: 0.8; }
.mnm-footer-links a { color: #d1d5db; text-decoration: none; transition: color 0.2s; }
.mnm-footer-links a:hover { color: #fff; }

.mnm-contact-item { display: flex; align-items: center; gap: 8px; }
.mnm-contact-icon { flex-shrink: 0; }
.mnm-contact-icon-top { align-self: start; margin-top: 2px; }

.mnm-social-links { display: flex; gap: 1.25rem; margin-top: 1rem; }
.mnm-social-links a {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}
.mnm-social-links a:hover { background: var(--color-primary); color: var(--color-dark, #121212); transform: translateY(-3px); }

.mnm-footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}
.mnm-footer-bottom a { color: var(--color-primary); text-decoration: underline; }

/* ── Responsive ────────────────────────────────── */

@media (max-width: 1024px) {
  .mnm-nav { display: none; }
  .mnm-hamburger { display: flex; }

  .mnm-menu-group {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
  }

  .mnm-menu-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
  }

  .mnm-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .mnm-mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
  }
}

@media (max-width: 768px) {
  .mnm-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .mnm-footer-grid { grid-template-columns: 1fr; }
}
