/*
 * Styles for A Tawakal Cloth House website
 *
 * This file defines the visual design of the website, including colors,
 * typography, layout and responsive behavior. The design is inspired by
 * modern clothing websites and aims to provide clarity and ease of navigation.
 */

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fafafa;
}

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

/* Container for consistent horizontal padding */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #0d1b2a;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

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

nav .nav-list li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav .nav-list li a:hover,
nav .nav-list li a.active {
  color: #f2c94c;
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  height: 80vh;
  min-height: 400px;
}

.slides {
  display: flex;
  height: 100%;
  width: 300%; /* three slides */
  transition: transform 0.6s ease-in-out;
}

.slide {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: left;
  padding: 0 1rem;
  background-size: cover;
  background-position: center;
}

/* Slide backgrounds using gradient colors because we do not
   have external images. Each slide has a different color scheme. */
.slide1 {
  background-image: linear-gradient(135deg, #0d1b2a 0%, #27496d 100%);
}
.slide2 {
  background-image: linear-gradient(135deg, #132743 0%, #2c3e50 100%);
}
.slide3 {
  background-image: linear-gradient(135deg, #27496d 0%, #1b262c 100%);
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-block;
  background-color: #f2c94c;
  color: #0d1b2a;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #e8b41b;
}

.button.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.slider-controls .control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-controls .control.active {
  background-color: #f2c94c;
}

/* Categories section */
.categories {
  padding: 4rem 0;
  background-color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #0d1b2a;
}

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

.category-card {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.category-card h3 {
  margin-bottom: 0.5rem;
  color: #27496d;
}

.category-card p {
  margin-bottom: 1rem;
  color: #555;
}

/* Products section */
.products {
  padding: 4rem 0;
  background-color: #fafafa;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.product-image {
  height: 180px;
  background-color: #e6e6e6;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.product-image.placeholder {
  /* You can replace this background with actual product images later */
  background-image: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
}

.product-card h4 {
  margin-bottom: 0.5rem;
  color: #27496d;
}

.product-card .price {
  font-weight: bold;
  color: #0d1b2a;
}

/* About section */
.about {
  padding: 4rem 0;
  background-color: #fff;
  color: #333;
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Contact section */
.contact {
  padding: 4rem 0;
  background-color: #fafafa;
  color: #333;
}

.contact-list {
  list-style: none;
  margin-top: 1rem;
  line-height: 2;
}

.contact-list li strong {
  color: #27496d;
}

/* Footer */
footer {
  background-color: #0d1b2a;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .nav-list {
    gap: 1rem;
  }
}