/* =====================================================
   MERGE RESOURCES SYSTEM
   MOBILE FIRST
===================================================== */


/* =====================================================
   BASE
===================================================== */

.resources-shell{
  width:min(1180px,100%);
  margin-inline:auto;
}

.resource-section{
  padding:72px 18px;
}

.resource-section-heading{
  max-width:760px;
  margin-bottom:30px;
}

.resource-section-heading h2{
  margin-bottom:12px;
}

.resource-section-heading > p:last-child{
  max-width:650px;
  margin:0;

  color:var(--text);

  font-size:16px;
  line-height:1.65;
}


/* =====================================================
   HERO
===================================================== */

.resources-hero{
  position:relative;

  display:flex;
  align-items:center;

  min-height:430px;

  padding:64px 18px;

  overflow:hidden;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(118,192,67,.16),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      #0d211a,
      #123924
    );

  color:#fff;
}


.resources-hero::after{
  content:"";

  position:absolute;

  width:360px;
  height:360px;

  right:-120px;
  bottom:-180px;

  border-radius:50%;

  border:
    1px solid rgba(255,255,255,.08);

  box-shadow:
    0 0 0 50px rgba(255,255,255,.025),
    0 0 0 100px rgba(255,255,255,.018);

  pointer-events:none;
}


.resources-hero-content{
  position:relative;
  z-index:2;

  max-width:760px;
}


.resource-eyebrow{
  margin:0 0 12px;

  color:var(--brand-light);

  font-size:13px;
  font-weight:900;

  letter-spacing:.09em;
  text-transform:uppercase;
}


.resources-hero h1{
  max-width:760px;

  margin:0 0 18px;

  color:#fff;

  font-size:clamp(38px,5vw,62px);
  line-height:1.04;

  letter-spacing:-.025em;
}


.resources-hero-content > p:not(.resource-eyebrow){
  max-width:650px;

  margin:0;

  color:rgba(255,255,255,.86);

  font-size:17px;
  line-height:1.65;
}


/* =====================================================
   HERO TOPIC CHIPS
===================================================== */

.resource-topic-chips{
  display:flex;

  gap:8px;

  margin-top:26px;

  overflow-x:auto;

  scrollbar-width:none;

  -webkit-overflow-scrolling:touch;
}


.resource-topic-chips::-webkit-scrollbar{
  display:none;
}


.resource-topic-chips button{
  flex:0 0 auto;

  min-height:38px;

  padding:7px 14px;

  border:
    1px solid rgba(255,255,255,.18);

  border-radius:999px;

  background:
    rgba(255,255,255,.09);

  color:#fff;

  font-size:12px;
  font-weight:800;

  cursor:pointer;

  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}


.resource-topic-chips button:hover{
  background:rgba(255,255,255,.16);
}


/* =====================================================
   FEATURED RESOURCE
===================================================== */

.featured-resource{
  display:grid;

  grid-template-columns:
    minmax(0,1.15fr)
    minmax(300px,.85fr);

  overflow:hidden;

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

  border-radius:24px;

  background:#fff;

  box-shadow:
    0 18px 46px rgba(16,24,32,.08);
}


.featured-resource-image{
  min-height:390px;

  margin:0;

  overflow:hidden;

  background:#eef1ee;
}


.featured-resource-image img{
  width:100%;
  height:100%;

  display:block;

  object-fit:cover;
}


.featured-resource-content{
  display:flex;

  flex-direction:column;
  justify-content:center;

  padding:38px;
}


.resource-category{
  display:inline-flex;

  align-self:flex-start;

  margin-bottom:14px;

  padding:6px 10px;

  border-radius:999px;

  background:#eef6ec;

  color:var(--brand);

  font-size:10px;
  font-weight:900;

  letter-spacing:.07em;
  text-transform:uppercase;
}


.featured-resource h3{
  margin:0 0 14px;

  font-size:30px;
  line-height:1.15;
}


.featured-resource-content > p{
  margin:0;

  color:var(--text);

  font-size:15px;
  line-height:1.7;
}


.resource-actions{
  display:flex;
  flex-wrap:wrap;

  gap:12px;

  margin-top:26px;
}


.resource-primary-link{
  display:inline-flex;

  align-items:center;

  min-height:44px;

  color:var(--brand);

  font-weight:900;

  text-decoration:none;
}


.resource-primary-link:hover{
  color:var(--brand-dark);
}


.resource-preview-button{
  min-height:42px;

  padding:0 16px;

  border:1px solid var(--border);
  border-radius:999px;

  background:#fff;

  color:var(--dark);

  font-weight:800;

  cursor:pointer;
}


/* =====================================================
   FILTERS
===================================================== */

.resource-filters{
  display:flex;

  gap:8px;

  margin-bottom:24px;

  overflow-x:auto;

  scrollbar-width:none;

  -webkit-overflow-scrolling:touch;
}


.resource-filters::-webkit-scrollbar{
  display:none;
}


