/* ============================================
   Dream Browz n Beauty - Main Stylesheet
   ============================================ */

/* Root CSS Variables */
:root {
  --primary-color: #8b5a8e;
  --secondary-color: #d4a5a5;
  --accent-color: #f0a0a0;
  --dark-color: #2d2d2d;
  --light-color: #f9f7f6;
  --text-color: #333333;
  --gray-color: #cccccc;
  
  --font-primary: 'Arial', sans-serif;
  --font-secondary: 'Georgia', serif;
  
  --transition: all 0.3s ease;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Global Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--dark-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

a:hover {
  color: var(--accent-color);
}

/* ============================================
   Navigation Bar
   ============================================ */

nav {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  font-family: var(--font-secondary);
}

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

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Mobile Menu Toggle Active State */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #e88888;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: transparent;
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ============================================
   Services Section
   ============================================ */

.services {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin: -2rem -2rem 1rem -2rem;
  display: block;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  width: 100%;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
  padding: 4rem 2rem;
  background-color: #f5f5f5;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.price {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: bold;
}

.pricing-description {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-description li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.pricing-description li:last-child {
  border-bottom: none;
}

/* ============================================
   About Section
   ============================================ */

.about {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-label {
  font-weight: bold;
  color: var(--primary-color);
  min-width: 100px;
}

.contact-value {
  color: var(--text-color);
}

/* ============================================
   Hours Section
   ============================================ */

.hours-table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}

.hours-table th {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  text-align: left;
}

.hours-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-color);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Social Links
   ============================================ */

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-color);
}

.footer-links a:hover {
  color: white;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1.5rem 0;
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Responsive Design (Mobile-First)
   ============================================ */

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    max-height: 400px;
    padding: 1rem 0;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-color);
  }

  .hero {
    padding: 3rem 1rem;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .service-image {
    height: 200px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .navbar {
    padding: 0.75rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .services, .pricing, .about {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  nav, footer {
    display: none;
  }

  body {
    color: black;
    background-color: white;
  }

  a {
    color: inherit;
  }
}
