/* ========================================
   Buds Nails - Style Sheet
   ======================================== */

/* --- Custom Properties --- */
:root {
  --clr-blush: #F5E6E0;
  --clr-rose: #D4A0A0;
  --clr-mauve: #8B6F6F;
  --clr-cream: #FFF9F7;
  --clr-charcoal: #3D3535;
  --clr-gold: #C9A96E;
  --clr-white: #ffffff;

  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Lato', 'Segoe UI', sans-serif;
  --ff-accent: 'Dancing Script', cursive;

  --fs-h1: clamp(2.2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3.5vw, 2.4rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --radius: 12px;
  --shadow: 0 2px 16px rgba(61, 53, 53, 0.08);
  --shadow-hover: 0 4px 24px rgba(61, 53, 53, 0.14);
  --transition: 0.3s ease;

  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--clr-charcoal);
  background: var(--clr-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--clr-mauve);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-gold);
}

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--clr-cream);
}

.section__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--clr-charcoal);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  text-align: center;
  color: var(--clr-charcoal);
  margin-bottom: 2.5rem;
  font-size: var(--fs-body);
  opacity: 0.75;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-body);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--clr-rose);
  color: var(--clr-white);
}

.btn--primary:hover {
  background: var(--clr-mauve);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-mauve);
  border: 2px solid var(--clr-rose);
}

.btn--secondary:hover {
  background: var(--clr-rose);
  color: var(--clr-white);
}

.btn--full {
  width: 100%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(61, 53, 53, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-accent);
  font-size: 1.6rem;
  color: var(--clr-mauve);
  font-weight: 700;
}

.nav__logo:hover {
  color: var(--clr-gold);
}

.nav__logo-img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity var(--transition);
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.8;
}

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-charcoal);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-gold);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-mauve);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--clr-blush) 0%, var(--clr-cream) 50%, var(--clr-blush) 100%);
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 160, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__greeting {
  font-family: var(--ff-accent);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--clr-rose);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  color: var(--clr-charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero__brand {
  color: var(--clr-rose);
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--clr-charcoal);
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.7;
}

/* --- Fade-in animation --- */
.fade-in {
  animation: fadeInUp 1s ease forwards;
}

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

/* ========================================
   ABOUT
   ======================================== */
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.about__image-wrapper {
  display: flex;
  justify-content: center;
}

.about__image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}

.placeholder-image {
  background: linear-gradient(135deg, var(--clr-blush), var(--clr-rose));
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image svg {
  width: 60px;
  height: 60px;
  color: var(--clr-white);
  opacity: 0.7;
}

.about__text p {
  margin-bottom: 1rem;
}

.about__text .btn {
  margin-top: 0.5rem;
}

/* ========================================
   SERVICES
   ======================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--clr-white);
  border: 1px solid rgba(61, 53, 53, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--clr-gold);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--clr-charcoal);
  margin-bottom: 0.5rem;
}

.service-card__desc {
  font-size: var(--fs-small);
  color: var(--clr-charcoal);
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-card__price {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  color: var(--clr-rose);
  font-weight: 600;
}

.service-card__addon {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--clr-rose);
}

.services__note {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--clr-charcoal);
  opacity: 0.7;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery__item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-gallery {
  background: linear-gradient(135deg, var(--clr-blush), var(--clr-rose));
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-gallery svg {
  width: 40px;
  height: 40px;
  color: var(--clr-white);
  opacity: 0.5;
}

.gallery__cta {
  text-align: center;
  font-size: var(--fs-body);
}

.gallery__cta a {
  font-weight: 700;
  color: var(--clr-rose);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(61, 53, 53, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--clr-white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--clr-white);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* ========================================
   BOOKING
   ======================================== */
.booking__form {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-small);
  margin-bottom: 0.35rem;
  color: var(--clr-charcoal);
}

.form__optional {
  font-weight: 400;
  opacity: 0.6;
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(139, 111, 111, 0.2);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--clr-charcoal);
  background: var(--clr-white);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form__input:focus {
  outline: none;
  border-color: var(--clr-rose);
}

.form__input::placeholder {
  color: rgba(61, 53, 53, 0.4);
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B6F6F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.booking__alt {
  text-align: center;
  font-size: var(--fs-body);
}

.booking__alt a {
  font-weight: 700;
}

/* ========================================
   CONTACT
   ======================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--clr-gold);
  margin-top: 2px;
}

.contact__item h3 {
  font-family: var(--ff-heading);
  font-size: 1rem;
  color: var(--clr-charcoal);
  margin-bottom: 0.15rem;
}

.contact__item p {
  font-size: var(--fs-small);
  line-height: 1.5;
}

.contact__map iframe {
  width: 100%;
  border-radius: var(--radius);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--clr-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--clr-gold);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer__logo-img {
  height: 70px;
  width: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.footer__tagline {
  font-size: var(--fs-small);
  font-style: italic;
  margin-top: 0.25rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}

.footer__social-link:hover {
  background: var(--clr-gold);
}

.footer__social-link svg {
  color: var(--clr-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-small);
}

.footer__credit {
  opacity: 0.6;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-rose);
  color: var(--clr-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--clr-mauve);
  transform: translateY(-2px);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--clr-white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 16px rgba(61, 53, 53, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu li {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 1rem;
  }

  /* Hamburger animation */
  .nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero - fix parallax on iOS */
  .hero {
    background-attachment: scroll;
  }

  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image {
    width: 200px;
    height: 200px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Prevent iOS zoom on input focus */
  .form__input,
  .form__select,
  .form__textarea {
    font-size: 16px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__map iframe {
    height: 250px;
  }

  /* Lightbox - larger touch targets on mobile */
  .lightbox__close {
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    padding: 0.5rem;
  }

  .lightbox__prev,
  .lightbox__next {
    font-size: 2.5rem;
    padding: 1.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
  }

  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }

  .footer__content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
