/* Huile d'Olive Page Styles */

.huile-page {
  background-color: var(--color-background);
}

.huile-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 450px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}

.huile-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.huile-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.huile-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.huile-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--spacing-md);
  max-width: 900px;
}

.huile-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  margin: 0 0 var(--spacing-sm) 0;
}

.huile-hero-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  line-height: 1.5;
}

.huile-intro {
  background-color: var(--color-background);
}

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

.intro-content .lead {
  font-size: 2rem;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 300;
}

.huile-section {
  position: relative;
}

.huile-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: stretch;
}

.huile-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

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

.huile-content:hover .image-wrapper img {
  transform: scale(1.05);
}

.huile-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  order: 1;
}

.huile-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.huile-description {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.huile-description p {
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
}

.huile-cta {
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.8rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-text);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .huile-hero {
    height: 70vh;
    min-height: 550px;
  }

  .huile-hero-title {
    font-size: 6rem;
  }

  .huile-hero-subtitle {
    font-size: 2rem;
  }

  .intro-content .lead {
    font-size: 2.2rem;
  }

  .huile-content {
    flex-direction: row;
    gap: var(--spacing-xl);
    align-items: center;
  }

  .huile-image {
    width: 50%;
    order: initial;
  }

  .huile-text {
    width: 50%;
    order: initial;
  }

  .huile-content-right {
    flex-direction: row-reverse;
  }

  .image-wrapper {
    max-width: 100%;
  }

  .huile-text h2 {
    font-size: 4rem;
  }

  .huile-description p {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .huile-hero-title {
    font-size: 7rem;
  }

  .huile-hero-subtitle {
    font-size: 2.2rem;
  }

  .intro-content .lead {
    font-size: 2.4rem;
    line-height: 1.9;
  }

  .huile-content {
    gap: 5rem;
  }

  .huile-text h2 {
    font-size: 4.5rem;
  }

  .huile-description {
    gap: var(--spacing-lg);
  }

  .huile-description p {
    font-size: 1.9rem;
    line-height: 1.9;
  }

  .cta-content h2 {
    font-size: 4rem;
  }

  .cta-content p {
    font-size: 2rem;
  }
}

@media (min-width: 1280px) {
  .huile-content {
    gap: 6rem;
  }
}
