/*
  ╔══════════════════════════════════════════════════════════════╗
  ║  IL HEADING WIDGET — ElementsKit Custom Widget CSS           ║
  ║  Paste this into: Widget Builder → Style (CSS) tab          ║
  ╚══════════════════════════════════════════════════════════════╝

  NOTE: Barlow Condensed should already be loaded by your theme
  (it's in your design tokens). If not, add the @import below
  to your Additional CSS in Customize → Additional CSS.
  @import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100;400;500&display=swap');

  ElementsKit scopes widget CSS to the widget wrapper automatically.
  These selectors target .il-hdg inside that wrapper.
*/

/* ── Base Wrapper ─────────────────────────────────────────── */
.il-hdg {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.02em;
}

/* ── Subheadline ──────────────────────────────────────────── */
.il-hdg__sub {
  display: block;
  position: relative;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  margin-bottom: 16px;
  padding-top: 20px;
  max-width: max-content;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Decorative Rule (the horizontal line + orange tick) ──── */
.il-hdg__rule {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  font-style: normal;
}

.il-hdg__rule::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 3px;
  background: #FF5F05;
}

/* ── Text Body ────────────────────────────────────────────── */
.il-hdg__body {
  display: block;
}

.il-hdg__thin {
  display: block;
  font-weight: 100;
  /* font-size set inline from control */
}

.il-hdg__fat {
  display: block;
  font-weight: 500;
  /* font-size set inline from control */
}


/* ══════════════════════════════════════════════════════════
   COLOR SCHEMES
   ══════════════════════════════════════════════════════════ */

/* ── Gradient (default) ───────────────────────────────────── */
.il-hdg--gradient .il-hdg__thin,
.il-hdg--gradient .il-hdg__fat {
  background: linear-gradient(to right, #FF5F05, #CC3D00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── White ────────────────────────────────────────────────── */
.il-hdg--white .il-hdg__thin,
.il-hdg--white .il-hdg__fat {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.il-hdg--white .il-hdg__sub {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Black ────────────────────────────────────────────────── */
.il-hdg--black .il-hdg__thin,
.il-hdg--black .il-hdg__fat {
  color: #111111;
  -webkit-text-fill-color: #111111;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.il-hdg--black .il-hdg__sub {
  color: rgba(0, 0, 0, 0.45);
}

.il-hdg--black .il-hdg__rule {
  background: rgba(0, 0, 0, 0.12);
}

/* rule orange tick stays orange on all color schemes */


/* ══════════════════════════════════════════════════════════
   LAYOUT VARIANTS
   ══════════════════════════════════════════════════════════ */

/* ── Standard ─────────────────────────────────────────────── */
/* Default stacked layout — no overrides needed */
.il-hdg--standard {}


/* ── Fat Only ─────────────────────────────────────────────── */
/* Hides subheadline and thin line; shows only the fat text */
.il-hdg--fat-only .il-hdg__sub,
.il-hdg--fat-only .il-hdg__thin {
  display: none;
}


/* ── Vertical 2-Line ──────────────────────────────────────── */
/*
  Use this for sidebar section headings (e.g. "Similar / Listings").
  The widget container in Elementor should be narrow (80–120px wide)
  and tall enough to show the rotated text.
  Tip: set the Elementor column to ~100px wide, height auto.
*/
.il-hdg--vertical .il-hdg__sub {
  display: none; /* sub doesn't translate to vertical layouts */
}

.il-hdg--vertical .il-hdg__body {
  display: inline-flex;
  flex-direction: column;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  line-height: 0.82;
}

.il-hdg--vertical .il-hdg__thin {
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.il-hdg--vertical .il-hdg__fat {
  letter-spacing: 0.02em;
}