/* ==========================================================================
   PINK POLISH — main.css
   Rebuilt responsively from the Figma design
   Breakpoints:  desktop ≥ 1024px · tablet 640–1023px · mobile < 640px
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --cream:       #FFF9F0;   /* nền */
  --green:       #1C6044;   /* xanh chủ đạo */
  --green-deep:  #14503A;
  --pink:        #F9AECB;   /* nút hồng */
  --pink-soft:   #FBC9DC;
  --pink-pale:   #FCD9E6;
  --ink:         #2B2B2B;

  --font-display: "Libre Caslon Condensed", "Libre Caslon Text", Georgia, serif;
  --font-body:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --pad: clamp(20px, 5vw, 70px);
  --header-h: 88px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--green);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Ảnh chưa có sẵn → hiển thị khung màu thay vì icon vỡ */
img.img-missing { visibility: hidden; }
figure:has(> img.img-missing),
.hero-art:has(> img.img-missing) { background: var(--pink-pale); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color .25s ease, transform .25s ease;
}
.btn-pink { background: var(--pink); color: var(--green-deep); }
.btn-pink:hover { background: var(--pink-soft); transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Vòng tròn vẽ tay quanh chữ (GIFT?, Pink Polish!) */
.circled { position: relative; white-space: nowrap; }
.circled::after {
  content: "";
  position: absolute;
  inset: -38% -14% -38% -10%;
  border: 2px solid var(--pink);
  border-radius: 50%;
  transform: rotate(-4deg);
  pointer-events: none;
}

/* ==========================================================================
   HEADER + MENU 2 CẤP
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(28, 96, 68, .12);
  box-shadow: 0 6px 24px rgba(28, 96, 68, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}
.nav-list > li > a,
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.nav-list > li > a::after,
.submenu-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-list > li > a:hover::after,
.has-submenu:hover .submenu-toggle::after,
.has-submenu.is-open .submenu-toggle::after { transform: scaleX(1); }

/* Mục đang active: chỉ tô đậm, không gạch chân kể cả khi hover */
.nav-list > li > a.is-active { font-weight: 600; }
.nav-list > li > a.is-active::after { display: none; }

.chevron { width: 10px; height: 7px; transition: transform .25s ease; }
.has-submenu:hover .chevron,
.has-submenu.is-open .chevron { transform: rotate(180deg); }

/* --- Submenu cấp 2 (dropdown) --- */
.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 170px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 50;
}
.submenu li a {
  display: block;
  padding: 12px 18px;
  background: var(--pink);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .2s ease;
}
.submenu li a:hover { background: var(--pink-soft); }

/* Mở bằng hover (desktop) hoặc class .is-open (click/JS) */
@media (hover: hover) and (min-width: 1024px) {
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}
.has-submenu.is-open .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* --- Hamburger --- */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--green);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
/* Hero rộng hơn container chuẩn — thiết kế cho chữ trải tới ~68% trang 1920 */
.hero { padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 8vw, 100px); }
.hero > .container { max-width: 1620px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--green);
  text-align: center;
  /* Đo từ thiết kế: ~92px @1920 = 4.8vw; dòng 1 = 56.5% chiều rộng trang */
  font-size: clamp(34px, 4.7vw, 90px);
  line-height: 1.18;
}
.hero-title em { font-style: italic; }
.hero-title strong { font-weight: 600; }

.hero-line { display: block; white-space: nowrap; }
.hero-line-2 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Thiết kế: chữ ôm sát chai (gap nhỏ) */
  gap: clamp(10px, 2vw, 40px);
  margin-top: 0.1em;
}
.hero-art {
  /* Thiết kế: chai sơn lớn ~250px @1920 = 13vw, nắp chai ngang hàng chữ */
  width: clamp(96px, 12.5vw, 240px);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  margin-top: -0.08em;
  /* phần giọt sơn thò xuống dưới dòng chữ như thiết kế */
  margin-bottom: clamp(-90px, -4.5vw, -30px);
  border-radius: 8px;
  overflow: visible;
}
.hero-art img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}

.hero-gift {
  margin-top: clamp(32px, 6vw, 116px);
  text-align: center;
}
.gift-heading {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.gift-copy {
  font-size: 15px;
  margin-bottom: 26px;
}

/* ==========================================================================
   INTRO — A HOME OF INFINITE BEAUTY
   ========================================================================== */
.intro { padding: clamp(56px, 9vw, 120px) 0; }
.intro-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: clamp(12px, 4vw, 60px);
}
.paren {
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 220px);
  line-height: 1;
  color: var(--green);
  user-select: none;
}
.paren-right { align-self: end; }

