/* - MOBILE STYLESHEET
---------------------------------------------- */

/* - GLOBAL ---------------------------------------------------------- */
html, body {
  width: 100%;
  -webkit-text-size-adjust: auto;
}
.constraint {
  width: 340px;
}
#introduction .branding {
  width: 330px;
}
#social-icons {
  display: none;
}
#to-top-button {
  display: none !important;
}

/* - INTRODUCTION ---------------------------------------------------- */
#introduction .branding .introduction {
  width: 100%;
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background: url(../images/matthewadams-dot-info-banner-sm.svg) no-repeat center center;
}
#introduction .branding .strapline {
  width: 360px;
  font-size: 12px;
  font-weight: 300;
}

/* - NAVIGATION ------------------------------------------------------ */
/* Removed old fixed-width and per-link width rules */

/* Flex-based nav for mobile so it never wraps awkwardly */
@media screen and (max-width: 600px) {
  #introduction #navigation {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 10px;
  }
  #introduction #navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #introduction #navigation li {
    flex: 1 1 auto !important;
    margin: 4px !important;
    border-radius: 4px !important;
  }
  #introduction #navigation li a {
    display: block !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* - INTERFACE ------------------------------------------------------- */
#interface .left-section,
#interface .right-section {
  width: 300px;
  border: none;
  padding: 0;
  float: none;
}
img {
  max-width: 100%;
}
#interface .interface-icons {
  display: none;
}
#interface #progress-bar-container {
  display: none !important;
}

/* - PRESENTATION ---------------------------------------------------- */
#presentation .left-section,
#presentation .right-section {
  width: 300px;
  border: none;
  padding: 0;
  float: none;
}
#presentation .presentation-icons {
  display: none;
}
#presentation #progress-bar-container {
  display: none !important;
}

/* - LANGUAGE -------------------------------------------------------- */
#language .left-section,
#language .right-section {
  width: 300px;
  border: none;
  padding: 0;
  float: none;
}
#language .language-icons {
  display: none;
}
#language #language-bar-container {
  display: none !important;
}

/* - ABOUT ME -------------------------------------------------------- */
#about-me .left-section,
#about-me .right-section {
  width: 300px;
  border: none;
  padding: 0;
  float: none;
}
#about-me .about-me-icons {
  display: none;
}
#about-me #progress-bar-container {
  display: none !important;
}

/* - CONTACT --------------------------------------------------------- */
#contact .right-section {
  display: none;
}
#contact .contact-form {
  width: 238px;
  float: none;
  margin: 0 auto;
}
#contact .contact-form li {
  padding-right: 0;
}
#contact .contact-form textarea {
  width: 216px;
}
#contact .contact-form button {
  width: auto;
  margin: 0 auto;
  display: block;
  float: none;
}
#contact .constraint {
  width: auto;
}

/* ——— Creativity Coaching layout (optional overrides) ——— */
.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.flex .text,
.flex .image {
  flex: 1 1 50%;
  padding: 1em;
}

/* Five-column grid fallback */
.grid-5 {
  display: flex;
  flex-wrap: wrap;
  margin: -1em;
}
.grid-5 .col {
  flex: 1 1 20%;
  padding: 1em;
  text-align: center;
}

/* Mobile fallback: stack columns */
@media screen and (max-width: 600px) {
  .grid-5 .col {
    flex: 1 1 100%;
  }
}
