/* Landing Page Styles */
:root {
  --primary-color: #C6A2A4;
  --secondary-color: #ef7596;
  --accent-color: #a97889;
  --hover-color: #754f5e;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --white: #fff;
  --black: #000;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --page-side-margin: 5%; /* Reduced side margins */
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cabin', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px; /* Reduced lateral padding */
}

.main-container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px; /* Reduced lateral padding */
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'Marcellus', sans-serif;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  margin-left: 20px;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  width: 80px;
  margin: 0 auto;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.mt-20 {
  margin-top: 20px;
}

section {
  padding: 60px 20px; /* Reduced lateral padding */
  position: relative;
}

.text-center {
  text-align: center;
}

/* Header & Navigation */
header {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 4px 0; /* Reduced header padding */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px; /* Reduced container padding */
}

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

.logo-img {
  height: 26px; /* Reduced logo size */
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  color: var(--white);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 8px 16px; /* Reduced by 20% from 10px 20px */
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background-color: var(--hover-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Hero Section */
.hero {
  height: 56vh; /* Reduced by 30% from 80vh */
  min-height: 350px; /* Reduced by 30% from 500px */
  max-height: 560px; /* Reduced by 30% from 800px */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  left: 0;
  right: 0;
  box-sizing: border-box;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url("/images/hairdresser-hero.webp");
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 600px;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 30px;
}

/* Override container margins for hero section */
.hero .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features {
  background-color: var(--light-gray);
  position: relative;
  text-align: center; /* Center the title */
}

.features h2 {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 0 20px; /* Reduced lateral margins */
}

.feature {
  padding: 30px;
  text-align: center;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
}

.feature h3 {
  color: var(--primary-color);
}

/* Featured Image Sections */
.image-feature-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
  margin: 60px 0;
}

.image-feature-section:nth-child(even) {
  direction: rtl;
}

.image-feature-section:nth-child(even) .content-area {
  direction: ltr;
}

.image-area {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-feature-section:hover .image-area img {
  transform: scale(1.05);
}

.content-area {
  padding: 20px;
}

.content-area h2 {
  text-align: left;
  margin-bottom: 20px;
}

.content-area h2:after {
  margin: 0;
}

/* Ingredients Section */
.ingredients {
  text-align: center;
  background-color: var(--white);
  position: relative;
  padding-bottom: 80px;
}

.ingredients::before {
  content: none; /* Removed background image reference */
}

.ingredients .container {
  position: relative;
  z-index: 1;
}

.carousel-container {
  position: relative;
  margin: 0 20px; /* Reduced lateral margins */
  padding: 20px 0;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding: 0 40px; /* Added lateral padding */
}

.ingredient-item {
  flex: 0 0 calc(25% - 20px);
  margin: 0 10px;
  padding: 20px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.ingredient-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  overflow: hidden;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.ingredient-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ingredient-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  z-index: 0;
}

.ingredient-name {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.ingredient-desc {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* Featured Products */
.featured-products {
  position: relative;
}

.featured-products::before {
  content: none; /* Removed background image */
}

.featured-products .container {
  position: relative;
  z-index: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 20px; /* Reduced lateral margins */
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.price {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.description {
  color: var(--dark-gray);
  margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
  background-color: var(--white);
  position: relative;
}

.testimonials::before {
  content: none;
}

.testimonials::after {
  content: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
  margin: 0 20px; /* Reduced lateral margins */
}

.testimonial {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.testimonial p {
  font-style: italic;
  position: relative;
  padding: 0 15px;
}

.testimonial p::before,
.testimonial p::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--primary-color);
  position: absolute;
}

.testimonial p::before {
  left: 0;
  top: -5px;
}

.testimonial p::after {
  right: 0;
  bottom: -15px;
}

.testimonial cite {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Personalization */
.personalization {
  background-color: var(--light-gray);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 20px; /* Reduced lateral margins */
}

.benefit-item {
  padding: 30px;
  text-align: center;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.benefit-item h3 {
  color: var(--primary-color);
}

/* Product List */
.products {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
}

.product-filters {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.product-filters ul {
  list-style-position: inside;
  margin: 15px 0;
}

.product-filters ul li {
  margin-bottom: 10px;
  padding-left: 10px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 20px; /* Reduced lateral margins */
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 10px;
}

/* About Page */
.about-story, .about-values, .about-process, .about-team {
  margin: 0 20px; /* Reduced lateral margins */
}

.about-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  align-items: center;
}

.about-img {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 400px; /* Fixed height for images */
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure images cover the container properly */
  display: block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-item {
  padding: 25px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.value-item h3 {
  color: var(--primary-color);
}

.process-steps {
  counter-reset: step-counter;
}

.process-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}

.step-number {
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.process-cta {
  text-align: center;
  margin-top: 40px;
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center; /* Focus on faces for team photos */
}

.team-member h3, .team-member p {
  padding: 0 20px;
}

.team-member h3 {
  margin-top: 20px;
  margin-bottom: 5px;
}

.member-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.member-bio {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

/* FAQ */
.product-faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Marcellus', sans-serif;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  font-family: 'Marcellus', sans-serif;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-links ul li a:before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
}

.footer-links ul li a:hover {
  padding-left: 18px;
  color: var(--light-gray);
}

.footer-contact p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  :root {
    --page-side-margin: 5%;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 100px 0;
  }
  
  .image-feature-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .image-feature-section:nth-child(even) {
    direction: ltr;
  }
  
  .products {
    grid-template-columns: 1fr;
  }
  
  .ingredient-item {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  :root {
    --page-side-margin: 3%;
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 15px;
  }
  
  nav ul li {
    margin: 0 15px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .ingredient-item {
    flex: 0 0 calc(50% - 20px);
  }
  
  .process-step {
    grid-template-columns: 40px 1fr;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  section {
    padding: 40px 15px; /* Reduced lateral padding for mobile */
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .ingredient-item {
    flex: 0 0 100%;
  }
  
  .about-story {
    grid-template-columns: 1fr;
  }
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background-color: var(--accent-color);
} 