/*==========================================================
  STYLE.CSS – Nail Spa website
  Mục lục:  1. Biến & base   2. Components dùng chung (np-)
            3. Header/Footer 4. Trang: Home (hm-), About (ab-),
            Services (sv-), Gallery (gl-), Contact (ct-)
            5. Animation     6. Responsive   7. Accessibility
  Breakpoints: xs <576 | sm ≥576 | md ≥768 | lg ≥992 | xl ≥1200
==========================================================*/

/*---------- 1. BIẾN & BASE ----------*/
:root {
  --c-primary: #6e3b4c;
  --c-dark: #4a2433;
  --c-accent: #c98f86;
  --c-cream: #fbf6f1;
  --c-rose: #f1d9d3;
  --c-mist: #e6ece0;
  --c-blush: #efd3c8;
  --c-sage: #d9e0d3;
  --c-leaf: #4b5d49;
  --c-text: #3a2a2f;
  --f-body: 'Jost', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-head: 'Cormorant Garamond', Georgia, serif;
  --f-script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --fs-body: clamp(15px, .9rem + .2vw, 17px);
  --fs-h1: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  --section-py: clamp(56px, 8vw, 110px);
  --header-h: 78px;
  --ease: .35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h)
}

body {
  margin: 0;
  font: var(--fs-body)/1.7 var(--f-body);
  color: var(--c-text);
  background: var(--c-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-dark);
  margin-top: 0
}

h1 {
  font-size: var(--fs-h1)
}

h2 {
  font-size: var(--fs-h2)
}

h3 {
  font-size: var(--fs-h3)
}

h4 {
  font-size: 1.3rem
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--ease)
}

a:hover {
  color: var(--c-accent);
  text-decoration: none
}

/*---------- 2. COMPONENTS DÙNG CHUNG ----------*/
.np-section {
  padding: var(--section-py) 0
}

.np-section--sage {
  background: var(--c-sage)
}

.np-section--blush {
  background: var(--c-blush)
}

.np-script {
  display: block;
  font-family: var(--f-script);
  color: var(--c-accent);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 6px
}

.np-title {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px)
}

.np-btn {
  display: inline-block;
  padding: .85em 2.1em;
  border-radius: 50px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid var(--c-primary);
  transition: var(--ease);
  cursor: pointer
}

.np-btn:hover {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: #fff;
  transform: translateY(-2px)
}

.np-btn--ghost {
  background: transparent;
  color: var(--c-primary)
}

.np-btn--ghost:hover {
  background: var(--c-primary);
  color: #fff
}

.np-btn--light {
  background: var(--c-cream);
  border-color: var(--c-cream);
  color: var(--c-dark)
}

.np-btn--light:hover {
  background: var(--c-blush);
  border-color: var(--c-blush);
  color: var(--c-dark)
}

.np-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px)
}


/*---------- 3. HEADER / FOOTER ----------*/
.np-topbar {
  background: var(--c-dark);
  color: #f4e4de;
  font-size: .85rem;
  padding: 6px 0
}

.np-topbar a {
  color: #f4e4de;
  margin-left: 16px
}

.np-topbar a:hover {
  color: var(--c-blush)
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000
}

.np-nav {
  /* min-height: var(--header-h); */
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(251, 246, 241, .96);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--ease)
}

.np-nav>.container {
  flex-wrap: nowrap
}

.np-nav .navbar-collapse {
  flex-grow: 1
}

.np-nav .np-btn {
  padding: .6em 1.6em;
  white-space: nowrap
}

.np-nav.is-sticky {
  box-shadow: 0 6px 24px rgba(74, 36, 51, .09)
}

.np-logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 0
}

.np-logo img {
  display: block;
  width: auto;
  height: 56px
}

.np-logo--light img {
  filter: invert(1);
  height: 64px
}

.np-nav .nav-link {
  position: relative;
  padding: .5rem 1.1rem !important;
  color: var(--c-text)
}

.np-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 2px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform var(--ease)
}

.np-nav .nav-link:hover::after,
.np-nav .nav-link.active::after {
  transform: scaleX(1)
}

.np-nav .nav-link.active {
  color: var(--c-primary)
}

.navbar-toggler {
  border: 0;
  color: var(--c-primary);
  font-size: 1.4rem
}

.np-footer {
  background: var(--c-dark);
  color: #e9d5cf;
  padding: 70px 0 0
}

.np-footer h4 {
  color: #fff
}

.np-footer a {
  color: #e9d5cf
}

