/* Homepage sections (hero, services, your visit, recent work, Lash Journal)
   and the Photos page gallery. Colors come from the --lp-* tokens in overrides.css. */

/* Design rules for this page, so it doesn't read as a template:
   - text sits on white panels, never straight on the cream page;
   - each section gets the layout its content needs (photo rows, a price
     list, a split panel, a plain list), not the same card grid;
   - real photos carry the page, unframed, at a size where the lashes read
     and the skin doesn't dominate: no gradients, glows or decorative icons;
   - text never covers what a photo is showing;
   - one accent color (terracotta) for links and prices, solid buttons. */

/* ---------- Buttons: solid, squarer, no glow ---------- */
.btn,
button,
input[type=submit] { border-radius: 6px; }
.btn-primary,
.navbar-custom .navbar-right .nav-book-cta .navbar-btn {
  box-shadow: none !important;
}
.btn-primary:hover,
.btn-primary:focus,
.navbar-custom .navbar-right .nav-book-cta .navbar-btn:hover,
.navbar-custom .navbar-right .nav-book-cta .navbar-btn:focus {
  color: #fff !important;
  box-shadow: none !important;
  transform: none;
}

/* The navbar's Book Online button: the same solid peach as the page buttons,
   replacing the pink-to-blue shimmer gradient. */
.btn-2,
.nav-book-mobile.btn-2,
.navbar-custom .nav li .btn-2 {
  background: var(--lp-primary) !important;
  background-image: none !important;
  color: var(--lp-text) !important;
  text-shadow: none !important;
  box-shadow: none !important;
  animation: none !important;
}
.nav-book-mobile.btn-2:hover,
.nav-book-mobile.btn-2:focus,
.navbar-custom .nav li .btn-2:hover,
.navbar-custom .nav li .btn-2:focus {
  background: var(--lp-primary-dark) !important;
  color: #fff !important;
}

/* White panel used by the hero, the service rows, the menu, Your visit and the
   journal. No border: white on the cream page is enough. */
.lp-panel {
  background: var(--lp-surface);
  border-radius: 6px;
}

/* ---------- Homepage hero (layouts/partials/home-hero.html) ---------- */
.lp-hero-section { padding-bottom: 0; }
/* Phones and tablets: the fixed navbar is two rows tall, so give the homepage
   top the same clearance the theme gives page titles (.intro-header). */