.intro-body { text-align: center; max-width: 760px; margin-inline: auto; }
.intro-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.intro-body p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 640px;
  margin-inline: auto;
}
.intro-tagline {
  margin-top: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px !important;
}

/* ==========================================================================
   COMMUNITY / POLAROIDS
   ========================================================================== */
.community { padding: clamp(48px, 8vw, 110px) 0; }
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}
.community-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.35;
  margin-bottom: 34px;
}
.community-text em { font-style: italic; }

.community-photos {
  position: relative;
  min-height: clamp(340px, 42vw, 560px);
}
.polaroid {
  position: absolute;
  background: #fff;
  padding: 14px 14px 56px;
  box-shadow: 0 18px 44px rgba(28, 96, 68, .14);
  transition: transform .4s ease;
}
.polaroid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1.05;
}
.polaroid-1 {
  width: min(58%, 300px);
  top: 0; right: 0;
  transform: rotate(7deg);
  z-index: 2;
}
.polaroid-2 {
  width: min(62%, 320px);
  bottom: 0; left: 4%;
  transform: rotate(-5deg);
}
.polaroid-1:hover { transform: rotate(4deg) scale(1.02); }
.polaroid-2:hover { transform: rotate(-2deg) scale(1.02); }

/* Hoa văn lấp lánh màu hồng */
.spark {
  position: absolute;
  background: var(--pink);
  z-index: 1;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}
.spark-1 { width: 110px; height: 110px; top: 32%; left: -4%; transform: rotate(12deg); }
.spark-2 { width: 60px;  height: 60px;  bottom: 18%; right: -2%; transform: rotate(-18deg); }

/* ==========================================================================
   MISSION / VISION / CONTACT — các hàng có kẻ ngang
   ========================================================================== */
.info-rows { padding: clamp(40px, 7vw, 90px) 0; }
.info-row {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: clamp(24px, 5vw, 80px);
    padding: clamp(28px, 4vw, 48px) 0;
    border-top: 1px solid #FFBED1;
}
.info-rows .container > .info-row:last-child {
    border-bottom: 1px solid #FFBED1;
}
.info-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
}
.info-label em {
  font-family: var(--font-display);
  font-style: italic;
}
.info-content p {
  font-size: 14px;
  line-height: 1.75;
  text-align: justify;
}
.info-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 40px;
}
.info-contact p { text-align: left; margin-bottom: 12px; }
.info-parking { grid-column: 1 / -1; }
.link-underline { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   CUSTOMER FEEDBACK
   ========================================================================== */
.feedback { padding: clamp(48px, 8vw, 110px) 0; }
.feedback-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

/* --- Carousel đánh giá: vuốt được, tự chạy, dots hồng --- */
.fb-carousel { min-width: 0; }
.fb-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - clamp(14px, 2.25vw, 32px));
  gap: clamp(28px, 4.5vw, 64px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.fb-track::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.fb-track .review { scroll-snap-align: start; }
.fb-dots {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 32px);
}
/* Khi nhiều trang: chỉ hiện tối đa 5 dots, trượt như Instagram */
.fb-dots.is-windowed {
  width: 90px;               /* 5 dots x 10px + 4 khoảng cách x 10px */
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}
.fb-dots-row {
  display: flex;
  gap: 10px;
  transition: transform .3s ease;
}
.fb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--pink);
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.fb-dot:hover { transform: scale(1.25); }
.fb-dot.is-active { background: var(--pink); }
.fb-dot.is-small { transform: scale(0.55); }   /* chấm mép: còn trang phía sau */

.review-photo {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--pink-pale);
}
.review-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.review:hover .review-photo img { transform: scale(1.04); }
.review p {
  font-size: 13.5px;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 16px;
}
.review-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   NEWSLETTER / BLOG
   ========================================================================== */
