/* =========================================================
   INSTAGRAM-STYLE GRID + WEDGE + DARK CARD (Reschio look)
   Use this file as: /wp-content/themes/hello-elementor-child/elementor-widgets/boutique-card.css
   The CSS below assumes the widget outputs:
   .iloveit-bc
     .iloveit-bc__grid > .iloveit-bc__cell > img (×9)
     .iloveit-bc__card  (heading, text, button)
   ========================================================= */

/* ----------- TUNABLE NUMBERS (match the screenshot) ----------- */
:root{
  --wrap-max: 1100px;         /* total width of the composition */
  --grid-size: 600px;         /* square grid side (3×3) */
  --card-w: 640px;            /* card width */
  --card-pad: 72px;           /* card padding */
  --gap: 64px;                /* space between grid and card (before overlap) */
  --triangle: 120px;          /* triangle (wedge) size */
  --triangle-top: 70px;       /* triangle vertical offset */
  --btn-offset: 14px;         /* outline offset under button */

  --bg: #0e0e0e;              /* page/section bg tone */
  --card-bg: #101010;         /* card color */
  --card-border: rgba(255,255,255,.08);
  --triangle-color: #111;     /* wedge color (slightly darker than bg) */
  --text: #f2f2f2;
  --muted: rgba(255,255,255,.75);
  --accent: #E2A411;          /* your gold */
  --outline: #e0a67f;         /* outline under the button (warm sand) */
}

/* ---------- WRAPPER ---------- */
.iloveit-bc{
  position: relative;
  max-width: var(--wrap-max);
  margin: 120px auto;
  display: flex;
  align-items: center;
  gap: var(--gap);
  isolation: isolate;
}

/* subtle large rectangle behind the card (like the ref) */
.iloveit-bc::before{
  content:"";
  position:absolute;
  right: 0;
  top: 0;
  width: calc(var(--card-w) + 80px);
  height: calc(100% + 80px);
  background: #0c0c0c;
  z-index: 0;
}

/* ---------- 3×3 GRID (LEFT) ---------- */
.iloveit-bc__grid{
  position: relative;
  width: var(--grid-size);
  height: var(--grid-size);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  z-index: 3;
  overflow: hidden;
  background: #000;
}

/* triangle wedge pointing into the card */
.iloveit-bc__grid::after{
  content:"";
  position: absolute;
  right: -60px;
  top: var(--triangle-top);
  width: 0; height: 0;
  border-left: var(--triangle) solid var(--triangle-color);
  border-top:  var(--triangle) solid transparent;
  border-bottom: var(--triangle) solid transparent;
  z-index: 2;
}

.iloveit-bc__cell{ position: relative; overflow: hidden; }
.iloveit-bc__cell img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- CARD (RIGHT) ---------- */
.iloveit-bc__card{
  position: relative;
  z-index: 4;
  width: var(--card-w);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: var(--card-pad);
  box-shadow: 0 28px 0 #0b0b0b; /* thick bottom bar */
}

.iloveit-bc__title{
  margin: 0 0 18px 0;
  font-family: "ZonaPro", "DM Serif Display", serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: .2px;
}

.iloveit-bc__desc{
  margin: 0 0 36px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  max-width: 520px;
}

/* ---------- BUTTON with offset outline ---------- */
.iloveit-bc__btn{
  position: relative;
  display: inline-block;
  background: #c9926f;        /* warm sand base like ref */
  color: #fff;
  text-decoration: none;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 2px;
}
.iloveit-bc__btn::after{
  content:"";
  position:absolute;
  left: var(--btn-offset);
  bottom: calc(-1 * var(--btn-offset));
  width: 100%;
  height: 100%;
  border: 2px solid var(--outline);
  pointer-events: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px){
  :root{
    --grid-size: 520px;
    --card-w: 560px;
    --card-pad: 56px;
    --triangle: 104px;
  }
}

@media (max-width: 1024px){
  :root{
    --wrap-max: 94vw;
    --grid-size: 94vw;
    --card-w: 94vw;
    --gap: 36px;
  }
  .iloveit-bc{
    flex-direction: column;
    align-items: flex-start;
    margin: 60px auto;
  }
  .iloveit-bc__grid::after{ display: none; }
  .iloveit-bc::before{
    right: auto; left: 0;
    width: 100%;
    height: 55%;
  }
  .iloveit-bc__title{ font-size: 40px; }
}
