/* === Global Reset & Base Styles === */
:root {
  --primary: #7b654e; /* Main brown from logo */
  --primary-light: #a38d76; /* Lighter brown */
  --secondary: #f3e9e1; /* Cream/beige */
  --accent: #d4b8a7; /* Soft pinkish-brown */
  --dark: #4a3c2a; /* Dark brown */
  --light: #f9f4f6; /* Off-white */
  --text: #333333; /* Dark gray for text */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === Header & Navigation === */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(123, 101, 78, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

/* Updated Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* Increased gap */
  font-family: "Playfair Display", serif;
  font-size: 2rem; /* Larger text */
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
}

.logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 50px;
  z-index: -1;
  opacity: 0.3;
}

.logo img {
  height: 70px; /* Increased size */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

#menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  font-weight: 500;
  color: var(--dark);
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary);
}

/* === Brand Bar / Socials === */
.brand-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 0.5rem 0;
  color: white;
  font-size: 0.9rem;
}

.brand-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
}

.brand-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.brand-socials a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.brand-socials a img {
  height: 16px;
  width: 16px;
  filter: invert(1);
}

/* === WhatsApp Floating Icon === */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float img {
  height: 28px;
  width: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* === Hero Section === */
#hero {
  position: relative;
  background-image: url("images/manicure/pexels-monstera-1819560.jpg");
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(123, 101, 78, 0.8),
    rgba(123, 101, 78, 0.6)
  );
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  letter-spacing: 1px;
}

.hero-text p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(123, 101, 78, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(123, 101, 78, 0.5);
}

.btn:hover::after {
  opacity: 1;
}

/* === About Section === */
#about {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
  position: relative;
}

#about::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 C 20 0, 40 20, 60 10 S 100 0, 100 10' stroke='%237b654e' fill='none' stroke-width='1' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-repeat: repeat-x;
  opacity: 0.3;
}

.about-wrapper {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 15px;
  z-index: -1;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(123, 101, 78, 0.2);
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.8;
}

/* === Services Section === */
#services {
  background-color: white;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

#services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 C 20 20, 40 0, 60 10 S 100 20, 100 10' stroke='%237b654e' fill='none' stroke-width='1' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-repeat: repeat-x;
  opacity: 0.3;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

#services h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary);
  text-align: center;
  position: relative;
}

#services h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: white;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  box-shadow: 0 5px 20px rgba(123, 101, 78, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(123, 101, 78, 0.1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: height 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(123, 101, 78, 0.2);
}

.card:hover::before {
  height: 10px;
}

.card span {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

/* === Gallery Section === */
#gallery {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
  position: relative;
}

#gallery h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

#gallery h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.gallery-cat {
  margin-bottom: 4rem;
}

.gallery-cat h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
}

.gallery-cat h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.img-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(123, 101, 78, 0.1);
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.img-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(123, 101, 78, 0.2);
}

/* === Contact Section === */
#contact {
  background-color: white;
  max-width: 700px;
  margin: 6rem auto;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(123, 101, 78, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23d4b8a7' opacity='0.2' d='M30,10 Q50,0 70,10 T90,30 Q100,50 90,70 T70,90 Q50,100 30,90 T10,70 Q0,50 10,30 T30,10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
}

#contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%237b654e' opacity='0.1' d='M30,10 Q50,0 70,10 T90,30 Q100,50 90,70 T70,90 Q50,100 30,90 T10,70 Q0,50 10,30 T30,10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
}

#contact > * {
  position: relative;
  z-index: 1;
}

#contact h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

#contact input,
#contact textarea {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e0d6cc;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 101, 78, 0.2);
}

#contact button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(123, 101, 78, 0.4);
  transition: all 0.3s ease;
  margin-top: 1rem;
}

#contact button:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(123, 101, 78, 0.5);
}

/* === Footer === */
footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 C 20 0, 40 20, 60 10 S 100 0, 100 10' stroke='white' fill='none' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-repeat: repeat-x;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-grid h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-grid p {
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.footer-grid input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 30px;
  border: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.subscribe {
  background-color: white;
  color: var(--primary);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

.footer-copy {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 1rem;
  }

  #menu-toggle {
    display: block;
    order: 1;
  }

  .logo {
    order: 0;
    flex: 1;
  }

  nav {
    width: 100%;
    display: none;
    order: 2;
    margin-top: 1rem;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav ul li a {
    display: block;
    padding: 0.8rem 0;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .about-wrapper {
    flex-direction: column;
  }

  .about-image::before {
    top: -10px;
    left: -10px;
  }

  #services,
  #gallery,
  #contact {
    padding: 3rem 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  #contact {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .logo img {
    height: 50px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .about-content h2,
  #services h2,
  #gallery h2 {
    font-size: 2rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }

  .img-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
