/*
 Theme Name:   Charles Jacquin
 Description:  Child Theme based on Ultra Theme
 Author:       OFF unit
 Author URI:   https://offunit.com
 Template:     themify-ultra
 Version:      1.0.0
*/

/* Custom Fonts */


/* Reset */
#headerwrap, #footerwrap { border: none; }
#headerwrap { border-bottom: none; } 
#footerwrap { border-top: none; }
#content { padding:0; }

/* Sticky header hot fix */
.fixed-header .header-bar, .fixed-header .search-button, .fixed-header .header-widget {
    display: block;
}

/* Variables */
:root { --white: #fff; --black: #000; --dietz-dill-green: #40683c; }

body { font-family: "sweet-sans-pro",sans-serif; font-size: 1.3em; }
h1, h2, h3, h4 { font-family: "kazimir",sans-serif; font-weight: 500; line-height: 1.1em; }
h2 { font-size: 3em; }
h3 { font-size: 2.7em; }
h4 { font-size: 2.3em; }
p { font-weight: 600; }

/* Nav Menu */

#main-nav a { font-size: .9em; }
#main-nav li>.sub-menu { background-color: rgba(0,0,0,.8); border-radius: 0; width: 270px; }
#main-nav ul a { color: #fff; }
#main-nav ul a:hover { color: #c9a24a; } 


/* Adobe Fonts 
.tk-kazimir { font-family: "kazimir",sans-serif; }
.tk-sweet-sans-pro { font-family: "sweet-sans-pro",sans-serif; }
.tk-alternate-gothic-atf { font-family: "alternate-gothic-atf",sans-serif; }
.tk-alternate-gothic-atf-thin { font-family: "alternate-gothic-atf-thin",sans-serif; }
*/

/* Text Stylings */
.font-alternate-gothic { font-family: "alternate-gothic-atf", sans-serif; }
.text-align--center { text-align: center; }
.text-align--right { text-align: right; }
.font-size--1_5em { font-size: 1.5em; }
.font-size--2_5em { font-size: 2.5em; }
.font-size--3em { font-size: 3em; }
.font-size--5em { font-size: 5em; }
.font-size--6em { font-size: 6em;}
.font-size--8em { font-size: 8em; }
.font-weight--600 { font-weight: 600; }
.font-weight--700 { font-weight: 700; }
.text-shadow { text-shadow: 0px 3px 8px rgba(66, 68, 90, 0.75); }
.no-margin { margin: 0; }
.line-height--1em { line-height: 1em; }

.image-shadow img { filter: drop-shadow(0px 3px 8px rgba(66, 68, 90, 0.75)); }

/* Colors */
.color--white { color: var(--white); }
.color--black { color: var(--black); }
.color--dietz { color: var(--dietz-dill-green); }

/* Home Brand logos */
.image-row {
  display: flex;
  width: 100%;
}

.image-item {
  flex: 1;
  position: relative;
	
	 /* vertical + horizontal centering */
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.image-item img {
  transition: transform 0.3s ease;
}

.image-item:hover img {
  transform: scale(1.1);
}

/* Vertical divider */
.image-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background-color: #ccc;
}


/* Brand Infinte Carousel */
.brand-carousel {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  background: #f0f0f0;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
}

.brand {
  flex: 0 0 auto;
  width: 180px;
  margin: 0 40px;
  display: flex-end;
/*  align-items: bottom;*/
  justify-content: center;
}

.brand img {
  max-width: 100%;
  max-height: 480px;
/*  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand img:hover {
  filter: grayscale(0%);
  opacity: 1;*/
}

/* animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* pause on hover */
.brand-carousel:hover .carousel-track {
  animation-play-state: paused;
}
/* END OF Brand Carousel */

/* Timeline v2 */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* center line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #d4af37;
  transform: translateX(-50%);
}

/* each row */
.timeline-item {
  position: relative;
  margin-bottom: 80px;
}

/* inner layout */
.timeline-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* alternating layout */
.timeline-item:nth-child(even) .timeline-inner {
  direction: rtl; /* flips layout */
}

.timeline-item:nth-child(even) .timeline-text,
.timeline-item:nth-child(even) .timeline-image {
  direction: ltr; /* fix text direction */
}

/* dot marker */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #d4af37;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.2);
}

/* text styling */
.timeline-text {
  padding: 20px;
}

.timeline-text .year {
  display: block;
  color: #d4af37;
  font-weight: bold;
	font-size: 1.5em;
  margin-bottom: 10px;
}

.timeline-text h3 {
  margin: 0 0 10px;
  font-size: 1.4em;
}

.timeline-text p {
  margin: 0;
  color: #555;
}

/* image styling */
.timeline-image {
		display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
}

