/*
 Theme Name:   Ingleby Digital
 Theme URI:    https://www.ingelby.com/
 Description:  GeneratePress child theme
 Author:       Neil Walker
 Author URI:   https://www.neilawalker.com
 Template:     generatepress
 Version:      1.1
*/

body {
    overflow-x: hidden;
}

header#masthead {
    position: absolute;
    width: 100%;
    z-index: 9;
}

.background-video {
    width: 100%;
    min-height: 900px;
    max-height: 900px;
    object-fit: cover;
    height: auto;
	margin-bottom: -10px;
}

.background-video-2 {
  width: 100%;
  min-height: 900px;
  max-height: 900px;
  object-fit: cover;
  height: auto;
	margin-bottom: -10px;
}

.background-video-divert {
  width: 100%;
  min-height: 1100px;
  max-height: 1100px;
  object-fit: cover;
  height: auto;
	margin-bottom: -10px;
}

.background-video-visual {
  width: 100%;
  min-height: 500px;
  max-height: 500px;
  object-fit: cover;
  height: auto;
	margin-bottom: -10px;
}

.Video-overlay {
    position: absolute;
    top: 180px;
    width: 100%;
}

.Video-overlay-2 {
  position: absolute;
  top: 80px;
  width: 100%;
}

.menu-toggle {
    padding: 0 20px;
    line-height: 60px;
    margin: 0;
    font-weight: 600;
    text-transform: none;
    font-size: 35px;
    cursor: pointer;
}

.mobile-menu-control-wrapper .menu-toggle, .mobile-menu-control-wrapper .menu-toggle:hover, .mobile-menu-control-wrapper .menu-toggle:focus, .has-inline-mobile-toggle #site-navigation.toggled {
  background-color: rgba(0, 0, 0, 0);
}

.gb-button.cta1 span.gb-icon {
    border-radius: 50%;
    background: var(--accent);
    padding: 5px;
}

.footer-contact {
    transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.5s cubic-bezier(.22,1,.36,1);
    will-change: transform, opacity;
  }
  .footer-contact.in-view {
    opacity: 1;
    transform: translateY(0);
  }

/* Contact Form 7 Custom Styles */
.custom-cf7-grid {
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
  font-family: inherit;
}

.custom-cf7-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.custom-cf7-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.custom-cf7-col-full {
  flex: 1 1 100%;
}

.custom-cf7-grid input[type="text"],
.custom-cf7-grid input[type="email"],
.custom-cf7-grid input[type="tel"],
.custom-cf7-grid textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid #d1d1d1;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem 0 0.5rem 0;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  width: 100%;
  resize: none;
}

.custom-cf7-grid input[type="text"]:focus,
.custom-cf7-grid input[type="email"]:focus,
.custom-cf7-grid input[type="tel"]:focus,
.custom-cf7-grid textarea:focus {
  border-bottom: 2px solid var(--accent);
}

.custom-cf7-grid textarea {
  min-height: 60px;
  max-width: 100%;
}

input[type="submit"].custom-cf7-submit,
.wpcf7-form-control.custom-cf7-submit {
  background: var(--accent) !important;
  color: #000 !important;
  border: none !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s;
  box-shadow: none;
  outline: none;
  display: inline-block;
}

input[type="submit"].custom-cf7-submit:hover,
input[type="submit"].custom-cf7-submit:focus {
  filter: brightness(1.1);
}

