/*
Theme Name: iForest
Theme URI: https://iforestschool.com/
Author: Yuya Saito
Description: Custom WordPress theme based on the provided iForest static HTML design.
Version: 1.0.0
Text Domain: iforest
*/

:root {
  --iforest-bg: #fbf7ef;
  --iforest-ink: #22291f;
  --iforest-deep: #1d3122;
  --iforest-green: #2b4632;
  --iforest-green-2: #3e5c46;
  --iforest-sage: #5b7a6a;
  --iforest-muted: #5b6353;
  --iforest-border: #ddd4c0;
  --iforest-panel: #f1ebdd;
  --iforest-accent: #c1703f;
  --iforest-light: #e7e2d2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--iforest-bg);
  color: var(--iforest-ink);
  font-family: 'Lato', sans-serif;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--iforest-bg);
  border-bottom: 1px solid var(--iforest-border);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 40px);
  gap: 16px;
}
.site-branding { display: flex; align-items: center; text-decoration: none; }
.site-branding img { height: 70px; width: auto; border-radius: 8px; display: block; }
.site-title { font-family: "Montserrat", serif; font-size: 24px; font-weight: 600; text-decoration: none; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.primary-nav .menu { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); list-style: none; padding: 0; margin: 0; }
.primary-nav a { color: #4b5a45; font-weight: 500; font-size: 15px; text-decoration: none; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--iforest-deep); }
.header-cta {
  background: var(--iforest-green);
  color: var(--iforest-bg) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--iforest-border);
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  color: var(--iforest-green);
  cursor: pointer;
  padding: 8px 12px;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 77px;
  background: var(--iforest-bg);
  z-index: 60;
  padding: 24px clamp(20px, 4vw, 40px);
  flex-direction: column;
  gap: 4px;
}
body.admin-bar .mobile-menu { top: 109px; }
.mobile-menu.is-open { display: flex; }
.mobile-menu .menu { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { border-bottom: 1px solid var(--iforest-border); }
.mobile-menu a { padding: 14px 0; font-size: 20px; display: block; text-decoration: none; }
.mobile-menu .header-cta { margin-top: 20px; text-align: center; padding: 14px 22px; font-size: 16px !important; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--iforest-green);
  color: var(--iforest-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 12px clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
  text-align: center;
}
.sticky-cta span { font-size: 14px; opacity: .92; }
.sticky-cta a {
  background: var(--iforest-accent);
  color: var(--iforest-bg);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.site-bottom-spacer { height: 56px; }

.hero {
  position: relative;
  min-height: clamp(480px, 72vw, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /*background: #3d4438;*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,26,17,.72) 0%, rgba(15,26,17,.4) 55%, rgba(15,26,17,.15) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 40px);
}
.hero__content { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #e9c79e; font-weight: 600; }
.hero h1 { font-family: "Montserrat", serif; font-size: clamp(34px, 5vw, 56px); line-height: 1.12; margin: 0; color: var(--iforest-bg); text-transform: uppercase; }
.hero p { font-size: 17px; line-height: 1.65; color: var(--iforest-light); margin: 0; max-width: 520px; }
.button-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.button { display: inline-block; padding: 14px 28px; border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.button--primary { background: var(--iforest-green-2); color: var(--iforest-bg); }
.button--outline { background: rgba(251,247,239,.1); color: var(--iforest-bg); border: 1.5px solid var(--iforest-bg); }
.hero-review { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hero-review__stars { color: #e9c79e; font-size: 15px; letter-spacing: 2px; }
.hero-review__quote { font-size: 14px; color: var(--iforest-light); font-style: italic; }

.values-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 40px) clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.value-card { border-top: 3px solid var(--iforest-green-2); padding-top: 20px; }
.value-card h3 { font-family: "Montserrat", serif; font-size: 22px; margin: 0 0 8px; color: var(--iforest-deep); }
.value-card p { font-size: 15px; line-height: 1.6; color: var(--iforest-muted); margin: 0; }

.feature-section { background: var(--iforest-panel); }
.feature-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.feature-media { width: 100%; height: clamp(260px, 32vw, 380px); border-radius: 12px; background: #efe7d6; display: flex; align-items: center; justify-content: center; color: var(--iforest-muted); font-size: 13px; order: 2; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; order: 1; }
.section-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--iforest-green-2); font-weight: 600; }
.feature-copy h2,
.testimonials h2,
.bottom-cta h2 { font-family: "Montserrat", serif; color: var(--iforest-deep); }
.feature-copy h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0; }
.feature-copy p { font-size: 16px; line-height: 1.7; color: #3d4438; margin: 0; }
.feature-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; color: var(--iforest-muted); }
.feature-meta strong { color: var(--iforest-deep); }
.text-link { margin-top: 10px; color: var(--iforest-green); font-weight: 600; font-size: 15px; text-decoration: none; }

.testimonials { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px); }
.testimonials h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 32px; text-align: center; }
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 44px 4px;
  margin: 0 -44px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--iforest-bg);
  border: 1px solid var(--iforest-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  cursor: pointer;
  font-size: 16px;
  color: var(--iforest-green);
}
.carousel-button--prev { left: -20px; }
.carousel-button--next { right: -20px; }
.testimonial-card {
  background: var(--iforest-panel);
  border-radius: 12px;
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 48px)/3);
  min-width: 240px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 32px rgba(29,49,34,.14); }
.testimonial-photo { position: relative; width: clamp(140px, 18vw, 180px); height: clamp(140px, 18vw, 180px); margin-top: 28px; }
.testimonial-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--iforest-border); }
.testimonial-name { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); background: var(--iforest-sage); color: var(--iforest-bg); font-weight: 700; font-size: 14px; padding: 7px 18px; border-radius: 6px; white-space: nowrap; }
.testimonial-mark { font-family: "Montserrat", serif; font-size: 36px; color: var(--iforest-accent); line-height: 1; margin-top: 8px; }
.testimonial-card p { font-size: 15px; line-height: 1.65; color: #3d4438; margin: 0; text-align: center; }
.testimonial-author { font-size: 13px; color: var(--iforest-muted); font-weight: 600; }
.center-link { text-align: center; margin-top: 32px; }

.bottom-cta { background: var(--iforest-green); }
.bottom-cta__inner { max-width: 900px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 40px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bottom-cta h2 { color: var(--iforest-bg); font-size: clamp(24px, 3.4vw, 32px); margin: 0; }
.bottom-cta p { color: #d8decb; font-size: 15px; max-width: 480px; margin: 0; }

.site-footer { background: #22291f; color: var(--iforest-light); }
.site-footer__main { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px) 32px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-brand { max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand strong { font-family: "Montserrat", serif; font-size: 24px; font-weight: 600; color: var(--iforest-bg); }
.footer-brand span { font-size: 14px; opacity: .75; line-height: 1.6; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-column { display: flex; flex-direction: column; gap: 12px; min-width: 140px; }
.footer-column__title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.footer-column a { color: var(--iforest-light); font-size: 14px; opacity: .85; text-decoration: none; }
.site-footer__bottom { max-width: 1280px; margin: 0 auto; padding: 20px clamp(20px, 4vw, 40px) 88px; border-top: 1px solid rgba(231,226,210,.15); font-size: 13px; opacity: .55; }

@media (max-width: 879px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-media, .feature-copy { order: initial; }
  .testimonial-card { flex-basis: min(82vw, 360px); }
  .carousel-button { display: none; }
  .carousel { margin: 0; padding: 0 4px 8px; }
}

/* About page */
.container-shell { max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.about-heading { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(20px, 3vw, 32px); }
.section-kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--iforest-accent); font-weight: 600; }
.about-heading h1 { font-family: "Montserrat", serif; font-size: clamp(30px, 4.4vw, 48px); margin: 10px 0 0; color: var(--iforest-deep); }
.about-anchor-nav { position: sticky; top: 77px; z-index: 30; background: var(--iforest-panel); border-top: 1px solid var(--iforest-border); border-bottom: 1px solid var(--iforest-border); overflow-x: auto; }
body.admin-bar .about-anchor-nav { top: 109px; }
.about-anchor-nav__inner { display: flex; gap: clamp(16px, 3vw, 32px); padding-top: 14px; padding-bottom: 14px; white-space: nowrap; }
.about-anchor-nav a { font-size: 14px; font-weight: 600; color: var(--iforest-green); text-decoration: none; }
.about-section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.about-section h2 { font-family: "Montserrat", serif; font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; color: var(--iforest-deep); }
.about-section__lead { font-size: 16px; color: var(--iforest-muted); max-width: 900px; margin: 0 0 36px; line-height: 1.65; }
.about-section__lead--narrow { max-width: 760px; }
.about-section__title-narrow { max-width: 640px; margin-top: 10px !important; margin-bottom: 32px !important; }
.about-panel { background: var(--iforest-panel); }
.about-panel--same-tone { border-top: 1px solid rgba(221, 212, 192, .4); }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 28px; }
.issue-item { display: flex; gap: 16px; }
.issue-item__number { font-family: "Montserrat", serif; font-size: 24px; color: var(--iforest-accent); font-weight: 600; flex-shrink: 0; }
.issue-item h3 { font-family: "Montserrat", serif; font-size: 19px; margin: 0 0 8px; color: var(--iforest-deep); }
.issue-item p { font-size: 14.5px; line-height: 1.65; color: var(--iforest-muted); margin: 0; }
.story-grid { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.story-grid__image { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: #efe7d6; display: block; }
.story-grid__copy h2 { font-family: "Montserrat", serif; font-size: clamp(24px, 3vw, 30px); margin: 0 0 4px; color: var(--iforest-deep); }
.story-grid__meta { margin: 0 0 18px !important; color: var(--iforest-muted) !important; font-size: 14px !important; }
.story-grid__meta strong { color: var(--iforest-deep); font-size: 16px; }
.story-grid__copy p { font-size: 15.5px; line-height: 1.75; color: #3d4438; margin: 0 0 16px; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.risk-card { border: 1.5px solid; border-radius: 12px; padding: 24px; }
.risk-card--green { border-color: var(--iforest-green); }
.risk-card--orange { border-color: var(--iforest-accent); }
.risk-card h3 { font-family: "Montserrat", serif; font-size: 18px; margin: 0 0 14px; }
.risk-card--green h3 { color: var(--iforest-green); }
.risk-card--orange h3 { color: var(--iforest-accent); }
.risk-card ul, .info-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 2; }
.risk-card--green ul { color: #4a6b54; }
.risk-card--orange ul { color: #3d4438; }
.approach-note { background: var(--iforest-panel); border-radius: 12px; padding: 24px 28px; font-size: 15px; color: var(--iforest-accent); font-weight: 600; }
/* The Value of Risky Play */

.risk-value-section {
    margin-top: 36px;
}

.risk-value-section__title {
    font-size: 20px;
    margin: 0 0 18px;
    color: var(--iforest-deep);
}

.risk-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.risk-value-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--iforest-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--iforest-green);
}

.risk-value-item__icon svg {
    width: 20px;
    height: 20px;
}
.risk-value-item__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.risk-value-item h4 {
    font-size: 16px;
    margin: 0 0 6px;
    color: var(--iforest-accent);
}

.risk-value-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--iforest-muted);
    margin: 0;
}
.tag-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.tag-columns h3 { font-family: "Montserrat", serif; font-size: 19px; margin: 0 0 16px; color: var(--iforest-green); }
.tag-columns__accent { color: var(--iforest-accent) !important; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span, .certification-tags span { background: var(--iforest-bg); border: 1px solid; border-radius: 20px; padding: 8px 16px; font-size: 13.5px; }
.tag-list--green span { border-color: var(--iforest-green); color: var(--iforest-green); }
.tag-list--orange span { border-color: var(--iforest-accent); color: var(--iforest-accent); }
.certification-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.certification-tags span { border-color: var(--iforest-green); color: var(--iforest-green); font-weight: 600; padding: 9px 18px; }
.info-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 48px; }
.info-card { background: var(--iforest-bg); border: 1px solid var(--iforest-border); border-radius: 14px; padding: 28px; }
.info-card h3 { font-family: "Montserrat", serif; font-size: 18px; margin: 0 0 16px; color: var(--iforest-deep); }
.info-card ul { color: #3d4438; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.stat-card { border-radius: 14px; padding: 32px; color: var(--iforest-bg); }
.stat-card strong { display: block; font-family: "Montserrat", serif; font-size: 52px; line-height: 1; }
.stat-card span { display: block; font-size: 14.5px; margin-top: 10px; }
.stat-card--orange { background: var(--iforest-accent); }
.stat-card--orange span { color: #fbf0e4; }
.stat-card--green { background: var(--iforest-green); }
.stat-card--green span { color: #d8decb; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.team-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}.team-card h3 { margin: 12px 0 0; font-size: 16px; color: var(--iforest-deep); }
.team-card span { display: block; font-size: 13.5px; color: var(--iforest-accent); margin: 2px 0 8px; }
.team-card p { font-size: 13px; color: var(--iforest-muted); line-height: 1.5; margin: 0; }
.testimonials--about h2 { text-align: left; }
.testimonial-photo__placeholder { width: 100%; height: 100%; border-radius: 50%; background: var(--iforest-border); }

@media (max-width: 879px) {
  .about-anchor-nav { top: 77px; }
  body.admin-bar .about-anchor-nav { top: 109px; }
  .story-grid, .risk-grid { grid-template-columns: 1fr; }
}
/* =========================================================
   Meet the Tribe - Read More
========================================================= */

.team-card__read-more {
    appearance: none;
    display: inline-block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--iforest-green);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.team-card__read-more:hover {
    color: var(--iforest-deep);
}

.team-card__read-more:focus-visible {
    outline: 2px solid var(--iforest-green);
    outline-offset: 4px;
}


/* =========================================================
   Meet the Tribe - Modal
========================================================= */

.team-modal[hidden] {
    display: none;
}

.team-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 49, 34, 0.55);
    cursor: pointer;
}

.team-modal__dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 640px;
    max-height: 86vh;
    overflow-y: auto;

    padding: clamp(24px, 4vw, 40px);

    background: #FBF7EF;
    border-radius: 14px;

    box-shadow: 0 24px 70px rgba(29, 49, 34, 0.25);
}


/* Close button */

.team-modal__close {
    appearance: none;

    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(251, 247, 239, 0.92);
    color: var(--iforest-muted);

    font-family: inherit;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.team-modal__close:hover {
    color: var(--iforest-deep);
}


/* Member image */

.team-modal__image {
    display: block;

    width: 100%;
    height: clamp(320px, 42vw, 460px);

    object-fit: contain;

    background: #EFE7D6;
    border-radius: 10px;
}


/* Member information */

.team-modal__name {
    margin: 18px 0 0;

    color: var(--iforest-deep);

    font-family: "Montserrat", serif;
    font-size: 22px;
    line-height: 1.25;
}

.team-modal__role {
    margin-top: 4px;

    color: var(--iforest-accent);

    font-size: 14px;
    font-weight: 600;
}

.team-modal__credentials {
    margin-top: 10px;

    color: var(--iforest-muted);

    font-size: 13px;
    line-height: 1.6;
}


/* WYSIWYG content */

.team-modal__content {
    margin-top: 20px;

    color: #3D4438;

    font-size: 14.5px;
    line-height: 1.75;
}

.team-modal__content p {
    margin: 0 0 16px;
}

.team-modal__content h2,
.team-modal__content h3,
.team-modal__content h4 {
    margin: 24px 0 10px;

    color: var(--iforest-deep);

    font-family: "Montserrat", serif;
}

.team-modal__content ul,
.team-modal__content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.team-modal__content > :first-child {
    margin-top: 0;
}

.team-modal__content > :last-child {
    margin-bottom: 0;
}


/* Prevent background scrolling while modal is open */

body.team-modal-open {
    overflow: hidden;
}


/* Mobile */

@media (max-width: 640px) {

    .team-modal {
        padding: 12px;
    }

    .team-modal__dialog {
        max-height: 90vh;
        padding: 20px;
    }

    .team-modal__image {
        height: 320px;
    }

}
/* ==========================================================================
   Program detail pages
   Shared by Retreat, Retreat+, Seasonal School, artForest, and skiForest
   ========================================================================== */

.program-page {
  background: var(--iforest-bg);
}

.program-back {
  padding-top: 20px;
}

.program-back a {
  color: var(--iforest-muted);
  font-size: 14px;
  text-decoration: none;
}

.program-back a:hover,
.program-back a:focus-visible {
  color: var(--iforest-green);
  text-decoration: underline;
}

.program-hero {
  padding-top: 16px;
}

.program-hero__image,
.program-hero__placeholder {
  display: block;
  width: 100%;
 /* height: clamp(220px, 32vw, 380px);*/
  border-radius: 12px;
}

.program-hero__image {
  object-fit: cover;
}

.program-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--iforest-panel);
  color: var(--iforest-muted);
  font-size: 13px;
}

.program-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(56px, 8vw, 96px);
  font-size: 15.5px;
}

