/**
 * Essential Information Section Styles
 * Numbered info cards with envelope-shaped backgrounds
 *
 * @package TwentyTwentyFive_Child
 */

/* CSS Variables */
:root {
  --jtr-essential-bg: #0e0e0e;
  --jtr-essential-text: #ffffff;
  --jtr-essential-accent: #ff2f2e;
  --jtr-essential-padding-tablet: 80px 0;
  --jtr-essential-padding-mobile: 60px 0;
}

/* Main Section Wrapper */
.jtr-essential {
  width: 100%;
  background-color: var(--jtr-essential-bg);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Container */
.jtr-essential__container {
  margin: 0 auto;
  width: 100%;
  padding-top: 140px;
}

/* Section Title */
.jtr-essential__title {
  font-family: "MirthaDisplayTrial", serif;
  font-size: clamp(36px, 6vw, 100px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 80px 0;
  text-align: center;
}

.jtr-essential__title-white {
  color: var(--jtr-essential-text);
  display: inline;
}

.jtr-essential__title-red {
  color: var(--jtr-essential-accent);
  display: inline;
}

/* Info Cards Grid - 4 columns on desktop */
.jtr-essential__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

/* Individual Card */
.jtr-essential__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1/1;
}

/* Odd cards (1st, 3rd) - White/cream envelope background */
.jtr-essential__card--odd {
  background-image: url("../images/essential-odd-bg.png");
}

/* Even cards (2nd, 4th) - Red envelope background */
.jtr-essential__card--even {
  background-image: url("../images/essential-even-bg.png");
}

/* Card Inner Content */
.jtr-essential__card-inner {
  padding: clamp(30px, 2.75vw, 60px) clamp(20px, 2vw, 40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  box-sizing: border-box;
}

/* Card Number */
.jtr-essential__number {
  font-family: "Boyrun", sans-serif;
  font-size: clamp(12px, 1.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0;
  display: block;
}

/* Odd cards - dark text */
.jtr-essential__card--odd .jtr-essential__number {
  color: #0e0e0e;
}

/* Even cards - white text */
.jtr-essential__card--even .jtr-essential__number {
  color: var(--jtr-essential-text);
}

/* Card Title */
.jtr-essential__card-title {
  font-family: "MirthaDisplayTrial", serif;
  font-size: clamp(22px, 2.2vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 32px 0;
}

/* Odd cards - dark text */
.jtr-essential__card--odd .jtr-essential__card-title {
  color: #0e0e0e;
}

/* Even cards - white text */
.jtr-essential__card--even .jtr-essential__card-title {
  color: var(--jtr-essential-text);
}

/* Card Description */
.jtr-essential__card-description {
  font-family: "Matter", sans-serif;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

/* Odd cards - dark text */
.jtr-essential__card--odd .jtr-essential__card-description {
  color: #0e0e0e;
}

/* Even cards - white text */
.jtr-essential__card--even .jtr-essential__card-description {
  color: var(--jtr-essential-text);
}

/* Placeholder for editor */
.jtr-essential__placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--jtr-essential-text);
  opacity: 0.6;
}

.jtr-essential__placeholder p {
  font-family: "Matter", sans-serif;
  margin: 10px 0;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Large Desktop (1400px and below) */
@media (max-width: 1400px) {
  /* Font sizes handled by clamp() */
}

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .jtr-essential {
    padding: var(--jtr-essential-padding-tablet);
  }

  .jtr-essential__title {
    margin-bottom: 60px;
  }

  .jtr-essential__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
	.jtr-essential__container{padding-top: 0px}
  .jtr-essential {
    padding: var(--jtr-essential-padding-mobile);
  }

  .jtr-essential__title {
    margin-bottom: 40px;
  }

  .jtr-essential__title-red {
    margin-left: 10px;
  }

  .jtr-essential__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jtr-essential__card-inner {
    max-width: 100%;
  }

  .jtr-essential__title {
    font-size: 50px;
    flex-direction: column;
  }

  .jtr-essential__title-white,
  .jtr-essential__title-red {
    display: block;
  }

  .jtr-essential__title-red {
    margin-left: 0;
    margin-top: 5px;
  }

  .jtr-essential__number {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .jtr-essential__card-title {
    font-size: 25px;
    margin-bottom: 15px;
  }

  .jtr-essential__card-description {
		font-size: 14px;
		line-height: 1.4;
	}
}
