/* Family Legacy Page Styles */
@font-face {
  font-family: 'Tequlia';
  src: url('../fonts/Tequlia.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@keyframes glow {
  from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
  to { text-shadow: 2px 2px 20px rgba(255,255,255,0.5); }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #333;
  background-color: white;
  overflow-x: hidden;
}

.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/legacy/1.0.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: bold;
  margin: 4rem 0 0 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-family: 'Tequlia', 'Playfair Display', serif;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Content Section */
.content-section {
  background: white;
  min-height: 50vh;
  padding: 3rem 2rem 6rem;
  position: relative;
  z-index: 3;
}

.content-container {
  max-width: 1600px;
  margin: 0 auto;
}

/* Legacy Box Styles */
.legacy-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 4rem 3rem;
  margin: 2rem auto 0;
  max-width: 1400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.legacy-intro {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
}

.legacy-intro p {
  font-size: 1.35rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #2d2d2d;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: #C6A57C;
  font-weight: 600;
}

.crest-container {
  margin: 3rem auto;
  max-width: 200px;
}

.family-crest {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.5s ease;
}

.family-crest:hover {
  transform: scale(1.05);
}

/* Timeline Styles */
.legacy-timeline {
  position: relative;
  margin: 6rem 0;
}

/* Removing the vertical gold line
.legacy-timeline::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, transparent, #C6A57C, #C6A57C, transparent);
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}
*/

.timeline-item {
  margin-bottom: 8rem;
  position: relative;
}

.timeline-item::after {
  display: none; /* Removing the gold dots */
}

.timeline-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 100%;
}

.left .timeline-content {
  margin-right: auto;
  text-align: right;
  flex-direction: row-reverse;
}

.right .timeline-content {
  margin-left: auto;
  text-align: left;
}

.timeline-image {
  flex: 0 0 55%;
}

.timeline-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transition: transform 0.4s ease;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.timeline-photo:hover {
  transform: scale(1.03);
}

.timeline-text {
  flex: 1;
}

.timeline-text h3 {
  color: #C6A57C;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.timeline-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

/* Full-width Divider */
.full-width-divider {
  margin: 6rem -3rem;
  position: relative;
}

.divider-image {
  position: relative;
  overflow: hidden;
  height: auto;
}

.divider-photo {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transform: scale(1.01);
}

.divider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.divider-content {
  max-width: 800px;
  text-align: center;
  color: white;
}

.divider-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: #fff;
}

.divider-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 0;
}

/* Legacy Footer */
.legacy-footer {
  margin-top: 7rem;
}

.legacy-image-full {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.full-width-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.legacy-image-full:hover .full-width-image {
  transform: scale(1.05);
}

.legacy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3rem;
}

.legacy-quote {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  font-style: italic;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  max-width: 80%;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .timeline-content {
    max-width: 100%;
    flex-direction: column;
  }
  
  .left .timeline-content, 
  .right .timeline-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .timeline-image {
    flex: 0 0 100%;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  
  .timeline-photo {
    max-width: 100%;
    aspect-ratio: 16/9;
  }
  
  .legacy-quote {
    font-size: 1.5rem;
  }
  
  .full-width-divider {
    margin: 4rem -2rem;
  }
  
  .divider-photo {
    height: auto;
    min-height: 50vh;
  }
  
  .divider-content h2 {
    font-size: 2.5rem;
  }
  
  .divider-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
  }
  
  .legacy-box {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .content-section {
    padding: 2rem 1rem;
  }
  
  .timeline-text h3 {
    font-size: 1.75rem;
  }
  
  .timeline-text p {
    font-size: 1rem;
  }
  
  .legacy-overlay {
    padding-bottom: 1.5rem;
  }
  
  .legacy-quote {
    font-size: 1.25rem;
  }
  
  .full-width-divider {
    margin: 3rem -1rem;
  }
  
  .divider-photo {
    min-height: 40vh;
  }
  
  .divider-content {
    padding: 1rem;
  }
  
  .divider-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .divider-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Bottle Innovation Section */
.bottle-innovation-section {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin: 6rem 0;
  padding: 2rem 0;
}

.innovation-content {
  flex: 2;
}

.innovation-content h3 {
  color: #C6A57C;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.innovation-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
}

.innovation-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  max-width: 35%;
  display: flex;
  justify-content: center;
}

.image-container {
  width: 100%;
  max-width: 280px;
}

.innovation-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  display: block;
}

.innovation-photo:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
  .bottle-innovation-section {
    flex-direction: column-reverse;
    gap: 2rem;
    margin: 4rem 0;
  }
  
  .innovation-content {
    text-align: center;
  }
  
  .innovation-content h3 {
    font-size: 2rem;
  }
  
  .innovation-image {
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  .image-container {
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .bottle-innovation-section {
    margin: 3rem 0;
    padding: 1rem 0;
  }
  
  .innovation-content h3 {
    font-size: 1.75rem;
  }
  
  .innovation-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .image-container {
    max-width: 200px;
  }
}