.program-detail__content h1 {
  margin: 0 0 24px;
  color: var(--iforest-deep);
  font-family: "Montserrat", serif;
  font-size: clamp(28px, 3.6vw, 40px);
}

.program-detail__content h2,.program-detail__content h3 {
  margin: 0 0 12px;
  color: var(--iforest-deep);
  font-family: "Montserrat", serif;
  font-size: 20px;
}

.program-detail__content h2:not(:first-of-type) {
  margin-top: 32px;
  margin-bottom: 16px;
}

.program-detail__content > p {
  margin: 0;
  color: #3d4438;
  font-size: 15.5px;
  line-height: 1.75;
}

.program-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.program-step {
  padding: 16px;
  border-radius: 10px;
  background: var(--iforest-panel);
}

.program-step p {
  margin: 0;
  color: #3d4438;
  font-size: 13.5px;
  line-height: 1.5;
}

.program-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 12px;
  background: var(--iforest-panel);
}

.program-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--iforest-border);
}

.program-summary__row span,
.program-summary__row strong {
  font-size: 13.5px;
}

.program-summary__row span {
  color: var(--iforest-muted);
  font-weight: 600;
}

.program-summary__row strong {
  color: var(--iforest-deep);
  font-weight: 400;
  text-align: right;
}

.program-summary__button {
  margin-top: 4px;
  text-align: center;
}
.program-summary__map {
    width: 100%;
    margin-top: 8px;
}

