/*
Theme Name: Big Save and MSD Portal Theme
Author: Big Save Group Ltd
Version: 1.0
*/
:root,
.editor-styles-wrapper {
  --primary-colour: #6D286A;
  --secondary-colour: #ff99ff;
  --highlight-colour: #FE4747;
  --navigation-text-colour: #7b2674;
  --layout-border-colour: #E0E0E0;
  --font-family: 'Matter'
}

@font-face {
  font-family: 'Matter';
  src: url('fonts/MatterVF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Matter';
  src: url('fonts/MatterVF.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: 'Matter';
  margin: 0;
  padding: 0;
}

h1 {
  color: var(--primary-colour);
  font-size: 32px;
  margin-top: 16px;
  margin-bottom: 16px;
}

h2 {
  color: var(--primary-colour);
  font-size: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
}

h3 {
  color: var(--primary-colour);
  font-size: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

p, a {
  color: var(--primary-colour);
}

a:hover {
  color: var(--secondary-colour);
}

ol, ul {
  color: var(--primary-colour);
}

ol li, ul li {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Wordpress Editor, Make sure font is applied */
.editor-styles-wrapper {
  font-family: 'Matter';
}

/* Hide Page Title */
.page .entry-title {
  display: none;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content grows to fill space */
#nav-content {
  flex: 1;
}

.flex-center-box {
  text-align: center;
}

.purple-banner {
  background-color: var(--primary-colour);
}

.purple-banner h1 {
  font-size: 34px;
}

.purple-banner * {
  color: white;
}

.margin-box {
  margin-top: 27px;
  margin-bottom: 27px;
}

.three-col-flex-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;         /* allows wrapping on smaller screens */
}

.column {
  flex: 1 1 33%;
}

h1.font-size-48px {
  font-size: 48px;
}

@media only screen and (max-width: 800px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 14px;
  }

  .content-box {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

.full-width {
  width: 100%;
}

/* Wordpress Admin Bar - At a certain size stops being fixed. We need this to stay fixed. */
#wpadminbar {
  position: fixed !important;
}

/* Custom Bigsave Styling CSS */
/* Remove default wordpress element spacing */
.wp-block-columns,
.wp-block-column {
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.faq-group .collapsible-header, .store-group .collapsible-header {
  background-color: var(--wp--preset--color--bigsave-secondary);
  color: var(--wp--preset--color--bigsave-primary);
  padding: 10px;
  font-weight: 700;
  font-size: 22px;
  height: 50px;
  box-sizing: border-box;
}

.faq-group .collapsible-content {
  padding: 0;
  border-left: 1px solid var(--wp--preset--color--bigsave-layout-border-colour);
  border-right: 1px solid var(--wp--preset--color--bigsave-layout-border-colour);
}

.store-group .collapsible-content {
  border-left: 1px solid var(--wp--preset--color--bigsave-layout-border-colour);
  border-right: 1px solid var(--wp--preset--color--bigsave-layout-border-colour);
  border-bottom: 1px solid var(--wp--preset--color--bigsave-layout-border-colour);
}

.faq-group .collapsible-content  > .body, .store-group .collapsible-content > .body {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.faq-grid, .store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.faq-grid .wp-block-group {
  gap: 0 !important;
}

.faq-group .faq-question-answer {
  width: 100%;
  border-bottom: 1px solid var(--wp--preset--color--bigsave-layout-border-colour);
}

.faq-group .faq-question-answer .faq-question-answer-container {
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 27px;
  padding-bottom: 27px;
}

.faq-group .faq-question-answer .faq-question-answer-container h2 {
  font-size: 18px;
  margin-top: 0;
}

.faq-group .faq-question-answer .faq-question-answer-container p {
  margin-bottom: 0;
}

/* Contact Us CSS */
/*Contact Methods/How to Order*/
.cell-row {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  justify-content: center;
}

.cell {
  flex: 1;
  border: 1px solid var(--layout-border-colour);
  box-sizing: border-box;
  max-width: 752px;
}

.cell h2 {
  font-size: 25px;
}

/* Check parent has more than 1 child */
.cell-row:has(.cell:nth-child(2)) .cell:last-child {
  border-left: none;
}

/* Collapse vertically on small screens */
@media (max-width: 850px) {
  .cell-row {
    flex-direction: column;
  }

  .cell-row:has(.cell:nth-child(2)) .cell:last-child {
    border-top: none;
    border-left: 1px solid var(--layout-border-colour);
  }
}

.home-big-button-container {
  gap: 2rem;
}

.home-big-button {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--secondary-colour);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  box-sizing: border-box;
  width: 350px;
  height: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Flexbox centering */
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  text-align: center;      /* center text inside h2 */
}

.home-big-button > .wp-element-button, .home-big-button > .wp-block-button__link {
  font-size: 37px;
  font-colour: var(--wp--preset--color--bigsave-primary);
  font-weight: 700;
  background: transparent;
  padding: 0;
  font-family: 'Matter';
}

.home-big-button {
  font-size: 37px;
}

.home-big-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.home-big-button .tile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

@media (max-width: 1570px) {

  .home-big-button {
    width: 23%;
    height: 150px;
  }

  .home-big-button > .wp-element-button, .home-big-button > .wp-block-button__link {
    font-size: 32px !important;
  }

}

@media (max-width: 1000px) {

  .home-big-button {
    width: 48%;
    height: 120px;
    margin-left: 0;
    margin-right: 0;
  }

  .home-big-button-container {
    gap: 25px 4%;
    grid-template-columns: repeat(2, 1fr);
  }

  .wp-block-group.home-big-button-container.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .home-big-button > .wp-element-button, .home-big-button > .wp-block-button__link {
    font-size: 28px !important;
  }

}

@media only screen and (max-width: 800px) {

  .home-big-button {
    height: 100px;
  }
  
}