/* ============================================================
   MKT Alliance — Main Stylesheet
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #0070B3;
  --color-primary-dark: #0D5292;
  --color-primary-light: #0D9DDC;
  --color-accent: #00A86B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-bg-dark: #1A1D22;
  --color-text: #2D3239;
  --color-text-light: #636B75;
  --color-text-muted: #9CA3AF;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --header-height: 68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { flex-shrink: 0; }
.logo img { height: 36px; width: auto; }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
nav a:hover,
nav a.active {
  color: var(--color-primary);
  background: rgba(0,112,179,0.06);
}

/* --- Dropdown --- */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  vertical-align: middle;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 0;
  color: var(--color-text-light);
}
.dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* --- Mobile Menu Button --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: radial-gradient(ellipse at top right, var(--color-primary-light), var(--color-primary-dark));
  color: var(--color-white);
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}
.btn-primary:hover { background: #e8f4fb; color: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--color-white); color: var(--color-white); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover { background: #008f5a; color: var(--color-white); }

/* ============================================================
   PAGE BANNER (sub-pages)
   ============================================================ */
.page-banner {
  background: radial-gradient(ellipse at top right, var(--color-primary-light), var(--color-primary-dark));
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}
.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-banner p {
  font-size: 17px;
  opacity: 0.90;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  color: var(--color-text);
}
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--color-text-light);
  font-size: 17px;
}

/* ============================================================
   SERVICE CARDS (homepage)
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius);
  background: rgba(0,112,179,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--color-primary); }
.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}
.card p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.card ul { margin-bottom: 20px; }
.card ul li {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 4px 0 4px 20px;
  position: relative;
}
.card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 12px;
}
.card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.card .card-link:hover { color: var(--color-primary-dark); }

/* ============================================================
   CAPABILITY CARDS (service detail pages)
   ============================================================ */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.capability-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 28px;
}
.capability-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.capability-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.process-step {
  flex: 1;
  min-width: 150px;
  max-width: 220px;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.process-step::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 30px;
  font-size: 20px;
  color: var(--color-border);
}
.process-step:last-child::after { display: none; }
.process-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  margin: 0 auto 12px;
}
.process-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.process-step p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============================================================
   HIGHLIGHTS BAR (homepage)
   ============================================================ */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 40px;
}
.highlight-item { padding: 20px; }
.highlight-item .hl-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}
.highlight-item .hl-label {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 16px; }
.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* ============================================================
   PLATFORM GRID (social media page)
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.platform-tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: radial-gradient(ellipse at top left, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-white);
}
.cta-section p {
  font-size: 17px;
  opacity: 0.90;
  max-width: 560px;
  margin: 0 auto 28px;
}
.cta-section .btn-primary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
  font-size: 14px;
}
footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--color-white); }
.footer-brand img { height: 28px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-meta { text-align: right; font-size: 13px; }
.footer-meta p { margin-top: 4px; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* --- Friends Links --- */
.friends-links-wrap {
  grid-column: 1 / -1;
  text-align: center;
  position: relative;
}
.friends-links-toggle {
  display: inline-block;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  transition: color var(--transition);
  user-select: none;
}
.friends-links-toggle:hover { color: rgba(255,255,255,0.7); }
.friends-links-toggle::after {
  content: ' ▸';
  display: inline-block;
  transition: transform var(--transition);
  font-size: 10px;
}
.friends-links-toggle.open::after { transform: rotate(90deg); }

.friends-links-panel {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #24282E;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 16px 24px;
  margin-bottom: 8px;
  min-width: 220px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  z-index: 10;
}
.friends-links-panel.open { display: block; }
.friends-links-panel a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  transition: color var(--transition);
}
.friends-links-panel a:hover { color: var(--color-white); }
.friends-links-panel a + a { border-top: 1px solid rgba(255,255,255,0.06); }

/* ============================================================
   INTERCONNECTION SECTION (homepage)
   ============================================================ */
.interconnect {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.interconnect p {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}
.about-content p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-block {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.contact-block .email-display {
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0;
}
.contact-block .email-display a {
  color: var(--color-primary);
}
.contact-block p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

/* ============================================================
   FAQ (GEO page)
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  padding-right: 30px;
  position: relative;
  user-select: none;
}
.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--color-primary);
}
.faq-item.open h3::after { content: '−'; }
.faq-item .faq-body {
  display: none;
  padding-top: 12px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}
.faq-item.open .faq-body { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  footer .container { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .container { padding: 0 16px; }

  /* Mobile nav */
  .menu-toggle { display: flex; }
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    overflow-y: auto;
    display: none;
    z-index: 99;
    border-top: 1px solid var(--color-border);
  }
  nav.open { display: flex; }
  nav > a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--color-bg-alt);
    border-radius: 0;
  }
  .has-dropdown > a::after { float: right; margin-top: 4px; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--color-bg-alt);
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding: 12px 12px 12px 32px; }

  /* Hero */
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .page-banner { padding: 48px 0; }
  .page-banner h1 { font-size: 28px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section h2 { font-size: 26px; }

  /* Grids */
  .highlights { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-direction: column; align-items: center; gap: 12px; }
  .process-step { max-width: 100%; }
  .process-step::after { content: '↓'; right: 50%; top: auto; bottom: -4px; transform: translateX(50%); }
  .process-step:last-child::after { display: none; }

  /* Footer */
  footer .container { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-meta { text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .btn { padding: 10px 22px; font-size: 14px; }
  .section h2 { font-size: 24px; }
  .stat-value { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .cta-section h2 { font-size: 24px; }
  .contact-block .email-display { font-size: 18px; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