.resource-filter{
  flex:0 0 auto;

  min-height:40px;

  padding:7px 15px;

  border:
    1px solid rgba(31,111,58,.16);

  border-radius:999px;

  background:#fff;

  color:var(--brand);

  font-size:12px;
  font-weight:900;

  cursor:pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}


.resource-filter.active{
  background:var(--brand);

  border-color:var(--brand);

  color:#fff;
}


/* =====================================================
   RESOURCE GRID
===================================================== */

.resource-library{
  display:grid;

  grid-template-columns:
    repeat(12,minmax(0,1fr));

  gap:18px;
}


.resource-card{
  grid-column:span 4;

  display:flex;

  flex-direction:column;

  min-height:280px;

  padding:26px;

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

  border-radius:20px;

  background:#fff;

  box-shadow:
    0 10px 30px rgba(16,24,32,.05);

  opacity:1;

  transform:translateY(0);

  transition:
    opacity .28s ease,
    transform .28s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}


.resource-card-wide{
  grid-column:span 8;

  min-height:250px;

  background:
    linear-gradient(
      135deg,
      rgba(118,192,67,.07),
      rgba(255,255,255,1)
    );
}


.resource-card:hover{
  transform:translateY(-5px);

  border-color:
    rgba(118,192,67,.65);

  box-shadow:
    0 18px 42px rgba(16,24,32,.10);
}


.resource-card.is-hidden{
  display:none;
}


.resource-card-icon{
  display:grid;

  place-items:center;

  width:44px;
  height:44px;

  margin-bottom:18px;

  border-radius:50%;

  background:#eef6ec;

  color:var(--brand);

  font-size:22px;
}


.resource-card h3{
  margin:0 0 12px;

  font-size:20px;
  line-height:1.3;
}


.resource-card > p{
  margin:0 0 22px;

  color:var(--text);

  font-size:14px;
  line-height:1.65;
}


.resource-card-footer{
  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:12px;

  margin-top:auto;
}


.resource-card-footer a{
  color:var(--brand);

  font-size:13px;
  font-weight:900;
}


.resource-card-footer button{
  padding:5px 0;

  border:0;

  background:none;

  color:var(--muted);

  font-size:12px;
  font-weight:800;

  cursor:pointer;
}


/* =====================================================
   REAL PROJECT
===================================================== */

.resource-project-section{
  padding:78px 18px;

  background:#f5f7f5;
}


.resource-project-grid{
  display:grid;

  grid-template-columns:
    minmax(300px,.85fr)
    minmax(0,1.15fr);

  gap:60px;

  align-items:center;
}


.resource-project-copy h2{
  max-width:540px;
}


.resource-project-copy > p:not(.section-kicker){
  max-width:520px;

  color:var(--text);

  font-size:16px;
  line-height:1.7;
}


.resource-project-images{
  display:grid;

  grid-template-columns:1fr 1fr;

  gap:14px;
}


.resource-project-images figure{
  position:relative;

  margin:0;

  overflow:hidden;

  aspect-ratio:4/5;

  border-radius:20px;

  background:#ddd;
}


.resource-project-images img{
  width:100%;
  height:100%;

  display:block;

  object-fit:cover;
}


.resource-project-images figcaption{
  position:absolute;

  left:12px;
  bottom:12px;

  padding:7px 10px;

  border-radius:999px;

  background:
    rgba(10,16,22,.78);

  color:#fff;

  font-size:10px;
  font-weight:900;

  text-transform:uppercase;
}


/* =====================================================
   QUICK ANSWERS
===================================================== */

.resource-quick-section{
  background:#fff;
}


.resource-quick-grid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:18px;
}


.resource-quick-card{
  padding:24px;

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

  border-radius:18px;

  background:#fff;
}


.resource-quick-card h3{
  margin:0 0 10px;

  font-size:18px;
}


.resource-quick-card p{
  margin:0 0 18px;

  color:var(--text);

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


.resource-quick-card a{
  color:var(--brand);

  font-size:13px;
  font-weight:900;
}


/* =====================================================
   SERVICE CTA
===================================================== */

.resource-service-cta{
  padding:70px 18px;

  background:
    linear-gradient(
      135deg,
      #0c2822,
      #114f2d
    );

  color:#fff;
}


.resource-service-cta-inner{
  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:40px;
}


.resource-service-cta h2{
  margin-bottom:10px;

  color:#fff;
}


.resource-service-cta p{
  max-width:600px;

  margin:0;

  color:rgba(255,255,255,.82);
}


.resource-service-actions{
  display:flex;

  gap:10px;

  flex:0 0 auto;
}


/* =====================================================
   PREVIEW OVERLAY
===================================================== */

.resource-preview-overlay{
  position:fixed;

  inset:0;

  z-index:500;

  background:
    rgba(8,14,18,.45);

  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}


.resource-preview-overlay[hidden]{
  display:none;
}


.resource-preview-drawer{
  position:absolute;

  top:0;
  right:0;

  width:min(92vw,480px);
  height:100%;

  overflow-y:auto;

  padding:42px 34px;

  background:#fff;

  box-shadow:
    -24px 0 60px rgba(0,0,0,.16);

  transform:translateX(100%);

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1);
}