.np-footer a:hover {
  color: var(--c-accent)
}

.np-footer ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.np-footer li {
  margin-bottom: 6px
}

.np-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%
}

.np-social a:hover {
  background: var(--c-blush);
  border-color: var(--c-blush);
  color: var(--c-dark)
}

.np-copyright {
  margin-top: 50px;
  padding: 15px 2px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: .85rem
}

.back-to-top {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff
}

.back-to-top:hover {
  background: var(--c-accent);
  color: #fff
}


/* ---- Trang trí: hoa lá, khung ảnh chồng lớp ---- */
.np-rel {
  position: relative;
  overflow: hidden
}

.np-rel>.container {
  position: relative;
  z-index: 1
}

.np-deco {
  position: absolute;
  z-index: 0;
  max-width: none;
  pointer-events: none;
  user-select: none
}

.np-script--lg {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem)
}

.np-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-primary)
}

.np-label::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--c-accent)
}

.np-frame {
  position: relative;
  max-width: 440px;
  margin: 0 auto
}

.np-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 40px -34px -34px 40px;
  background: var(--c-sage)
}

.np-frame::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -20px 20px 20px -20px;
  border: 1px solid var(--c-accent)
}

.np-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover
}

.np-frame--blush::before {
  background: var(--c-blush)
}

.np-frame--flip::before {
  inset: 40px 40px -34px -34px
}

.np-frame--flip::after {
  inset: -20px -20px 20px 20px
}

.np-frame__script {
  position: absolute;
  z-index: 2;
  top: -28px;
  right: -16px;
  transform: rotate(-6deg);
  font-family: var(--f-script);
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.6rem);
  color: var(--c-primary);
  text-shadow: 0 2px 12px rgba(251, 246, 241, .9)
}

.np-arch {
  height: 100%;
  padding: 60px 26px 42px;
  border-radius: 999px 999px 26px 26px;
  text-align: center
}

.np-arch--blush {
  background: var(--c-blush)
}

.np-arch--sage {
  background: var(--c-sage)
}

.np-arch--rose {
  background: var(--c-rose)
}

.np-arch img {
  width: 34px;
  height: 46px;
  margin-bottom: 14px
}

.np-arch h3 {
  margin-bottom: 10px
}

.np-arch p {
  margin: 0 auto 14px;
  max-width: 18em;
  opacity: .85
}

.np-arch a {
  border-radius: 2rem;
  padding: .5rem 1rem;
  border: 1px solid var(--c-accent);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500
}

.np-circle {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 10px solid rgba(251, 246, 241, .7);
  box-shadow: 0 18px 50px rgba(74, 36, 51, .18)
}

/* Banner trang con */
/* Banner trang con: chia đôi – trái text, phải ảnh full box */
.np-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  overflow: hidden;
  background: radial-gradient(60% 90% at 90% 0, #e7cdc3 0, transparent 70%), radial-gradient(50% 80% at 0 100%, var(--c-mist) 0, transparent 70%), var(--c-cream)
}

.np-banner__text {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 56px clamp(24px, 5vw, 72px) 56px max(24px, calc((100vw - 1140px)/2 + 15px))
}

.np-banner__inner {
  position: relative;
  z-index: 1
}

.np-banner h1 {
  margin: 0 0 8px
}

.np-crumb {
  margin: 0;
  font-size: .9rem;
  opacity: .75
}

.np-banner__media {
  position: relative;
  min-height: 240px
}

.np-banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

/*---------- 4a. HOME ----------*/
.hm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px) 0 clamp(60px, 8vw, 110px);
  background: radial-gradient(55% 60% at 88% 8%, #ecd7cd 0, transparent 70%), radial-gradient(40% 45% at 0 95%, var(--c-mist) 0, transparent 70%), var(--c-cream)
}

.hm-hero h1 {
  margin-bottom: 20px
}

.hm-hero h1 em {
  font-style: italic;
  color: var(--c-primary)
}

.hm-hero__text {
  max-width: 30em;
  margin-bottom: 28px;
  opacity: .88
}

.hm-hero__sign {
  display: block;
  margin-top: 26px;
  transform: rotate(-4deg);
  font-family: var(--f-script);
  font-size: 2rem;
  color: var(--c-accent)
}

.hm-hero__img {
  position: relative;
  max-width: 520px;
  margin-left: auto
}

