/* ==========================================================
   Custom additions — merged from Salone & Hipstyle templates
   Kept separate from style.css so the base template stays intact
   ========================================================== */

/* Inner-page banner (Services/Gallery/About/Blog/Contact/Get Location etc.)
   was glued to the very bottom edge of the banner (align-items-end),
   so the heading + breadcrumb line got cut off on shorter screens.
   Move it up toward the middle of the banner instead. */
.hero-wrap.hero-wrap-2 .slider-text.align-items-end {
  align-items: center !important;
  padding-top: 125px;
}

/* Owl Carousel (testimonials, team grid) builds its slides at full
   un-clipped width using 3D transforms; the outer wrapper does clip
   it visually, but on some viewport widths (seen at 768px, tablet
   portrait) the browser still lets the page itself be swiped/scrolled
   a little sideways past the clipped edge. Scoping overflow-x:hidden
   to just these sections (not html/body) stops that without touching
   sticky positioning or anything else on the page. */
.testimony-section,
.ftco-team {
  overflow-x: hidden;
}

.ftco-offers .offer-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ftco-offers .offer-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ftco-offers .offer-card:hover img {
  transform: scale(1.06);
}

.ftco-offers .offer-card .offer-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #bf925b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
}

.ftco-offers .offer-card .offer-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.ftco-offers .offer-card .offer-caption h3 {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ftco-offers .offer-card .offer-caption p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 14px;
}

/* ==========================================================
   ROOT-CAUSE FIX: the black/blurry patch at the top of the
   hero on phones.

   style.css had `.hero-wrap { position: inherit; }`. body/html
   are never given a position, so that resolves to `static` —
   which means `.overlay` (position: absolute) inside it has NO
   positioned ancestor to size itself against, so the browser
   anchors it to the very top of the whole document instead of
   the top of the hero section.

   On desktop this was invisible: `.ftco-navbar-light` is
   `position: absolute` there, so it takes no space in the flow
   and the hero already starts at the document's top edge — the
   bug and the correct position happen to be the same spot.

   On phones (`max-width: 991.98px`) the navbar switches to
   `position: relative` with a solid black background and takes
   real space above the hero. The overlay is still anchored to
   the document's top edge, i.e. behind/under that black navbar
   band, so it no longer lines up with the hero photo underneath
   it — that mismatch is the "black, blurry-edged" patch reported
   on phone. Giving `.hero-wrap` its own positioning context fixes
   the overlay on every page (home + inner banners) at every
   width. */
.hero-wrap {
  position: relative;
}

/* ==========================================================
   Hero banner: height halved on every page, and on phones it
   becomes a plain white block with plain black text instead of
   the photo + dark overlay.
   ========================================================== */

/* Inner-page hero banners (About/Services/Gallery/Blog/Contact/
   FAQ/Get Location/Privacy/Terms/Blog post) were 780px — now 390px */
.hero-wrap.hero-wrap-2 {
  height: 390px;
}

.hero-wrap.hero-wrap-2 .overlay {
  height: 390px;
}

.hero-wrap.hero-wrap-2 .slider-text {
  height: 390px !important;
}

/* Base height used by the homepage hero as a fallback before JS
   (js-fullheight, see js/main.js) sets its final height — halved too */
.slider-text {
  height: 390px;
}

/* Phone view — INNER PAGES ONLY (About/Services/Gallery/Blog/Contact/
   FAQ/Get Location/Privacy/Terms/Blog post): strip the background
   photo + dark overlay, show a plain white banner instead, with the
   page name / breadcrumb navigation in plain black text. */
/* Phone/tablet — INNER PAGES (About/Services/Gallery/Blog/Contact/FAQ/
   Get Location/Privacy/Terms/Blog post): previously stripped to a plain
   white block + black text here because the hero photo looked broken on
   phones. That bug was the .hero-wrap positioning issue fixed above
   (see "ROOT-CAUSE FIX" comment) — now that it's fixed, the real photo
   renders correctly at every width, so the white-block override has
   been removed and the photo + dark overlay + white text (same as
   desktop) is used on phones too. */
