/* ============================================================
   Artigo Facial Spa — "clinical calm"
   Deep marine (advanced treatments) × warm blush (soothing care)
   Display: Fraunces · Body: Figtree
   ============================================================ */

:root {
  --porcelain:   #F4F0EB;   /* warm off-white, like skin/porcelain */
  --porcelain-2: #ECE5DC;
  --marine:      #0E2E3A;   /* near-black petrol blue — clinical depth */
  --marine-2:    #16495B;
  --petrol:      #1E6076;   /* mid teal-blue */
  --mist:        #BFD6DB;   /* pale clinical blue */
  --blush:       #E4C3B6;   /* warm skin-tone accent */
  --blush-deep:  #C98F79;
  --ink:         #12242B;
  --muted:       #5E7076;

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Type scale ---- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero__title em, .display em { font-style: normal; font-weight: 600; }
h1.display { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 400; }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3.display { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--blush-deep);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 60ch; }

/* ---- Buttons ---- */
.btn {
  --bg: var(--marine); --fg: var(--porcelain);
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05em 1.9em; border: 1px solid var(--bg); border-radius: 100px;
  cursor: pointer; transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(14,46,58,.5); }
.btn:focus-visible { outline: 3px solid var(--blush-deep); outline-offset: 3px; }
.btn--blush { --bg: var(--blush); --fg: var(--marine); border-color: var(--blush); }
.btn--ghost { --bg: transparent; --fg: var(--marine); border-color: rgba(14,46,58,.28); }
.btn--ghost:hover { background: var(--marine); color: var(--porcelain); }
.btn--light { --bg: var(--porcelain); --fg: var(--marine); border-color: var(--porcelain); }
.btn--small { padding: .8em 1.35em; font-size: .72rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244,240,235,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14,46,58,.08);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; color: var(--marine); line-height: 1; }
.brand__name small { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--petrol); margin-top: .28em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: .82rem; font-weight: 500; color: var(--marine-2);
  position: relative; padding-block: .3rem; transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--blush-deep); transition: width .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--marine); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: .9rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--marine); }

@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--porcelain); padding: 1rem var(--gutter) 1.6rem;
    border-bottom: 1px solid rgba(14,46,58,.1);
  }
  .nav.open a { padding: .8rem 0; width: 100%; border-bottom: 1px solid rgba(14,46,58,.06); font-size: 1rem; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1rem; }
  .header-cta .btn { padding: .7em 1.1em; }
}

/* ============================================================
   Hero — the signature luminous glow
   ============================================================ */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -14%; right: -10%;
  background: radial-gradient(circle at center,
      rgba(191,214,219,.9) 0%, rgba(228,195,182,.5) 34%, rgba(244,240,235,0) 68%);
  filter: blur(8px);
  animation: breathe 9s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title { margin: 1.2rem 0 1.4rem; color: var(--marine); }
.hero__title em { font-style: italic; color: var(--petrol); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__figure { position: relative; }
.hero__figure img {
  border-radius: var(--radius);
  aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto;
  box-shadow: 0 40px 80px -40px rgba(14,46,58,.5);
}
.hero__badge {
  position: absolute; left: -1.5rem; bottom: 2rem;
  background: var(--marine); color: var(--porcelain);
  padding: 1rem 1.3rem; border-radius: var(--radius); max-width: 210px;
  box-shadow: 0 20px 40px -20px rgba(14,46,58,.6);
}
.hero__badge strong { font-family: var(--font-display); font-size: 1.7rem; display: block; line-height: 1; }
.hero__badge span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
/* The number is a real call link — make that obvious and give it a thumb-sized tap area. */
.hero__badge a {
  color: #fff; font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.45);
  padding: .25rem 0; display: inline-block;
}
.hero__badge a:hover, .hero__badge a:focus-visible { text-decoration-color: var(--blush); }

@media (max-width: 820px) {
  .hero { padding-top: 2rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__figure { max-width: 100%; margin-inline: auto; order: -1; }
  /* Landscape crop on mobile so the hero photo isn't a giant portrait */
  .hero__figure img {
    aspect-ratio: 3/2; height: auto;
    max-height: 42vh;                 /* never more than ~40% of the phone screen */
    object-position: center 75%;      /* centre lower — on the client, not the shelving */
    box-shadow: 0 24px 50px -30px rgba(14,46,58,.5);
  }
  /* Compact single-line strip across the bottom of the photo, so it informs
     without covering the image on a small screen. */
  .hero__badge {
    left: 0; right: 0; bottom: 0; max-width: none;
    display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
    padding: .55rem .8rem; border-radius: 0 0 var(--radius) var(--radius);
    background: rgba(14,46,58,.86); backdrop-filter: blur(4px); box-shadow: none;
  }
  .hero__badge strong { display: inline; font-size: .92rem; }
  .hero__badge span { font-size: .68rem; white-space: nowrap; }
}

/* ---- Trust strip ---- */
.strip {
  background: var(--marine); color: var(--porcelain);
  padding-block: 1.1rem;
}
.strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); text-align: center; }
.strip__item { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); display: flex; align-items: center; gap: .6em; }
.strip__item svg { width: 17px; height: 17px; color: var(--blush); flex-shrink: 0; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--porcelain-2); }
.section--marine { background: var(--marine); color: var(--porcelain); }
.section--marine .lede, .section--marine .muted { color: var(--mist); }
.section--marine .eyebrow { color: var(--blush); }
.section--marine .eyebrow::before { background: var(--blush); }

