/*
 * Main stylesheet for the South Florida Wedding Vendor directory.
 * The design draws inspiration from modern wedding websites—soft
 * pastels, generous white space and elegant typography—creating a
 * calm, romantic mood throughout the site.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Montserrat:wght@300;400;500&display=swap');

:root {
  --background: #fdfaf9;
  --primary: #e7a5b1;     /* soft blush accent */
  --secondary: #9fb8ad;   /* muted sage green */
  --text-dark: #444444;
  --text-light: #7a7a7a;
  --card-bg: #ffffff;
  --card-border: #f3e7e9;
  --radius: 8px;
  --shadow: 0 4px 8px rgba(0,0,0,0.05);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background-color: var(--card-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

header .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav li {
  font-size: 0.95rem;
  font-weight: 500;
}

.hero {
  background: url('../assets/images/hero_bg.png') center/cover no-repeat;
  padding: 5rem 2rem;
  text-align: center;
  color: #4b4243;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.filter-container {
  background-color: var(--card-bg);
  margin: -2rem auto 2rem auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-container label {
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.filter-container select,
.filter-container input[type="text"],
.filter-container input[type="date"],
.filter-container input[type="number"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background-color: #ffffff;
  font-size: 0.9rem;
  color: var(--text-dark);
  max-width: 180px;
}

/* wider multi-select for style */
#style {
  min-width: 150px;
}

.filter-container button {
  padding: 0.45rem 1rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.filter-container button:hover {
  background-color: #d48c9c;
}

.vendor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

.vendor-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.vendor-card:hover {
  transform: translateY(-4px);
}

.vendor-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.vendor-card .card-body {
  padding: 1rem;
  flex-grow: 1;
}

.vendor-card .card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.vendor-card .card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background-color: var(--secondary);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
}

.footer {
  background-color: var(--card-bg);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--card-border);
}

/* Vendor profile page */
.vendor-profile {
  max-width: 1000px;
  margin: 2rem auto;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.vendor-profile .gallery {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.vendor-profile .gallery img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.vendor-profile .details {
  flex: 1 1 500px;
  padding: 1.5rem;
}

.vendor-profile .details h2 {
  margin-top: 0;
}

.vendor-profile .details .info {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.vendor-profile .details .info span {
  font-weight: 500;
  color: var(--text-dark);
}

.vendor-profile .details .tags {
  margin: 0.5rem 0;
}

.vendor-profile .reviews {
  margin-top: 1rem;
}

.vendor-profile .reviews h3 {
  margin-bottom: 0.5rem;
}

.review {
  border-top: 1px solid var(--card-border);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.review:first-child {
  border-top: none;
}

.review .reviewer {
  font-weight: 600;
  color: var(--primary);
}

.contact-form {
  margin-top: 1.5rem;
}

.contact-form h3 {
  margin-bottom: 0.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.6rem 1.5rem;
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #d48c9c;
}

/* Form pages (Submit vendor, search bar) */
.form-page {
  max-width: 800px;
  margin: 2rem auto;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-page form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-page label {
  font-weight: 500;
  color: var(--text-dark);
}

.form-page input,
.form-page select,
.form-page textarea {
  padding: 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background-color: #fff;
  color: var(--text-dark);
}

.form-page button {
  width: fit-content;
  padding: 0.6rem 1.4rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.form-page button:hover {
  background-color: #d48c9c;
}

/* Blog styles */
.blog-list {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card .content {
  padding: 1rem;
  flex-grow: 1;
}

.blog-card .content h3 {
  margin-bottom: 0.5rem;
}

.blog-card .content p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.blog-card .content .read-more {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .filter-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-container label {
    margin-bottom: 0.3rem;
  }
}