/* ============================================================
   COMPONENTS.CSS
   Reusable UI building blocks shared across sections.
   Follows BEM naming convention: .block__element--modifier
   ============================================================ */


/* ------------------------------------------------------------
   1. CARD  (.card)
   Base for all section cards — rounded corners, overflow clip
   ------------------------------------------------------------ */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}


/* ------------------------------------------------------------
   2. CARD BACKGROUND LAYER  (.card-bg)
   Absolutely stacks background images + dim overlay inside a card
   ------------------------------------------------------------ */
.card-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  border-radius: inherit;
}

.card-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-bg__dim {
  position: absolute;
  inset: 0;
  background: var(--clr-overlay-dark);
}


/* ------------------------------------------------------------
   3. ARROW BUTTON  (.arrow-btn)
   Signature bottom-right notched-corner CTA button.
   Uses the inverse-corner box-shadow trick to cut rounded notches
   into the overflow-hidden parent card.
   ------------------------------------------------------------ */
.arrow-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 67px;
  height: 60px;
  overflow: hidden;
  z-index: var(--z-ui);
  display: block;           /* works as <a> or <button> */
}

/* Top-left inverse-corner notch */
.arrow-btn__notch-top {
  position: absolute;
  right: 0;
  top: -15px;
  width: 15px;
  height: 30px;
  background: transparent;
  border-bottom-right-radius: 15px;
  box-shadow: 0 15px 0 0 var(--clr-arrow-bg);
}

/* Bottom-left notch — mirrors Figma exactly.
   shadow: 0 15px → goes below the container, fully clipped by overflow:hidden.
   No visible effect intentionally; the element is a structural placeholder
   that keeps the DOM matching Figma's layer order. */
.arrow-btn__notch-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 15px;
  height: 30px;
  background: transparent;
  border-bottom-right-radius: 15px;
  box-shadow: 0 15px 0 0 var(--clr-arrow-bg);
}

/* Light-coloured panel behind the button */
.arrow-btn__bg {
  position: absolute;
  left: 15px;
  right: 0;
  top: 15px;
  bottom: 0;
  background: var(--clr-arrow-bg);
  border-top-left-radius: 22px;
}

/* Dark circular icon button
   Figma: inside grey panel (panel starts top:15px in container).
   Circle is top:7.5px within the panel → 15 + 7.5 = 22.5px from container top.
   Circle bottom edge = 22.5 + 36.75 ≈ 59.25px = container height → bottom:0. */
.arrow-btn__circle {
  position: absolute;
  right: 8px;
  bottom: 0;            /* aligns circle bottom with container bottom (Figma-accurate) */
  width: 37px;
  height: 37px;
  background: var(--clr-arrow-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease-default);
}

.arrow-btn:hover .arrow-btn__circle,
.arrow-btn__circle:hover {
  background: #555;
}

.arrow-btn__circle img {
  width: 10px;
  height: 10px;
  object-fit: contain;
  transform: scaleY(-1);  /* Figma icon is flipped */
}


/* ------------------------------------------------------------
   4. SECTION TYPOGRAPHY  (.svc-title, .svc-desc)
   Shared type styles for service card headings and body copy
   ------------------------------------------------------------ */
.svc-title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-heading);
  line-height: var(--lh-tight);
  color: var(--clr-white);
  letter-spacing: -0.02em;
}

.svc-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-muted);
}


/* ------------------------------------------------------------
   5. TAG BADGES  (.tag-group, .tag)
   Pill-shaped keyword labels on service cards
   ------------------------------------------------------------ */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.tag {
  display: inline-block;
  padding: 7px 14px;
  border: 0.75px solid var(--clr-tag-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-tag);
  line-height: 1;
  color: var(--clr-tag-text);
  white-space: nowrap;
  transition: border-color var(--ease-default), color var(--ease-default);
}

/* Light variant — used on dark blue cards */
.tag--light {
  border-color: var(--clr-tag-light-border);
  color: var(--clr-tag-light-text);
}

.tag:hover {
  border-color: var(--clr-white);
  color: var(--clr-white);
}