.timeline-image img {
 width: 350px;
/*object-fit: contain;*/
  border-radius: 6px;

	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


/* Highlight wrapper */
.timeline-item.highlight {
  margin: 120px 0;
}

/* Remove grid layout */
.timeline-item.highlight .timeline-inner {
  display: block;
}

/* Full-width highlight container */
.timeline-highlight {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Large image */
.timeline-highlight img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;

	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.timeline-highlight img {
  transition: transform 0.5s ease;
}

.timeline-item.highlight:hover img {
  transform: scale(1.03);
}

/* Content styling */
.highlight-content {
  background: #f9f6ef;
  padding: 30px 40px;
  border: 2px solid #d4af37;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Bigger typography */
.highlight-content .year {
  color: #d4af37;
  font-weight: bold;
  font-size: 1.5em;
  margin-bottom: 10px;
  display: block;
}

.highlight-content h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.highlight-content p {
  color: #555;
}

/* Center the dot */
.timeline-item.highlight::before {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: #d4af37;
  box-shadow: 0 0 0 6px rgba(212,175,55,0.2);
}

/* Remove card feel */
.timeline-item.highlight.flat .highlight-content {
  background: #fff/*transparent*/;
  border: none;
  box-shadow: none;
  padding: 20px 0;
}

/* Make image feel more integrated */
.timeline-item.highlight.flat .timeline-highlight img {
  border-radius: 0;
  box-shadow: none;
}

/* Optional: make it wider / more immersive */
.timeline-item.highlight.flat .timeline-highlight {
  max-width: 100%;
}

/* Optional: tighter spacing for editorial look */
.timeline-item.highlight.flat {
  margin: 80px 0;
}

/* END OF Timeline v2 */

/* Gallery Carousel */

.gallery-carousel {
  position: relative;
  max-width: 100%;
  margin: auto;
}

.gallery-carousel__viewport {
  overflow: hidden;
}

.gallery-carousel__track {
  display: flex;
  scroll-behavior: smooth;
}

.gallery-carousel__slide {
  flex: 0 0 calc(100% / 3);
  padding: 10px;
  box-sizing: border-box;
}

.gallery-carousel__slide img {
  width: 100%;
  height: 510px;
  object-fit: contain;
  display: block;
}

.gallery-carousel__content h4 {
	text-align: center;
	font-size: 1.8em;
}

/* Buttons */
.gallery-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.0);
  color: #000;
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 2;
}

.gallery-carousel__btn--prev { left: 0; }
.gallery-carousel__btn--next { right: 0; }

/* END OF Gallery Carousel */

/* Recipe Cards */

.recipe-cards {
  display: flex;
  flex-direction: column;
}

/* Card Layout */
.recipe-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
}

/* Alternating backgrounds */
.recipe-card:nth-child(odd) {
  background: #ffffff;
}

.recipe-card:nth-child(even) {
  background: #f4f4f4;
}

/* Alternate image position */
.recipe-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* Image */
.recipe-card-image {
  flex: 0 0 40%;
}

.recipe-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Content */
.recipe-card-content {
  flex: 1;
  max-width: 600px;
}

.recipe-card-title {
  font-size: 2rem;
  margin-bottom: 15px;
}


.recipe-card-text, .recipe-card-content li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.recipe-card-signature {
  font-size: 1.3rem;
}

/* Garnish */
.recipe-card-garnish {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333;
}

/* Quote */
.recipe-card-quote {
  margin: 15px 0 20px;
  padding-left: 18px;
  border-left: 3px solid #ddd;
  font-style: italic;
  color: #555;
}

/* END OF Recipe Cards */

/* Rock & Rye */

.rr-recipe-card {
	color: var(--white); 
	padding-bottom: 3em; 
}

.rr-recipe-title {
	font-size: 1.5em;
	font-weight: 500;
	color: var(--white); 
}

/* INGREDIENTS GRID */
.rr-recipe-ingredients {
}

.rr-recipe-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rr-recipe-ingredients li {
  padding: 0;
	margin: 0;
}

.rr-recipe-ingredients li span {
	width: 150px;
	display: inline-block;
}

/* INSTRUCTIONS FULL ROW */
.rr-recipe-instructions {
  border-top: 1px solid #ddd;
  margin-top: 10px;
	padding-top: 16px;
  font-size: .8em;
  line-height: 1.6;
}

/* END OF Rock & Rye */

@media (max-width: 768px) {
	/* Brand Carousel */
  .image-row {
    flex-wrap: wrap;
  }

  .image-item {
    flex: 0 0 50%;
  }
	
	/* Timeline v2 */
	 .timeline::before {
    left: 20px;
  }

  .timeline-inner {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-item::before {
    left: 20px;
  }
	
	  .recipe-card {
    flex-direction: column;
    padding: 40px 20px;
  }

  .recipe-card:nth-child(even) {
    flex-direction: column;
  }

  .recipe-card-image img {
    height: 260px;
  }

	
	/* Timeline v1 
	 .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
  }

  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }

  .timeline-item::before {
    left: 13px;
  } */
}