
/* =====================================================
   SERVICES PAGE
===================================================== */



/* ===== HERO ===== */

.sv-hero {
    background: var(--pine);
    color: var(--cream);
    padding-block: clamp(55px, 9vh, 105px);
  }
  
  .sv-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
    gap: clamp(40px, 7vw, 100px);
  }
  
  .sv-hero__content h1 {
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    max-width: 17ch;
  }
  
  .sv-hero__content h1 mark {
    background: var(--wheat);
    color: var(--ink);
    padding: 0 .14em;
    border-radius: .15em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  
  .sv-hero__content > p:not(.sv-eyebrow) {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.7;
    max-width: 62ch;
    margin-block: 24px;
    opacity: .92;
  }
  
  .sv-eyebrow {
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.1;
    color: var(--clay);
    margin-bottom: 16px;
  }
  
  
  /* ===== POLAROID PHOTO FRAME ===== */
  
  .sv-photo {
    position: relative;
    min-width: 0;
    background: var(--white);
    padding: 10px 10px 48px;
    margin: 0;
    box-shadow: 0 12px 30px rgba(30, 36, 32, .2);
    rotate: 1.5deg;
  }
  
  .sv-photo::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -14px;
    left: 50%;
    width: 32%;
    height: 28px;
    background: rgba(235, 203, 133, .9);
    transform: translateX(-50%) rotate(-3deg);
  }
  
  .sv-photo__img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(160deg, var(--sage), #8FB08E);
  }
  
  .sv-photo__img img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .sv-photo figcaption {
    position: absolute;
    inset-inline: 10px;
    text-align: center;
    color: var(--ink);
    font-family: "Caveat", cursive;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1;
  }
  
  .sv-hero__photo {
    width: min(100%, 420px);
    justify-self: center;
    rotate: 2deg;
  }
  
  .sv-photo__img--hero {
    aspect-ratio: 4 / 5;
  }
  
  
.svcg__ph video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.svcg__ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* =========================================
   EXPLORE OUR SERVICES
========================================= */

.services-explore {
  background: var(--cream, #fbf7ed);
  padding: 25px 4% 55px;
  width: 100%;
}

.services-explore__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.services-explore__header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--pine, #103d30);
  margin: 0;
}

.services-explore__underline {
  display: block;
  width: 225px;
  height: 10px;
  background: var(--wheat, #e8b83f);
  border-radius: 50%;
  transform: rotate(-2deg);
  margin-top: 9px;
}

.services-explore__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--pine, #103d30);
  white-space: nowrap;
}

.meta-divider {
  color: #b7a98e;
}

/* CATEGORY GRID */

.services-category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
}

/* CATEGORY CARD */

.service-category-card {
  display: block;
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: #fffdf7;
  border: 1px solid rgba(65, 73, 45, .10);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 3px 9px rgba(48, 49, 30, .09);
  transition:
      transform .3s ease,
      box-shadow .3s ease;
}

.service-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 9px 20px rgba(48, 49, 30, .14);
}

/* IMAGE */

.service-category-card__image {
  width: 100%;
  aspect-ratio: 1.85 / 1;
  overflow: hidden;
}

.service-category-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.service-category-card:hover .service-category-card__image img {
  transform: scale(1.06);
}

/* Hide View All button on desktop and laptop */
.svcg__more {
  display: none;
}

/* CARD CONTENT */

.service-category-card__content {
  position: relative;
  padding: 9px 12px 11px;
}

.service-category-card__icon {
  position: absolute;
  top: -20px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #f7e9ad;
  border: 3px solid #fffdf7;
  color: var(--pine, #103d30);
  font-size: 19px;
}

.service-category-card__content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--pine, #103d30);
  margin: 3px 0 5px;
}

.service-category-card__content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #343a32;
  margin: 0;
}

/* TABLET */

