/* ============================================
   VIKTORIA NAILS — SECTION STYLES
   Hero, Services, About, Gallery, Testimonials,
   Booking, Contact, Footer
   ============================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
}

/* Gradient overlay for text readability */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(253, 249, 245, 0.75) 0%,
    rgba(253, 249, 245, 0.4) 50%,
    rgba(253, 249, 245, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding: var(--space-8);
  background: rgba(253, 249, 245, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 4px solid var(--primary);
}

@media (min-width: 1024px) {
  .hero__content {
    padding: var(--space-16);
  }
}

.hero__title {
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  color: var(--on-surface-variant);
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
  }
}

/* ── SERVICES ── */
.services {
  background-color: var(--surface-container-low);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* ── ABOUT ── */
.about__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .about__layout {
    flex-direction: row;
    align-items: center;
    gap: var(--space-24);
  }
}

.about__image-wrapper {
  width: 100%;
  position: relative;
}

@media (min-width: 1024px) {
  .about__image-wrapper {
    width: 50%;
  }
}

.about__image-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-editorial);
}

.about__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out-expo);
}

.about__image-frame:hover img {
  transform: scale(1.03);
}

/* Decorative frame element */
.about__deco-frame {
  display: none;
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 16rem;
  height: 16rem;
  border: 12px solid var(--surface-container-high);
  z-index: -1;
}

@media (min-width: 1024px) {
  .about__deco-frame {
    display: block;
  }
}

.about__text {
  width: 100%;
}

@media (min-width: 1024px) {
  .about__text {
    width: 50%;
  }
}

.about__eyebrow {
  color: var(--primary);
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8125rem;
  margin-bottom: var(--space-4);
}

.about__title {
  margin-bottom: var(--space-8);
}

.about__description {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.about__quote {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  color: var(--on-surface-variant);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

/* ── GALLERY ── */
.gallery {
  background-color: var(--surface-container);
}

.gallery__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .gallery__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.gallery__header p {
  color: var(--on-surface-variant);
}

/* Gallery filter tabs */
.gallery__filters {
  display: none;
  gap: var(--space-6);
}

.gallery__filter-btn {
  background: none;
  border: none;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding-bottom: var(--space-1);
  transition: color var(--duration-normal);
  border-bottom: 2px solid transparent;
}

.gallery__filter-btn:hover,
.gallery__filter-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (min-width: 768px) {
  .gallery__filters {
    display: flex;
  }
}

/* Masonry Grid */
.gallery__grid {
  columns: 1;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .gallery__grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery__grid {
    columns: 3;
  }
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--space-6);
}

.gallery__item img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-editorial);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  cursor: pointer;
}

.gallery__item img:hover {
  transform: scale(1.02);
}

/* ── TESTIMONIALS CAROUSEL ── */
.testimonials__carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.testimonials__track {
  display: flex;
  gap: var(--space-6);
  animation: testimonial-scroll 40s linear infinite;
  width: max-content;
}

.testimonials__carousel:hover .testimonials__track {
  animation-play-state: paused;
}

.testimonials__track .testimonial-card {
  flex-shrink: 0;
  width: 20rem;
}

@media (min-width: 768px) {
  .testimonials__track .testimonial-card {
    width: 24rem;
  }
}

@keyframes testimonial-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── BOOKING ── */
.booking {
  background-color: var(--surface-bright);
  position: relative;
}

/* Lower half background split */
.booking::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--surface-container-low);
  z-index: 0;
}

.booking__card {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin-inline: auto;
  background-color: var(--surface-container-lowest);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-editorial);
}

@media (min-width: 768px) {
  .booking__card {
    padding: var(--space-16) var(--space-20);
  }
}

.booking__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.booking__form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .booking__form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.booking__submit {
  padding-top: var(--space-4);
  text-align: center;
}

/* Mobile sticky submit */
@media (max-width: 767px) {
  .booking__submit {
    position: sticky;
    bottom: 4.5rem; /* above bottom nav */
    z-index: var(--z-sticky);
    background: var(--surface-container-lowest);
    padding: var(--space-4);
    margin: 0 calc(-1 * var(--space-10));
    margin-bottom: calc(-1 * var(--space-10));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  }
}

/* Form success state */
.booking__success {
  display: none;
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.booking__success.is-visible {
  display: block;
}

.booking__success .material-symbols-outlined {
  font-size: 3rem;
  color: #16a34a;
  margin-bottom: var(--space-4);
  font-variation-settings: 'FILL' 1;
}

.booking__success h3 {
  margin-bottom: var(--space-4);
}

.booking__success p {
  max-width: 28rem;
  margin-inline: auto;
}

/* ── CONTACT & MAP ── */
.contact__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact__layout {
    flex-direction: row;
    gap: var(--space-16);
  }
}

.contact__map {
  width: 100%;
  height: 20rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-editorial);
  background-color: var(--surface-container);
}

@media (min-width: 1024px) {
  .contact__map {
    width: 66.666%;
    height: 31.25rem;
  }
}

.contact__map-inner {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  transition: filter var(--duration-slow);
}

.contact__map-inner:hover {
  filter: grayscale(0);
}

.contact__map-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .contact__info {
    width: 33.333%;
  }
}

.contact__info h2 {
  margin-bottom: var(--space-10);
}

.contact__info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* ── FOOTER ── */
.footer {
  background-color: var(--surface-container-high);
  padding-top: var(--space-16);
  padding-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .footer {
    padding-bottom: var(--space-12);
  }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--on-surface);
  margin-bottom: var(--space-8);
}

.footer__links {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  color: var(--outline);
  transition: color var(--duration-normal);
}

.footer__links a:hover {
  color: var(--on-surface);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: var(--outline-variant);
  opacity: 0.3;
  margin-bottom: var(--space-8);
}

.footer__copyright {
  color: var(--primary);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}

.footer__socials {
  display: flex;
  gap: var(--space-4);
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(208, 197, 181, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary);
  transition: all var(--duration-normal);
}

.footer__social-icon:hover {
  background: var(--gradient-gold-subtle);
  border-color: var(--primary-container);
}

/* ── Body padding for bottom nav ── */
body {
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ── Lightbox Overlay ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(28, 28, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--duration-normal);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__close .material-symbols-outlined {
  font-size: 2rem;
}
