/* ===================================================================
   Combined Styles for CrossTimber 2025 Redesign
   Contains styles for Homepage (hp-*) and Content Pages (cp-*)
   =================================================================== */

/* --- General Homepage Container & Fonts --- */
.hp-container {
    font-family: 'Overlock', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    color: #333;
    line-height: 1.6;
}

.hp-handlee {
    font-family: 'Handlee', cursive;
    font-weight: normal;
}

.hp-section-headline {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
    color: #2c3e50;
}

/* ===================================================================
   SECTION 1: HOMEPAGE HERO (hp-*)
   =================================================================== */
.hp-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 500px;
    background: url('https://via.placeholder.com/1600x600.png/BFBFBF/FFFFFF?text=Hero+Background+Image') no-repeat center center;
    background-size: cover;
    color: #fff;
    position: relative;
}

.hp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hp-main-headline {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hp-main-headline .hp-handlee {
    font-size: 1.1em;
    color: #f1c40f; /* A warm, inviting gold color */
}

.hp-subheadline {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hp-cta-button {
    display: inline-block;
    background-color: #3498db; /* Your site's primary blue */
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hp-cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    color: #fff;
}

.hp-trust-bar {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* ===================================================================
   HOMEPAGE SECTIONS (hp-*)
   =================================================================== */

/* --- Section 2: Process --- */
.hp-process {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.hp-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.hp-process-step {
    text-align: center;
    padding: 20px;
}

.hp-process-icon {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.hp-process-step h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hp-process-step a {
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
}

.hp-process-step a:hover {
    text-decoration: underline;
}

/* --- Section 3: Shop Gifts --- */
.hp-shop {
    padding: 60px 20px;
}

.hp-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hp-shop-card {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hp-shop-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hp-shop-title {
    padding: 15px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    background-color: #f8f9fa;
}

/* --- Section 4: The "Heart" --- */
.hp-heart {
    padding: 60px 20px;
    background-color: #ecf0f1;
}

.hp-heart-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.hp-heart-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hp-heart-content .hp-section-headline {
    text-align: left;
}

.hp-heart-content blockquote {
    font-size: 1.3em;
    font-style: italic;
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
}

.hp-heart-content blockquote footer {
    font-style: normal;
    font-size: 0.8em;
    color: #777;
    margin-top: 10px;
}

.hp-cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: #3498db;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #3498db;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

.hp-cta-button-secondary:hover {
    background-color: #3498db;
    color: #fff;
}

/* --- Section 5: Testimonials --- */
.hp-testimonials {
    padding: 60px 20px;
    text-align: center;
}

.hp-testimonial-slider {
    max-width: 700px;
    margin: 0 auto 30px auto;
    position: relative;
    height: 200px; /* Adjust height if your longest testimonial wraps */
    overflow: hidden;
}

.hp-testimonial-slide {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0; /* Start all slides as invisible */
    animation-iteration-count: infinite;
    animation-duration: 50s; /* Total duration for all 5 slides (5 slides * 10s each) */
}

.hp-testimonial-text {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 10px;
}

.hp-testimonial-author {
    font-weight: bold;
    color: #555;
}

/* Assign a unique animation timing to each slide */
.hp-testimonial-slide:nth-child(1) { animation-name: fade-testimonial-1; }
.hp-testimonial-slide:nth-child(2) { animation-name: fade-testimonial-2; }
.hp-testimonial-slide:nth-child(3) { animation-name: fade-testimonial-3; }
.hp-testimonial-slide:nth-child(4) { animation-name: fade-testimonial-4; }
.hp-testimonial-slide:nth-child(5) { animation-name: fade-testimonial-5; }

/* Keyframes for each slide's visibility window within the 50s loop */
@keyframes fade-testimonial-1 { 0% { opacity: 1; } 18% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fade-testimonial-2 { 18% { opacity: 0; } 20% { opacity: 1; } 38% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fade-testimonial-3 { 38% { opacity: 0; } 40% { opacity: 1; } 58% { opacity: 1; } 60% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fade-testimonial-4 { 58% { opacity: 0; } 60% { opacity: 1; } 78% { opacity: 1; } 80% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fade-testimonial-5 { 78% { opacity: 0; } 80% { opacity: 1; } 98% { opacity: 1; } 100% { opacity: 0; } }

/* --- Section 6: Family --- */
.hp-family {
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f9fa;
}

.hp-family-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hp-family p {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================================
   CONTENT PAGE TEMPLATE STYLES (cp-*)
   =================================================================== */

.cp-container {
    font-family: 'Overlock', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    color: #333;
    line-height: 1.7;
    font-size: 1.1em;
}

/* --- Hero Header --- */
.cp-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.cp-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.cp-hero-content {
    position: relative;
    z-index: 2;
}

.cp-hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cp-hero-subtitle {
    font-size: 1.4em;
    font-family: 'Handlee', cursive;
    opacity: 0.9;
    margin-top: 10px;
}

/* --- Main Article Content --- */
.cp-content {
    max-width: 750px;
    margin: 40px auto;
    padding: 0 20px;
}

.cp-content .cp-intro {
    font-size: 1.2em;
    font-style: italic;
    color: #555;
    border-left: 3px solid #ccc;
    padding-left: 20px;
    margin-bottom: 40px;
}

.cp-content h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.cp-content p {
    margin-bottom: 1.5em;
}

.cp-content ul {
    list-style-type: disc;
    padding-left: 30px;
    margin-bottom: 1.5em;
}

.cp-content li {
    margin-bottom: 0.8em;
}

.cp-divider {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 50px 0;
}

/* --- Pull Quotes & Figures --- */
.cp-pull-quote {
    font-size: 1.4em;
    font-style: italic;
    color: #34495e;
    border-left: 4px solid #3498db;
    padding-left: 25px;
    margin: 40px 0;
}

.cp-pull-quote footer {
    display: block;
    font-style: normal;
    font-size: 0.7em;
    color: #777;
    margin-top: 10px;
}

.cp-figure {
    margin: 40px 0;
    text-align: center;
}

.cp-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cp-figure figcaption {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
    font-style: italic;
}

/* --- Case Study Block --- */
.cp-case-study {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 5px solid #f1c40f;
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

/* --- End-of-Article CTA --- */
.cp-cta-section {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    margin-top: 50px;
}

.cp-cta-section h2 {
    font-size: 2.2em;
    color: #fff;
    margin-bottom: 15px;
}

.cp-cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cp-cta-section .hp-cta-button,
.cp-cta-section .hp-cta-button-secondary {
    margin: 0;
}
.cp-cta-section .hp-cta-button-secondary {
    border-color: #fff;
    color: #fff;
}
.cp-cta-section .hp-cta-button-secondary:hover {
    background-color: #fff;
    color: #2c3e50;
}

/* --- Author Bio --- */
.cp-author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    max-width: 750px;
    margin: 40px auto;
    border-radius: 8px;
}

.cp-author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.cp-author-info h4 {
    margin: 0 0 5px 0;
    font-weight: bold;
}

.cp-author-info p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

/* ===================================================================
   COMBINED RESPONSIVE ADJUSTMENTS
   =================================================================== */

@media (max-width: 992px) {
    /* Homepage */
    .hp-section-headline { font-size: 2em; }
    .hp-main-headline { font-size: 2.5em; }
    .hp-process-grid { grid-template-columns: 1fr; }
    .hp-shop-grid { grid-template-columns: 1fr 1fr; }
    .hp-heart-grid { grid-template-columns: 1fr; text-align: center; }
    .hp-heart-content .hp-section-headline { text-align: center; }
    .hp-heart-image { max-width: 400px; margin: 0 auto 30px auto; }
}

@media (max-width: 768px) {
    /* Homepage */
    .hp-trust-bar { flex-direction: column; gap: 10px; }
    .hp-testimonial-slider { height: 240px; }

    /* Content Page */
    .cp-hero { height: 250px; }
    .cp-hero h1 { font-size: 2.5em; }
    .cp-hero-subtitle { font-size: 1.2em; }
    .cp-content { font-size: 1em; }
}

@media (max-width: 576px) {
    /* Homepage */
    .hp-main-headline { font-size: 2em; }
    .hp-shop-grid { grid-template-columns: 1fr; }
    .hp-testimonial-slider { height: 300px; }
}



/*|||||||||||||||||||||||||||||||||||||| How to Order Section Styles */
/* How to Order Section Styles */
.how-to-order-container {
  position: fixed;
  top: 150px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 175px; /* Changed from 100px to 175px */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.how-to-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
  font-weight: 700;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.step-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  padding: 20px;
  margin: 10px 0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.step-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: #3da5d9;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step-text {
  flex-grow: 1;
}

.step-content h3 {
  font-family: 'Handlee', cursive;
  color: #3da5d9;
  font-size: 1.5rem;
  margin-top: 10px;
  margin-bottom: 15px;
}

.step-content p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.step-image {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #eee;
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.step-box:hover .step-image img {
  transform: scale(1.03);
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3da5d9;
  font-size: 2rem;
  width: 50px; /* Set fixed width */
  height: 50px; /* Set fixed height */
  background-color: #f8f9fa; /* Light background */
  border-radius: 50%; /* Make it a circle */
  border: 2px solid #3da5d9; /* Add border */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Add shadow */
  z-index: 5; /* Ensure it's above cards */
}

.step-arrow.desktop-arrow {
  margin-left: -25px;
  margin-right: -25px;
}

.step-arrow svg {
  width: 30px;
  height: 30px;
}

.desktop-arrow {
  display: none;
}

.cta-container {
    text-align: center;
    margin-top: 10px;
}

.cta-button {
  display: inline-block;
  background: #3da5d9;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(61, 165, 217, 0.3);
}

.cta-button:hover {
  background: #2b8cb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(61, 165, 217, 0.4);
}

/* Responsive Styles */
@media (min-width: 768px) {
  .how-to-order-container {
    padding-left: 5%;
    padding-right: 5%;
  }
  
  .how-to-steps {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-gap: 26px; /* Reduced from original value */
    flex-direction: row;
  }
  
  .step-box {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  
  .mobile-arrow {
    display: none;
  }

  .desktop-arrow {
    display: flex;
  }
  
  /* Calculate dimensions for 12% reduction of 306x264px */
  .step-image img {
    max-width: 269px;
    max-height: 232px;
    margin: 0 auto;
  }
}

/* Medium-large screens */
@media (min-width: 992px) {
  .how-to-order-container {
    padding-left: 10%;
    padding-right: 10%;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .how-to-order-container {
    padding-left: 15%;
    padding-right: 15%;
  }
}

/* Special layout for viewports over 1500px */
@media (min-width: 1500px) {
  .how-to-order-container {
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
  
  .how-to-steps {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-gap: 30px;
  }
  
  .step-box {
    min-width: 350px;
    max-width: none;
  }
  
  .step-content {
    flex-direction: row;
    align-items: center;
  }
  
  .step-text {
    width: 45%;
    padding-right: 20px;
    flex-grow: 0;
  }
  
  .step-image {
    width: 55%;
  }
  
  .step-image img {
    max-width: 100%;
    max-height: none;
  }
}

/* Extra large screens */
@media (min-width: 2000px) {
  .how-to-order-container {
    max-width: 1800px;
  }
  
  .step-box {
    min-width: 450px;
  }
}

@media (max-width: 480px) {
  .step-box {
    padding: 15px;
  }
  
  .step-content h3 {
    font-size: 1.3rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* How to Order Modal Styles */
.how-to-order-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.how-to-order-container.active {
  opacity: 1;
  visibility: visible;
	  padding-top: 100px;
}

.how-to-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 2200px;
  padding: 30px;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.how-to-order-container.active .how-to-panel {
  transform: translateY(0);
  opacity: 1;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.close-button:hover {
  background-color: #f0f0f0;
  color: #333;
}

@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.pulse-highlight {
  animation: pulseHighlight 1.33s ease-out; /* Changed from 0.5s to 1.33s */
  animation-iteration-count: 3; /* 3 iterations × 1.33s = ~4 seconds total */
  background-color: #ffeb3b !important;
  transition: background-color 0.3s ease;
}
