/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --blush-pink: #f7c6c7;
  --rose-gold: #b76e79;
  --ivory: #fff9f5;
  --warm-taupe: #6e5a52;
  --cream: #fff2e5;
  --white: #ffffff;
  --soft-gray: #f5f5f5;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 4rem 0;
  --element-spacing: 2rem;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--warm-taupe);
  background-color: var(--ivory);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 249, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose-gold);
  transition: var(--transition);
}

.nav-brand a:hover {
  color: var(--blush-pink);
}

.heart-icon {
  width: 24px;
  height: 24px;
  color: var(--rose-gold);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--warm-taupe);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-gold);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose-gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--rose-gold);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blush-pink) 0%, var(--cream) 100%);
  opacity: 0.8;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../public/image-placeholder-romantic-theme.png") center /
    cover;
  opacity: 0.3;
  filter: blur(2px);
}

/* Page-specific hero backgrounds */
.home-hero .hero-background::before {
  background: url("../public/hero-romantic-couple-sunset.png") center / cover;
  opacity: 0.35;
  filter: blur(1px);
}

.articles-hero .hero-background::before {
  background: url("../public/articles-blog-romantic-writing.png") center / cover;
  opacity: 0.35;
  filter: blur(1px);
}

.about-hero .hero-background::before {
  background: url("../public/about-page-romantic-story.png") center / cover;
  opacity: 0.35;
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--rose-gold);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--warm-taupe);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--warm-taupe);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--rose-gold);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.cta-button:hover {
  background: var(--blush-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

/* Featured Articles Section */
.featured-articles {
  padding: var(--section-padding);
  background: var(--white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--rose-gold);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blush-pink);
}

/* Articles Page - Filter + Section spacing */
.articles-filter {
  padding: 4rem 0 0; /* top-only to avoid stacked spacing */
  background: var(--white);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  appearance: none;
  border: 2px solid var(--rose-gold);
  background: transparent;
  color: var(--rose-gold);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(183, 110, 121, 0.12);
}

.filter-btn:hover {
  background: var(--rose-gold);
  color: var(--white);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--rose-gold);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(183, 110, 121, 0.25);
}

.articles-section {
  padding: 4rem 0;
  background: var(--white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-card.featured {
  grid-column: span 2;
}

.article-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.featured .article-image {
  height: 300px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 2rem;
}

.article-category {
  display: inline-block;
  background: var(--blush-pink);
  color: var(--rose-gold);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  margin-bottom: 1rem;
}

.article-title a {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--warm-taupe);
  text-decoration: none;
  line-height: 1.3;
  transition: var(--transition);
}

.featured .article-title a {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.article-title a:hover {
  color: var(--rose-gold);
}

.article-excerpt {
  color: var(--warm-taupe);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  opacity: 0.8;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--rose-gold);
}

.read-time {
  font-weight: 500;
}

.load-more-container {
  text-align: center;
}

.load-more-btn {
  background: transparent;
  border: 2px solid var(--rose-gold);
  color: var(--rose-gold);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--rose-gold);
  color: var(--white);
}

/* Quote Section */
.quote-section {
  padding-top: var(--section-padding);
  background: linear-gradient(135deg, var(--blush-pink) 0%, var(--cream) 100%);
  text-align: center;
}

.featured-quote {
  max-width: 800px;
  margin: 0 auto;
}

.featured-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--rose-gold);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.featured-quote cite {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--warm-taupe);
  font-style: normal;
}

/* Resources Page */
.resources-hero {
  height: 70vh;
}

.resources-hero .hero-background {
  background: linear-gradient(135deg, var(--blush-pink) 0%, var(--cream) 100%);
  opacity: 0.9;
}

.resources-hero .hero-background::before {
  background: url("../public/resources-love-tools-guides.png") center / cover;
  opacity: 0.35;
  filter: blur(1px);
}

.resources-section {
  padding: 4rem 0;
  background: var(--white);
}

.resources-intro {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.resources-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--warm-taupe);
  opacity: 0.9;
}

.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.resource-category {
  background: transparent;
}

.resource-category .category-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--rose-gold);
  margin-bottom: 1rem;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(183, 110, 121, 0.15);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.resource-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--warm-taupe);
  margin-bottom: 0.5rem;
}

.resource-card p {
  color: var(--warm-taupe);
  opacity: 0.85;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.resource-content h5 {
  color: var(--rose-gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.resource-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.resources-note {
  margin: 2.5rem 0;
  background: var(--soft-gray);
  border-left: 4px solid var(--rose-gold);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.resources-note .note-text {
  color: var(--warm-taupe);
}

/* About Section */
.about-section {
  padding: var(--section-padding);
  background: var(--white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--warm-taupe);
}

/* About Page - Content */
.about-content-section {
  padding: 4rem 0 0; /* top-only per spacing preference */
  background: var(--white);
}

.about-story {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.mission-section {
  margin-top: 2rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.mission-card {
  background: var(--white);
  border: 1px solid rgba(183, 110, 121, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.mission-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--warm-taupe);
  margin-bottom: 0.5rem;
}

.mission-card p {
  color: var(--warm-taupe);
  opacity: 0.9;
  line-height: 1.7;
}

.values-section {
  margin-top: 2.5rem;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.value-item {
  background: var(--soft-gray);
  border-left: 4px solid var(--rose-gold);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.value-item h4 {
  font-family: var(--font-heading);
  color: var(--rose-gold);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.value-item p {
  color: var(--warm-taupe);
  opacity: 0.9;
  line-height: 1.7;
}

.approach-section {
  margin-top: 2.5rem;
}

/* Footer */
.footer {
  background: var(--warm-taupe);
  color: var(--ivory);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.footer .heart-icon {
  color: var(--blush-pink);
}

.footer-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 249, 245, 0.2);
  padding-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--ivory);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }

  .mission-grid,
  .values-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-card.featured {
    grid-column: span 1;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .article-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-image {
    height: 200px;
  }

  .featured .article-image {
    height: 200px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--rose-gold);
  outline-offset: 2px;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
