/* ==========================================================================
   Beauty Clinic — Landing Page
   ========================================================================== */

/* Fonts (self-hosted) */
@font-face {
  font-family: "Noto Sans Georgian"; src: url("../fonts/noto-sans-georgian.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F;
}
@font-face {
  font-family: "Noto Sans Georgian"; src: url("../fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}
@font-face {
  font-family: "Noto Serif Georgian"; src: url("../fonts/noto-serif-georgian.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F;
}
@font-face {
  font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

:root {
  --bg: #FFF8F1;
  --gold: #B58A4A;
  --gold-dark: #8E6930;
  --brown: #3B2114;
  --brown-soft: #6E5240;
  --cream: #F4E6D6;
  --cream-2: #FBF2E8;
  --line: #E8D7C2;
  --hero-a: #F3E0D1;
  --hero-b: #F8EBDF;
  --sans: "Noto Sans Georgian", system-ui, sans-serif;
  --serif: "Noto Serif Georgian", "Noto Sans Georgian", Georgia, serif;
  --header-h: 92px;
  --radius: 22px;
  --gutter: clamp(16px, 4.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--brown);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(100deg, #B58A4A, #A87C3F);
  color: #fff; font-weight: 500; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(120, 82, 32, .55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 24px -10px rgba(120, 82, 32, .65); }
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--sm { padding: 10px 24px; font-size: 16px; }
.btn--lg { padding: 13px 44px 13px 34px; font-size: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #F6E8DB, #F9EEE3 60%, #F6E8DB);
  border-bottom: 1px solid #E2CBA8;
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(59, 33, 20, .4); }
.site-header__inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 16px; margin-right: auto; min-width: 0; }
.brand__mark { width: 82px; height: 82px; margin-block: -6px; color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font: 500 clamp(21px, 2.4vw, 28px)/1.1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .06em; color: var(--brown); white-space: nowrap;
}
.brand__tag {
  margin-top: 5px; font: 500 clamp(9.5px, 1.05vw, 12.5px)/1.2 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .13em; color: var(--gold-dark); white-space: nowrap;
}

.nav { display: flex; gap: clamp(20px, 3vw, 40px); margin-right: clamp(16px, 4vw, 48px); }
.nav__link {
  position: relative; padding: 10px 0; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: color .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover { color: var(--gold-dark); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 12px 10px; flex: none;
  background: none; border: 0; cursor: pointer; color: var(--brown);
}
.nav-toggle span {
  display: block; height: 2px; margin: 4px 0; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(460px, 42vw, 680px);
  background: linear-gradient(100deg, var(--hero-a), var(--hero-b) 55%, #F1E1D2);
}
.hero__photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 59%; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.hero__content { position: relative; padding-block: clamp(36px, 4.6vw, 72px) clamp(84px, 9vw, 130px); }
.hero__title {
  font: 500 clamp(30px, 4vw, 58px)/1.3 var(--serif); letter-spacing: .005em;
}
.hero__lead {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(14px, 1.6vw, 21px); line-height: 1.65; color: #6B4526;
}
.hero__rule { display: block; width: 132px; height: 1px; margin-block: clamp(20px, 3vw, 40px); background: var(--gold); opacity: .7; }
.hero__address {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  font-size: clamp(14px, 1.4vw, 17px); font-weight: 500;
}
.hero__address .icon { width: 22px; height: 22px; color: #5A2E12; flex: none; }
.hero__wave { position: absolute; inset: auto 0 -1px 0; width: 100%; height: clamp(58px, 9.5vw, 130px); }
.hero__wave-fill { fill: var(--bg); }
.hero__wave-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Section titles */
.section-title { font: 500 clamp(26px, 3vw, 38px)/1.25 var(--serif); }
.section-title--center {
  white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center;
}
.section-title--center::before, .section-title--center::after {
  content: ""; flex: 0 1 180px; height: 1px;
}
.section-title--center::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.section-title--center::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* Services */
.services { padding-block: 0 clamp(30px, 3.2vw, 46px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.3vw, 30px); margin-top: clamp(20px, 2.6vw, 32px); }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-2); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -28px rgba(59, 33, 20, .55); }
.card__photo { width: 100%; aspect-ratio: 291 / 197; object-fit: cover; }
.card__body {
  position: relative; flex: 1; margin-top: -14px; padding: 48px 10px 20px; text-align: center;
  background: var(--cream-2); border-radius: var(--radius) var(--radius) 0 0;
}
.card__icon {
  position: absolute; top: -38px; left: 50%; width: 78px; height: 78px; margin-left: -39px;
  display: grid; place-items: center; border-radius: 50%; background: var(--cream-2);
}
.card__icon svg { width: 50px; height: 50px; color: #6A4417; }
.card__title { font: 600 clamp(16px, 1.75vw, 21px)/1.35 var(--serif); }
.card__text { max-width: 26ch; margin: 10px auto 0; color: #7A5A3F; font-size: clamp(15px, 1.35vw, 17px); }

/* Why us */
.why { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--bg), #FCF1E7); }
.why__photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 56.5%; }
.why__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.why__inner { min-height: clamp(330px, 28.2vw, 440px); display: flex; align-items: center; padding-block: 16px; }
.why__content { width: 47%; padding-right: clamp(0px, 2vw, 28px); }
.why__list { margin-top: clamp(14px, 1.8vw, 24px); display: grid; gap: 6px; }
.why__list li { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 26px); font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; }
.why__icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); }
.why__icon svg { width: 34px; height: 34px; color: #7D5620; }

/* Contact */
.contact { padding-block: clamp(14px, 1.6vw, 20px) 0; }
.contact__box {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4.5vw, 48px);
  min-height: 80px; padding: 14px clamp(20px, 4vw, 48px); border-radius: 34px;
  background: var(--cream);
}
.contact__item { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.contact__icon { width: 36px; height: 36px; flex: none; color: #5A2E12; }
.contact__icon--pin { width: 42px; height: 42px; }
.contact__address { font-size: clamp(16px, 1.8vw, 19px); font-weight: 600; }
.contact__divider { align-self: stretch; width: 1px; margin-block: 6px; background: var(--gold); opacity: .7; flex: none; }
.contact__phone { font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; line-height: 1.1; white-space: nowrap; transition: color .2s ease; }
.contact__phone:hover { color: var(--gold-dark); }

/* Footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(16px, 2vw, 24px); }
.site-footer__leaves { position: absolute; z-index: -1; left: 0; bottom: clamp(16px, 3vw, 40px); width: clamp(70px, 10.5vw, 120px); height: auto; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.features li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px clamp(10px, 2vw, 24px); text-align: center; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.45;
}
.features li + li::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: #C9AE8A;
}
.features svg { width: 40px; height: 40px; color: #7D5620; }
.features span { max-width: 22ch; }
.site-footer__wave { width: 100%; height: clamp(60px, 10vw, 118px); margin-top: 8px; position: relative; z-index: -2; }

/* Tablet */
@media (max-width: 1180px) {
  .brand { gap: 12px; }
  .brand__mark { width: 68px; height: 68px; }
  .nav { gap: 22px; margin-right: 8px; }
  .nav__link { font-size: 14px; }
}

@media (max-width: 1020px) {
  :root { --header-h: 76px; }
  .brand__mark { width: 60px; height: 60px; }
  .nav { gap: 16px; margin-right: 0; }
  .nav__link { font-size: 13.5px; }
  .btn--sm { padding: 9px 16px; font-size: 14px; gap: 8px; }
  .site-header__inner { gap: 16px; }
  .card__text { font-size: 14.5px; }
  .contact__box { gap: 18px; padding-inline: 20px; }
  .contact__item { gap: 14px; }
  .contact__address { font-size: 15px; white-space: nowrap; }
  .contact__phone { font-size: 26px; }
}

@media (max-width: 859px) {
  /* Collapsible menu */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 6px var(--gutter) 14px; background: #FBF1E7; border-bottom: 1px solid #E2CBA8;
    box-shadow: 0 18px 28px -22px rgba(59, 33, 20, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__link { padding: 13px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--gold-dark); }
  .nav-toggle { display: block; margin-right: -8px; }
  .site-header__inner { gap: 8px; }
}

/* Mobile */
@media (max-width: 759px) {
  body { font-size: 16px; }
  .hero { min-height: 0; display: flex; flex-direction: column; background: var(--hero-b); }
  .hero__content { order: 1; padding-block: 28px 8px; }
  .hero__photo { order: 2; position: relative; z-index: 0; inset: auto; width: 100%; aspect-ratio: 4 / 3; margin-top: -8px; }
  .hero__photo img {
    object-position: 72% 40%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  }
  .hero__title { font-size: min(calc((100vw - 32px) / 11.9), 44px); }
  .hero__lead { font-size: 16px; }
  .hero__lead br { display: none; }
  .hero__rule { margin-block: 18px; }
  .btn--lg { padding-inline: 34px; }
  .hero__address { font-size: 14.5px; margin-top: 18px; }
  .hero__wave { z-index: 1; height: 54px; }

  .section-title--center::before, .section-title--center::after { flex-basis: 56px; }
  .services { padding-top: 16px; }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .card__text { font-size: 16px; }

  .why { display: flex; flex-direction: column; }
  .why__inner { order: 1; min-height: 0; padding-block: 8px 20px; }
  .why__content { width: 100%; padding: 0; }
  .why__photo { order: 2; position: relative; inset: auto; z-index: 0; width: 100%; aspect-ratio: 16 / 10; }
  .why__photo img { -webkit-mask-image: none; mask-image: none; object-position: 70% 50%; }

  .contact { padding-top: 22px; }
  .contact__box { flex-direction: column; gap: 14px; padding: 22px 18px; border-radius: 26px; }
  .contact__item { gap: 12px; }
  .contact__address { font-size: 16px; white-space: normal; }
  .contact__phone { font-size: 30px; }
  .contact__divider { align-self: center; width: 120px; height: 1px; margin: 0; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 18px; margin-top: 8px; }
  .features li:nth-child(3)::before { display: none; }
}

@media (max-width: 460px) {
  .header-call { width: 44px; height: 44px; padding: 0; }
  .header-call__num { display: none; }
  .brand__mark { width: 50px; height: 50px; }
  .brand { gap: 9px; }
  .brand__name { font-size: 20px; letter-spacing: .04em; }
  .brand__tag { font-size: 8.5px; letter-spacing: .08em; margin-top: 3px; }
}

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