.custom-cf7-grid ::placeholder {
  color: #fff;
  opacity: 0.7;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .custom-cf7-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Sticky Burger nav */
.menu-toggle {
  position: fixed;
  top: 40px;
  /* Calculate the right offset so the button sits at the right edge of the 1200px container */
  right: calc(50vw - 600px + 20px); /* 600px is half of 1200px, 20px is your desired inner padding */
  z-index: 1001;
  padding: 0 20px;
  min-width: 48px;
  min-height: 48px;
}

/* Responsive: If the viewport is less than 1200px, keep the button 20px from the right edge */
@media (max-width: 1200px) {
  .menu-toggle {
    right: 20px;
  }
}

/* Project Planner Contact Form 7 Custom Styles */
.project-planner-cf7-grid {
  max-width: 700px;
  margin: 0 auto;
  color: #222;
  font-family: inherit;
}

.project-planner-cf7-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.project-planner-cf7-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-planner-cf7-col-full {
  flex: 1 1 100%;
}

.project-planner-cf7-grid input[type="text"],
.project-planner-cf7-grid input[type="email"],
.project-planner-cf7-grid input[type="tel"],
.project-planner-cf7-grid textarea {
  background: #f5f7fa;
  border: none;
  border-bottom: 2px solid #bfc7d1;
  color: #222;
  font-size: 1rem;
  padding: 0.75rem 0 0.5rem 0.5rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 6px 6px 0 0;
  width: 100%;
  resize: none;
}

.project-planner-cf7-grid input[type="text"]:focus,
.project-planner-cf7-grid input[type="email"]:focus,
.project-planner-cf7-grid input[type="tel"]:focus,
.project-planner-cf7-grid textarea:focus {
  border-bottom: 2px solid var(--accent);
  background: #eefbe6;
}

.project-planner-cf7-grid textarea {
  min-height: 60px;
  max-width: 100%;
}

.project-planner-cf7-grid ::placeholder {
  color: #888;
  opacity: 1;
  font-size: 1rem;
}

/* Custom Checkbox Styles */
.project-planner-cf7-grid .wpcf7-checkbox {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  width: 100%;
  max-width: 600px;
}

/* Make all checkbox labels the same width and height */
.project-planner-cf7-grid .wpcf7-list-item {
  width: 100%;
  margin: 0;
  display: flex;
}

.project-planner-cf7-grid .wpcf7-list-item label {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #bfc7d1;
  color: #222;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 1.1rem;
  border: none;
  margin: 0;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

/* Hide the native checkbox */
.project-planner-cf7-grid .wpcf7-list-item input[type="checkbox"] {
  display: none;
}

/* Highlight the label itself (for modern markup) */
.project-planner-cf7-grid .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label {
  width: 100%;
  display: block;
}

/* Ensure the label background fills the whole button */
.project-planner-cf7-grid .wpcf7-list-item label {
  overflow: hidden;
}

/* Responsive: stack checkboxes on mobile */
@media (max-width: 700px) {
  .project-planner-cf7-grid .wpcf7-checkbox {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Custom Select Styles */
.project-planner-cf7-grid select {
  position: relative;
  background: #bfc7d1;
  color: #222;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 3em 0.75rem 1.2em; /* more right padding for icon */
  font-size: 1.1rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 160px;
  font-weight: 500;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><circle cx="14" cy="14" r="14" fill="%238be900"/><path d="M19.3 14.7c.4-.4.4-1 0-1.4l-4.6-4.6c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l2.3 2.3H10c-.6 0-1 .4-1 1s.4 1 1 1h5.6l-2.3 2.3c-.4.4-.4 1 0 1.4s1 .4 1.4 0l4.6-4.6z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 1.6em 1.6em;
}

.project-planner-cf7-grid select:focus {
  outline: 2px solid var(--accent);
  background-color: #eefbe6;
}

/* Custom submit button */
input[type="submit"].project-planner-cf7-submit,
.wpcf7-form-control.project-planner-cf7-submit {
  background: var(--accent) !important;
  color: #111 !important;
  border: none !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s;
  box-shadow: none;
  outline: none;
  display: inline-block;
}
input[type="submit"].project-planner-cf7-submit:hover,
input[type="submit"].project-planner-cf7-submit:focus {
  filter: brightness(1.1);
}

@media (max-width: 700px) {
  .project-planner-cf7-row {
    flex-direction: column;
    gap: 0;
  }
  .project-planner-cf7-grid {
    padding: 1rem;
  }
}

/* Ensure select boxes are in a row for Project Planner form */
.project-planner-cf7-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-planner-cf7-select-row select {
  margin-right: 0;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .project-planner-cf7-select-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
}

.project-planner-cf7-grid .wpcf7-list-item {
  display: inline-block;
  margin: 0;
}

/* Make select boxes appear in a row for Project Planner form */
.project-planner-cf7-select-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-planner-cf7-select-row p br {
  display: none;
}

.project-planner-cf7-select-row .wpcf7-form-control-wrap {
  margin-bottom: 0 !important;
}

@media (max-width: 700px) {
  .project-planner-cf7-select-row p {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
}

.project-planner-cf7-grid .wpcf7-list-item label:has(input[type="checkbox"]:checked) {
  background: var(--accent);
  color: #111;
  font-weight: 700;
  border-radius: 12px;
}

.project-planner-cf7-grid .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.project-planner-cf7-grid .wpcf7-list-item-label {
  width: 100%;
  text-align: center;
  display: block;
}

.project-planner-cf7-grid select.selected {
  background-color: var(--accent) !important; /* or your highlight color */
  color: #111 !important;
  border: 2px solid var(--accent);
}

.nounderline a {
  text-decoration: none;
}

/* Ensure select row children are aligned */
.project-planner-cf7-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Make the checkbox label look like a select */
.project-planner-cf7-select-row .wpcf7-list-item {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 2.8em; /* match select height, adjust as needed */
}

.project-planner-cf7-select-row .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #bfc7d1;
  color: #222;
  border-radius: 12px;
  padding: 0.75rem 2.5em 0.75rem 1.2em;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 200px; /* match select min-width */
  height: 2.8em;    /* match select height */
  box-sizing: border-box;
  border: none;
  margin: 0;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

/* Hide the native checkbox */
.project-planner-cf7-select-row .wpcf7-list-item input[type="checkbox"] {
  display: none;
}

/* Highlight the label when checked */
.project-planner-cf7-select-row .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label {
  background: var(--accent);
  color: #111;
  font-weight: 700;
  border-radius: 12px;
}

/* Responsive: stack on mobile */
@media (max-width: 700px) {
  .project-planner-cf7-select-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .project-planner-cf7-select-row .wpcf7-list-item label,
  .project-planner-cf7-select-row select {
    min-width: 0;
    width: 100%;
  }
}

/* Make the inner <p> a flex container and hide <br> tags */
.project-planner-cf7-select-row > p {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0;
}

.project-planner-cf7-select-row > p br {
  display: none;
}