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

/* Root variables for colour palette */
:root {
  --primary-color: #e76f1f; /* warm orange inspired by logo */
  --secondary-color: #4e2a1a; /* dark brown */
  --accent-color: #cf3d2e; /* reddish accent */
  --light-color: #fff7ef; /* light background */
  --neutral-color: #f8f5f2;
  --text-color: #2a1f14;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--primary-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.logo {
  height: 60px;
  width: auto;
}
.nav {
  display: flex;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  transition: background 0.3s;
}
.nav-list a:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--light-color);
  color: var(--secondary-color);
  padding-top: 4rem;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: -2;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(78, 42, 26, 0.7) 0%, rgba(231, 111, 31, 0.7) 100%);
  z-index: -1;
}
/* Hero inner elements */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.hero-logo {
  width: 200px;
  max-width: 60%;
}
.hero .tagline {
  font-size: 1.5rem;
  color: var(--secondary-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-color);
  color: #fff;
}
.btn-primary:hover {
  /* manually choose a slightly darker colour on hover */
  background: #b73229;
  transform: translateY(-2px);
}
.btn-secondary {
  background: #fff;
  color: var(--primary-color);
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
  position: relative;
}
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* About */
.about-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 400px;
}
.about-text p {
  margin-bottom: 1rem;
}
.about-image {
  flex: 1 1 400px;
}
.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Alternating section backgrounds */
.about {
  background: var(--neutral-color);
}
.products {
  background: #fff;
}
.services {
  background: var(--neutral-color);
}
.contact {
  background: var(--light-color);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.card .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}
.card p {
  font-size: 0.95rem;
  color: #555;
}

/* Gallery Slider */
.gallery {
  background: var(--neutral-color);
}
.slider {
  position: relative;
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  transition: opacity 1s ease-in-out;
  position: relative;
}
.slide img {
  width: 100%;
  display: block;
}
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--secondary-color);
  transition: background 0.3s;
  z-index: 10;
}
.prev:hover,
.next:hover {
  background: var(--primary-color);
  color: #fff;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* Contact */
.contact-container {
  text-align: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.95rem;
  color: var(--secondary-color);
}
.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.contact-item a {
  color: var(--secondary-color);
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}

.map-link {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}
.footer-container {
  text-align: center;
}
.small-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-color);
    width: 200px;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nav-list a {
    display: block;
    padding: 1rem;
  }
  .menu-toggle {
    display: flex;
  }
}