/* ============================================================
   MGS Communications — Shared Styles
   Extracted from inline <style> blocks across all pages.
   Any change here applies site-wide.
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1a1a2e; line-height: 1.6; background: #fff; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== DESIGN TOKENS ===== */
:root {
  --navy: #1B5E20;
  --navy-light: #2E7D32;
  --green: #4CAF50;
  --green-light: #66BB6A;
  --green-dark: #388E3C;
  --yellow: #f9a825;
  --yellow-light: #fdd835;
  --yellow-dark: #f57f17;
  --orange: #e65100;
  --turquoise: #00BCD4;
  --turquoise-light: #26C6DA;
  --gray-50: #f8faf8;
  --gray-100: #f1f5f1;
  --gray-200: #e2e8e2;
  --gray-300: #cbd5cb;
  --gray-600: #475549;
  --gray-700: #334335;
  --gray-900: #0f170f;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-sm: 8px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== STICKY HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 80px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: .875rem; font-weight: 500;
  color: var(--gray-700); border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--gray-100); color: var(--green); }
.nav a.active { color: var(--green); font-weight: 600; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: ''; width: 0; height: 0; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 5px solid currentColor;
  transition: transform .2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 240px; padding: 8px 0; z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; font-size: .875rem; color: var(--gray-700);
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--green); }
.dropdown-menu svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .95rem; color: var(--navy);
}
.header-phone svg { width: 18px; height: 18px; color: var(--green); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; border: none; cursor: pointer; transition: all .2s;
  text-align: center;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-yellow { background: var(--yellow); color: var(--navy); font-weight: 700; }
.btn-yellow:hover { background: var(--yellow-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-100); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; color: var(--navy); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--turquoise); margin-bottom: 12px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem;
  font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.section-sub { font-size: 1.05rem; color: var(--gray-600); max-width: 600px; margin-bottom: 48px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== FORMS ===== */
.form-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: 1.3rem; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.form-card .form-sub { font-size: .9rem; color: var(--gray-600); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-group label .req { color: var(--orange); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; }
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.cta-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem;
  font-weight: 800; color: var(--navy); margin-bottom: 16px;
}
.cta-text p { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 24px; }
.cta-info { display: flex; flex-direction: column; gap: 18px; }
.cta-info-item { display: flex; gap: 14px; align-items: flex-start; }
.cta-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gray-100); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cta-info-icon svg { width: 20px; height: 20px; color: var(--green); }
.cta-info-item h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.cta-info-item p { font-size: .85rem; color: var(--gray-600); margin: 0; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--white); margin-bottom: 18px;
}
.footer-about p { font-size: .875rem; line-height: 1.65; margin-bottom: 16px; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 1.2rem; color: var(--white); margin-bottom: 14px;
}
.footer-brand span { color: var(--green-light); }
.footer-links a {
  display: block; padding: 10px 0; font-size: .875rem;
  color: rgba(255,255,255,.7); transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .875rem; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--green-light); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.5);
}
.footer-badges { display: flex; align-items: center; gap: 16px; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: rgba(255,255,255,.08); border-radius: 6px; font-size: .75rem;
  font-weight: 600; color: rgba(255,255,255,.7);
}

/* ===== MOBILE STICKY CALL ===== */
.mobile-call {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--turquoise); padding: 14px 24px;
  text-align: center; color: var(--white); font-weight: 700; font-size: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.mobile-call svg { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }

/* ===== EXIT POPUP ===== */
.popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.popup-overlay.active { display: flex; }
.popup {
  background: var(--white); border-radius: var(--radius);
  max-width: 480px; width: 100%; padding: 40px; text-align: center;
  box-shadow: var(--shadow-xl); position: relative;
}
.popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--gray-100); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.popup h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.popup p { color: var(--gray-600); margin-bottom: 24px; }
.popup .form-grid { grid-template-columns: 1fr; }

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
  margin-top: 72px; position: relative; overflow: hidden;
  padding: 60px 0 70px;
}
.subpage-hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Ccircle cx='400' cy='300' r='250' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='400' cy='300' r='180' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='400' cy='300' r='110' fill='none' stroke='white' stroke-width='1'/%3E%3Cline x1='150' y1='300' x2='650' y2='300' stroke='white' stroke-width='.5'/%3E%3Cline x1='400' y1='50' x2='400' y2='550' stroke='white' stroke-width='.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.subpage-hero .hero-content { position: relative; z-index: 2; max-width: 700px; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 2px; }
.subpage-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.4rem;
  font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 18px;
}
.subpage-hero h1 em { font-style: normal; color: var(--yellow); }
.subpage-hero p {
  font-size: 1.08rem; color: rgba(255,255,255,.82);
  max-width: 560px; margin-bottom: 28px; line-height: 1.7;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== RESPONSIVE — SHARED COMPONENTS ===== */
@media (max-width: 1024px) {
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { padding-bottom: 60px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .subpage-hero { padding: 40px 0 50px; }
  .subpage-hero h1 { font-size: 1.8rem; }
  section { padding: 60px 0; }
  .section-title { font-size: 1.65rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .form-group label { font-size: .9rem; }
  .popup { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .mobile-call { display: block; }
  /* Mobile nav */
  .nav.open {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 14px 24px; text-align: center; }
  .nav.open .nav-dropdown { text-align: center; }
  .nav.open .nav-dropdown > a { justify-content: center; }
  .nav.open .nav-dropdown > a::after { display: none; }
  .nav.open .dropdown-menu {
    display: block; position: static; border: none;
    box-shadow: none; padding: 4px 0 0; min-width: auto;
  }
  .nav.open .dropdown-menu a { padding: 12px 14px; justify-content: center; }
}

@media (max-width: 480px) {
  .subpage-hero h1 { font-size: 1.55rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}
