/* ======================================
   Scouts Tile (Elementor Widget)
   Square edges, compact, Scouts-style cards
   ====================================== */

.scouts-tile {
  --accent: #7413dc;                 /* default = Scouts Purple */
  --border: #e6e6e6;
  --light-bg: #f2f2f2;
  --text-dark: #1f1f1f;
  --text-muted: #4a4a4a;

  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 0;                 /* square edges (as requested) */
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease;
}

.scouts-tile:hover,
.scouts-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.2);
  outline: none;
}

.scouts-tile__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}

.scouts-tile:hover .scouts-tile__image {
  transform: scale(1.02);
}

.scouts-tile__body {
  padding: 18px 18px 16px;          /* more compact */
}

.scouts-tile__title {
  font-family: "Nunito Sans", "Poppins", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.scouts-tile__desc {
  font-family: "Nunito Sans", "Poppins", Arial, sans-serif;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.45;
  margin: 0 0 14px;
}

.scouts-tile__cta {
  font-family: "Nunito Sans", "Poppins", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 1.1vw, 17px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* SVG chevron (crisp) */
.scouts-tile__icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  transition: transform .24s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}

/* Subtle bounce */
.scouts-tile:hover .scouts-tile__icon {
  transform: translateX(4px);
}

/* Underline CTA on hover (Scouts-y) */
.scouts-tile:hover .scouts-tile__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Variant: Filled (colour panel) ===== */
.scouts-tile--filled .scouts-tile__body {
  background: var(--accent);
}

.scouts-tile--filled .scouts-tile__title,
.scouts-tile--filled .scouts-tile__desc,
.scouts-tile--filled .scouts-tile__cta {
  color: #fff;
}

/* Yellow needs dark text for contrast */
.scouts-tile--filled.scouts-tile--yellow .scouts-tile__title,
.scouts-tile--filled.scouts-tile--yellow .scouts-tile__desc,
.scouts-tile--filled.scouts-tile--yellow .scouts-tile__cta {
  color: #111;
}

/* ===== Variant: Light (grey panel) ===== */
.scouts-tile--light .scouts-tile__body {
  background: var(--light-bg);
}

.scouts-tile--light .scouts-tile__title {
  color: var(--text-dark);
}

.scouts-tile--light .scouts-tile__desc {
  color: var(--text-muted);
}

.scouts-tile--light .scouts-tile__cta {
  color: var(--text-dark);
}

/* ===== No image ===== */
.scouts-tile--no-image .scouts-tile__body {
  padding-top: 20px;
}

/* ===== Themes (Scouts palette) ===== */
.scouts-tile--purple       { --accent:#7413dc; }
.scouts-tile--teal         { --accent:#00a794; }
.scouts-tile--red          { --accent:#e22e12; }
.scouts-tile--pink         { --accent:#ffb4e5; }
.scouts-tile--green        { --accent:#23a950; }
.scouts-tile--navy         { --accent:#003982; }
.scouts-tile--blue         { --accent:#006ddf; }
.scouts-tile--yellow       { --accent:#ffe627; }
.scouts-tile--sectiongreen { --accent:#004851; }
.scouts-tile--black        { --accent:#000000; }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .scouts-tile,
  .scouts-tile__image,
  .scouts-tile__icon {
    transition: none !important;
  }
}
