/* Salon Fusion - shared styles. Page look lives in the inline styles copied from the design;
   this file adds hover states, the team-card click target, and phone-width layout. */

/* Hover states (from the design's style-hover attributes) */
.hv1:hover{text-decoration:underline !important;text-decoration-color:#FFEB9F !important}
.hv2:hover{transform:translateY(-1px) !important}
.hv3:hover{background:#fff !important;transform:translateY(-6px) !important}
.hv4:hover{transform:translateY(-6px) !important;border-color:#DFBA77 !important}
.hv5:hover{background:#DFBA77 !important;color:#4C0F10 !important}
.hv6:hover{transform:translateY(-2px) !important}

.sf-card { cursor: pointer; }
img { max-width: 100%; height: auto; }  /* width/height attributes reserve the space; rules below set real sizes */

/* Logo gold, sampled from the (brightened) logo in the hero photo: the average of its gold pixels.
   Used by the hero buttons, header Book Now, nav underline and dropdown highlight. */
:root { --sf-gold: #EDC06B; --sf-gold-ink: #4C0F10;
  /* Metallic gradient: the design's original stop pattern, with shadow, highlight and mid-tone sampled from the logo. */
  --sf-gold-shadow: #B48641; --sf-gold-highlight: #FDDF8F; --sf-gold-mid: #EAAE51;
  --sf-gold-gradient: linear-gradient(120deg, var(--sf-gold-shadow), var(--sf-gold-highlight) 45%, var(--sf-gold-mid) 75%, var(--sf-gold-shadow)); }

/* Hero buttons (Book Your Appointment, View Services): the design's filled metallic look, same size, fully opaque. */
.sf-btn-gold { display: inline-block; padding: 15px 34px; border-radius: 2px; background: var(--sf-gold-gradient);
  color: var(--sf-gold-ink); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.sf-btn-gold:hover { transform: translateY(-2px); }

/* Header nav: hover underline in the logo gold (overrides the design's pale #FFEB9F). */
#sf-main-header nav a:hover, header[data-sf-header] nav a:hover { text-decoration-color: var(--sf-gold) !important; }

/* Home hero: WebP with a JPG fallback. 2560 for phones and 1x screens up to 1920px wide; 3840 for 2x screens
   wider than a phone, or any screen wider than 1920px. (The preload links on index.html use the same media.) */
.sf-hero { background-image: url('../images/hero-2560.jpg');
  background-image: image-set(url('../images/hero-2560.webp') type('image/webp'), url('../images/hero-2560.jpg') type('image/jpeg')); }
@media (min-width: 769px) and (min-resolution: 2dppx), (min-width: 769px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 1921px) {
  .sf-hero { background-image: image-set(url('../images/hero-3840.webp') type('image/webp'), url('../images/hero-2560.jpg') type('image/jpeg')); }
}

/* Services: no icons; flex column keeps the divider + price aligned across the five columns */
.sf-svc { display: flex !important; flex-direction: column; }
.sf-svc p { flex: 1 0 auto; }

/* Photos that open full size */
a.sf-zoom { cursor: zoom-in; }
.sf-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(24, 10, 10, .92); cursor: zoom-out; }
.sf-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.sf-lightbox button { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border: 1px solid #DFBA77;
  border-radius: 50%; background: transparent; color: #FFEB9F; font-size: 22px; line-height: 1; cursor: pointer; }

/* Gallery: swipeable pages of 6 (3 x 2), CSS scroll-snap */
.sf-gal { position: relative; max-width: 900px; margin: 0 auto; }
.sf-gal-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.sf-gal-track::-webkit-scrollbar { display: none; }
.sf-gal-track:focus-visible { box-shadow: 0 0 0 2px #DFBA77; border-radius: 4px; }
.sf-gal-page { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sf-gal-page a { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #F1E6D3; }
.sf-gal-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sf-gal-arrow { position: absolute; top: calc(50% - 40px); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #97652D; background: #FAF3E8; color: #97652D; font-size: 28px; line-height: 1; padding: 0 0 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, opacity .2s; }
.sf-gal-arrow:hover:not(:disabled) { background: #97652D; color: #FAF3E8; }
.sf-gal-arrow:disabled { opacity: .3; cursor: default; }
.sf-gal-prev { left: -70px; }
.sf-gal-next { right: -70px; }
.sf-gal-dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.sf-gal-dots button { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.sf-gal-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #97652D;
  background: transparent; transition: background .2s, transform .2s; }
.sf-gal-dots button[aria-current="true"]::before { background: #97652D; transform: scale(1.15); }

/* Portfolio lightbox (stylist pages): the photo gets its own space so the arrows never cover it */
.sf-lightbox--portfolio { padding: 70px 84px; }
@media (max-width: 768px) {
  /* Phones: full-width photo, arrows in a row underneath, close button above */
  .sf-lightbox--portfolio { padding: 64px 12px 92px; }
  .sf-lightbox.sf-lightbox--portfolio .sf-lb-prev, .sf-lightbox.sf-lightbox--portfolio .sf-lb-next {
    top: auto; bottom: 24px; margin-top: 0; width: 48px; height: 48px; }
  .sf-lightbox.sf-lightbox--portfolio .sf-lb-prev { left: calc(50% - 64px); }
  .sf-lightbox.sf-lightbox--portfolio .sf-lb-next { right: calc(50% - 64px); }
}

@media (max-width: 1100px) {
  /* Not enough side margin: arrows sit over the photo edges */
  .sf-gal-prev { left: 8px; }
  .sf-gal-next { right: 8px; }
  .sf-gal-arrow { background: rgba(250, 243, 232, .9); }
}
@media (max-width: 768px) {
  .sf-gal-arrow { display: none; }  /* phones swipe */
}

/* Lightbox arrows + counter (photo sets with data-group) */
.sf-lightbox .sf-lb-prev, .sf-lightbox .sf-lb-next { top: 50%; margin-top: -21px; font-size: 26px; padding-bottom: 3px; }
.sf-lightbox .sf-lb-prev { left: 18px; right: auto; }
.sf-lightbox .sf-lb-next { right: 18px; }
.sf-lightbox .sf-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #e4c9c9;
  font-size: .8rem; letter-spacing: .1em; }

/* Nav dropdowns (About, Team): hover or keyboard focus on desktop, tap on touch screens (js/nav.js) */
.sf-dd { position: relative; }
.sf-dd-caret { display: inline-block; margin-left: 6px; vertical-align: 2px; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .2s; }
.sf-dd-menu { position: absolute; top: calc(100% + 12px); left: -18px; z-index: 10; min-width: 180px; margin: 0; padding: 8px 0;
  list-style: none; background: #5e1011; border: 1px solid rgba(223,186,119,.35); border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.sf-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.sf-dd:hover > .sf-dd-menu, .sf-dd:focus-within > .sf-dd-menu, .sf-dd.sf-dd-open > .sf-dd-menu {
  opacity: 1; visibility: visible; transform: none; }
.sf-dd.sf-dd-dismissed > .sf-dd-menu { opacity: 0; visibility: hidden; transform: translateY(6px); } /* Escape */
.sf-dd.sf-dd-open .sf-dd-caret { transform: rotate(180deg); }
.sf-dd-menu a { display: block; padding: 10px 18px; color: #fff; font-size: .76rem; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.sf-dd-menu a:hover, .sf-dd-menu a:focus-visible { color: var(--sf-gold); background: rgba(237,192,107,.12); }

/* New pages (About, Hair Team, Nail Team): space under the fixed header */
.sf-header-space { height: 108px; background: #5e1011; }

/* Hair / Nail Team pages: cards centered in rows, grouped by tier */
.sf-team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 1180px; margin: 0 auto; }
.sf-tier { margin-top: 48px; }
.sf-bts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 960px; margin: 0 auto 44px; }
.sf-bts a { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #4C0F10; }
.sf-bts img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Home: the "Back to Services" link on price pages lands on #services below the fixed header */
#services { scroll-margin-top: 92px; }

/* Footer: four evenly spaced columns in the page's centered 1180px container; divider + bottom row span the same width */
.sf-footer { background: #4C0F10; color: #f0ddd0; padding: 60px 5% 34px; }
.sf-footer-inner { max-width: 1180px; margin: 0 auto; }
.sf-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(223,186,119,.18); }
.sf-footer h4 { font-family: 'Playfair Display', serif; color: #FFEB9F; font-size: 1.15rem; margin: 0 0 10px; }
.sf-footer h4.sf-footer-sub { margin-top: 18px; }
.sf-footer ul { list-style: none; padding: 0; margin: 0; font-size: 15px; font-weight: 300; line-height: 1.9; color: #d9c3b8; }
.sf-footer ul a:hover, .sf-footer ul a:focus-visible { color: #FFEB9F; }
.sf-footer-brand img { display: block; width: 108px; height: 108px; border-radius: 4px; margin: -6px 0 14px; }
.sf-footer-brand h4 { font-size: 1rem; }
.sf-footer-social { display: flex; gap: 14px; }
.sf-footer-social a { width: 48px; height: 48px; border: 1px solid #DFBA77; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: #DFBA77; transition: background .2s, color .2s; }
.sf-footer-social a:hover, .sf-footer-social a:focus-visible { background: #DFBA77; color: #4C0F10; }
.sf-footer-social svg { width: 24px; height: 24px; }
.sf-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px;
  font-size: 14px; color: #B2978A; }
@media (max-width: 1024px) {
  /* Tablet: two columns */
  .sf-footer { padding-left: 32px; padding-right: 32px; }
  .sf-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 600px) {
  /* Phone: one centered column, even spacing */
  .sf-footer { padding: 48px 16px 30px; }
  .sf-footer-grid { grid-template-columns: 1fr; row-gap: 30px; text-align: center; }
  .sf-footer-brand { display: flex; flex-direction: column; align-items: center; }
  .sf-footer-social { justify-content: center; }
  .sf-footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* Nail Team page: reel beside the intro (stacked and centered on phones) */
.sf-nail-video { padding: 40px 5% 80px; background: linear-gradient(#FAF3E8, #F7EBE6 30%); }
.sf-nail-video-inner { display: flex; align-items: center; justify-content: center; gap: 56px; max-width: 900px; margin: 0 auto; }
.sf-reel { display: block; flex: 0 0 auto; width: 320px; max-width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000;
  border-radius: 10px; box-shadow: 0 12px 34px rgba(116,13,27,.14); }
.sf-nail-intro { flex: 1 1 0; max-width: 460px; }
.sf-nail-intro p { color: #5c4a44; font-weight: 300; line-height: 1.75; font-size: 1.02rem; margin: 0 0 18px; }

/* About Us page */
.sf-about-body { max-width: 760px; margin: 0 auto; }
.sf-about-body h1, .sf-about-body h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0; text-align: center; }
.sf-about-body p { color: #5c4a44; font-weight: 300; line-height: 1.8; font-size: 1.05rem; margin: 0 0 18px; }

/* Retail: brand logos on equal rounded cards (3 across, 2 on phones). Logos are never recolored or upscaled. */
.sf-brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.sf-brand-card { box-sizing: border-box; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 26px 30px;
  background: #fff; border: 1px solid #e4d3bd; border-radius: 14px; box-shadow: 0 6px 22px rgba(116,13,27,.06); }
.sf-brand-card--dark { background: #000; border-color: #000; }
.sf-brand-card--pad { padding-left: 42px; padding-right: 42px; } /* Redken: the logo is cropped tight to its edges */
.sf-brand-card img { display: block; width: 100%; max-width: 160px; height: 100%; object-fit: contain; }

/* Phone menu button: hidden on desktop */
.sf-menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
  padding: 10px; background: transparent; border: 1px solid #DFBA77; border-radius: 2px; cursor: pointer; }
.sf-menu-btn span { display: block; height: 2px; background: #FFEB9F; border-radius: 1px; }

@media (max-width: 768px) {
  /* Home header: logo + menu button, links drop down */
  #sf-main-header { padding-left: 16px !important; padding-right: 16px !important; }
  #sf-main-header img { height: 52px !important; }
  #sf-main-header .sf-menu-btn { display: flex; }
  #sf-main-header nav { position: absolute; top: 100%; left: 0; right: 0; }
  #sf-main-header .sf-nav { display: none !important; flex-direction: column; align-items: stretch !important; gap: 0 !important;
    background: #5e1011; padding: 4px 16px 18px !important; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
  #sf-main-header.sf-open .sf-nav { display: flex !important; }
  #sf-main-header .sf-nav > li { padding: 12px 0; border-bottom: 1px solid rgba(223,186,119,.18); }
  #sf-main-header .sf-nav > li:last-child { border-bottom: 0; padding-top: 16px; }
  #sf-main-header .sf-nav > li:last-child > a { display: block !important; text-align: center; }
  #sf-main-header.sf-open nav { max-height: calc(100vh - 92px); overflow-y: auto; }

  /* Phone menu: About / Team expand in place on tap */
  #sf-main-header .sf-dd > a { display: flex; align-items: center; justify-content: space-between; }
  #sf-main-header .sf-dd-caret { border-left-width: 5px; border-right-width: 5px; border-top-width: 6px; margin-right: 4px; }
  #sf-main-header .sf-dd-menu { position: static; display: none; min-width: 0; margin: 0; padding: 6px 0 0 14px; border: 0;
    background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  #sf-main-header .sf-dd-menu::before { display: none; }
  #sf-main-header .sf-dd.sf-dd-open > .sf-dd-menu { display: block; }
  #sf-main-header .sf-dd-menu a { padding: 10px 0; color: #e4c9c9; }
  .sf-header-space { height: 92px; }

  /* Hero: show the whole wordmark from the wide banner */
  #sf-main-header + section { min-height: 540px !important; background-size: 200% auto !important;
    background-position: 50% 96px !important; padding-bottom: 48px !important; }

  /* Services stack one per row: no reserved second line under the description */
  .sf-svc { padding-top: 36px !important; padding-bottom: 36px !important; }
  .sf-svc p { min-height: 0 !important; }

  /* Team: two cards per row */
  #hair-team-row, #nail-team-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important; padding-left: 0 !important; overflow: visible !important; }
  #hair-team-row > div, #nail-team-row > div { grid-column: auto !important; width: auto !important; flex: none !important; }
  .sf-card { width: 100% !important; }
  .sf-card img { height: 190px !important; }
  .sf-card-info { width: auto !important; height: auto !important; padding: 14px 12px 16px !important; }
  .sf-card-info h3 { font-size: 1.15rem !important; }

  #services { scroll-margin-top: 76px; }  /* phone header height */

  /* Inner pages: sticky header keeps logo + Book Now */
  header[data-sf-header] { padding-left: 16px !important; padding-right: 16px !important; }
  header[data-sf-header] nav > ul > li:not(:last-child) { display: none; }
  .sf-profile-head { width: auto !important; max-width: 100% !important; height: auto !important; }
  .sf-profile-head p { width: auto !important; height: auto !important; line-height: 1.5 !important; }
  .sf-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .sf-work-grid.sf-hair-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  .sf-work-img { width: 100% !important; height: auto !important; }

  /* Retail brand logos: two across */
  .sf-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sf-brand-card { padding: 18px 20px; }
  .sf-brand-card--pad { padding-left: 28px; padding-right: 28px; }

  /* Hair / Nail Team pages: two cards per row, a lone card centered */
  .sf-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sf-team-grid > .sf-team-cell:only-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  .sf-tier { margin-top: 36px; }
  .sf-bts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 32px; }
  .sf-bts a { flex: 0 0 calc((100% - 12px) / 3); }

  /* Nail Team page */
  .sf-nail-video { padding: 28px 16px 60px; }
  .sf-nail-video-inner { flex-direction: column; gap: 30px; text-align: center; }
  .sf-reel { width: 100%; max-width: 320px; }
  .sf-nail-intro { max-width: 520px; }
  .sf-nail-intro > div { margin-left: auto !important; margin-right: auto !important; }

  /* About Us page */
  .sf-about { padding-left: 16px !important; padding-right: 16px !important; }
}

@media (max-width: 420px) {
  .sf-card img { height: 170px !important; }
}