.program-summary__map iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
    border-radius: 10px;
}

/* ==========================================================================
   Programs archive page
   ========================================================================== */

.programs-page {
  background: var(--iforest-bg);
}

.programs-heading {
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

.programs-heading .section-kicker {
  display: inline-block;
}

.programs-heading h1 {
  margin: 10px 0 12px;
  color: var(--iforest-deep);
  font-family: "Montserrat", serif;
  font-size: clamp(30px, 4.4vw, 48px);
}

.programs-heading p {
  max-width: 100%;
  margin: 0;
  color: var(--iforest-muted);
  font-size: 16px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.program-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--iforest-border);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.program-card:hover,
.program-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(29, 49, 34, .14);
}

.program-card:focus-visible {
  outline: 2px solid var(--iforest-green);
  outline-offset: 3px;
}

.program-card__description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.program-card__media {
  position: relative;
}

.program-card__media img,
.program-card__placeholder {
  display: block;
  width: 100%;
  height: 180px;
}

.program-card__media img {
  object-fit: cover;
}

.program-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--iforest-panel);
  color: var(--iforest-muted);
  font-size: 13px;
}

.program-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--iforest-green);
  color: var(--iforest-bg);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.program-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.program-card__body h2 {
  margin: 0;
  color: var(--iforest-deep);
  font-family: "Montserrat", serif;
  font-size: 20px;
}

