/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --font-default: "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  
  /* New Color Palette */
  --color-background: #f9f5f2; /* Off-White */
  --color-background-soft: #ffffff; /* Pure white for cards/sections */
  --color-text: #111827; /* Dark Text */
  --color-primary: #cda45e; /* Gold Accent */
  --color-primary-rgb: 205, 164, 94;
  --color-secondary: #37373f; /* Dark Grey */
  --color-secondary-rgb: 55, 55, 63;
  --color-border: rgba(15, 23, 42, 0.08);

  /* Legacy/Unused */
  --color-black: #000;
  --color-white: #fff;
}

body {
  font-family: var(--font-default);
  color: var(--color-text);
  background-color: var(--color-background);
  scroll-behavior: smooth;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: rgba(var(--color-primary-rgb), 0.8);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-default);
  font-weight: 700;
  color: var(--color-text);
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 10px 15px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 10px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-background);
  transition: all 0.6s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-secondary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 9999;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 24px;
}

.scroll-top:hover {
  background: rgba(var(--color-primary-rgb), 0.85);
  color: var(--color-white);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
  overflow: hidden;
  padding: 60px 0;
  position: relative;
}

.section-bg {
  background-color: var(--color-background-soft);
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0 0 5px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaaaaa;
}

.section-title p {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
}

/* Curved Section Separator */
.section-curved::before {
  content: '';
  position: absolute;
  top: -1px; /* Adjust to prevent gaps */
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-background);
  clip-path: ellipse(65% 100% at 50% 100%);
}

@media (max-width: 768px) {
  .section-curved::before { height: 50px; }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  height: 80px;
  transition: all 0.5s;
  z-index: 997;
  background: rgba(249, 245, 242, 0.8); /* Off-white transparent */
  backdrop-filter: blur(5px);
}

.header.sticked {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.08);
}

.header .logo h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.header .logo h1 span {
  color: var(--color-primary);
}

.header .btn-book-a-table {
  font-weight: 600;
  font-size: 15px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 25px;
  border-radius: 50px;
  transition: 0.3s;
  border: 2px solid var(--color-primary);
}

.header .btn-book-a-table:hover {
  background: rgba(var(--color-primary-rgb), 0.9);
  border-color: rgba(var(--color-primary-rgb), 0.9);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  font-family: var(--font-default);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--color-primary);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  color: var(--color-text);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
  .header .btn-book-a-table {
    margin-right: 15px;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(33, 33, 33, 0.9);
  transition: 0.3s;
  z-index: 998;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 20px;
  left: 20px; /* RTL support */
  color: var(--color-white);
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 8px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 17px;
  color: var(--color-text);
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 85vh;
  background: url('../img/hair-salon-hero.webp') top center;
  background-size: cover;  
  position: relative;
  padding: 120px 0;
}

.hero:before {
  content: "";
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

.hero h1 {
  margin: 0 0 10px 0;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-white);
}

.hero h1 strong {
  font-weight: 700;
}

.hero .tagline {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hero .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.hero .btn-primary:hover {
  background: rgba(var(--color-primary-rgb), 0.9);
  border-color: rgba(var(--color-primary-rgb), 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 50px;
    color: var(--color-white);
    transition: all 0.3s ease;
}
.hero .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
}

/*--------------------------------------------------------------
# WebLite Promo Section
--------------------------------------------------------------*/
.weblite-promo {
  background: var(--color-text);
}
.weblite-promo .promo-box {
    border: none;
}
.weblite-promo p {
    font-size: 1.1rem;
    color: var(--color-white);
    margin: 0;
}
.btn-weblite {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-weblite:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  padding-top: 120px;
}
.service-card {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
    height: 100%;
    border: 1px solid var(--color-border);
    position: relative;
    padding-top: 60px !important;
}
.service-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
}
.service-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 22px;
}
.service-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about img {
    border-radius: 8px;
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery {
  padding-top: 120px;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
.gallery-item img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.7) 0%, rgba(var(--color-secondary-rgb), 0.3) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item .gallery-overlay span {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.2rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }
.gallery-item:hover img { transform: scale(1.05); }

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing-card {
    border: 1px solid #eee;
    border-radius: 8px;
    background: var(--color-white);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card h3 {
    font-weight: 600;
    font-size: 24px;
}
.pricing-card .price {
    font-size: 28px;
    color: var(--color-primary);
    font-weight: 700;
    margin: 15px 0;
}
.pricing-card ul {
    padding: 0;
    list-style: none;
    text-align: right;
    line-height: 26px;
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1;
}
.pricing-card ul li {
    margin-bottom: 10px;
}
.pricing-card ul i {
    color: #059652;
    font-size: 18px;
    padding-left: 4px;
}
.pricing-card .btn {
    border-radius: 50px;
    padding: 10px 30px;
}
.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.2);
    transform: scale(1.05);
    z-index: 1;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding-top: 120px;
}
.testimonial-card {
    background: var(--color-background-soft);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    height: 100%;
    border: 1px solid var(--color-border);
}
.testimonial-card .quote-icon {
    background: -webkit-linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 48px;
    position: absolute;
    top: 20px;
    right: 25px;
    opacity: 0.5;
}
.testimonial-card p {
    font-style: italic;
    margin: 0 0 15px 0;
}
.testimonial-card .client-info strong {
    font-weight: 600;
    color: var(--color-text);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.weblite-promo-2 {
    background: #fff;
    border-radius: 8px;
    border-top: 5px solid var(--color-primary);
}
.weblite-promo-2 h4 {
    color: var(--color-text);
}
.btn-weblite-dark {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
}
.btn-weblite-dark:hover {
    background: rgba(var(--color-primary-rgb), 0.9);
    color: var(--color-white);
}

.php-email-form {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border-radius: 24px;
  background: var(--color-background-soft);
}

.php-email-form .form-control, .php-email-form .form-select {
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  background-color: #fff;
}
.php-email-form .form-control:focus, .php-email-form .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}
.php-email-form button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 12px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: 600;
}

.php-email-form button[type=submit]:hover {
  background: rgba(var(--color-primary-rgb), 0.85);
}

.php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}
.php-email-form .error-message {
  display: none;
  color: #b91c1c;
  background: #fee2e2;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 8px;
}
.php-email-form .sent-message {
  display: none;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 8px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  font-size: 14px;
  background-color: var(--color-text);
  padding: 50px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer .icon {
  margin-left: 20px;
  font-size: 22px;
  color: rgba(var(--color-primary-rgb), 0.8);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 5px;
  color: #fff;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}
.footer a:hover {
    color: var(--color-primary);
}

.footer .footer-bottom {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .copyright {
  text-align: center;
}
.footer .copyright strong {
    font-weight: 600;
}

.footer .credits {
  text-align: center;
  font-size: 13px;
}

.footer .credits a {
  color: var(--color-primary);
  font-weight: 600;
}

.footer .social-links a {
  display: inline-block;
  padding: 8px 0;
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 0;
  transition: 0.3s;
  font-size: 20px;
}

.footer .social-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
    .footer .footer-bottom {
        justify-content: center;
        gap: 15px;
    }
    .footer .copyright, .footer .credits {
        width: 100%;
        text-align: center;
    }
}