.section__head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head h2 { margin: 1rem 0 .8rem; }

/* Philosophy split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; box-shadow: 0 30px 60px -35px rgba(14,46,58,.45); }
.split p + p { margin-top: 1rem; }
@media (max-width: 760px){ .split { grid-template-columns: 1fr; } .split__media { max-width: 420px; } }

/* Service overview cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.svc-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: var(--porcelain); isolation: isolate;
}
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.svc-card::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,46,58,.15) 0%, rgba(14,46,58,.82) 78%); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card__count { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blush); margin-bottom: .4rem; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.svc-card__link { margin-top: .9rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5em; }
.svc-card__link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-card__link svg { transform: translateX(4px); }

/* ============================================================
   Treatment / price list (service pages)
   ============================================================ */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.page-hero__glow { position: absolute; top: -30%; right: -10%; width: 40vw; height: 40vw; max-width: 500px; z-index: 0;
  background: radial-gradient(circle, rgba(191,214,219,.7), rgba(244,240,235,0) 70%); pointer-events: none; }
.page-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.page-hero__grid--solo { grid-template-columns: 1fr; }
.page-hero__grid--solo .page-hero__inner { max-width: 720px; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--marine); margin: 1rem 0 1rem; }
.page-hero__media img {
  width: 100%; height: auto; aspect-ratio: 5/4; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 34px 70px -38px rgba(14,46,58,.5);
}
@media (max-width: 780px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .page-hero__media { order: -1; max-width: 100%; }
  .page-hero__media img { aspect-ratio: 3/2; height: auto; max-height: 40vh; object-position: center 35%; }
}

.treatments { display: grid; gap: 1.1rem; }
.treatment {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: start;
  background: #fff; border: 1px solid rgba(14,46,58,.08); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.treatment:hover { border-color: rgba(30,96,118,.4); box-shadow: 0 18px 40px -28px rgba(14,46,58,.4); transform: translateY(-2px); }
.treatment--media { grid-template-columns: 132px auto 1fr auto; }
.treatment__thumb {
  width: 132px; height: 132px; border-radius: var(--radius); overflow: hidden;
  background: var(--porcelain-2);
  cursor: zoom-in;
}
/* <picture> is only a wrapper for the WebP/srcset sources — it must not create
   a box of its own, or it fights the layout rules written for the <img>. */
.treatment__thumb picture, .hero__figure picture, .split__media picture,
.page-hero__media picture, .svc-card picture { display: contents; }
.treatment__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease), filter .45s var(--ease);
}
.treatment__thumb:hover img { transform: scale(1.07); filter: brightness(1.08) saturate(1.06); }