.newsletter { padding: clamp(56px, 9vw, 130px) 0; }
.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.newsletter-art {
  position: relative;
  min-height: clamp(320px, 38vw, 460px);
}
.envelope {
  position: absolute;
  width: 62%;
  aspect-ratio: 1.25 / 1;
  left: 0; bottom: 6%;
  background: var(--pink-soft);
  transform: rotate(-8deg);
  box-shadow: 0 16px 40px rgba(28, 96, 68, .12);
}
.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 6%, 50% 58%, 0 6%);
}
.notecard {
  position: absolute;
  width: 58%;
  right: 6%; top: 0;
  background: #FBF7EA;
  padding: 28px 22px 20px;
  transform: rotate(4deg);
  box-shadow: 0 20px 48px rgba(28, 96, 68, .16);
  color: #4A4A3F;
  text-align: center;
}
.notecard-byline { font-size: 10px; letter-spacing: 0.08em; margin-bottom: 14px; }
.notecard-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
  margin-bottom: 18px;
}
.notecard ol {
  list-style: decimal;
  list-style-position: inside;
  font-size: 11.5px;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.notecard-dots { letter-spacing: 6px; }

.newsletter-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.3;
  margin-bottom: 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/*.site-footer {
      padding: clamp(48px, 7vw, 90px) 0 28px;
    border-top: 1px solid #FFBED1;
    
}*/
.site-footer {
    padding: clamp(48px, 7vw, 90px) 0 28px;
}

    .site-footer > .container {
        border-top: 1px solid #FFBED1;
        padding-top: clamp(48px, 7vw, 10px);
    }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 40px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.15;
  transition: opacity .2s ease;
  word-break: break-word;
}
.footer-big:hover { opacity: .75; }

.footer-mid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px 48px;
  padding: 28px 0;
/*  border-top: 1px solid rgba(28, 96, 68, .2);*/
  font-size: 13.5px;
}
.footer-mid address { font-style: normal; }
.footer-hours { text-align: center; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: flex-end;
  align-content: start;
}
.footer-nav a { font-size: 13px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(28, 96, 68, .2);
  font-size: 12.5px;
}
.footer-social { display: flex; align-items: center; gap: 14px; }
.social-dot {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--green-deep);
  transition: background-color .2s ease;
}
.social-dot:hover { background: var(--pink-soft); }
.social-dot svg { width: 17px; height: 17px; }

/* ==========================================================================
   SCROLL REVEAL (JS thêm .is-visible)
   ========================================================================== */
/* Chỉ ẩn để chờ reveal khi JS hoạt động (html.js) — nếu JS tắt, nội dung vẫn hiển thị bình thường */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   TABLET  (≤ 1023px)
   ========================================================================== */
@media (max-width: 1023px) {

  /* --- Menu chuyển sang dạng trượt --- */
  .nav-burger { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    height: calc(100dvh - var(--header-h));
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px var(--pad) 48px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 90;
  }
  .main-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list > li {
    border-bottom: 1px solid rgba(28, 96, 68, .15);
  }
  .nav-list > li > a,
  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 16px;
  }
  .nav-list > li > a::after,
  .submenu-toggle::after { display: none; }

  /* Submenu cấp 2 trên mobile: accordion */
  .submenu {
    position: static;
    translate: none;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .has-submenu.is-open .submenu { max-height: 300px; }
  .submenu li a {
    text-align: left;
    padding: 14px 20px;
    margin-bottom: 2px;
  }

  .nav-cta {
    margin-top: 28px;
    text-align: center;
    padding: 14px 26px;
  }

  /* --- Layout --- */
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-label { grid-column: auto; }

  .footer-mid { grid-template-columns: 1fr 1fr; }
  .footer-hours { text-align: left; }
  .footer-nav { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ==========================================================================
   MOBILE  (≤ 639px)
   ========================================================================== */
@media (max-width: 639px) {
  :root { --header-h: 72px; }

  .logo-mark { height: 32px; width: auto; }

  .hero-title { font-size: clamp(30px, 9vw, 38px); }
  .hero-line { white-space: normal; }
  .hero-line-2 {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-art { width: 150px; order: 3; margin: 18px 0 0; }

  .intro-grid { grid-template-columns: 1fr; }
  .paren { display: none; }
  .intro-body p { text-align: left; }

  .community-grid { grid-template-columns: 1fr; }
  .community-photos { min-height: 380px; margin-top: 8px; }

  .info-row { grid-template-columns: 1fr; gap: 14px; }
  .info-content p { text-align: left; }

  .feedback-grid { grid-template-columns: 1fr; }
  .fb-track { grid-auto-columns: 100%; }   /* mobile: mỗi lần 1 đánh giá */
  .review p { text-align: left; }

  .newsletter-grid { grid-template-columns: 1fr; }
  .newsletter-art { min-height: 320px; order: 2; }

  .footer-top { flex-direction: column; }
  .footer-mid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
