/* M Esthetics Studio — minimal homepage, scoped to the homepage only.
   Load AFTER styles.css. Remove the earlier home-minimal.css first. */

/* Header overlays the full-height hero without stretching the logo. */

@font-face {
  font-family: "Belleza Local";
  src: url("./assets/fonts/belleza.woff2")
       format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body:has(> main .hero) .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: auto;
  min-height: 86px;
  background: transparent;
  border: 0;
}
body:has(> main .hero) .site-header .nav {
  width: min(calc(100% - 72px), 1500px);
  min-height: 86px;
  height: auto;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
body:has(> main .hero) .nav-left {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 30px);
  align-items: center;
  min-width: 0;
}
body:has(> main .hero) .nav-left a,
body:has(> main .hero) .desktop-book {
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-decoration: none;
  text-shadow: 0 1px 7px rgba(0,0,0,.4);
}
body:has(> main .hero) .site-header .wordmark {
  display: block;
  width: clamp(135px, 17vw, 220px);
  max-width: 220px;
  min-width: 0;
  justify-self: center;
  line-height: 0;
  overflow: visible;
}
body:has(> main .hero) .site-header .wordmark img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
body:has(> main .hero) .desktop-book {
  display: inline-flex;
  justify-self: end;
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  min-height: 38px;
  padding: 9px 15px;
}

/* Image fills the hero from the very top of the page. */
body:has(> main .hero) .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 620px;
  height: min(76vw, 780px);
  max-height: 90svh;
  overflow: hidden;
  background: #8a6b58;
}
body:has(> main .hero) .hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('assets/images/hero-portrait.png');
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: none;
  mask-image: none;
}
body:has(> main .hero) .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 30%, rgba(0,0,0,.17) 100%);
  pointer-events: none;
}
body:has(> main .hero) .hero-inner {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body:has(> main .hero) .hero-copy {
  width: min(90%, 820px);
  max-width: 820px;
  padding: 90px 0 0;
  text-align: center;
  color: #fff;
}
body:has(> main .hero) .hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-shadow: 0 1px 12px rgba(0,0,0,.12);
}
body:has(> main .hero) .hero-copy .eyebrow,
body:has(> main .hero) .hero-description,
body:has(> main .hero) .hero-button {
  display: none;
}

/* Compact services presentation without the old descriptions. */
body:has(> main .hero) .services { padding: 38px 0 52px; }
body:has(> main .hero) .services-heading {
  margin: 0 auto 24px;
}
body:has(> main .hero) .services-heading h2 {
  font-family: "Belleza Local", Georgia, serif !important;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: normal;
}
body:has(> main .hero) .services-heading::before,
body:has(> main .hero) .services-heading::after { display: none; }
body:has(> main .hero) .service-card p { display: none; }
body:has(> main .hero) .service-card h3 {
  margin: 8px 0 0;
  font-size: clamp(12px, 1.25vw, 16px);
  letter-spacing: .025em;
}
body:has(> main .hero) .service-book { margin-top: 24px; }


body:has(> main .hero) .studio {
  display: none;
}

body:has(> main .hero) .before-book {
  display: block;
}
@media (max-width: 760px) {
  body:has(> main .hero) .site-header { min-height: 72px; }
  body:has(> main .hero) .site-header .nav {
    width: calc(100% - 36px);
    min-height: 72px;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
  }
  body:has(> main .hero) .nav-left,
  body:has(> main .hero) .desktop-book { display: none; }
  body:has(> main .hero) .site-header .wordmark {
    grid-column: 2;
    grid-row: 1;
    width: min(46vw, 190px);
  }
  body:has(> main .hero) .site-header .wordmark img { max-height: 50px; }
  body:has(> main .hero) .menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  body:has(> main .hero) .menu-toggle span { background: #fff; }
  body:has(> main .hero) .mobile-nav { background: #f6f4f0; }
  body:has(> main .hero) .mobile-nav a { color: #241c18; text-shadow: none; }
  body:has(> main .hero) .hero {
    height: 74svh;
    min-height: 500px;
    max-height: 760px;
  }
  body:has(> main .hero) .hero-photo {
    inset: 0;
    background-position: 56% center;
  }
  body:has(> main .hero) .hero-inner {
    min-height: 0;
    align-items: center;
    justify-content: center;
  }
  body:has(> main .hero) .hero-copy {
    width: 100%;
    padding: 70px 0 0;
  }
  body:has(> main .hero) .hero h1 {
    font-size: clamp(36px, 8.5vw, 58px);
  }
  body:has(> main .hero) .services { padding: 30px 0 42px; }
  body:has(> main .hero) .services-heading { margin-bottom: 20px; }
  body:has(> main .hero) .services-heading h2 { font-size: 32px; }
  body:has(> main .hero) .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  body:has(> main .hero) .service-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }
  body:has(> main .hero) .service-card h3 { font-size: 13px; }
}


/* ==========================================
   HERO — REDUCED HEIGHT
   ========================================== */

/* Desktop */
@media (min-width: 768px) {
  body:has(.hero) .hero {
    height: 65vh !important;
    min-height: 480px;
    max-height: 680px;
  }

  body:has(.hero) .hero-inner {
    height: 100%;
    min-height: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body:has(.hero) .hero {
    height: 65svh !important;
    min-height: 420px;
    max-height: 600px;
  }

  body:has(.hero) .hero-inner {
    height: 100%;
    min-height: 0;
  }
}