@media (max-width: 991px) {
  .lp-hero-section .lp-hero { padding-top: 80px; }
}
/* Desktop: the round logo hangs below the navbar, so start the hero under it. */
@media (min-width: 992px) {
  .lp-hero-section .lp-hero { padding-top: 4.75rem; }
}
.lp-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2rem) 0;
}
body .lp-hero h1 {
  margin: 0 0 1rem;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  color: var(--lp-text);
}
.lp-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--lp-text);
  font-size: 1.1rem;
  line-height: 1.65;
}
.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
}
.lp-hero__link {
  color: var(--lp-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-hero__panel {
  background: var(--lp-surface);
  border-radius: 6px;
}

/* Text only: a centered welcome on white. */
.lp-hero--text .lp-hero__panel {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.lp-hero--text .lp-hero__lead { margin-left: auto; margin-right: auto; }
.lp-hero--text .lp-hero__actions { justify-content: center; }

/* Photo: the photo sits on the page, unframed, and the white welcome panel
   meets its edge without covering any of it. */
.lp-hero--photo { display: grid; grid-template-columns: 1fr; }
.lp-hero--photo .lp-hero__panel {
  position: relative;
  z-index: 1;
  order: 2;
  margin: 0 0.75rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 2.75rem);
}
.lp-hero__media { order: 1; }
.lp-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}
@media (min-width: 768px) {
  .lp-hero--photo {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }
  .lp-hero--photo .lp-hero__panel {
    grid-column: 1 / span 6;
    grid-row: 1;
    order: 0;
    margin: 0;
  }
  .lp-hero__media { grid-column: 7 / -1; grid-row: 1; order: 0; }
  .lp-hero--photo .lp-hero__img { aspect-ratio: 4 / 3; }
}

/* ---------- Section spacing and headings ---------- */
.lp-services,
.lp-visit,
.lp-recent,
.lp-journal { margin-top: clamp(3rem, 6vw, 5rem); }
.lp-journal { margin-bottom: clamp(3rem, 6vw, 5rem); }
/* Keep the "Services and prices" link from landing under the fixed navbar. */
.lp-services { scroll-margin-top: calc(var(--ann-h, 0px) + 6rem); }
body .lp-services h2,
body .lp-visit h2,
body .lp-recent h2,
body .lp-journal h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

/* ---------- Service rows: an unframed photo with a white text panel set
   against its edge (never over it), alternating sides. The photo is kept to about
   five of twelve columns so a lash close-up never fills the screen. ---------- */
.lp-feature { display: grid; grid-template-columns: 1fr; margin-bottom: 2.25rem; }
.lp-feature__img,
.lp-pair img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}
.lp-feature__img { aspect-ratio: 4 / 3; }
.lp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.lp-pair__item { margin: 0; }
.lp-pair img { aspect-ratio: 1 / 1; }
.lp-pair figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--lp-text-light);
}
.lp-feature__text {
  position: relative;
  z-index: 1;
  margin: 0 0.75rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--lp-surface);
  border-radius: 6px;
}
/* The before and after pair has captions under it, so no overlap there. */
.lp-feature--pair .lp-feature__text { margin-top: 0.75rem; }
body .lp-feature__name {
  margin: 0 0 0.35rem;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.25;
  color: var(--lp-text);
}
.lp-feature__price { margin: 0 0 0.75rem; font-weight: 700; color: var(--lp-primary-dark); }
.lp-feature__note,
.lp-feature__detail { margin: 0 0 0.6rem; max-width: 30rem; color: var(--lp-text); line-height: 1.6; }
.lp-feature__detail { color: var(--lp-text-light); }
.lp-feature__link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--lp-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 768px) {
  .lp-feature {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  }
  .lp-feature__media { grid-column: 1 / span 5; grid-row: 1; }
  .lp-feature__text { grid-column: 6 / -1; grid-row: 1; margin: 0; padding: 2rem 2.25rem 2.1rem; }
  /* Every other row puts the photo on the right. */
  .lp-feature--flip .lp-feature__media { grid-column: 8 / -1; }
  .lp-feature--flip .lp-feature__text { grid-column: 1 / span 7; margin: 0; }
  /* A before and after pair stays fully visible: the panel sits beside it. */
  .lp-feature--pair .lp-feature__media { grid-column: 7 / -1; }
  .lp-feature--pair .lp-feature__text { grid-column: 1 / span 6; margin: 0 1.25rem 0 0; }
  .lp-feature--pair:not(.lp-feature--flip) .lp-feature__media { grid-column: 1 / span 6; }
  .lp-feature--pair:not(.lp-feature--flip) .lp-feature__text { grid-column: 7 / -1; margin: 0 0 0 1.25rem; }
}

