/* Bevel Salon — Services Section (converted from static UI, styles untouched) */

:root {
  /* Colors */
  --color-bg: #fff;
  --color-heading: #1b1d27;
  --color-body: #868686;
  --color-white: #ffffff;
  --color-accent: #c69963;
  --color-badge-shadow: rgba(0, 0, 0, 0.16);

  /* Typography */
  --font-heading: 'Prata', serif;
  --font-body: 'Lato', sans-serif;
  --fs-heading: 20px;
  --lh-heading: 21px;
  --fs-body: 15px;
  --lh-body: 24px;
  --ls-body: 0.3px;

  /* Layout (desktop reference canvas, matches Figma frame 1170x533) */
  --canvas-width: 1170px;
  --canvas-height: 533px;
  --row-height: 124px;
  --row-2-top: 187px;
  --row-3-top: 374px;
  --badge-size: 120px;
  --badge-inner-size: 112px;
  --text-top-offset: 9px;
  --section-padding-y: 80px;
}

.services {
  background-color: var(--color-bg);
  padding: var(--section-padding-y) 20px;
  overflow: hidden;
  /* Full-bleed fix: breaks out of a boxed theme content column so the
     1170px canvas always has room, instead of being clipped on the right. */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Higher-specificity list reset — beats theme/editor styles like
   `.entry-content ul{list-style:disc}` which otherwise re-add bullets. */
.services__list,
.services__list li.service {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.services__container {
  position: relative;
  width: var(--canvas-width);
  height: var(--canvas-height);
  max-width: 100%;
  margin: 0 auto;
}

/* ---- Photo ---- */
.services__photo {
  position: absolute;
  left: 375px;
  top: 35px;
  width: 420px;
  height: 415px;
  border-radius: 50%;
  overflow: hidden;
}

.services__photo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

/* ---- List / rows ---- */
.services__list {
  position: absolute;
  inset: 0;
}

.service {
  position: absolute;
  top: 0;
  width: 585px;
  height: var(--row-height);
}

.service--row-1 { top: 0; }
.service--row-2 { top: var(--row-2-top); }
.service--row-3 { top: var(--row-3-top); }

.service--left  { left: 0; }
.service--right { left: 585px; }

.service__badge {
  position: absolute;
  top: 0;
  width: var(--badge-size);
  height: var(--row-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__badge-circle {
  width: var(--badge-inner-size);
  height: var(--badge-inner-size);
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px dashed var(--color-accent);
  box-shadow: 0 18px 28px var(--color-badge-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__badge-circle:hover{
  background-color: #1a1a1a;
  transition-duration: 0.5s;
}

.service__badge-icon {
  width: 34px;
  height: 34px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__text {
  position: absolute;
  top: var(--text-top-offset);
}

.service__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: normal;
  font-size: var(--fs-heading);
  line-height: var(--lh-heading);
  color: var(--color-heading);
  white-space: nowrap;
}

.service__desc {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-body);
}

.service--left .service__text  { left: 0; text-align: right; }
.service--left .service__badge { left: 425px; }

.service--row-2.service--left .service__text  { width: 285px; }
.service--row-2.service--left .service__badge { left: 315px; }
.service--row-1.service--left .service__text,
.service--row-3.service--left .service__text  { width: 395px; }

.service--right .service__badge { left: 45px; }
.service--right .service__text  { left: 195px; text-align: left; }

.service--row-2.service--right .service__badge { left: 150px; }
.service--row-2.service--right .service__text  { left: 300px; width: 260px; }
.service--row-1.service--right .service__text  { width: 360px; }
.service--row-3.service--right .service__text  { width: 365px; }

@media (max-width: 1024px) {
  .services { padding: 64px 24px; }

  .services__container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .services__photo {
    position: static;
    width: min(70vw, 360px);
    height: min(70vw, 360px);
    aspect-ratio: 1 / 1;
  }

  .services__list {
    position: static;
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .service {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
  }

  .service__badge {
    position: static;
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
  }

  .service__badge-circle { width: 84px; height: 84px; }
  .service__badge-icon { width: 28px; height: 28px; }

  .service__text {
    position: static;
    width: auto !important;
    flex: 1 1 auto;
    text-align: left !important;
  }
}

@media (max-width: 768px) {
  .services { padding: 48px 16px; }
  .services__container { gap: 32px; }

  .services__photo {
    width: min(60vw, 260px);
    height: min(60vw, 260px);
  }

  .services__list { gap: 24px; }
  .service { gap: 16px; }

  .service__badge,
  .service__badge-circle { width: 68px; height: 68px; }
  .service__badge-icon { width: 24px; height: 24px; }

  .service__title { font-size: 18px; line-height: 20px; margin-bottom: 8px; }
  .service__desc { font-size: 14px; line-height: 22px; }
}