/* =========================================================
   JET TEAM – shared sections: titles, service cards, testimonials
   Loaded on the site and in the block editor (for block previews).
   ========================================================= */

:root {
  --gold: #b2762a;
  --cream: #f9f6f1;
  --text: #252525;
  --white: #ffffff;

  --font: 'Montserrat', Arial, sans-serif;
  --font-banner: 'Koh Santepheap', Georgia, serif;

  --container: 1500px;
  --gutter: 24px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Titles: uppercase, wide letter-spacing, gold underline ---------- */

.section-title {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.section-title::after {
  content: '';
  display: block;
  width: 82px;
  height: 4px;
  margin-top: 18px;
  background: var(--gold);
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-title--lg {
  font-size: 50px;
  letter-spacing: 0.15em;
}

.section-title--lg::after {
  width: 110px;
  margin-top: 22px;
}

.link-more {
  font-weight: 600;
  color: var(--gold);
  transition: color .2s ease;
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--text);
}

/* Gold corner triangle used on cards */
.card {
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 50px;
  background: var(--gold);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* =========================================================
   Home: services
   ========================================================= */

.services {
  padding: 95px 0 150px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 78px;
  margin-top: 55px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.card > img {
  width: 100%;
  aspect-ratio: 447 / 296;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 40px 24px 26px;
}

.card h3 {
  min-height: 2.4em;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body p {
  margin-bottom: 30px;
  line-height: 27px;
}

.card-body .link-more {
  margin-top: auto;
  align-self: flex-start;
}

/* "Other services" on inner pages */
.services--other {
  padding: 140px 0 0;
}

.services--other + .tagline {
  margin-top: 124px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 52px;
}

.card-grid--1 {
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
}

.services--other .card > img {
  aspect-ratio: 731 / 305;
}

.services--other .card h3 {
  min-height: 0;
  font-size: 24px;
}

/* =========================================================
   Home: testimonials
   ========================================================= */

.testimonials {
  padding: 120px 0 160px;
}

.plane-icon {
  margin: 0 auto 30px;
  width: 158px;
}

.quote {
  padding: 30px 26px 70px 68px;
}

.quote::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 18px;
  width: 38px;
  height: 36px;
  background: url('../images/icon-quote-mark.jpg') no-repeat;
  /* blends the JPG's white background into the cream card */
  mix-blend-mode: multiply;
}

.quote blockquote {
  margin-top: 36px;
  font-style: italic;
  font-weight: 500;
  line-height: 26px;
}

.quote figcaption {
  margin: 20px 0 0 -2px;
  line-height: 25px;
  font-weight: 500;
}

.card > img {
  display: block;
}

/* All three services on a non-service page (e.g. About) */
.services--all {
  padding: 140px 0 150px;
}

.services--all + .tagline {
  margin-top: 0;
}

/* Sections used as blocks inside page content */
.entry-content .section-title {
  margin-top: 0;
}

.entry-content .quote blockquote {
  padding-left: 0;
  border-left: 0;
}

/* Block previews in the editor */
.jetteam-block-preview .alignfull {
  width: auto;
  margin-left: 0;
}

.card > img {
  height: auto;
}

/* wp-admin has its own .card style; undo it inside the editor previews */
.jetteam-block-preview .card {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.jetteam-block-preview .quote {
  padding: 30px 26px 70px 68px;
}

.plane-icon {
  display: block;
}

.quote blockquote,
.quote blockquote p {
  margin-right: 0;
  margin-left: 0;
}