.program-card__body > p {
  flex: 1;
  margin: 0;
  color: var(--iforest-muted);
  font-size: 14px;
  line-height: 1.55;
}

.program-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #efe9da;
  color: #3d4438;
  font-size: 13px;
}

.program-card__meta strong {
  color: var(--iforest-deep);
}


/* ==========================================================================
   Requirements & FAQ page
   ========================================================================== */

.requirements-page {
  background: var(--iforest-bg);
}

.requirements-heading {
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

.requirements-heading .section-kicker {
  display: inline-block;
}

.requirements-heading h1 {
  margin: 10px 0 0;
  color: var(--iforest-deep);
  font-family: "Montserrat", serif;
  font-size: clamp(30px, 4.4vw, 48px);
}

.requirements-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.requirements-layout h2 {
  margin: 0 0 18px;
  color: var(--iforest-deep);
  font-family: "Montserrat", serif;
  font-size: 22px;
}

.requirements-list ul {
  margin: 0;
  padding-left: 18px;
  color: #3d4438;
  font-size: 15px;
  line-height: 2;
}

.faq-items {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--iforest-border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--iforest-deep);
  font-family: "Montserrat", serif;
  font-size: 16.5px;
}

.faq-item p {
  margin: 0;
  color: var(--iforest-muted);
  font-size: 14.5px;
  line-height: 1.65;
}


