/* ==========================================================================
   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--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: 32px;

  background: linear-gradient(rgba(2,6,23,0.45), rgba(2,6,23,0.18));
  text-align: center;
}

.hero-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.2px;
}

.hero-subhead {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto 28px;
  color: rgba(229, 231, 235, 0.9);
}

.hero-tagline {
  margin-top: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  color: rgba(229,231,235,0.7);
}

.cta-button {
  padding: 12px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
}

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

/* ==========================================================================
   5) Main Content / Cards / Typography
   ========================================================================== */
.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;
}

.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-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;
}

/* 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: 0px;
}

/* 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;
}

/* 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: 720px;
  margin: 0 auto;
  color: rgba(229,231,235,0.82);
  font-size: 0.95rem;
}

/* Mobile-only persistent helper so "blank iframe" doesn't feel broken */
.post-submit-bar{
  display: none;
}
/* ==========================================================================
   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;
  }
}

/* ==========================================================================
   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;
}