/* ---------- More services: two short offers, each with its own Book button ---------- */
.lp-menu { padding: clamp(1.5rem, 3.5vw, 2.75rem); }
body .lp-menu__title {
  margin: 0 0 1.25rem;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--lp-text);
}
.lp-menu__offers { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.lp-offer + .lp-offer { padding-top: 1.75rem; border-top: 1px solid var(--lp-border); }
@media (min-width: 768px) {
  .lp-menu__offers { grid-template-columns: 1fr 1fr; gap: 0 3rem; }
  .lp-offer + .lp-offer { padding: 0 0 0 3rem; border-top: 0; border-left: 1px solid var(--lp-border); }
}
body .lp-offer__name {
  margin: 0 0 0.25rem;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--lp-text);
}
.lp-offer__price { margin: 0 0 0.6rem; font-weight: 700; color: var(--lp-primary-dark); }
.lp-offer__pitch { margin: 0 0 1rem; max-width: 28rem; color: var(--lp-text); line-height: 1.6; }
.lp-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin: 0; }
.lp-offer__more { font-weight: 600; color: var(--lp-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.lp-menu__extra {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lp-border);
  color: var(--lp-text);
  line-height: 1.65;
}
.lp-menu__extra a,
.lp-visit__step a,
.lp-visit__more a,
.lp-journal__intro a { color: var(--lp-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.lp-menu__extra p, .lp-visit__step p, .lp-visit__more p, .lp-journal__intro p { display: inline; margin: 0; }

/* ---------- Your visit: white text panel set against the edge of an unframed photo ---------- */
.lp-visit__panel { display: grid; grid-template-columns: 1fr; }
.lp-visit__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.lp-visit__text {
  position: relative;
  z-index: 1;
  margin: 0 0.75rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}
.lp-visit__step { margin: 0 0 1rem; max-width: 34rem; color: var(--lp-text); line-height: 1.65; }
.lp-visit__step strong { font-family: 'Lora', 'Times New Roman', serif; font-size: 1.1em; font-weight: 600; }
.lp-visit__more { margin: 1.25rem 0 0; color: var(--lp-text-light); }
@media (min-width: 768px) {
  .lp-visit__panel { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .lp-visit__media { grid-column: 8 / -1; grid-row: 1; }
  .lp-visit__text { grid-column: 1 / span 7; grid-row: 1; margin: 0; }
}

/* Small caption under a work photo: what it shows and who did it. */
.lp-work-caption {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--lp-text-light);
}
.lp-recent__cell,
.lp-gallery__cell { margin: 0; }

/* ---------- Recent work: six photos, three across, each named under it ---------- */
.lp-recent__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.6rem;
}
@media (min-width: 768px) { .lp-recent__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1rem; } }
.lp-recent__grid a { display: block; }
.lp-recent__grid img,
.lp-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
.lp-recent__more { margin: 1rem 0 0; }
.lp-recent__more a,
.lp-journal__all a {
  font-weight: 600;
  color: var(--lp-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Lash Journal: a plain list on white ---------- */
.lp-journal__panel { display: grid; grid-template-columns: 1fr; gap: 1rem 3rem; padding: clamp(1.4rem, 3vw, 2.5rem); }
.lp-journal__intro { margin: -0.5rem 0 1rem; max-width: 30rem; color: var(--lp-text); line-height: 1.65; }
.lp-journal__all { margin: 0; }
.lp-journal__list { margin: 0; padding: 0; list-style: none; }
.lp-article { padding: 1.1rem 0; border-top: 1px solid var(--lp-border); }
.lp-article:first-child { border-top: 0; padding-top: 0; }
body .lp-article__title {
  margin: 0 0 0.4rem;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 1.3rem;
  line-height: 1.3;
}
.lp-article__title a { color: var(--lp-text); text-decoration: none; }
.lp-article__title a:hover { color: var(--lp-primary-dark); text-decoration: underline; }
.lp-article__summary { margin: 0 0 0.4rem; max-width: 40rem; color: var(--lp-text); line-height: 1.6; }
.lp-article__date { margin: 0; font-size: 0.9rem; color: var(--lp-text-light); }
@media (min-width: 992px) {
  .lp-journal__panel { grid-template-columns: 4fr 8fr; }
}

/* ---------- Photos page gallery ---------- */
.lp-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 0.9rem;
  margin: 1.5rem 0;
}
@media (min-width: 576px) { .lp-gallery { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; } }
.lp-gallery__item { display: block; }
.lp-gallery__item:hover img,
.lp-gallery__item:focus img { opacity: 0.92; }
.lp-gallery__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Lightbox (static/js/lp-lightbox.js) ---------- */
html.lp-lightbox-open { overflow: hidden; }
.lp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0.75rem;
  background: rgba(20, 17, 14, 0.94);
}
.lp-lightbox[hidden] { display: none; }
.lp-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}
.lp-lightbox__img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}
.lp-lightbox__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  text-align: center;
}
.lp-lightbox__what { color: #fff; font-size: 1rem; }
.lp-lightbox__what[hidden] { display: none; }
.lp-lightbox__count { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; letter-spacing: 0.05em; }
.lp-lightbox__close,
.lp-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.lp-lightbox__close svg,
.lp-lightbox__nav svg { display: block; }
.lp-lightbox__close:hover,
.lp-lightbox__nav:hover,
.lp-lightbox__close:focus-visible,
.lp-lightbox__nav:focus-visible { background: rgba(255, 255, 255, 0.3); outline: none; }
.lp-lightbox__nav[hidden] { display: none; }
.lp-lightbox__close { top: 0.75rem; right: 0.75rem; }
.lp-lightbox__prev { left: 0.75rem; top: 50%; margin-top: -22px; }
.lp-lightbox__next { right: 0.75rem; top: 50%; margin-top: -22px; }
/* On phones the arrows and the counter share one row at the bottom, so
   nothing covers the photo and the three line up. */
@media (max-width: 575px) {
  .lp-lightbox { padding: 4rem 0.5rem 5rem; }
  .lp-lightbox__img { max-width: 100%; max-height: calc(100vh - 12rem); }
  .lp-lightbox__prev,
  .lp-lightbox__next { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
  .lp-lightbox__prev { left: calc(50% - 96px); }
  .lp-lightbox__next { right: calc(50% - 96px); }
  .lp-lightbox__count {
    position: absolute;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 80px;
    margin-left: -40px;
    line-height: 44px;
  }
}

/* Header logo: the "Lash Principal" script replaces the brand text; its alt
   carries the full name. The three lashes follow the script like in the logo,
   on the plain header with no circle: always below 992px, and on desktop once
   the big round logo has tucked away on scroll. */
.navbar-custom .navbar-brand-wordmark { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; }
.navbar-custom .navbar-brand-wordmark img { display: block; height: 30px; width: auto; max-width: 100%; }
@media (min-width: 768px) { .navbar-custom .navbar-brand-wordmark img { height: 36px; } }
@media (min-width: 1200px) { .navbar-custom .navbar-brand-wordmark img { height: 42px; } }
.navbar-custom .avatar-container .avatar-img,
.navbar-custom .navbar-brand-logo { height: auto; }
.navbar-custom .avatar-container .avatar-img-border { box-shadow: 0 2px 10px rgba(54, 41, 59, 0.25); }

/* About Us: stand-in for a team photo that isn't ready yet
   (layouts/shortcodes/team-placeholder.html). Same size and float as the
   180px team photos. */
.lp-team-placeholder {
  float: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: 0 2rem 2rem 0;
  background: var(--lp-accent);
  border-radius: 50%;
  text-align: center;
}
.lp-team-placeholder__mark { width: 46px; height: auto; margin-bottom: 0.5rem; }
.lp-team-placeholder__name {
  font-family: 'Lora', 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--lp-text);
}
.lp-team-placeholder__soon {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--lp-text-light);
}

