/* Shared CSS for Franc Wines Website */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #2e2e2e;
  background: linear-gradient(135deg, #f8f6f0 0%, #f5f2eb 100%);
  min-height: 100vh;
  position: relative;
}

/* Landscape background with low opacity */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/landscape.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Navigation */
.back-link {
  display: inline-block;
  margin: 30px 0 20px;
  color: #5c5754;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
}

.back-link:hover {
  color: #2c2928;
  text-decoration: underline;
}

/* Header/Logo Section */
header {
  text-align: center;
  padding: 60px 0 40px;
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.logo-container {
  background: linear-gradient(135deg, #f8f6f0 0%, #f5f2eb 100%);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: inline-block;
}

.logo {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

h1 {
  font-size: 2.5em;
  margin: 0 0 10px 0;
  color: #2c2928;
  font-weight: 300;
  letter-spacing: 2px;
}

.tagline {
  font-size: 1.2em;
  color: #5c5754;
  font-style: italic;
  margin: 0;
}

/* Producer Grid (Index Page) */
.producers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.producer-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.producer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.producer-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.producer-content {
  padding: 25px;
}

.producer-title {
  font-size: 1.6em;
  margin: 0 0 10px 0;
  color: #2c2928;
  font-weight: 400;
}

.producer-location {
  font-size: 1em;
  color: #5c5754;
  margin-bottom: 15px;
  font-style: italic;
}

.producer-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #2e2e2e;
  margin: 0;
}

/* Logo card specific styling */
.logo-card {
  background-image: url('images/landscape.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* border: 2px solid rgba(44, 41, 40, 0.1); */
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.logo-card > * {
  position: relative;
  z-index: 2;
}

.logo-card .producer-content {
  order: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 25px;
  text-align: center;
}

.logo-card .producer-image {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: auto;
}

.logo-card .logo {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.logo-card .tagline {
  font-size: 0.9em;
  text-align: center;
  color: #5c5754;
  font-style: italic;
  margin: 0;
  max-width: 180px;
  line-height: 1.3;
}

.logo-card .logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.logo-card .producer-title {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 15px;
}

.logo-card .tagline {
  font-size: 1.1em;
  text-align: center;
  color: #5c5754;
  font-style: italic;
  margin: 0;
}

/* Hero Section (Producer Pages) */
.hero-section {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 40px;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 40px;
}

.producer-title-large {
  font-size: 3em;
  margin: 0 0 10px 0;
  color: #2c2928;
  font-weight: 300;
  letter-spacing: 2px;
}

.producer-location-large {
  font-size: 1.3em;
  color: #5c5754;
  margin-bottom: 30px;
  font-style: italic;
}

.producer-description-large {
  font-size: 1.2em;
  line-height: 1.8;
  color: #2e2e2e;
  margin: 0;
}

/* Content Sections */
.content-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-title {
  font-size: 2.2em;
  margin: 0 0 30px 0;
  color: #2c2928;
  font-weight: 400;
  border-bottom: 2px solid rgba(44, 41, 40, 0.2);
  padding-bottom: 15px;
}

/* Wines Grid - Updated for side-by-side layout */
.wines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* Wine Cards */
.wine-card {
  background: #f8f6f0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 25px;
  align-items: start;
}

.wine-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Wine cards without images */
.wine-card:not(:has(img)) {
  grid-template-columns: 1fr;
}

.wine-image {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wine-content {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.wine-name {
  font-size: 1.6em;
  margin: 0 0 15px 0;
  color: #2c2928;
  font-weight: 500;
}

.wine-details {
  font-size: 1.1em;
  line-height: 1.7;
  color: #2e2e2e;
  margin: 0;
}

/* Gallery Grid with Modal */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Tasting Notes Grid */
.tasting-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tasting-note-card {
  background: #f8f6f0;
  border-radius: 10px;
  padding: 25px;
  border-left: 4px solid #8b4513;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tasting-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tasting-note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.tasting-note-header .wine-name {
  font-size: 1.3em;
  margin: 0;
  color: #2c2928;
  font-weight: 500;
}

.rating {
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

.tasting-note-content {
  margin-top: 15px;
}

.tasting-note-text {
  font-size: 1em;
  line-height: 1.7;
  color: #2e2e2e;
  margin: 0;
  font-style: italic;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.95);
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.contact-info {
  font-size: 1.1em;
  color: #2c2928;
  margin: 10px 0;
}

.contact-info a {
  color: #5c5754;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: #2c2928;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }
  
  header {
    padding: 40px 0 30px;
    margin-bottom: 40px;
  }
  
  .logo {
    max-width: 200px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  .producers-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 60px;
  }
  
  .producer-content {
    padding: 20px;
  }
  
  .producer-title {
    font-size: 1.4em;
  }
  
  .logo-card .producer-title {
    font-size: 1.6em;
  }
  
  .hero-content {
    padding: 30px 25px;
  }
  
  .producer-title-large {
    font-size: 2.2em;
  }
  
  .content-section {
    padding: 30px 25px;
  }
  
  .section-title {
    font-size: 1.8em;
  }
  
  .wine-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
  }
  
  .wine-image {
    width: 100%;
    height: 250px;
    justify-self: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .tasting-notes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tasting-note-card {
    padding: 20px;
  }
  
  .tasting-note-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .close {
    top: 10px;
    right: 25px;
    font-size: 35px;
  }
} 