/* ---- Image lightbox (click a treatment photo to view it large & bright) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10,32,40,.88);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(860px, 92vw); max-height: 86vh;
  border-radius: 6px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
}
.lightbox figcaption {
  position: absolute; bottom: clamp(.8rem, 3vw, 2rem); left: 50%; transform: translateX(-50%);
  color: var(--mist); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.1); border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
@media (max-width: 680px) {
  .treatment--media { grid-template-columns: 84px auto 1fr; }
  .treatment__thumb { width: 84px; height: 84px; }
}
@media (max-width: 460px) {
  .treatment--media { grid-template-columns: 1fr; }
  .treatment--media .treatment__thumb { width: 100%; height: 190px; }
}
.treatment__price {
  font-family: var(--font-display); font-size: 1.9rem; color: var(--marine); line-height: 1;
  min-width: 3.4ch; padding-top: .1rem;
}
.treatment__price sup { font-size: .9rem; top: -.9em; margin-right: 1px; }
.treatment__price--ask { font-size: 1rem; color: var(--petrol); padding-top: .5rem; }
/* "per session" under the figure — pages that price by the visit set $svcPriceUnit */
.treatment__unit {
  display: block; margin-top: .35rem;
  font-family: var(--font); font-size: .68rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--petrol);
  white-space: nowrap;
}
.note-card--top { margin: 0 0 1.6rem; }
.treatment__body h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--marine); margin-bottom: .1rem; }
.treatment__meta { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); margin-bottom: .6rem; }
.treatment__body p { color: var(--muted); font-size: .95rem; }
.treatment__body ul { margin: .7rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.treatment__body li { margin-bottom: .2rem; }
.treatment__cta { align-self: center; }
@media (max-width: 680px) {
  .treatment { grid-template-columns: auto 1fr; }
  .treatment__cta { grid-column: 1 / -1; justify-self: start; margin-top: .4rem; }
}

.note-card {
  margin-top: 2rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--blush-deep);
  background: var(--porcelain-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem; color: var(--muted);
}

/* ============================================================
   Testimonials
   ============================================================ */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.quote { background: var(--porcelain); border-radius: var(--radius); padding: 2rem; position: relative; }
.section--marine .quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.quote__mark { font-family: var(--font-display); font-size: 3.5rem; line-height: .5; color: var(--blush-deep); height: 1.2rem; display: block; }
.quote p { font-size: 1.02rem; margin: 1rem 0 1.2rem; }
.quote__who { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--petrol); }
.section--marine .quote__who { color: var(--blush); }
@media (max-width: 720px){ .quotes { grid-template-columns: 1fr; } }

/* ============================================================
   Contact / booking
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }

.info-line { display: flex; gap: .9rem; padding-block: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); align-items: flex-start; }
.info-line svg { width: 20px; height: 20px; color: var(--blush); flex-shrink: 0; margin-top: .2rem; }
.info-line strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.info-line a { color: var(--porcelain); }
.info-line a:hover { color: var(--blush); }

.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours td { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.hours td:last-child { text-align: right; color: var(--mist); }
.hours tr.today td { color: var(--blush); font-weight: 600; }
.hours tr.today td:last-child { color: var(--blush); }

.book-panel { background: var(--porcelain); color: var(--ink); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.book-panel h3 { color: var(--marine); margin-bottom: .5rem; }
.book-panel p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.book-panel .btn { width: 100%; justify-content: center; }
.book-panel .fineprint { margin: 1rem 0 0; font-size: .78rem; text-align: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0A2028; color: var(--mist); padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid h4 { color: var(--porcelain); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; font-weight: 400; }
.footer-grid a { color: var(--mist); font-size: .92rem; display: block; padding-block: .3rem; transition: color .25s; }
.footer-grid a:hover { color: var(--blush); }
.footer-grid p { font-size: .92rem; }
/* width:auto is required — the intrinsic width attribute would otherwise
   stretch the wordmark to its full pixel width at 46px tall. */
.footer-brand picture { display: contents; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .92; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
.footer-bottom a { color: var(--blush); }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---- Reveal on scroll (progressive enhancement) ----
   Only hidden when JS is present; without JS everything shows. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Grouped sections within a service page (e.g. Laser Hair Removal · Face / Body) */
.group-head {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--marine);
  letter-spacing: -.02em; margin: 0 0 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--warm-border, rgba(14,46,58,.12));
}
.group-head--spaced { margin-top: 2.75rem; }
