/* ==========================================================================
   MGKgroup — Site Styles (KISS, deduped)
   ========================================================================== */

/* ==========================================================================
   1) Design Tokens
   ========================================================================== */
:root {
  --bg: #0f172a;
  --bg2: #16203a;

  --text: #e5e7eb;
  --muted: #cbd5e1;

  --line: rgba(255, 255, 255, 0.10);

  --accent: #facc15; /* gold */
  --brand: #3b82f6;  /* MGK blue */

  --radius-lg: 20px;
  --radius-md: 16px;

  --shadow-card:
    0 20px 40px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);

  --shadow-embed:
    0 12px 28px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.04);

  /* Google Form height: change once, forget it */
  --form-height-desktop: 2550px;
  --form-height-mobile: 2800px;
}

/* ==========================================================================
   2) Reset / Base
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, var(--bg) 0%, #050812 100%);
  color: var(--text);

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tm {
  font-size: 0.6em;
  vertical-align: super;
}

/* ==========================================================================
   3) Header / Navigation
   ========================================================================== */
.site-header {
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid var(--line);
  position: relative; /* anchor for mobile dropdown */
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
}

.brand-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 50px;        /* controls visual size */
  width: auto;
  display: block;
}

.site-nav a {
  color: rgba(229, 231, 235, 0.75);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

/* Mobile toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Mobile dropdown nav */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: rgba(2, 6, 23, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  display: none;
  padding: 14px 18px;
  z-index: 100;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-nav a {
  color: #e5e7eb;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 10px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

/* ==========================================================================
   4) Hero
   ========================================================================== */
.hero {
  min-height: 420px;
  height: calc(100vh - 120px);
  max-height: 520px;

  position: relative;
  display: block;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero + .content {
  margin-top: -44px; /* tuck content card into hero */
}

/* Hero variants (accent tint per page) */
.hero--home {
  background:
    radial-gradient(circle at 50% 18%, rgba(59,130,246,0.26), transparent 58%),
    linear-gradient(180deg, var(--bg2) 0%, #070b16 100%);
}

.hero--about {
  background:
    radial-gradient(circle at 50% 18%, rgba(250,204,21,0.18), transparent 58%),
    linear-gradient(180deg, var(--bg2) 0%, #070b16 100%);
}

.hero--about .cta-under {
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero--whatwedo {
  background:
    radial-gradient(circle at 50% 18%, rgba(34,197,94,0.16), transparent 58%),
    linear-gradient(180deg, var(--bg2) 0%, #070b16 100%);
}

.hero--howwework {
  background:
    radial-gradient(circle at 50% 18%, rgba(168,85,247,0.16), transparent 58%),
    linear-gradient(180deg, var(--bg2) 0%, #070b16 100%);
}

.hero--contact {
  background:
    radial-gradient(circle at 50% 18%, rgba(148,163,184,0.16), transparent 58%),
    linear-gradient(180deg, var(--bg2) 0%, #070b16 100%);
}

.hero-overlay {
  height: 100%;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 44px 24px; /* was 32px; better breathing room */
  background: linear-gradient(rgba(2,6,23,0.45), rgba(2,6,23,0.18));
  text-align: center;
}

.hero-inner {
  width: 100%;
  max-width: 980px; /* was 900; helps long lines feel intentional */
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 16px; /* was 14; slightly calmer */
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 6px; /* was 16; tightens the stack */
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.2px;
  line-height: 1.08;
}

/* Keep all hero paragraphs a consistent readable width */
.hero-subhead,
.hero-proof,
.hero-diff {
  max-width: 860px; /* unify */
  margin: 0 auto;
}

/* Primary subhead (what you do) */
.hero-subhead {
  font-size: clamp(1.05rem, 1.45vw, 1.20rem);
  line-height: 1.65;
  color: rgba(229, 231, 235, 0.90);
  margin-bottom: 0; /* was 28px; this was pushing CTA too far down */
}

/* Proof (where you've done it) */
.hero-proof {
  font-size: 1.02rem;
  color: rgba(229, 231, 235, 0.78);
  /* font-size: clamp(1.0rem, 1.35vw, 1.12rem); */
  /* line-height: 1.65; */
  /* color: rgba(229, 231, 235, 0.86); */
}

/* Differentiator (sharp edge) */
.hero-diff {
  font-size: 1.08rem;
  color: rgba(229,231,235,0.95);
  /* font-size: clamp(1.0rem, 1.35vw, 1.12rem);
  line-height: 1.55;
  color: rgba(229, 231, 235, 0.90);
  font-weight: 500; */
}

.hero-tagline {
  margin-top: 4px;
  font-size: 0.95rem; /* was 0.9 */
  letter-spacing: 0.02em; /* was 0.4px */
  color: rgba(229,231,235,0.72);
}

.hero-inner{
  gap: 16px; /* slightly more breathing room */
}

.hero-proof,
.hero-diff{
  margin: 0;
}

.cta-under{
  margin-top: -6px;      /* pulls it closer to the button */
  font-size: 0.98rem;
  color: rgba(229,231,235,0.78);
}

.hero-tagline{
  margin-top: 10px;      /* separates it from CTA block */
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(229,231,235,0.55);
}

/* CTA: more presence */
.cta-button {
  margin-top: 10px;
  padding: 14px 34px; /* was 12x28 */
  border: 2px solid var(--accent); /* was 1px */
  color: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
}

.cta-button:hover {
  background: var(--accent);
  color: #111827;
}

/* Optional helper line under CTA button */
.cta-under {
  margin-top: 10px;
  font-size: 0.98rem;
  color: rgba(229, 231, 235, 0.82);
  max-width: 860px;
  text-align: center;
}

/* ==========================================================================
   5) Main Content / Cards / Typography
   ========================================================================== */
.return-link {
  opacity: 0.85;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.9rem;
}

.return-link a {
  color: var(--accent);
  text-decoration: none;
}

.return-link a:hover {
  text-decoration: underline;
}

.positioning{
  margin-top: 22px;
  padding: 18px 18px;
  border-left: 3px solid rgba(250,204,21,0.75);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  max-width: 980px;
}

.positioning h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.positioning p{
  margin: 0;
  color: rgba(229,231,235,0.82);
  line-height: 1.65;
}

.positioning-link {
  margin-top: 8px;
}

.positioning-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.positioning-link a:hover {
  text-decoration: underline;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );

  border-top: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.content a {
  color: var(--accent);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content a:visited {
  color: var(--accent);
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.content-inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

.intro p {
  color: rgba(229,231,235,0.92);
  max-width: 900px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.three-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card h3 {
  margin-bottom: 12px;
  color: #f9fafb;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Diagrams */
.diagram-block {
  margin-top: 18px;
  text-align: center;
}

.diagram-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Lists (used in Contact “Typical Engagements”) */
.list {
  margin: 10px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list li {
  color: var(--muted);
  line-height: 1.5;
}

/* Closing statement */
.closing{
  max-width: 960px;
  margin: 72px auto 0;
  padding: 24px 18px 0;
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(229,231,235,0.78);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Contact Form Title */

.form-banner{
  display: flex;
  justify-content: center; /* centers the inner block */
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.form-banner-inner{
  display: flex;
  align-items: center;
  gap: 20px;

  width: 100%;
  max-width: 640px; /* controls the “defined space” and sets to the max width Google Forms creates. */
}

.form-banner-icon{
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.form-banner-text{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-banner-title{
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: rgba(255,255,255,0.92);
}

.form-banner-tagline{
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(229,231,235,0.82);
}

/* Contact form section wrapper */
.form-section{
  display: grid;
  gap: 14px;
}

/* Outer frame (full width of the content card) */
.form-shell{
  width: 100%;
  max-width: 100%;
  margin: 0;

  border-radius: 16px;
  overflow: hidden;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);

  /* IMPORTANT: do NOT pad the shell (it makes the iframe look constrained) */
  padding: 0;
}

.post-submit-note{
  max-width: 720px;
  margin: 8px auto 0;
  font-size: 0.95rem;
  color: rgba(229,231,235,0.78);
  text-align: center;
}

.post-submit-note a{
  color: var(--accent);
  text-decoration: none;
}

.post-submit-note a:hover{
  text-decoration: underline;
}

.about-links a,
.learn-more a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
}

.about-links a:hover,
.learn-more a:hover {
  opacity: 1;
  text-decoration: underline;
}

.about-links ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.about-links li {
  margin-bottom: 6px;
}

/* About page link styling */
.positioning-link a,
.about-links a {
  color: rgba(250, 204, 21, 0.95); /* accent */
  text-decoration: none;
  font-weight: 600;
}

.positioning-link a:hover,
.about-links a:hover {
  text-decoration: underline;
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.about-link-card {
  display: block;
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.about-link-title {
  display: block;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.about-link-sub {
  display: block;
  color: rgba(229,231,235,0.78);
  font-size: 0.95rem;
  line-height: 1.4;
}


/* Banner sits flush inside the shell */
.thank-you-content {
  padding: 48px 32px 56px;
  text-align: center;
  color: rgba(229,231,235,0.9);
}

.thank-you-content h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.thank-you-content p {
  max-width: 520px;
  margin: 0 auto 12px;
  line-height: 1.6;
  color: rgba(229,231,235,0.85);
}

/* Debuggging styles */
/* .form-section { background: rgba(255, 0, 0, 0.12); }
.form-banner  { background: rgba(0, 255, 0, 0.12); }
.form-title   { background: rgba(0, 0, 255, 0.12); }
.form-embed   { background: rgba(255, 255, 0, 0.12); } */

/* ==========================================================================
   6) Contact Form Embed (Google Form)
   ========================================================================== */

/* Iframe sits flush inside the shell */
.form-embed{
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.form-embed iframe{
  display: block;
  width: 100%;
  border: 0;
  height: var(--form-height-desktop);
}

/* Helper text under form */
.form-note{
  max-width: 640px;                 /* match Google Form width */
  margin: 18px auto 0;              /* space above, centered */
  padding: 10px 14px;               /* keeps it from feeling “stuck” */
  text-align: center;

  color: rgba(229,231,235,0.78);
  font-size: 0.95rem;
  line-height: 1.45;

  /* optional: gives it a subtle “intentional” feel */
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.form-note-sub{
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(229,231,235,0.65);
}

.form-note-sub a{
  color: var(--accent);
  text-decoration: none;
}

.form-note-sub a:hover{
  text-decoration: underline;
}

/* Mobile-only persistent helper so "blank iframe" doesn't feel broken */
.post-submit-bar{
  display: none;
}

.post-submit-note{
  max-width: 520px;
  margin: 10px auto 0;
  text-align: center;
  color: rgba(229,231,235,0.60);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ==========================================================================
   Mobile nav behavior
   ========================================================================== */
@media (min-width: 721px) {
  .mobile-nav { display: none; }
  .form-embed iframe { height: var(--form-height-mobile); }
}

@media (max-width: 720px){
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .form-embed iframe { height: var(--form-height-mobile); }
  .post-submit-bar{
    display: block;
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 640px;

    padding: 10px 12px;
    border-radius: 12px;

    background: rgba(2,6,23,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);

    color: rgba(229,231,235,0.9);
    font-size: 0.92rem;
    line-height: 1.25;
    text-align: center;
    z-index: 9999;
  }

  .post-submit-bar a{
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
  }

  .post-submit-bar a:hover{
    text-decoration: underline;
  }

  .hero-overlay {
    padding: 34px 18px;
  }

  .hero-inner {
    gap: 14px;
  }

  .cta-button {
    width: min(520px, 92%);
  }

  .cta-under {
    margin-top: -4px;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   Mobile Hero: simplify above-the-fold
   ========================================================================== */
@media (max-width: 720px) {

  /* Hide only the extra paragraph (we’ll keep CTA-under + tagline) */
  .hero-diff {
    display: none !important;
  }

  /* Keep these visible */
  .hero-proof,
  .cta-under,
  .hero-tagline {
    font-size: 0.82rem;
    color: rgba(229,231,235,0.50);
    margin-top: 10px;
  }

  .hero-overlay {
    padding: 22px 18px;
  }

  .hero-inner {
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .hero-subhead {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto 8px;
  }

  .hero-proof {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(229,231,235,0.78);
    max-width: 34ch;
  }

  .cta-button {
    width: 100%;
    max-width: 340px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .cta-under {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(229,231,235,0.78);
    max-width: 34ch;
  }
}

/* ==========================================================================
   7) Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-tagline {
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.75;
}

/* FORCE About "What We Stand For" cards to render correctly */
.about-links-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 12px !important;
}

.about-link-card {
  display: block !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18) !important;
  text-decoration: none !important;
}

.about-link-card:hover {
  border-color: rgba(250,204,21,0.45) !important;
}

.about-link-title {
  display: block !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  margin-bottom: 6px !important;
}

.about-link-sub {
  display: block !important;
  color: rgba(229,231,235,0.78) !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}
.about-link-card{
  cursor: pointer;
}
