/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&family=Syne:wght@400..800&display=swap');

/* RESET & GLOBAL */
* { margin: 0; 
  padding: 0; 
  box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* NAVIGATION */
nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(250,250,250,0.95);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 75px;
  width: auto;
  transition: height 0.3s ease;
}

.nav-links { 
  display: flex; 
  list-style: none; 
  gap: 2rem; 
}

.nav-links a { 
  text-decoration: none; 
  color: #333; 
  font-weight: 500; 
  transition: 0.3s; 
}

.nav-links a:hover { 
  color: #a68f7e; 
  text-decoration: underline; text-underline-offset: 0.3rem; 
  }

  /* NAV SOCIAL ICON */
.nav-social {
  margin-left: 24px;
  display: flex;
  align-items: center;
  color: #333;
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Hover (desktop only) */
@media (hover: hover) {
  .nav-social:hover {
    color: #a68f7e;
    transform: scale(1.15);
  }
}

.menu-social a {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.menu-social svg {
  width: 26px;
  height: 26px;
  fill: #333;
}

/* HEADER – BASE */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(250,250,250,0.95);
  backdrop-filter: blur(8px);
  transition: height 0.25s ease, box-shadow 0.25s ease;
  will-change: height;
}

#desktop-nav {
  display: flex;
}

#hamburger-nav {
  display: none;
}

/* NAV SHRINK ON SCROLL */
header {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.shrink {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Desktop nav shrink */
header.shrink #desktop-nav {
  padding: 10px 50px;
  height: 40px;
}

/* Mobile nav shrink */
header.shrink #hamburger-nav {
  padding: 10px 30px;
}

/* Logo shrink */
header.shrink .logo {
  font-size: 1.5rem;
}

/* HAMBURGER ICON */
.hamburger-icon {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MOBILE MENU */
.menu-links {
  position: absolute;
  top: 70px;
  right: 30px;
  background: rgba(250,250,250,0.98);
  list-style: none;
  padding: 20px;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.menu-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hamburger-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* OPEN STATE */
.menu-links.open {
  display: flex;
}

/* HERO SECTION */
.hero-image {
  position: relative;
  height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("/assets/cover.png") center/cover no-repeat;
  margin-top: auto 0px;
  padding-top: 0px;
}

.hero-text {
  position: relative;
  top: 40%;
  width: 100%;
  text-align: center;
  margin: auto 0;
}
.hero-text h1 {
  color: #F9F8F6;
  font-size: 3rem;
  font-weight: 600;
}

.hero-text h1 {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFade 1s ease-out forwards;
  animation-delay: 0.4s;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTIONS */
section { 
  padding: 60px 10%; 
  min-height: fit-content; 
  scroll-margin-top: 100px;
}

section h3 {
  text-align: center;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #333;
  letter-spacing: 0.02em;
}

/* ABOUT SECTION */
#about {
  background: #fdfcf7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 10%;
}

.about-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 40px; max-width: 1000px; align-items: center; 
}

.about-pic { 
  max-width: 250px; 
  border-radius: 10%;
}

.text-container { 
  flex: 1; 
}

.about-text { 
  font-size: 1.1rem; 
  color: #555; 
  text-align: left; 
}

/* GALLERY SECTION - MASONRY */
#gallery { 
  padding: 2rem 5%; 
}

.gallery-container .image-container {
  columns: 15rem 3; /* 3 columns, masonry */
  column-gap: 1rem;
}

.gallery-container 
.image-container img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-container 
.image-container img:hover {
  transform: scale(1.02);
}

#gallery h3 {
  margin-bottom: 40px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox.active { 
  visibility: visible; 
  opacity: 1; 
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.no-scroll { 
  overflow: hidden; 
}

/* LIGHTBOX ARROWS */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 3rem;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 10000;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-arrow.left {
  left: 30px;
}

.lightbox-arrow.right {
  right: 30px;
}

@media (max-width: 600px) {
  .lightbox-arrow {
    font-size: 2.2rem;
    padding: 8px 12px;
  }
}

/* SERVICE SECTION */
#services {
  background: #d9d9d9;
  padding: 60px 10%;
  text-align: center;
}

#services h3 {
  margin-bottom: 40px;
}

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.service-card {
  background: white;
  padding: 20px;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.service-card h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
}

.service-card a {
  text-decoration: none;
  font-weight: 500;
  color: #a68f7e;
}

.service-card a:hover {
  text-decoration: underline;
}