@media (max-width: 767.98px) {
  .hero-wrap.hero-wrap-2 .slider-text .text {
    padding: 0 18px;
  }
}

/* Long single-word headings (e.g. "GALLERY") were touching the screen
   edges at 80px on narrow phones — scale the heading down instead. */
@media (max-width: 575.98px) {
  .slider-text .bread {
    font-size: 52px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .slider-text .bread {
    font-size: 64px;
  }
}

/* Standalone team grid page (Team page, not the homepage carousel) */
.team-grid .team {
  display: block;
  margin-bottom: 40px;
}

.team-grid .team .img {
  height: 280px;
  border-radius: 4px;
  background-position: center;
  background-size: cover;
  margin-bottom: 16px;
}

/* Combo cards with no real photo yet - clean icon treatment instead of a mismatched stock photo */
.ftco-offers .offer-card.offer-card-noimg {
  position: relative;
  min-height: 260px;
  background: linear-gradient(160deg, #2b2b2b 0%, #1a1a1a 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.ftco-offers .offer-card.offer-card-noimg .offer-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 42px;
  color: #F96D00;
  opacity: 0.9;
}

.ftco-offers .offer-card.offer-card-noimg .offer-badge {
  position: absolute;
  top: 30px;
  right: 30px;
}

.ftco-offers .offer-card.offer-card-noimg .offer-caption {
  position: relative;
  padding: 24px 24px 28px;
  background: none;
}

/* Blog post cards with no image set - honest placeholder, not a mismatched stock photo */
.block-20.no-image,
.blog-img.no-image {
  background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ececec 10px, #ececec 20px) !important;
}

/* Gallery tiles with no real photo yet - honest placeholder, not a mismatched stock photo */
.project.photo-placeholder {
  height: 100%;
  min-height: 260px;
  background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ececec 10px, #ececec 20px);
  display: flex;
  align-items: flex-end;
  border-radius: 4px;
}

.project.photo-placeholder .text {
  position: relative;
  padding: 20px;
  width: 100%;
}

.project.photo-placeholder .text span,
.project.photo-placeholder .text h3 a {
  color: #2f2f2f;
}

.project.photo-placeholder .coming-soon {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0;
  font-style: italic;
}

/* ==========================================================
   Current polish: dark navbar Get Location CTA + homepage hero
   ========================================================== */

/* Keep the CTA vertically centered with the other desktop nav items. */
@media (min-width: 992px) {
  .ftco-navbar-light .navbar-nav > .nav-item:has(> .location-cta) {
    display: flex;
    align-items: center;
  }

  .ftco-navbar-light .navbar-nav > .nav-item > .location-cta {
    height: 52px;
    min-width: 176px;
    margin: 0 4px 0 18px !important;
    padding: 0 24px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #bf925b !important;
    color: #bf925b !important;
    background: transparent !important;
    transform: translateY(0);
  }

  .ftco-navbar-light .navbar-nav > .nav-item > .location-cta:hover {
    background: #bf925b !important;
    color: #fff !important;
  }

  /* When the navbar becomes the light/white scrolled version. */
  .ftco-navbar-light.scrolled .navbar-nav > .nav-item > .location-cta {
    border-color: rgba(0, 0, 0, 0.28) !important;
    color: #000 !important;
  }

  .ftco-navbar-light.scrolled .navbar-nav > .nav-item > .location-cta:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
  }
}

@media (max-width: 991.98px) {
  .ftco-navbar-light .navbar-nav > .nav-item > .location-cta {
    width: fit-content;
    min-width: 176px;
    margin: 10px 0 0 !important;
    padding: 13px 24px !important;
    text-align: center;
    border: 2px solid #bf925b !important;
    color: #bf925b !important;
    background: transparent !important;
  }

  .ftco-navbar-light .navbar-nav > .nav-item > .location-cta:hover {
    background: #bf925b !important;
    color: #fff !important;
  }

  .ftco-navbar-light.scrolled .navbar-nav > .nav-item > .location-cta {
    border-color: rgba(0, 0, 0, 0.28) !important;
    color: #000 !important;
  }
}

/* Homepage hero: real Anay salon photo, with a dark readable text zone. */
.hero-wrap:not(.hero-wrap-2) {
  background-position: center center !important;
}

.hero-wrap:not(.hero-wrap-2) .overlay {
  opacity: .28;
}

.hero-wrap:not(.hero-wrap-2) .slider-text .text {
  width: 100%;
  max-width: 690px;
  text-align: left !important;
  margin-right: auto;
  margin-left: 0;
}

.hero-wrap:not(.hero-wrap-2) .slider-text .text h1,
.hero-wrap:not(.hero-wrap-2) .slider-text .text p,
.hero-wrap:not(.hero-wrap-2) .slider-text .text .subheading {
  text-shadow: 0 2px 18px rgba(0,0,0,.65);
}

/* The "Hair, bridal makeup, nails & skin care..." line had no color set
   of its own, so it fell back to the theme's near-black body text color
   (#212529) sitting directly on the dark hero photo — nearly invisible,
   especially on phones where the overlay/photo crop is darker. Give it
   an explicit light color (matching the white h1 above it) so it's
   always readable regardless of what's behind it. */
.hero-wrap:not(.hero-wrap-2) .slider-text .text p {
  color: rgba(255, 255, 255, 0.92);
}

/* Widened from 767.98px to 1199.98px: at tablet widths (iPad portrait
   etc.) this used to fall through to the desktop hero-anay-salon.jpg,
   which is a wide letterboxed image with the real photo only in a
   narrow strip down the middle — on a narrow-tall tablet viewport the
   cover-crop window landed entirely in the blurred padding either
   side of that strip, so the hero showed nothing but blur, no real
   photo. Using the same clean mobile photo up to 1199.98px fixes
   that; only screens wide enough to properly fit the letterboxed
   desktop photo (>=1200px) still use it. */
@media (max-width: 1199.98px) {
  .hero-wrap:not(.hero-wrap-2) {
    background-image: url(../images/hero-anay-salon-mobile.jpg) !important;
    background-position: center center !important;
    background-size: cover !important;
    /* Floor so the hero never collapses/flashes before js-fullheight
       sets its final pixel height on load. */
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
  }

  /* Blend the solid black mobile navbar bar smoothly into the hero
     photo instead of a hard edge between the two. */
  .hero-wrap:not(.hero-wrap-2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
  }

  .hero-wrap:not(.hero-wrap-2) .overlay {
    opacity: .32;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  }

  .hero-wrap:not(.hero-wrap-2) .slider-text .text {
    max-width: 100%;
    text-align: center !important;
    margin: 0 auto;
    padding: 0 18px;
    position: relative;
    z-index: 2;
  }

  .hero-wrap:not(.hero-wrap-2) .slider-text .text .subheading {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(191, 146, 91, .8);
    border-radius: 30px;
    letter-spacing: 1px;
  }

  /* Make the WhatsApp CTA pop with a soft breathing glow. */
  .hero-wrap:not(.hero-wrap-2) .slider-text .text .btn {
    box-shadow: 0 0 0 0 rgba(191, 146, 91, .55);
    animation: heroCtaPulse 2.4s ease-out infinite;
  }

  @keyframes heroCtaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(191, 146, 91, .55); }
    70%  { box-shadow: 0 0 0 14px rgba(191, 146, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(191, 146, 91, 0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-wrap:not(.hero-wrap-2) {
      animation: none;
    }
    .hero-wrap:not(.hero-wrap-2) .slider-text .text .btn {
      animation: none;
    }
  }
}

/* ---------- Salon logo in navbar ---------- */
.navbar-brand__logo {
  position: absolute;
  top: 50%;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(-50%);
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(191, 146, 91, 0.6);
}

/* Salon logo inside the homepage "About" block (was a big stacked icon) */
.text-about__logo-img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 1px rgba(191, 146, 91, 0.6);
}
