/* ============================================
   NAILARTIST_GAPANOVICH — style.css
   Mobile-first. No frameworks.
============================================ */

/* --- TOKENS --- */
:root {
  --bg:           #FAF8F5;
  --bg-alt:       #F0EDE8;
  --accent:       #6B1E2E;
  --accent-hover: #8F2A3D;
  --text:         #1C1C1C;
  --text-muted:   #6E6E6E;
  --white:        #FFFFFF;
  --gold:         #C9A96E;
  --border:       rgba(107, 30, 46, 0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --radius:     4px;
  --ease:       0.3s ease;
  --container:  1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; padding: 0; }

/* Offset for sticky navbar */
[id] { scroll-margin-top: 80px; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), opacity var(--ease);
  white-space: nowrap;
  min-height: 48px;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--white); }

.btn--light {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn--light:hover { background: var(--bg); border-color: var(--bg); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* --- FOCUS --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--ease), box-shadow var(--ease);
}

.navbar.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color var(--ease);
  flex-shrink: 0;
}
.navbar.scrolled .navbar__logo { color: var(--text); }

.navbar__links {
  display: none;
  align-items: center;
  gap: 36px;
}
.navbar__links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--ease);
}
.navbar__links a:hover { color: var(--white); }
.navbar.scrolled .navbar__links a { color: var(--text-muted); }
.navbar.scrolled .navbar__links a:hover { color: var(--text); }

.navbar__cta {
  display: none;
  padding: 10px 20px;
  font-size: 11px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.navbar.scrolled .navbar__cta {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  backdrop-filter: none;
}
.navbar__cta:hover { opacity: 0.85; }

.navbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
}
.navbar__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: background var(--ease);
}
.navbar.scrolled .navbar__burger span { background: var(--text); }

@media (min-width: 900px) {
  .navbar__links { display: flex; }
  .navbar__cta   { display: inline-flex; }
  .navbar__burger { display: none; }
}

/* =====================
   MOBILE MENU
===================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: color var(--ease);
}
.mobile-menu__close:hover { color: var(--text); }

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 32px;
  transition: color var(--ease);
}
.mobile-menu__link:hover { color: var(--accent); }

.mobile-menu__cta {
  min-width: 200px;
}

/* =====================
   SECTIONS (shared)
===================== */
.section {
  padding: 64px 0;
}
.section--alt { background: var(--bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

/* =====================
   HERO
===================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 4, 6, 0.80) 0%,
    rgba(8, 4, 6, 0.35) 45%,
    rgba(8, 4, 6, 0.08) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
}

.hero__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 9vw, 100px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.hero__sub {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   MARQUEE
===================== */
.marquee {
  background: var(--accent);
  padding: 13px 0;
  overflow: hidden;
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee__item {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.marquee__sep {
  color: var(--gold);
  font-size: 9px;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================
   GALLERY
===================== */
.gallery {
  columns: 2;
  column-gap: 10px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery__img {
  width: 100%;
  display: block;
  transition: transform 0.55s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.04);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(107, 30, 46, 0);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: background var(--ease);
}

.gallery__overlay span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--ease);
}

.gallery__item:hover .gallery__overlay {
  background: rgba(107, 30, 46, 0.38);
}
.gallery__item:hover .gallery__overlay span {
  opacity: 1;
}

@media (min-width: 600px) {
  .gallery { columns: 3; column-gap: 12px; }
  .gallery__item { margin-bottom: 12px; }
}

/* =====================
   SERVICES
===================== */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow var(--ease);
}
.service-card:hover {
  box-shadow: 0 4px 24px rgba(107, 30, 46, 0.1);
}

.service-card__icon {
  font-size: 18px;
  color: var(--gold);
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}

.service-card__list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}
.service-card__list li:last-child { border-bottom: none; }

.service-card__list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.services__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.services__note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(107, 30, 46, 0.25);
  transition: border-color var(--ease);
}
.services__note a:hover { border-color: var(--accent); }

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); }
}

/* =====================
   ABOUT
===================== */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__text {
  color: var(--text-muted);
  line-height: 1.8;
}

.about__stats {
  display: flex;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; }
}

/* =====================
   REVIEWS
===================== */
.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card__stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 3px;
}

.review-card__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  flex: 1;
}

.review-card__author {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 768px) {
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* =====================
   BOOKING
===================== */
.booking {
  background: var(--accent);
  padding: 88px 0;
}

.booking__inner {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
}

.booking__label { color: rgba(255, 255, 255, 0.55); }

.booking__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.booking__sub {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  font-size: 15px;
}

.booking__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.booking__btn {
  min-width: 152px;
}

.booking__info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* =====================
   FOOTER
===================== */
.footer {
  background: #111010;
  color: rgba(255, 255, 255, 0.5);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 52px;
  padding-bottom: 52px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 13px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--ease);
}
.footer__nav a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: color var(--ease), border-color var(--ease);
}
.footer__social a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr;
    align-items: start;
  }
}

/* Account for sticky bar on mobile */
@media (max-width: 899px) {
  .footer__bottom { padding-bottom: 84px; }
}

/* =====================
   STICKY BAR (mobile)
===================== */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 10px 16px;
  background: var(--bg);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-bar.visible { transform: translateY(0); }

.sticky-bar__btn {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius);
  min-height: 50px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.sticky-bar__btn:hover { background: var(--accent-hover); }

@media (min-width: 900px) {
  .sticky-bar { display: none; }
}

/* =====================
   LIGHTBOX
===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 4, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  user-select: none;
}

.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--ease);
}
.lightbox__close:hover { color: var(--white); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--ease);
}
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--white); }

/* =====================
   REVEAL ANIMATION
===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside same parent */
.gallery__item:nth-child(2)  { transition-delay: 0.05s; }
.gallery__item:nth-child(3)  { transition-delay: 0.10s; }
.gallery__item:nth-child(4)  { transition-delay: 0.15s; }
.gallery__item:nth-child(5)  { transition-delay: 0.20s; }
.gallery__item:nth-child(6)  { transition-delay: 0.25s; }
.gallery__item:nth-child(7)  { transition-delay: 0.30s; }
.gallery__item:nth-child(8)  { transition-delay: 0.35s; }
.service-card:nth-child(2)   { transition-delay: 0.10s; }
.service-card:nth-child(3)   { transition-delay: 0.20s; }
.service-card:nth-child(4)   { transition-delay: 0.30s; }
.review-card:nth-child(2)    { transition-delay: 0.10s; }
.review-card:nth-child(3)    { transition-delay: 0.20s; }

/* =====================
   SCROLLBAR
===================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(107, 30, 46, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
