/*
 * Khraav Footwear Website Stylesheet
 *
 * This stylesheet defines the global look and feel of the Khraav
 * footwear website. The design draws inspiration from current
 * e‑commerce and web design trends for 2025 and beyond. A warm
 * palette of browns and creams creates a comfortable, welcoming
 * environment in line with modern color trends【20177927761026†L148-L159】.  
 * Bold typography and generous white space help establish a strong
 * brand voice while enhancing readability【20177927761026†L162-L176】.  
 * Micro‑interactions and subtle hover effects provide feedback
 * without overwhelming the user【20177927761026†L307-L314】.
 */

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

html {
  scroll-behavior: smooth;
}

/* Root variables for easy theming */
:root {
  --primary-color: #8B5C42;      /* Rich brown for headlines and accents */
  --secondary-color: #C5A880;    /* Soft beige for highlights */
  --accent-color: #E9C78C;       /* Lighter cream accent */
  --dark-color: #3D2C24;         /* Dark brown for footers */
  --light-color: #F8F3EB;        /* Off‑white background */
  --text-color: #333333;         /* Standard text colour */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Poppins', sans-serif;
}

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

/* Container utility class */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
nav {
  width: 100%;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

nav .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

nav .logo {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

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

nav ul li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Hamburger menu for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero section */
.hero {
  height: 85vh;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-family: var(--heading-font);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Section styling */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

/* About section */
.about {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about img {
  flex: 1 1 300px;
  max-width: 500px;
  width: 100%;
  border-radius: 8px;
}

.about .text {
  flex: 1 1 300px;
}

.about .text h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about .text p {
  margin-bottom: 1rem;
}

/* Products section */
.products-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .content {
  padding: 1.5rem;
}

.product-card h3 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

.product-card .price {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.product-card .btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Newsletter section */
.newsletter {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 8px;
}

.newsletter h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.newsletter form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.newsletter input[type="email"] {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  width: 280px;
  max-width: 100%;
}

.newsletter input[type="submit"] {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.newsletter input[type="submit"]:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 3rem 0;
}

footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

footer h4 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--accent-color);
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: var(--secondary-color);
}

footer .social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer .social-icons a {
  color: #fff;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  nav ul li {
    margin-bottom: 1rem;
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .about {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}