/* =========================================================
   JET TEAM – block styles
   Loaded on the site and in the block editor.
   ========================================================= */

/* ---------- Buttons ---------- */

.wp-block-buttons {
  margin-top: 36px;
}

.wp-block-button .wp-block-button__link {
  display: inline-block;
  padding: 9px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background: #b2762a;
  border: 2px solid #b2762a;
  border-radius: 24px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
  color: #b2762a;
  background: transparent;
}

/* ---------- Media & Text → image + cream text panel ---------- */

.wp-block-media-text {
  background: #f9f6f1;
}

/* Image always fills its half, whatever the text's vertical alignment */
.wp-block-media-text.wp-block-media-text > .wp-block-media-text__media {
  align-self: stretch;
}

.wp-block-media-text > .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-media-text > .wp-block-media-text__content {
  padding: 60px 64px 70px 60px;
}

.wp-block-media-text > .wp-block-media-text__content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-media-text > .wp-block-media-text__content > * + * {
  margin-top: 1.7em;
}

.wp-block-media-text > .wp-block-media-text__content > h2 {
  font-size: 28px;
}

.wp-block-media-text > .wp-block-media-text__content > h2 + * {
  margin-top: 40px;
}

.wp-block-media-text > .wp-block-media-text__content > .wp-block-buttons {
  margin-top: 36px;
}

/* ---------- Details → expandable item (cream box, gold triangle) ---------- */

.wp-block-details {
  color: #252525;
  background: #f9f6f1;
}

.wp-block-details > summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px 36px 34px 52px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  list-style: none;
  cursor: pointer;
}

.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.wp-block-details > summary::before {
  content: '';
  flex: none;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #b2762a;
  transition: transform .2s ease;
}

.wp-block-details[open] > summary::before {
  transform: rotate(90deg);
}