/* ==========================================================================
   Responsive: program and information pages
   ========================================================================== */

@media (max-width: 760px) {
  .program-detail,
  .requirements-layout {
    grid-template-columns: 1fr;
  }

  .program-summary {
    padding: 22px;
  }
}


@media (max-width: 640px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Contact Page
========================================================= */

.contact-page {
    background: #fbf7ef;
}

.contact-heading {
    padding-top: clamp(48px, 7vw, 88px);
    padding-bottom: clamp(32px, 5vw, 56px);
}

.contact-heading h1 {
    margin: 8px 0 20px;
    max-width: 850px;
    font-family: 'Montserrat', serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    color: #1d3122;
}

.contact-heading__intro {
    max-width: 650px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #5b6353;
}

/* =========================================================
   iForest - Contact Form 7 Override
   ========================================================= */

.contact-page .contact-form .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* CF7が自動生成するpタグ */
.contact-page .contact-form .wpcf7 form > p {
    margin: 0;
    padding: 0;
}

/* Labels */
.contact-page .contact-form .wpcf7 form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: #5B6353;
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

/* CF7 wrappers */
.contact-page .contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* All fields */
.contact-page .contact-form .wpcf7 input[type="text"],
.contact-page .contact-form .wpcf7 input[type="email"],
.contact-page .contact-form .wpcf7 input[type="tel"],
.contact-page .contact-form .wpcf7 input[type="date"],
.contact-page .contact-form .wpcf7 select,
.contact-page .contact-form .wpcf7 textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #DDD4C0;
    border-radius: 6px;
    background: #FFFFFF;
    color: #22291F;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
    outline: none;
    appearance: auto;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

/* Textarea */
.contact-page .contact-form .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

/* Focus */
.contact-page .contact-form .wpcf7 input:focus,
.contact-page .contact-form .wpcf7 select:focus,
.contact-page .contact-form .wpcf7 textarea:focus {
    border-color: #2B4632;
    box-shadow: 0 0 0 3px rgba(43, 70, 50, 0.12);
}

/* Submit */
.contact-page .contact-form .wpcf7 input[type="submit"] {
    display: inline-block;
    align-self: flex-start;
    width: auto;
    margin: 0;
    padding: 14px 30px;
    border: 0;
    border-radius: 6px;
    background: #2B4632;
    color: #FBF7EF;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-page .contact-form .wpcf7 input[type="submit"]:hover {
    background: #3E5C46;
}

/* Validation */
.contact-page .contact-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #B54A3A;
    font-size: 12px;
    font-weight: 400;
}

.contact-page .contact-form .wpcf7 .wpcf7-not-valid {
    border-color: #B54A3A;
}

/* Response */
.contact-page .contact-form .wpcf7-response-output {
    margin: 0;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

/* Spinner */
.contact-page .contact-form .wpcf7-spinner {
    margin-left: 12px;
}

/* Mobile */
@media (max-width: 640px) {
    .contact-page .contact-form .wpcf7 input[type="text"],
    .contact-page .contact-form .wpcf7 input[type="email"],
    .contact-page .contact-form .wpcf7 input[type="tel"],
    .contact-page .contact-form .wpcf7 input[type="date"],
    .contact-page .contact-form .wpcf7 select,
    .contact-page .contact-form .wpcf7 textarea {
        font-size: 16px;
    }
}
/* Layout */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: clamp(48px, 7vw, 90px);
    padding-bottom: clamp(72px, 9vw, 120px);
}

.contact-form-wrap h2,
.contact-info h2 {
    margin: 0 0 28px;
    font-family: 'Montserrat', serif;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.2;
    color: #1d3122;
}

.contact-form-intro,
.contact-info__text {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.7;
    color: #5b6353;
}


/* =========================================================
   Contact Form 7
========================================================= */

.iforest-contact-form {
    width: 100%;
}

.iforest-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.iforest-contact-form .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iforest-contact-form .form-field {
    min-width: 0;
}