.resource-preview-overlay.active
.resource-preview-drawer{
  transform:translateX(0);
}


.resource-preview-close{
  position:absolute;

  top:16px;
  right:16px;

  display:grid;

  place-items:center;

  width:38px;
  height:38px;

  border:0;

  border-radius:50%;

  background:#eef6ec;

  color:var(--brand);

  font-size:25px;

  cursor:pointer;
}


.resource-preview-drawer h2{
  margin-top:0;

  font-size:30px;
}


.resource-preview-intro{
  color:var(--text);

  font-size:15px;
  line-height:1.7;
}


.resource-preview-points{
  margin:26px 0;
}


.resource-preview-points ul{
  display:grid;

  gap:12px;

  padding-left:20px;
}


.resource-preview-related{
  margin:28px 0;

  padding-top:22px;

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


.resource-preview-related > span{
  display:block;

  margin-bottom:12px;

  color:var(--muted);

  font-size:11px;
  font-weight:900;

  letter-spacing:.07em;

  text-transform:uppercase;
}


.resource-preview-related-links{
  display:grid;

  gap:7px;
}


.resource-preview-related-links button{
  display:flex;

  width:100%;

  padding:10px 0;

  border:0;

  background:none;

  color:var(--brand);

  font-weight:800;

  text-align:left;

  cursor:pointer;
}


/* =====================================================
   TABLET
===================================================== */

@media(max-width:1024px){

  .resource-card{
    grid-column:span 6;
  }

  .resource-card-wide{
    grid-column:span 12;
  }

  .resource-project-grid{
    gap:36px;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:768px){

  .resource-section{
    padding:58px 14px;
  }


  /* HERO */

  .resources-hero{
    min-height:360px;

    padding:44px 14px 34px;
  }


  .resources-hero h1{
    max-width:15ch;

    font-size:
      clamp(32px,9.5vw,42px);
  }


  .resources-hero-content > p:not(.resource-eyebrow){
    max-width:34ch;

    font-size:14px;
    line-height:1.55;
  }


  .resource-topic-chips{
    margin-top:20px;

    margin-right:-14px;

    padding-right:14px;
  }


  /* FEATURE */

  .featured-resource{
    grid-template-columns:1fr;

    border-radius:20px;
  }


  .featured-resource-image{
    min-height:220px;

    aspect-ratio:16/10;
  }


  .featured-resource-content{
    padding:22px;
  }


  .featured-resource h3{
    font-size:23px;
  }


  .resource-actions{
    align-items:center;
    justify-content:space-between;
  }


  /* FILTER */

  .resource-filters{
    margin-right:-14px;

    padding-right:14px;
  }


  /* LIBRARY */

  .resource-library{
    grid-template-columns:1fr;

    gap:14px;
  }


  .resource-card,
  .resource-card-wide{
    grid-column:auto;

    min-height:auto;

    padding:20px;
  }


  .resource-card h3{
    font-size:18px;
  }


  .resource-card-footer{
    margin-top:5px;
  }


  /* PROJECT */

  .resource-project-section{
    padding:60px 14px;
  }


  .resource-project-grid{
    grid-template-columns:1fr;

    gap:28px;
  }


  .resource-project-images{
    gap:9px;
  }


  .resource-project-images figure{
    border-radius:15px;
  }


  /* QUICK ANSWERS */

  .resource-quick-grid{
    grid-template-columns:1fr;

    gap:10px;
  }


  .resource-quick-card{
    padding:20px;
  }


  /* SERVICE CTA */

  .resource-service-cta{
    padding:54px 14px;
  }


  .resource-service-cta-inner{
    flex-direction:column;

    align-items:stretch;

    gap:24px;
  }


  .resource-service-actions{
    display:grid;

    grid-template-columns:1fr;

    width:100%;
  }


  .resource-service-actions a{
    width:100%;
  }


  /* DRAWER BECOMES BOTTOM SHEET */

  .resource-preview-drawer{
    top:auto;
    right:0;
    bottom:0;

    width:100%;
    height:auto;

    max-height:82svh;

    padding:
      36px 20px 26px;

    border-radius:
      24px 24px 0 0;

    transform:
      translateY(100%);
  }


  .resource-preview-overlay.active
  .resource-preview-drawer{
    transform:
      translateY(0);
  }


  .resource-preview-drawer h2{
    font-size:25px;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:420px){

  .resources-hero{
    min-height:350px;
  }


  .resources-hero h1{
    font-size:32px;
  }


  .resource-card-footer{
    align-items:flex-end;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media(prefers-reduced-motion:reduce){

  .resource-card,
  .resource-preview-drawer{
    transition:none;
  }

}