.hm-hero__img>img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1.1;
  object-fit: cover;
  border-radius: 230px 44px 44px 44px;
  box-shadow: 0 24px 60px rgba(74, 36, 51, .16)
}

.hm-hero__badge {
  position: absolute;
  right: -18px;
  bottom: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  padding: 20px;
  border-radius: 50%;
  background: var(--c-rose);
  color: var(--c-primary);
  font-family: var(--f-head);
  font-size: 1.1rem;
  line-height: 1.2;
  text-align: center;
  border: 6px solid var(--c-cream)
}

.hm-treat {
  background: var(--c-cream)
}

.hm-welcome {
  background: linear-gradient(180deg, #fff 0, var(--c-cream) 100%)
}

.hm-welcome p {
  max-width: 34em
}

.hm-promise {
  background: linear-gradient(135deg, #cdd8c6, #e4eadd)
}

.hm-promise .np-script--lg {
  transform: rotate(-4deg);
  display: inline-block
}

.hm-stagger>div:nth-child(even) {
  margin-top: 46px
}

.hm-tile {
  display: block;
  overflow: hidden;
  border-radius: 999px 999px 20px 20px
}

.hm-tile img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .8s ease
}

.hm-tile:hover img {
  transform: scale(1.07)
}

.hm-reviews {
  position: relative;
  overflow: hidden;
  color: #f6ece7;
  text-align: center;
  background: linear-gradient(rgb(36 18 26 / 52%), rgb(36 18 26 / 72%)), url(../images/home/bg-review.jpg) center / cover fixed;
}

.hm-reviews h2 {
  color: #fff
}

.hm-reviews .np-script {
  color: var(--c-blush)
}

.hm-review {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 10px 10px
}

.hm-review blockquote {
  margin: 0 0 14px;
  font-family: var(--f-head);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  line-height: 1.4;
  color: #fff
}

.hm-review cite {
  font-style: normal;
  letter-spacing: .06em;
  color: var(--c-blush)
}

.hm-reviews .owl-dots {
  margin-top: 18px
}

.hm-reviews .owl-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35)
}

.hm-reviews .owl-dot.active span {
  background: var(--c-blush)
}

.hm-offer {
  background: var(--c-cream)
}

.hm-offer__art {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px
}

.hm-offer__art::before {
  content: "";
  position: absolute;
  inset: 0 0 0 18%;
  border-radius: 50%;
  background: var(--c-rose)
}

.hm-offer__art img.card {
  position: relative;
  z-index: 1;
  width: 78%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px 26px 26px 10px;
  transform: rotate(-5deg);
  box-shadow: -10px 18px 40px rgba(74, 36, 51, .25)
}

/*---------- 4b. ABOUT ----------*/
.ab-values {
  background: var(--c-cream)
}

.ab-hours {
  list-style: none;
  margin: 0;
  padding: 0
}

.ab-hours li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #cdb4ab
}

.ab-hours li:last-child {
  border: 0
}

.ab-logos {
  display: flex;
  gap: 16px;
  margin-top: 26px
}

.ab-logos img {
  width: calc(50% - 8px);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(74, 36, 51, .15)
}

/*---------- 4c. SERVICES ----------*/
/*---------- 4c. SERVICES ----------*/
.sv-tabs {
  gap: 10px;
  margin-bottom: 46px;
}

.sv-tabs .nav-link {
  padding: .5em 1.5em;
  border: 1px solid var(--c-blush);
  border-radius: 50px;
  background: #fff;
  color: var(--c-primary);
}

.sv-tabs .nav-link:hover {
  border-color: var(--c-primary);
}

.sv-tabs .nav-link.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.sv-menu {
  border-radius: 26px 120px 26px 26px;
}

/* Dòng chấm nằm giữa tên và giá */
.sv-dots {
  margin: 0 10px .35em;
  border-bottom: 1px dotted #d9b9b0;
}

.sv-price {
  font: 600 1.35rem var(--f-head);
  color: var(--c-primary);
}

/* Khung ảnh bên phải */
.sv-img {
  position: relative;
  max-width: 360px;
  height: 100%;
  min-height: 340px;
  margin: 0 auto;
}

.sv-img::before,
.sv-img img {
  border-radius: 999px 999px 24px 24px;
}

.sv-img::before {
  content: "";
  position: absolute;
  inset: 26px -22px -22px 26px;
  aspect-ratio: 1;
  background: var(--c-sage);
}

.sv-img img {
  position: relative;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid var(--c-cream);
}

/*---------- 4d. GALLERY ----------*/
.gl-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none
}