@media (max-width: 900px) {
  .service-category-card {
      flex-basis: calc((100% - 32px) / 3);
  }

  .services-category-grid {
      gap: 16px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .services-explore {
      padding: 25px 16px 40px;
  }

  .services-explore__header {
      align-items: flex-end;
      margin-bottom: 20px;
      gap: 10px;
  }

  .services-explore__header h2 {
      font-size: 28px;
  }

  .services-explore__underline {
      width: 105px;
  }

  .services-explore__meta {
      font-size: 9px;
      gap: 6px;
  }

  .services-category-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 13px;
  }

  .service-category-card {
      width: 100%;
      min-width: 0;
  }

  .service-category-card:last-child {
      grid-column: 1 / -1;
      width: calc(50% - 6.5px);
      justify-self: center;
  }

  .service-category-card__image {
      aspect-ratio: 1.4 / 1;
  }

  .service-category-card__content {
      padding: 9px 9px 11px;
  }

  .service-category-card__content h3 {
      font-size: 16px;
  }

  .service-category-card__content p {
      font-size: 10px;
  }

  .service-category-card__icon {
      left: 9px;
      width: 32px;
      height: 32px;
      top: -18px;
      font-size: 16px;
  }
}

/* SMALL MOBILE */

@media (max-width: 360px) {
  .services-explore__header {
      align-items: flex-start;
      flex-direction: column;
  }

  .service-category-card__content h3 {
      font-size: 14px;
  }

  .service-category-card__content p {
      font-size: 9px;
  }
}


/* ===== SERVICES GALLERY ===== */
.svcg{--bar-h:58px;background:var(--cream);padding-bottom:clamp(40px,8vh,90px)}

/* Sticky jump bar */
.svcg__bar {
  position: sticky;
  top: var(--nav-h, 84px);
  z-index: 90;
  background: var(--pine);
  border-top: 1px solid rgba(246,241,231,.12);
}

/* Horizontal scrolling on all screen sizes */
.svcg__bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 12px var(--pad);
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.svcg__bar-inner::-webkit-scrollbar {
  display: none;
}

.svcg__bar a {
  flex: 0 0 auto;
}
.svcg__bar a {
  flex: 0 1 auto;
}
.svcg__bar-inner::-webkit-scrollbar{display:none}
.svcg__bar a{flex:none;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:30px;background:var(--cream);color:var(--pine);font-weight:700;font-size:14px;white-space:nowrap;transition:background .2s,color .2s}
.svcg__bar a span{font-size:12px;opacity:.7}
.svcg__bar a:hover{background:var(--wheat)}
.svcg__bar a.is-active,.svcg__bar a[aria-current="true"]{background:var(--clay);color:#fff}
.svcg__bar a.is-active span{opacity:.9}
.svcg__bar a:focus-visible{outline:3px solid var(--wheat);outline-offset:2px}

/* chapters */
.svcg__chapter{padding-block:clamp(40px,7vh,80px);scroll-margin-top:calc(var(--nav-h,84px) + var(--bar-h) + 6px)}
.svcg__chapter + .svcg__chapter{border-top:1px dashed rgba(35,64,58,.25)}
.svcg__head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 18px;margin-bottom:clamp(18px,3vh,30px)}
.svcg__num{font-family:var(--f-display);font-weight:800;font-size:clamp(34px,4.4vw,56px);line-height:1;color:var(--clay)}
.svcg__head h2{font-size:clamp(26px,3.4vw,46px);letter-spacing:-1.2px;line-height:1.08;color:var(--pine)}
.svcg__count{font-size:clamp(22px,2.2vw,28px);color:var(--clay);line-height:1}

