/* ============================================================
   Casserole Club – Homepage Custom Styles
   Supplements the Elementor template (casserole-club-homepage.json)
   ============================================================ */

/* Google Fonts – Playfair Display (headings) + Nunito (body) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Nunito:wght@400;600;700&display=swap');

/* ---------- Base typography ---------- */
body {
  font-family: 'Nunito', sans-serif;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

/* ---------- Section gap reset ---------- */
/* Prevent UICore/Elementor from adding unwanted bottom margins between sections */
.elementor-section {
  margin-bottom: 0 !important;
}

/* ---------- Hero section ---------- */
/* Ensure hero image fills its column and stays proportional */
.elementor-element[data-id="hero_img"] img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* ---------- Stats / How It Works icon boxes ---------- */
.elementor-icon-box-wrapper {
  text-align: center;
}

.elementor-icon-box-icon {
  margin-bottom: 16px;
}

.elementor-icon-box-title {
  font-family: 'Playfair Display', serif;
}

/* ---------- Recipe Cards ---------- */
/* Make all recipe card columns equal height */
.elementor-element[data-id="sec_rec_cards"] .elementor-column {
  display: flex;
  flex-direction: column;
}

.elementor-element[data-id="sec_rec_cards"] .elementor-column > .elementor-column-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.elementor-element[data-id="sec_rec_cards"] .elementor-column > .elementor-column-wrap > .elementor-widget-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Push the "View Recipe" button to the bottom of each card */
.elementor-element[data-id="sec_rec_cards"] .elementor-element[data-id="rec1_btn"],
.elementor-element[data-id="sec_rec_cards"] .elementor-element[data-id="rec2_btn"],
.elementor-element[data-id="sec_rec_cards"] .elementor-element[data-id="rec3_btn"] {
  margin-top: auto;
}

/* Recipe card images — consistent height */
.elementor-element[data-id="sec_rec_cards"] .elementor-widget-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* ---------- Gallery images ---------- */
.elementor-element[data-id="sec_gallery_row1"] .elementor-widget-image img,
.elementor-element[data-id="sec_gallery_row2"] .elementor-widget-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.elementor-element[data-id="sec_gallery_row1"] .elementor-widget-image img:hover,
.elementor-element[data-id="sec_gallery_row2"] .elementor-widget-image img:hover {
  transform: scale(1.02);
}

/* ---------- Buttons ---------- */
.elementor-button {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.elementor-button:hover {
  transform: translateY(-1px);
}

/* ---------- Dividers ---------- */
/* Centre the short accent dividers under headings */
.elementor-widget-divider {
  display: flex;
  justify-content: center;
}

.elementor-divider {
  max-width: 100%;
}

/* ---------- Social Icons ---------- */
.elementor-social-icon {
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  line-height: 46px !important;
}

/* ---------- How it Works Section ---------- */
.cc-hiw-wrap {
  background: linear-gradient(135deg, #2C6B60 0%, #3E7D72 100%);
  padding: 80px 40px;
  font-family: 'Nunito', 'Open Sans', sans-serif;
}

.cc-hiw-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.cc-hiw-intro h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
}

.cc-hiw-accent {
  width: 56px;
  height: 3px;
  background: #E87A2A;
  margin: 0 auto 28px;
  border-radius: 2px;
}

.cc-hiw-intro p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin: 0 0 14px;
}

.cc-hiw-join-btn {
  display: inline-block;
  background: #E87A2A;
  color: #ffffff !important;
  padding: 14px 38px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(232,122,42,0.4);
}

.cc-hiw-join-btn:hover {
  background: #C85E1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,122,42,0.5);
}

.cc-hiw-cards {
  display: flex;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.cc-hiw-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cc-hiw-card-header {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.cc-hiw-card-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
}

.cc-hiw-card-body {
  padding: 26px 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.cc-meta-list li {
  padding: 9px 0;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cc-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }

.cc-card-subhead {
  font-size: 11px;
  font-weight: 700;
  color: #E87A2A;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
}

.cc-bullet-list {
  padding-left: 20px;
  margin: 0 0 28px;
}

.cc-bullet-list li {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 9px;
  line-height: 1.5;
}

.cc-card-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.78;
  margin-bottom: 22px;
}

.cc-card-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.cc-card-menu-list li {
  padding: 9px 0;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  line-height: 1.5;
}

.cc-card-menu-list li:last-child { border-bottom: none; }

.cc-card-cta-btn {
  display: inline-block;
  background: #E87A2A;
  color: #ffffff !important;
  padding: 11px 28px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
  margin-bottom: 16px;
  box-shadow: 0 3px 12px rgba(232,122,42,0.35);
}

.cc-card-cta-btn:hover { background: #C85E1A; transform: translateY(-1px); }

.cc-card-note {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin: 0 0 16px;
}

.cc-card-view-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
}

.cc-card-view-link:hover { color: #E87A2A !important; border-color: #E87A2A; }

@media (max-width: 768px) {
  .cc-hiw-wrap { padding: 60px 24px; }
  .cc-hiw-cards { flex-direction: column; }
  .cc-hiw-intro h2 { font-size: 32px; }
}

/* ---------- How it Works Cards ---------- */
.cc-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cc-card-header {
  background: #3E7D72;
  padding: 22px 28px;
}

.cc-card-header h3 {
  color: #ffffff;
  margin: 0;
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
}

.cc-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-bottom: 1px solid #f0ebe4;
  padding-bottom: 20px;
}

.cc-card-meta li {
  padding: 9px 0;
  border-bottom: 1px solid #f5f0ea;
  color: #2C2C2C;
  font-size: 15px;
  line-height: 1.5;
}

.cc-card-meta li:last-child {
  border-bottom: none;
}

.cc-card-subheading {
  font-size: 15px;
  font-weight: 700;
  color: #2C2C2C;
  margin: 0 0 12px 0;
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cc-card-list {
  padding-left: 18px;
  margin: 0 0 20px 0;
}

.cc-card-list li {
  margin-bottom: 9px;
  color: #5A5A5A;
  font-size: 15px;
  line-height: 1.5;
}

.cc-card-desc {
  font-size: 15px;
  color: #5A5A5A;
  line-height: 1.75;
  margin-bottom: 22px;
}

.cc-card-btn {
  display: inline-block;
  background: #E87A2A;
  color: #ffffff !important;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 16px;
  transition: background 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
}

.cc-card-btn:hover {
  background: #C85E1A;
  transform: translateY(-1px);
}

.cc-card-note {
  font-size: 13px;
  color: #888888;
  font-style: italic;
  margin: 0 0 12px 0;
}

.cc-card-link {
  display: inline-block;
  color: #3E7D72 !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  border-bottom: 2px solid #3E7D72;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: auto;
}

.cc-card-link:hover {
  color: #2C6B60 !important;
  border-color: #2C6B60;
}

/* ---------- This Month's Recipe button (shortcode) ---------- */
.mococc-recipe-btn {
  display: inline-block;
  background: var(--e-global-color-uicore_secondary, #F58E27);
  color: #ffffff !important;
  padding: 50px;
  border-radius: 25px;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1em;
  text-align: center;
  letter-spacing: 0px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.mococc-recipe-btn:hover {
  background: var(--e-global-color-uicore_accent, #78A153);
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .elementor-element[data-id="hero_col_left"],
  .elementor-element[data-id="hero_col_right"] {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  /* Stack all multi-column sections */
  .elementor-element[data-id="sec_stats"] .elementor-column,
  .elementor-element[data-id="sec_hiw_cards"] .elementor-column,
  .elementor-element[data-id="sec_rec_cards"] .elementor-column,
  .elementor-element[data-id="sec_gallery_row1"] .elementor-column,
  .elementor-element[data-id="sec_gallery_row2"] .elementor-column {
    width: 100% !important;
    margin-bottom: 30px;
  }

  .elementor-element[data-id="sec_rec_cards"] .elementor-widget-image img,
  .elementor-element[data-id="sec_gallery_row1"] .elementor-widget-image img,
  .elementor-element[data-id="sec_gallery_row2"] .elementor-widget-image img {
    height: 200px;
  }
}