.iforest-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #3d4438;
}

.iforest-contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.iforest-contact-form input[type="text"],
.iforest-contact-form input[type="email"],
.iforest-contact-form input[type="tel"],
.iforest-contact-form select,
.iforest-contact-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 13px 14px;
    border: 1px solid #cfc7b6;
    border-radius: 6px;
    background: #fffdf8;
    color: #22291f;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.iforest-contact-form input[type="text"],
.iforest-contact-form input[type="email"],
.iforest-contact-form input[type="tel"],
.iforest-contact-form select {
    min-height: 48px;
}

.iforest-contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.iforest-contact-form input:focus,
.iforest-contact-form select:focus,
.iforest-contact-form textarea:focus {
    outline: none;
    border-color: #3e5c46;
    box-shadow: 0 0 0 3px rgba(62, 92, 70, 0.12);
}

.iforest-contact-form select {
    cursor: pointer;
}


/* Submit */

.iforest-contact-form .form-submit {
    margin-top: 30px;
}

.iforest-contact-form input[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 6px;
    padding: 14px 30px;
    background: #3e5c46;
    color: #fbf7ef;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.iforest-contact-form input[type="submit"]:hover {
    background: #2b4632;
    transform: translateY(-1px);
}


/* CF7 validation */

.iforest-contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
}

.iforest-contact-form .wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   Contact Page
========================================================= */

.contact-page {
    background: #FBF7EF;
}


/* Heading */

.contact-hero {
    padding-top: clamp(32px, 6vw, 64px);
    padding-bottom: clamp(20px, 3vw, 32px);
}

.contact-hero .section-kicker {
    display: block;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C1703F;
    font-weight: 600;
}

.contact-hero h1 {
    font-family: 'Montserrat', serif;
    font-size: clamp(30px, 4.4vw, 48px);
    margin: 10px 0 12px;
    color: #1D3122;
    line-height: 1.15;
}

.contact-hero p {
    font-size: 16px;
    color: #5B6353;
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
}


/* Main layout */

.contact-content {
    padding-top: clamp(20px, 3vw, 32px);
    padding-bottom: clamp(56px, 8vw, 96px);

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: start;
}


/* Left side */

.contact-main h2 {
    font-family: 'Montserrat', serif;
    font-size: 22px;
    margin: 0 0 20px;
    color: #1D3122;
}


/* =========================================================
   Contact Form 7
========================================================= */

.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.iforest-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.iforest-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.iforest-contact-form .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iforest-contact-form .form-field {
    min-width: 0;
}

.iforest-contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;

    font-size: 13.5px;
    color: #5B6353;
    font-weight: 600;
}

.iforest-contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.iforest-contact-form input[type="text"],
.iforest-contact-form input[type="email"],
.iforest-contact-form input[type="tel"],
.iforest-contact-form input[type="number"],
.iforest-contact-form select,
.iforest-contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: none;

    border: 1px solid #DDD4C0;
    border-radius: 6px;

    padding: 12px 14px;

    font-size: 15px;
    font-family: inherit;

    background: #FFFFFF;
    color: #22291F;
}

.iforest-contact-form input[type="text"],
.iforest-contact-form input[type="email"],
.iforest-contact-form input[type="tel"],
.iforest-contact-form input[type="number"],
.iforest-contact-form select {
    min-height: 46px;
}

.iforest-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.iforest-contact-form input:focus,
.iforest-contact-form select:focus,
.iforest-contact-form textarea:focus {
    outline: 2px solid #2B4632;
    outline-offset: 1px;
}


/* Submit */

.iforest-contact-form input[type="submit"] {
    align-self: flex-start;

    background: #2B4632;
    color: #FBF7EF;

    border: none;
    border-radius: 6px;

    padding: 14px 30px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.iforest-contact-form input[type="submit"]:hover {
    background: #1D3122;
}


/* Validation */

.iforest-contact-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
}

.iforest-contact-form .wpcf7-response-output {
    margin: 10px 0 0 !important;
}


/* =========================================================
   Visit Card
========================================================= */