/* the 2-3 visuals */
.svcg__strip{display:grid;gap:12px;height:clamp(200px,24vw,320px);margin-bottom:clamp(24px,4vh,40px)}
.svcg__strip--a{grid-template-columns:1.4fr 1fr 1fr}
.svcg__strip--b{grid-template-columns:1fr 1fr 1.4fr}
.svcg__ph{position:relative;margin:0;border-radius:14px;overflow:hidden;background:linear-gradient(160deg,var(--clay),#E0A07A)}
.svcg__ph:nth-child(3n+2){background:linear-gradient(160deg,var(--sage),#8FB08E)}
.svcg__ph:nth-child(3n){background:linear-gradient(160deg,var(--wheat),var(--clay))}
.svcg__ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.svcg__ph figcaption{position:absolute;left:10px;bottom:10px;max-width:calc(100% - 20px);background:var(--cream);color:var(--pine);font-weight:700;font-size:13px;line-height:1.2;padding:6px 12px;border-radius:30px}
@media (hover:hover){.svcg__ph:hover img{transform:scale(1.05)}}
.svcg__dots{display:none}

/* every activity, as bullets with its one-liner */
.svcg__list{position:relative}
.svcg__list ul{list-style:none;padding:0;margin:0;column-count:2;column-gap:clamp(28px,5vw,64px)}
.svcg__list li{position:relative;break-inside:avoid;padding-left:20px;margin-bottom:18px}
.svcg__list li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;border-radius:50%;background:var(--clay)}
.svcg__list strong{display:block;font-family:var(--f-body);font-weight:700;font-size:clamp(16px,1.3vw,18px);line-height:1.3;color:var(--pine);margin-bottom:2px}
.svcg__list span{display:block;font-size:clamp(15px,1.2vw,16.5px);line-height:1.55;color:var(--ink);opacity:.88}
.svcg__more{margin-top:6px}

/* phones: swipeable visuals + folded list (the fold only exists when the script is running) */
@media (max-width:820px){
  .svcg{--bar-h:54px}
  .svcg__bar-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 10px;
}

.svcg__bar-inner::-webkit-scrollbar {
    display: none;
}
  .svcg__bar a{font-size:13px;padding:7px 12px}

  .svcg__strip{display:flex;height:auto;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:calc(var(--pad) * -1);padding-inline:var(--pad);scroll-padding-inline:var(--pad);margin-bottom:10px}
  .svcg__strip::-webkit-scrollbar{display:none}
  .svcg__ph{flex:0 0 78%;height:clamp(200px,58vw,280px);scroll-snap-align:start}
  .svcg__dots{display:flex;justify-content:center;gap:6px;margin:0 0 22px}
  .svcg__dots i{width:6px;height:6px;border-radius:50%;background:var(--pine);opacity:.3;transition:width .25s,opacity .25s,background .25s}
  .svcg__dots i.is-on{width:18px;border-radius:4px;background:var(--clay);opacity:1}

  .svcg__list ul{column-count:1}
  .svcg--js .svcg__list{overflow:hidden;transition:max-height .4s ease}
  .svcg--js .svcg__list.is-collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:70px;background:linear-gradient(rgba(246,241,231,0),var(--cream));pointer-events:none}
  .svcg__more{width:100%;justify-content:center; display:flex;}
}
@media (prefers-reduced-motion:reduce){
  .svcg__ph img,.svcg--js .svcg__list,.svcg__dots i,.svcg__bar a{transition:none}
}


/* ===== TABLETS ===== */
@media (max-width: 900px) {
  .sv-hero {
      padding-block: 65px;
  }

  .sv-hero__inner {
      grid-template-columns: 1.1fr 0.9fr;
      gap: 30px;
  }

  .sv-hero__content h1 {
      font-size: clamp(36px, 5.5vw, 48px);
      letter-spacing: -1.3px;
  }

  .sv-hero__content > p:not(.sv-eyebrow) {
      font-size: 17px;
      line-height: 1.65;
  }
}

/* ===== MOBILE / SMALL TABLETS ===== */
@media (max-width: 600px) {
  .sv-hero {
      padding-block: 45px 55px;
  }

  .sv-hero__inner {
      grid-template-columns: 1fr;
      gap: 38px;
  }

  .sv-hero__content h1 {
      font-size: clamp(36px, 9vw, 46px);
      line-height: 1.06;
      letter-spacing: -1.2px;
      max-width: 15ch;
  }

  .sv-hero__content > p:not(.sv-eyebrow) {
      font-size: 16px;
      line-height: 1.7;
      max-width: 45ch;
      margin-block: 20px;
  }

  .sv-eyebrow {
      font-size: 25px;
      margin-bottom: 14px;
  }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 380px) {
  .sv-hero {
      padding-block: 35px 45px;
  }

  .sv-hero__content h1 {
      font-size: 35px;
      letter-spacing: -1px;
  }

  .sv-hero__content > p:not(.sv-eyebrow) {
      font-size: 15px;
  }
}