/* STYLISTS SECTION */
#stylists {
  background: #fdfcf7;
  text-align: center;
}

#stylists h3 {
  margin-bottom: 40px;
}

.stylist-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.stylist-card {
  background: white;
  padding: 25px;
  border-radius: 1rem;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.stylist-card:hover {
  transform: translateY(-6px);
}

.stylist-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 15px;
}

.stylist-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stylist-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
}

.stylist-card a {
  text-decoration: none;
  font-weight: 500;
  color: #a68f7e;
}

.stylist-card a:hover {
  text-decoration: underline;
}

/* STYLIST SOCIAL HOVER */
.stylist-img {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.stylist-img img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

/* Overlay */
.stylist-social {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Icon button */
.stylist-social a {
  background: white;
  color: #333;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.stylist-social a:hover {
  background: #a68f7e;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Hover behavior */
.stylist-card:hover .stylist-social {
  opacity: 1;
}

.stylist-card:hover img {
  transform: scale(1.05);
}

/* BOOKING BUTTON */
.booking-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: #a68f7e;
  color: #F9F8F6;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.booking-btn:hover {
  background: #8f7768;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.booking-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.services-booking {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.contact-booking-btn {
  margin-top: 20px;
}

/* MOBILE – always show on tap */
@media (hover: none) {
  .stylist-social {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    align-items: flex-end;
    padding-bottom: 12px;
  }
}

  /* SVG SOCIAL ICON */
.social-icon {
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: #333;
  transition: fill 0.25s ease;
}

.instagram-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: white;
  transition: fill 0.25s ease;
}

.social-icon:hover {
  background: #a68f7e;
  transform: translateY(-2px);
}

.social-icon:hover svg {
  fill: white;
}

/* CONTACT SECTION */
#contact { 
  background: #f5f5f5; 
  padding: 60px 10%; 
}

.contact-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px; 
  max-width: 1000px; 
  margin: auto; 
}

.contact-info { 
  flex: 1; 
  font-size: 1.1rem; 
  color: #333; 
}

.contact-map { 
  flex: 1; 
  min-width: 300px; 
}

#contact h3 {
  margin-bottom: 40px;
}

.phone-link {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color 0.25s ease;
}

@media (hover: hover) {
  .phone-link:hover {
    color: #a68f7e;
  }
}

.contact-socials {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.contact-socials a {
  color: #333; /* matches your contact text theme */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.contact-socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (hover: hover) {
  .contact-socials a:hover {
    color: #a68f7e;
    transform: translateY(-2px) scale(1.12);
    opacity: 0.9;
  }
}

.contact-socials a {
  color: #333; /* matches your contact text theme */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.contact-socials a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* FOOTER */
footer { 
  background: #333; 
  color: #F9F8F6; 
  padding: 20px 20px; 
  text-align: center; 
}

.designer-credit {
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #F9F8F6;
  font-style: italic;
}
.designer-credit a:link {
  color: #F9F8F6;
  text-decoration: none;
}

.designer-credit a:hover {
  color: #F9F8F6; 
  opacity: 0.6;
  text-decoration: underline;
}

/* KEYFRAMES */
@keyframes lightboxZoom { 
  from { transform: scale(0.85); } 
  to { transform: scale(1); } 
}

/* RESPONSIVE GALLERY */
@media (max-width: 1024px) {
  .gallery-container 
  .image-container {
    columns: 12rem 2;
  }
}

@media (max-width: 600px) {
  .gallery-container 
  .image-container {
    columns: 1;
  }

  .booking-btn {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  }
}

/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #a68f7e;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-3px);
}

/* MOBILE HEADER – COMPACT BY DEFAULT */
@media (max-width: 900px) {
  header {
    height: 64px;              
    /* small from the start */
  }

  header.shrink .logo img {
    height: 34px;              
    /* subtle shrink */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  #hamburger-nav {
    position: relative;
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* centers logo */
  }

  /* CENTER LOGO */
  #hamburger-nav .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #hamburger-nav .logo img {
    height: 40px;
    transition: height 0.3s ease;
  }

  header.shrink .logo {
    transform: scale(0.95);
  }

  #desktop-nav {
    display: none;
  }

    /* HAMBURGER RIGHT */
  .hamburger-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

    /* ABOUT STACK */
  #about {
    padding: 40px 8%;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .about-pic {
    max-width: 200px;
    margin: 0 auto;
  }

  .about-text {
    text-align: center;
    font-size: 1rem;
  }
}

