/*generic styles for whole page*/
body {
  color: #303030;
  background-color: #f2f5f7;
  margin: 0 !important;
}

p {
  margin-bottom: 1.5em;
}

a {
  font-weight: 600;
  text-decoration: none;
  color: #303030;
  transition: ease-in-out 125ms all;
}

a:hover {
  color: #ff7762;
}

.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5rem;
  padding: 0 15rem;
}

.entry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*header and navbar styles*/
.site-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  .content-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
    flex-direction: row;
  }
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;

  li {
    margin: 0 1rem;
  }
}

.menu-toggle {
  display: none;
}

/*site branding*/
.entry-title {
  text-align: center;
}

.custom-logo {
  width: 4rem;
  height: 4rem;
}

/*Purpose and features*/
.purpose-text {
  width: 70%;
}

.features .wp-block-column,
.wp-block-column {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: #ff7762;
  text-align: center;
  padding: 2em 1em;
}

.fa-desktop,
.fa-cubes,
.fa-cogs,
.fa-envelope-open-text {
  font-size: 3rem;
}

/* Partner gallery */
.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.partner-img {
  filter: invert(1);
}

/*example download area*/
.example-container {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: #ff7762;
  text-align: center;

  a:hover {
    color: #fff;
  }

  img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
  }
}

/*technical info*/
.github-link {
  padding: 1rem 2rem;
  background-color: #ff7762;
  border-radius: 0.5rem;
  transition: ease-in-out 125ms all;
}

.github-link:hover {
  color: #fff;
}

/*blog styles*/
.content-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post {
  display: flex;
  flex-direction: column;
  align-items: start;
  border-bottom: solid 2px rgba(1, 1, 1, 0.2);

  .entry-content {
    display: flex;
    flex-direction: column;
    align-items: start;
  }
}

iframe {
  border-radius: 0.5rem;
  object-fit: contain;
}

/*footer styles*/
.site-footer {
  padding: 1rem 0.5rem;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================= */
/* Responsive Styles */
/* ============================= */

/* Clean menu toggle button */
.menu-toggle {
  display: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.menu-toggle i,
.menu-toggle svg {
  font-size: 2rem;
}

/* Header layout */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 10;
}

.site-branding {
  display: flex;
  align-items: center;
}

.main-navigation {
  display: flex;
  align-items: center;
}

/* -------- Mobile (phones) -------- */
@media screen and (max-width: 600px) {

  .content-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .purpose-text {
    width: 100%;
  }

  /* Navigation */
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    position: relative;
  }

  /* Dropdown menu */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background-color: #e0e0e0;

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .main-navigation.toggled .nav-menu {
    max-height: 500px;
    opacity: 1;
  }

  .nav-menu li {
    margin: 0.75rem 0;
  }

  /* Layout stacking */
  .wp-block-columns {
    flex-direction: column;
    align-items: center;
  }

  .wp-block-column {
    width: 100%;
    max-width: 100%;
  }

  .example-container {
    width: 100%;
  }

  iframe {
    width: 100%;
    height: auto;
  }
}


/* -------- Tablet Portrait -------- */
@media screen and (max-width: 1024px) and (orientation: portrait) {

  .content-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 0 3rem;
    gap: 2rem;
  }

  .purpose-text {
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    position: relative;
  }

  /* Dropdown menu */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background-color: #e0e0e0;

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .main-navigation.toggled .nav-menu {
    max-height: 500px;
    opacity: 1;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  /* Layout stacking */
  .wp-block-columns {
    flex-direction: column;
    align-items: center;
  }

  .wp-block-column {
    width: 100%;
  }
}


/* -------- Tablet Landscape + Desktop -------- */
@media screen and (min-width: 601px) and (orientation: landscape),
       screen and (min-width: 1025px) {

  .menu-toggle {
    display: none;
  }

  .main-navigation {
    flex-direction: row;
    align-items: center;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;
    background: none;
  }

  .nav-menu li {
    margin: 0 0.75rem;
  }

  .content-wrapper {
    padding: 0 5rem;
  }

  .wp-block-columns {
    flex-wrap: wrap;
    justify-content: center;
  }

  .wp-block-column {
    flex: 1 1 45%;
    max-width: 45%;
  }
}