.contact-visit-card {
    background: #2B4632;

    border-radius: 12px;
    padding: 32px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-visit-card h2 {
    font-family: 'Montserrat', serif;
    font-size: 22px;

    margin: 0;

    color: #FBF7EF;
}

.contact-visit-card p {
    font-size: 14.5px;
    line-height: 1.65;

    color: #D8DECB;
    margin: 0;
}

.contact-visit-button {
    display: block;

    text-align: center;

    background: #C1703F;
    color: #FBF7EF;

    padding: 14px 22px;

    border-radius: 6px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.contact-visit-button:hover {
    opacity: 0.9;
}


/* Social */

.contact-social {
    border-top: 1px solid rgba(251, 247, 239, 0.2);
    padding-top: 18px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-social > span {
    font-size: 13px;
    color: #D8DECB;
}

.contact-social__links {
    display: flex;
    gap: 16px;
}

.contact-social__links a {
    color: #FBF7EF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.contact-social__links a:hover {
    text-decoration: underline;
}


/* =========================================================
   iForest - Terms & Conditions
   Scoped styles: .iforest-terms
   ========================================================= */

.iforest-terms {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) 24px
             clamp(64px, 8vw, 112px);

    color: var(--iforest-ink);
    font-family: 'Lato', sans-serif;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.85;
    overflow-wrap: break-word;
}

/* ---------------------------------------------------------
   Paragraphs
   --------------------------------------------------------- */

.iforest-terms p {
    margin: 0 0 20px;
    color: #3d4438;
    font-size: 15.5px;
    line-height: 1.85;
}

.iforest-terms > p:first-child {
    margin-top: 0;
}

.iforest-terms > :last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Last updated
   --------------------------------------------------------- */

.iforest-terms .terms-updated {
    display: block;
    margin: 0 0 32px;

    color: var(--iforest-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   Main section headings
   --------------------------------------------------------- */

.iforest-terms h2 {
    margin: 56px 0 22px;
    padding-bottom: 14px;

    border-bottom: 1px solid var(--iforest-border);

    color: var(--iforest-deep);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 3vw, 27px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

/* ---------------------------------------------------------
   Subsection headings
   --------------------------------------------------------- */

.iforest-terms h3 {
    margin: 34px 0 14px;

    color: var(--iforest-green);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

/* ---------------------------------------------------------
   Smaller headings
   --------------------------------------------------------- */

.iforest-terms h4 {
    margin: 28px 0 12px;

    color: var(--iforest-deep);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   Lists
   --------------------------------------------------------- */

.iforest-terms ul,
.iforest-terms ol {
    margin: 14px 0 28px;
    padding-left: 26px;

    color: #3d4438;
    font-size: 15px;
    line-height: 1.8;
}

.iforest-terms ul {
    list-style-type: disc;
}

.iforest-terms ol {
    list-style-type: decimal;
}

.iforest-terms li {
    margin: 0 0 9px;
    padding-left: 4px;
}

.iforest-terms li:last-child {
    margin-bottom: 0;
}

.iforest-terms li::marker {
    color: var(--iforest-accent);
}

/* Nested lists */

.iforest-terms li ul,
.iforest-terms li ol {
    margin: 10px 0 14px;
}

/* ---------------------------------------------------------
   Strong and emphasis
   --------------------------------------------------------- */

.iforest-terms strong,
.iforest-terms b {
    color: var(--iforest-deep);
    font-weight: 700;
}

.iforest-terms em,
.iforest-terms i {
    color: var(--iforest-muted);
}

/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

.iforest-terms a {
    color: var(--iforest-green);
    text-decoration: underline;
    text-decoration-color: var(--iforest-accent);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.iforest-terms a:hover {
    color: var(--iforest-accent);
}

.iforest-terms a:focus-visible {
    outline: 2px solid var(--iforest-green);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Quick Summary
   --------------------------------------------------------- */

.iforest-terms .terms-summary {
    margin: 48px 0 64px;
    padding: clamp(24px, 4vw, 40px);

    background: var(--iforest-panel);
    border: 1px solid var(--iforest-border);
    border-radius: 12px;
}

/* Summary main title */

.iforest-terms .terms-summary h2 {
    margin: 0 0 18px;
    padding: 0 0 16px;

    color: var(--iforest-deep);
    font-size: clamp(21px, 2.8vw, 25px);

    border-bottom: 1px solid var(--iforest-border);
}

/* Summary subsection titles */

.iforest-terms .terms-summary h3 {
    margin: 28px 0 10px;

    color: var(--iforest-green);
    font-size: 17px;
    line-height: 1.45;
}

/* Summary paragraphs */

.iforest-terms .terms-summary p {
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.75;
}

/* Summary lists */

.iforest-terms .terms-summary ul,
.iforest-terms .terms-summary ol {
    margin: 10px 0 20px;
    padding-left: 22px;

    font-size: 14.5px;
    line-height: 1.75;
}

.iforest-terms .terms-summary li {
    margin-bottom: 7px;
}

/* Avoid extra space at the end */

.iforest-terms .terms-summary > :last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Policy subsections
   --------------------------------------------------------- */

.iforest-terms .terms-policy-group {
    margin: 28px 0 34px;
}

.iforest-terms .terms-policy-group h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.iforest-terms .terms-policy-group p {
    margin-bottom: 14px;
}

.iforest-terms .terms-policy-group ul {
    margin-bottom: 18px;
}

/* ---------------------------------------------------------
   Notes
   --------------------------------------------------------- */

.iforest-terms .terms-note {
    margin: 12px 0 20px;

    color: var(--iforest-muted);
    font-size: 13.5px;
    line-height: 1.7;
    font-style: italic;
}

/* ---------------------------------------------------------
   Agreement section
   --------------------------------------------------------- */

.iforest-terms .terms-agreement {
    margin-top: 56px;
    padding: 28px 32px;

    background: var(--iforest-panel);
    border-left: 4px solid var(--iforest-green);
    border-radius: 0 10px 10px 0;
}

.iforest-terms .terms-agreement h2 {
    margin: 0 0 16px;
    padding: 0;

    border: 0;
}

.iforest-terms .terms-agreement p {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   End note
   --------------------------------------------------------- */

.iforest-terms .terms-end {
    margin: 48px 0 0;
    padding-top: 20px;

    border-top: 1px solid var(--iforest-border);

    color: var(--iforest-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ---------------------------------------------------------
   Empty headings
   --------------------------------------------------------- */

.iforest-terms h1:empty,
.iforest-terms h2:empty,
.iforest-terms h3:empty,
.iforest-terms h4:empty {
    display: none;
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 879px) {

    .iforest-terms {
        max-width: 760px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .iforest-terms h2 {
        margin-top: 48px;
    }

    .iforest-terms .terms-summary {
        margin: 40px 0 56px;
    }

}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .iforest-terms {
        padding: 32px 20px 72px;
        font-size: 14.5px;
        line-height: 1.8;
    }

    .iforest-terms p {
        margin-bottom: 17px;
        font-size: 14.5px;
        line-height: 1.8;
    }

    .iforest-terms .terms-updated {
        margin-bottom: 26px;
        font-size: 11px;
    }

    .iforest-terms h2 {
        margin: 42px 0 18px;
        padding-bottom: 12px;
        font-size: 21px;
        line-height: 1.4;
    }

    .iforest-terms h3 {
        margin: 28px 0 12px;
        font-size: 17px;
    }

    .iforest-terms h4 {
        margin: 24px 0 10px;
        font-size: 15px;
    }

    .iforest-terms ul,
    .iforest-terms ol {
        margin: 12px 0 24px;
        padding-left: 22px;
        font-size: 14.5px;
    }

    .iforest-terms li {
        margin-bottom: 8px;
    }

    .iforest-terms .terms-summary {
        margin: 32px 0 48px;
        padding: 24px 20px;
        border-radius: 10px;
    }

    .iforest-terms .terms-summary h2 {
        margin: 0 0 16px;
        font-size: 20px;
    }

    .iforest-terms .terms-summary h3 {
        margin: 24px 0 10px;
        font-size: 16px;
    }

    .iforest-terms .terms-summary p,
    .iforest-terms .terms-summary ul,
    .iforest-terms .terms-summary ol {
        font-size: 14px;
    }

    .iforest-terms .terms-policy-group {
        margin: 24px 0 28px;
    }

    .iforest-terms .terms-agreement {
        margin-top: 42px;
        padding: 22px 20px;
    }

    .iforest-terms .terms-end {
        margin-top: 36px;
    }

}

/* Privacy Policy - Definitions list alignment */

.iforest-terms ul {
    list-style-position: outside;
}

.iforest-terms li {
    padding-left: 0;
}

.iforest-terms li::marker {
    color: var(--iforest-accent);
    font-size: 0.8em;
}

/* Definitions only */
.iforest-terms .terms-definitions {
    padding-left: 22px;
}

.iforest-terms .terms-definitions li {
    margin-bottom: 12px;
    padding-left: 4px;
    line-height: 1.75;
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 800px) {

    .contact-content {
        grid-template-columns: 1fr;
    }

    .iforest-contact-form .form-row--2 {
        grid-template-columns: 1fr;
    }

    .contact-visit-card {
        padding: 24px;
    }

}


/* =========================================================
   Why iForest - Read More
   ========================================================= */

.issue-item__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--iforest-green, #2b4632);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.issue-item__read-more:hover {
    opacity: 0.65;
}

.issue-item__read-more span {
    transition: transform 0.2s ease;
}

.issue-item__read-more:hover span {
    transform: translateX(4px);
}


/* =========================================================
   Why iForest - Modal
   ========================================================= */

.why-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.why-modal.is-open {
    display: flex;
}

.why-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 30, 22, 0.65);
    backdrop-filter: blur(4px);
}

.why-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    max-height: min(85vh, 850px);
    overflow-y: auto;
    padding: 44px;
    border-radius: 12px;
    background: var(--iforest-bg, #fbf7ef);
    color: var(--iforest-ink, #22291f);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

.why-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--iforest-ink, #22291f);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.why-modal__dialog h2 {
    margin: 0 35px 24px 0;
    color: var(--iforest-deep, #1d3122);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.3;
}

.why-modal__description {
    color: var(--iforest-muted, #5b6353);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.why-modal__description p {
    margin: 0 0 18px;
}

.why-modal__description p:last-child {
    margin-bottom: 0;
}

body.why-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {

    .why-modal {
        padding: 16px;
    }

    .why-modal__dialog {
        padding: 34px 24px;
        max-height: 88vh;
    }

    .why-modal__dialog h2 {
        font-size: 24px;
    }

    .why-modal__description {
        font-size: 15px;
    }

}

/* Why iForest - Modal Sources */

.why-modal__sources {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--iforest-border, #ddd4c0);
    color: var(--iforest-muted, #5b6353);
    font-size: 12px;
    line-height: 1.8;
}

.why-modal__sources strong {
    display: block;
    margin-bottom: 6px;
    color: var(--iforest-deep, #1d3122);
    font-weight: 700;
}

.why-modal__sources-content {
    overflow-wrap: anywhere;
}