/* Lashes after the script: no round badge, sized to the lettering. */
.navbar-custom .navbar-brand-with-logo .navbar-brand-logo-shell,
.navbar-custom.top-nav-short .navbar-brand-with-logo .navbar-brand-logo-shell {
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  background: none;
  margin-left: -0.4rem;
  align-self: flex-start;
}
.navbar-custom .navbar-brand-with-logo .navbar-brand-logo,
.navbar-custom.top-nav-short .navbar-brand-with-logo .navbar-brand-logo {
  width: auto;
  height: 26px;
  object-fit: contain;
}
@media (min-width: 992px) {
  .navbar-custom .navbar-brand-with-logo .navbar-brand-logo,
  .navbar-custom.top-nav-short .navbar-brand-with-logo .navbar-brand-logo { height: 30px; }
}
@media (min-width: 1200px) {
  .navbar-custom .navbar-brand-with-logo .navbar-brand-logo,
  .navbar-custom.top-nav-short .navbar-brand-with-logo .navbar-brand-logo { height: 34px; }
}

/* Phones: smaller team photos so the text beside them isn't a thin column. */
@media (max-width: 575px) {
  img.lp-team-photo { width: 112px; height: auto; margin: 0.2rem 1rem 0.6rem 0 !important; }
  .lp-team-placeholder { width: 112px; height: 112px; margin: 0.2rem 1rem 0.6rem 0; }
  .lp-team-placeholder svg { width: 30px; height: auto; }
  .lp-team-placeholder__name { font-size: 1rem; }
  .lp-team-placeholder__soon { font-size: 0.6rem; }
}
