/* 
 * Sulame Food Blog - Main Stylesheet
 * Modern, Clean, and Responsive
 */

:root {
  --primary-color: #e07a5f;
  --secondary-color: #3d405b;
  --accent-color: #f2cc8f;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --border-color: #e1e1e1;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--off-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d1664e;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #2c2f42;
}

/* Header & Navbar */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar .nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1rem;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow);
  top: 100%;
  left: 0;
  border-radius: 4px;
  z-index: 1000;
  padding: 10px 0;
  margin-top: 10px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 12px 16px;
  display: block;
  font-weight: 400;
}

.dropdown-content a:hover {
  background-color: var(--off-white);
  color: var(--primary-color);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  height: 80vh;
  min-height: 500px;
  background-image: url('https://loremflickr.com/1200/800/food,spice');
  /* Fallback or specific hero image */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: var(--white);
}

.category-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
}

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.article-content h3 a:hover {
  color: var(--primary-color);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: applied;
  flex-grow: 1;
}

.read-more {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  gap: 8px;
}

/* Subscribe Section */
.subscribe-section {
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
}

.subscribe-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.subscribe-content p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  outline: none;
}

/* Footer */
.footer {
  background-color: #2c2f42;
  /* Darker than secondary */
  color: #aeaeae;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
  }

  .navbar.active {
    display: flex;
  }

  .navbar .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid var(--off-white);
  }

  /* Mobile Dropdown */
  .dropdown:hover .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: var(--off-white);
    width: 100%;
    display: none;
    /* JS will toggle for better mobile UX or just use hover logic if kept simple */
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}