.gl-filter li {
  padding: .45em 1.4em;
  border: 1px solid var(--c-blush);
  border-radius: 50px;
  background: #fff;
  color: var(--c-primary);
  cursor: pointer;
  transition: var(--ease)
}

.gl-filter li:hover,
.gl-filter li.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff
}

.gl-grid {
  margin: 0 -10px
}

.gl-item {
  width: 33.333%;
  padding: 10px
}

.gl-item a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px
}

.gl-item:nth-child(3n+1) a {
  /* border-radius: 150px 150px 18px 18px */
}

.gl-item img {
  width: 100%;
  transition: transform .8s ease
}

.gl-item a:hover img {
  transform: scale(1.06)
}

.gl-item a::after {
  content: "\f002";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 1.5rem "Font Awesome 5 Free";
  color: #fff;
  background: rgba(74, 36, 51, .4);
  opacity: 0;
  transition: var(--ease)
}

.gl-item a:hover::after {
  opacity: 1
}

/*---------- 4e. CONTACT ----------*/
.ct-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px
}

.ct-item:last-child {
  margin-bottom: 0
}

.ct-item i {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-blush);
  color: var(--c-primary)
}

.ct-info {
  border-radius: 88px 26px 26px 26px;
  padding-top: clamp(40px, 6vw, 64px)
}

.ct-visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 26px
}

.ct-visual>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.ct-visual__card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 22px 26px;
  border-radius: 20px;
  background: rgba(251, 246, 241, .95);
  box-shadow: 0 12px 36px rgba(74, 36, 51, .2)
}

/*---------- 5. ANIMATION ----------*/
@keyframes np-rise {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes np-sway {

  0%,
  100% {
    transform: rotate(var(--r, 0deg))
  }

  50% {
    transform: rotate(calc(var(--r, 0deg) + 2.5deg))
  }
}

.hm-hero__content>* {
  animation: np-rise .9s both
}

.hm-hero__content>*:nth-child(2) {
  animation-delay: .12s
}

.hm-hero__content>*:nth-child(3) {
  animation-delay: .24s
}

.hm-hero__content>*:nth-child(4) {
  animation-delay: .36s
}

.hm-hero .np-deco {
  animation: np-sway 9s ease-in-out infinite;
  transform-origin: bottom center
}

/*---------- 6. RESPONSIVE ----------*/
@media (max-width:991.98px) {
  .np-nav>.container {
    flex-wrap: wrap
  }

  .np-nav .navbar-collapse {
    padding: 6px 0 20px;
    text-align: center;
    border-top: 1px solid var(--c-blush)
  }

  .np-nav .navbar-nav {
    margin-bottom: 14px
  }

  .np-nav .nav-link::after {
    display: none
  }

  .np-nav .nav-link.active {
    color: var(--c-accent)
  }

  html {
    scroll-padding-top: 70px
  }

  .hm-hero__img {
    margin: 44px auto 0
  }

  .np-banner {
    grid-template-columns: 1fr;
    min-height: 0
  }

  .np-banner__text {
    padding: 44px 24px
  }

  .np-banner__media {
    height: 240px
  }

  .np-frame {
    margin-bottom: 50px
  }

  .gl-item {
    width: 50%
  }

  .hm-reviews {
    background-attachment: scroll
  }

  .hm-stagger>div:nth-child(even) {
    margin-top: 0
  }

  .np-deco--hide-md {
    display: none
  }
}

@media (max-width:767.98px) {
  .np-banner__media {
    display: none
  }
}

@media (max-width:575.98px) {
  .gl-item {
    width: 100%
  }

  .np-topbar .np-topbar__hours {
    display: none
  }

  .hm-hero__badge {
    width: 112px;
    height: 112px;
    font-size: .92rem;
    right: -6px
  }

  .np-frame::before {
    inset: 30px -16px -20px 30px
  }

  .np-frame::after {
    inset: -12px 12px 12px -12px
  }
}

/*---------- 7. ACCESSIBILITY ----------*/
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}




/* ===modal====== */
.modal-content {
  display: block;
  flex-direction: inherit;
}

.modal-content .close {
  border-radius: 1rem;
  z-index: 2;
  right: -.5rem;
  top: -.3rem;
  position: absolute;
  padding: 0rem .5rem .3rem;
  opacity: 1;
  background-color: var(--c-accent);
}

#popup-ads .modal-dialog {

  top: 25%;
}

/* ===modal====== */