/* 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: #f4ebd0;
  background-color: #110d0a; /* Dark site theme */
  background: #110d0a;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), 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 8px rgba(0,0,0,0.8);
  font-family: 'Tequlia', 'Playfair Display', serif;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Content Section */
.content-section {
  background: transparent;
  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: rgba(17, 13, 10, 0.85); /* Dark theme overlay */
  border: 1px solid rgba(212, 179, 133, 0.3); /* Gold border */
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 4rem 3rem;
  margin: 2rem auto 0;
  max-width: 1400px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  text-align: left;
  position: relative;
  overflow: hidden;
}

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

.legacy-intro p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  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);
}

.image-collage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sub-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sub-photo {
  aspect-ratio: 1; /* Square thumbnails for the old photos */
}

.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.35rem;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  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 1rem;
    margin: 0 0.5rem;
  }
  
  .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.4rem;
  line-height: 1.8;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.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;
  }
}

/* ===== CELLAR CTA SECTION ===== */
.family-cellar-cta {
  background: linear-gradient(to bottom, #110d0a, #0a0805);
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(198, 165, 124, 0.1);
  position: relative;
  overflow: hidden;
}

.family-cellar-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(198, 165, 124, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.family-cellar-cta .cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.family-cellar-cta .cta-title {
  font-family: 'CASTELAR', serif;
  font-size: 2.2rem;
  color: #C6A57C;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.family-cellar-cta .cta-subtitle {
  font-size: 1.1rem;
  color: rgba(244, 235, 208, 0.7);
  margin-bottom: 3rem;
  font-style: italic;
  font-weight: 300;
}

.btn-gold-cta {
  display: inline-block;
  font-family: 'CASTELAR', serif;
  background-color: #C6A57C;
  color: #0a0805;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  border: 1px solid #C6A57C;
  text-transform: uppercase;
  border-radius: 4px;
}

.btn-gold-cta:hover {
  background-color: transparent;
  color: #C6A57C;
  box-shadow: 0 0 20px rgba(198, 165, 124, 0.3);
}

@media (max-width: 768px) {
  .family-cellar-cta {
    padding: 4rem 1.5rem;
  }
  .family-cellar-cta .cta-title {
    font-size: 1.8rem;
  }
}
