/*
Ashley’s Fit Kitchen Website
CSCI270 Web Page Development Project

This external stylesheet controls the visual design of the website.

Project requirements supported by this CSS:
- Tutorial 2: External CSS stylesheet, colors, fonts, margins, padding, borders, and buttons.
- Tutorial 3: Page layout for header, navigation, main content sections, containers, and footer.
- Tutorial 4: Graphic design with gradients, shadows, rounded corners, hover effects, and spacing.
- Tutorial 6: Card and column-style layouts for products, recipes, and videos.
- Tutorial 7: Contact form styling.
- Tutorial 8: Image and video styling for multimedia content.

The styles are organized by section to make the code easier to understand and maintain.
*/

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

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #222;
}

/* CONTAINER */
.container {
  width: 95%;
  max-width: 1300px;
  margin: auto;
}

/* HEADER */
.site-header {
  background: linear-gradient(120deg, #00c853, #00bcd4, #2196f3, #ffeb3b);
  background-size: 300% 300%;
  height: 220px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.logo-area {
  position: absolute;
  left: 0;
}

.logo-area img {
  height: 150px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.header-text {
  text-align: center;
}

.header-text h1 {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #111;
  line-height: 1;
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.4);
}

.header-text p {
  font-size: 1.4rem;
  color: #1f2933;
  font-weight: 600;
  margin-top: 8px;
}

/* NAV */
.navigation-area {
  background: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nav-list {
  display: flex;
  justify-content: center;
  padding: 18px;
  list-style: none;
}

.nav-list li {
  margin: 0 15px;
}

.nav-list a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: #ffffff;
  background: #2196f3;
}

/* INTRO */
.intro-section {
  padding: 60px 10px;
  background: #f9fff8;
}

.intro-content {
  display: flex;
  gap: 35px;
  align-items: center;
}

.intro-text {
  flex: 1;
  max-width: 520px;
}

.intro-text h2 {
  font-size: 2.3rem;
  margin-bottom: 12px;
  color: #16324f;
}

.intro-text p {
  font-size: 1.08rem;
  line-height: 1.5;
}

.intro-buttons {
  margin-top: 25px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 18px;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #2196f3;
  color: white;
  margin-right: 10px;
  box-shadow: 0 5px 12px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
  background: #0d6fc4;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #aeea00;
  color: black;
  box-shadow: 0 5px 12px rgba(174, 234, 0, 0.3);
}

.btn-secondary:hover {
  background: #94cf00;
  transform: translateY(-2px);
}

.intro-image {
  flex: 1;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #d8f3c3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  display: block;
}

/* FEATURED PRODUCTS */
.featured-section {
  padding: 65px 10px;
  background: white;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 2.1rem;
  color: #16324f;
}

.section-heading p {
  margin-top: 8px;
  color: #444;
}

.product-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.product-card {
  width: 320px;
  min-height: 430px;
  background: #f9fff8;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #d8f3c3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.product-image {
  background: linear-gradient(135deg, #e6ffe0, #e0f7ff);
  height: 230px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px dashed #8bc34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}

.product-real-image {
  max-width: 95%;
  max-height: 210px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.product-card h3 {
  color: #1e88e5;
  margin-bottom: 8px;
}

.product-card p {
  line-height: 1.5;
}

.price {
  font-weight: bold;
  margin: 10px 0;
  color: #1e88e5;
}

/* RECIPES */
.recipes-section {
  padding: 65px 10px;
  background: #f9fff8;
}

.recipe-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.recipe-card {
  width: 320px;
  min-height: 360px;
  background: white;
  padding: 22px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid #d8f3c3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.recipe-image {
  background: linear-gradient(135deg, #e6ffe0, #e0f7ff);
  height: auto;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px dashed #8bc34a;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.recipe-card h3 {
  color: #16324f;
  margin-bottom: 12px;
}

/* ABOUT */
.about-section {
  padding: 65px 10px;
  background: white;
}

.about-content {
  display: flex;
  gap: 35px;
  align-items: center;
}

.about-image {
  flex: 1;
  height: 280px;
  background: linear-gradient(135deg, #dfffd8, #d8f3ff);
  border-radius: 14px;
  border: 2px dashed #8bc34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #16324f;
}

.about-text p {
  line-height: 1.6;
  margin-bottom: 22px;
}

/* SIGNUP */
.signup-section {
  padding: 60px 10px;
  background: linear-gradient(120deg, #aeea00, #4fc3f7, #fff176);
  text-align: center;
}

.signup-box h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #16324f;
}

.signup-box p {
  margin-bottom: 22px;
  font-weight: 600;
}

.signup-box input {
  padding: 13px;
  width: 300px;
  border: none;
  border-radius: 6px;
}

.signup-box button {
  padding: 13px 20px;
  border: none;
  border-radius: 6px;
  background: #2196f3;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.signup-box button:hover {
  background: #0d6fc4;
}

/* FOOTER */
.site-footer {
  background: #16324f;
  color: white;
  text-align: center;
  padding: 28px;
}

.site-footer p {
  margin: 5px 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 25px 0;
  }

  .header-container,
  .intro-content,
  .product-grid,
  .recipe-grid,
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .logo-area {
    position: static;
    margin-bottom: 10px;
  }

  .logo-area img {
    height: 120px;
  }

  .header-text h1 {
    font-size: 2.5rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 10px;
  }

  .intro-text {
    max-width: 100%;
    text-align: center;
  }

  .hero-image {
    height: 260px;
  }

  .product-card,
  .recipe-card {
    width: 100%;
  }

  .signup-box input {
    width: 100%;
    margin-bottom: 10px;
  }

  .signup-box button {
    width: 100%;
  }
}

/* FINAL ABOUT IMAGE FIX */

.about-section {
  padding: 65px 10px;
  background: white;
}

.about-content {
  display: flex;
  gap: 35px;
  align-items: center;
  justify-content: center;
}

.about-image {
  flex: 0 0 380px;
  width: 380px;
  height: 380px;
  max-width: 380px;
  max-height: 380px;
  background: linear-gradient(135deg, #dfffd8, #d8f3ff);
  border-radius: 14px;
  border: 2px dashed #8bc34a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.recipe-image video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* CONTACT PAGE */

.contact-section {
  padding: 80px 20px;
}

.contact-form {
  max-width: 900px;
  margin: 40px auto 0;
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #d8f3c3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  font-size: 1rem;
}

.contact-form textarea {
  grid-column: span 2;
  min-height: 180px;
}

.contact-form button {
  grid-column: span 2;
  justify-self: center;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
}