/* Gold rule under the title when open */
.wp-block-details[open] > summary {
  background: linear-gradient(#b2762a, #b2762a) no-repeat 54px 100% / calc(100% - 90px) 5px;
}

.wp-block-details > :not(summary) {
  margin: 0;
  padding: 0 56px;
}

.wp-block-details > summary + * {
  margin-top: 46px;
}

.wp-block-details > * + :not(summary) {
  margin-top: 1.2em;
}

.wp-block-details > :last-child:not(summary) {
  margin-bottom: 48px;
}

.wp-block-details > .wp-block-buttons {
  margin-top: 30px;
}

.wp-block-details .wp-block-button__link {
  font-size: 16px;
  padding: 7px 24px;
}

/* ---------- Group "JET TEAM tabs" ----------
   Each Cover block inside is a tab panel; its first heading becomes the tab
   label (the buttons are built by main.js). The panel's items sit in two columns. */

.is-style-jt-tabs {
  padding: 0;
}

.is-style-jt-tabs > *,
.is-style-jt-tabs .wp-block-cover {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.is-style-jt-tabs .wp-block-cover {
  min-height: 640px;
  align-items: flex-start;
  padding: 100px 24px;
}

.is-style-jt-tabs .wp-block-cover[hidden] {
  display: none !important;
}

.is-style-jt-tabs .wp-block-cover__inner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 44px 46px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.is-style-jt-tabs .wp-block-cover__inner-container > * {
  margin: 0 !important;
  max-width: none !important;
}

/* The tab label heading spans both columns (until the tabs are built) */
.is-style-jt-tabs .wp-block-cover__inner-container > :is(h1, h2, h3, h4, h5, h6) {
  grid-column: 1 / -1;
  color: #252525;
}

.is-style-jt-tabs .jt-tab-label {
  display: none;
}

/* Tab buttons */
.jt-tabs__nav {
  padding: 20px 24px;
  background: #f9f6f1;
}

.jt-tabs__list {
  display: flex;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}

.jt-tabs__tab {
  flex: 1;
  padding: 18px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #252525;
  background: transparent;
  border: 2px solid #252525;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.jt-tabs__tab:hover,
.jt-tabs__tab[aria-selected="true"] {
  color: #b2762a;
  border-color: #b2762a;
}

.jt-tabs__tab[aria-selected="true"] {
  font-weight: 700;
}

@media (max-width: 900px) {
  .is-style-jt-tabs .wp-block-cover__inner-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .is-style-jt-tabs .wp-block-cover {
    min-height: 0;
    padding: 50px 24px;
  }

  .jt-tabs__list {
    flex-direction: column;
    gap: 10px;
  }

  .jt-tabs__tab {
    font-size: 16px;
  }

  .wp-block-media-text > .wp-block-media-text__content {
    padding: 36px 24px 44px;
  }
}

@media (max-width: 560px) {
  .wp-block-details > summary {
    padding: 24px 20px;
    font-size: 17px;
    gap: 16px;
  }

  .wp-block-details[open] > summary {
    background-position: 20px 100%;
    background-size: calc(100% - 40px) 4px;
  }

  .wp-block-details > :not(summary) {
    padding: 0 20px;
  }
}

/* ---------- Paragraph styles ---------- */

/* Lead: large italic text, e.g. the About quote panel */
.is-style-jt-lead {
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
}

/* Contact details with round gold icons */
.is-style-jt-phone,
.is-style-jt-email {
  position: relative;
  padding-left: 62px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
}

.is-style-jt-phone::before,
.is-style-jt-email::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  background: url('../images/contact/contact-icon-telephone.png') center / contain no-repeat;
}

.is-style-jt-email::before {
  background-image: url('../images/contact/contact-icon-email.png');
}

.is-style-jt-phone a,
.is-style-jt-email a {
  color: inherit !important;
  text-decoration: none !important;
}

.is-style-jt-phone + .is-style-jt-email,
.is-style-jt-email + .is-style-jt-phone {
  margin-top: 6px !important;
}

.is-style-jt-details {
  padding-left: 62px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Columns "JET TEAM values panel" (About: Trust / Honesty / Transparency) ---------- */

.wp-block-columns.is-style-jt-values {
  gap: 0;
  max-width: 1500px;
  margin: 0 auto;
  padding: 64px 40px 70px;
  color: #252525;
  text-align: center;
  background: #f9f6f1;
}

.is-style-jt-values > .wp-block-column {
  padding: 0 50px;
}

.is-style-jt-values > .wp-block-column + .wp-block-column {
  border-left: 2px solid #252525;
}

.wp-block-columns.is-style-jt-values h3 {
  margin: 0 0 30px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wp-block-columns.is-style-jt-values h3::after {
  content: '';
  display: block;
  width: 110px;
  height: 5px;
  margin: 18px auto 0;
  background: #b2762a;
}

.is-style-jt-values p {
  margin: 0;
  line-height: 27px;
}

/* Full-width Cover holding the values panel */
.wp-block-cover.alignfull:has(> .wp-block-cover__inner-container > .is-style-jt-values) {
  padding: 100px 24px;
}

/* Small columns inside a text panel, e.g. "Founder" + plane icon */
.wp-block-media-text__content .wp-block-columns {
  gap: 20px;
  margin-bottom: 0;
}

.wp-block-media-text__content .wp-block-columns p {
  margin: 0;
}

@media (max-width: 781px) {
  .is-style-jt-values > .wp-block-column {
    padding: 0;
  }

  .is-style-jt-values > .wp-block-column + .wp-block-column {
    padding-top: 36px;
    border-top: 2px solid #252525;
    border-left: 0;
  }

  .is-style-jt-phone,
  .is-style-jt-email {
    padding-left: 50px;
    font-size: 21px;
  }

  .is-style-jt-details {
    padding-left: 50px;
    font-size: 18px;
  }

  .is-style-jt-lead {
    font-size: 19px;
  }
}
