/* ========================================
   CSS Reset
======================================== */
/* Apply border-box sizing to all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins */
body,
h1,
h2,
h3,
p {
  margin: 0;
}

/* Make images responsive */
img {
  max-inline-size: 100%;
  display: block;
}

/* ========================================
   Design Tokens / Variables
======================================== */
:root {
  /* Color palette */
  --clr-cream: hsl(38 60% 94%);
  --clr-brown: hsl(25 45% 25%);
  --clr-gold: hsl(38 85% 55%);
  --clr-white: hsl(0 0% 100%);
  --clr-dark: hsl(20 25% 15%);
  /* Typography */
  --ff-base: system-ui, sans-serif;
  /* Spacing scale */
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  /* Border radius */
  --radius: 1rem;
}

/* ========================================
   Global Styles
======================================== */
body {
  font-family: var(--ff-base);
  color: var(--clr-dark);
  background-color: var(--clr-cream);
  line-height: 1.6;
}

/* Global link styles */
a {
  color: inherit;
}

/* ========================================
   Stack Layout
======================================== */
/* Vertical layout with consistent spacing */
.stack {
  display: flex;
  /* Stacks elements vertically */
  flex-direction: column;
  /* Space between stacked elements */
  gap: var(--space-m);
}

/* ========================================
   Cover Layout
======================================== */
/* Full-screen cover layout */
.cover {
  /* Makes section fill the viewport height */
  min-block-size: 100vh;
  display: flex;
  /* Centers content horizontally */
  justify-content: center;
  /* Centers content vertically */
  align-items: center;
  padding: var(--space-l);
}

/* ========================================
   Grid Layouts
======================================== */
/* Shared grid styles for features and products */
.feature-grid,
.product-grid {
  display: grid;
  gap: var(--space-m);
}

/* Features section grid */
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Product cards grid */
.product-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   Navigation Component
======================================== */
/* Main navigation bar */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: var(--space-m);
  padding-block: var(--space-s);
}

/* Logo/brand styling */
.nav__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

/* Navigation links container */
.nav__list {
  display: flex;
  gap: var(--space-m);
  list-style: none;
}

/* Individual navigation links */
.nav__link {
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav__logo-image {
    inline-size: 70px;
  }
  .nav__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    padding: 0;
  }
}
/* ========================================
   Button Component
======================================== */
/* Primary button style */
.button {
  display: inline-block;
  padding-inline: 1.5rem;
  padding-block: 0.8rem;
  background-color: var(--clr-gold);
  color: var(--clr-dark);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
}

/* Dark button modifier */
.button--dark {
  background-color: var(--clr-brown);
  color: var(--clr-white);
}

/* ========================================
   Card Component
======================================== */
/* Product/review card container */
.card {
  background-color: var(--clr-white);
  padding: 2rem;
  border-radius: var(--radius);
  /* Soft shadow for depth */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
}

.card .button {
  margin-top: auto;
}

/* Card title styling */
.card__title {
  color: var(--clr-brown);
}

/* Card image styling */
.card__image {
  inline-size: 100%;
  block-size: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Smooth hover animation */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect for interactive feel */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Hero Section Component
======================================== */
/* Main hero section */
.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  /* Hero takes most of the screen height */
  min-block-size: 85vh;
}

/* Wrapper for hero text */
.hero__text {
  max-inline-size: 60ch;
  margin-inline: auto;
}

/* Background hero image */
.hero__image {
  position: absolute;
  /* Makes image fill the entire hero */
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* Darkens image for better text readability */
  filter: brightness(0.5);
}

/* Hero content placed above image */
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--clr-white);
  max-inline-size: 60ch;
  padding: 4rem;
}

/* Main hero heading */
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: var(--clr-white);
}

/* Hero description text */
.hero__description {
  font-size: 1.1rem;
}

/* ========================================
   Footer Component
======================================== */
/* Main footer container */
.footer {
  background-color: var(--clr-white);
  color: var(--clr-dark);
  padding-block: var(--space-l);
  padding-inline: var(--space-m);
}

/* Footer content layout */
.footer__inner {
  max-inline-size: 1200px;
  margin-inline: auto;
  display: grid;
  /* Responsive footer columns */
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-l);
}

/* Footer logo/brand styling */
.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-brown);
}

/* Footer section headings */
.footer__title {
  font-size: 1rem;
  color: var(--clr-brown);
}

/* Footer column layout */
.footer__column {
  display: grid;
  gap: 0.75rem;
}

/* Footer links */
.footer a {
  color: inherit;
  text-decoration: none;
}

/* Footer link hover/focus effect */
.footer a:hover,
.footer a:focus-visible {
  color: var(--clr-gold);
}

/* Copyright text */
.footer__copy {
  margin-block-start: var(--space-l);
  font-size: 0.9rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ========================================
   Home Page Layout
======================================== */
/* Shared section and CTA container styling */
.section,
.cta {
  /* Limits content width for readability */
  max-inline-size: 1200px;
  /* Centers sections horizontally */
  margin-inline: auto;
  padding-inline: var(--space-m);
  /* Vertical spacing between sections */
  padding-block: 4rem;
  text-align: center;
  align-items: center;
}

/* CTA button sizing */
.cta .button {
  inline-size: fit-content;
}

/* ========================================
   Reviews / Testimonials Component
======================================== */
/* Reviews section container */
#reviews {
  text-align: center;
}

/* Testimonial text container */
.testimonial {
  max-inline-size: 60ch;
  margin-inline: auto;
}

/* Customer name styling */
.testimonial__name {
  font-style: italic;
  color: var(--clr-brown);
}

/*# sourceMappingURL=main.css.map */
