/*
Theme Name: Far From Home Child
Template: astra
Version: 1.0
Description: Child theme for Far From Home Travels — farfromhometravels.com
Author: Far From Home Travels
*/

/* =============================================
   BRAND CSS VARIABLES
   ============================================= */
:root {
  /* Core palette */
  --ffh-dark-teal:   #1B3E44;
  --ffh-mid-teal:    #39978D;
  --ffh-orange:      #F08036;
  --ffh-gold:        #ED8E3A;
  --ffh-off-white:   #F9F7F4;
  --ffh-dark:        #1A1A1A;
  --ffh-white:       #FFFFFF;

  /* Logo gradient */
  --ffh-gradient: linear-gradient(90deg, #1B3E44, #39978D, #F08036, #ED8E3A);
  --ffh-gradient-text: linear-gradient(90deg, #39978D, #F08036, #ED8E3A);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito Sans', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --card-radius: 12px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(27, 62, 68, 0.10);
  --shadow-hover: 0 12px 40px rgba(27, 62, 68, 0.18);

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
body {
  font-family: var(--font-body);
  color: var(--ffh-dark);
  background: var(--ffh-off-white);
  font-size: 17px;
  line-height: 1.75;
}
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--font-heading);
  color: var(--ffh-dark-teal);
}

/* =============================================
   GRADIENT TEXT UTILITY
   ============================================= */
.ffh-gradient-text {
  background: var(--ffh-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   BUTTONS
   ============================================= */
.ffh-btn-orange,
.elementor-button.ffh-btn-orange {
  background: var(--ffh-orange);
  color: var(--ffh-white);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition-smooth), transform var(--transition-bounce), box-shadow var(--transition-smooth);
  display: inline-block;
  text-decoration: none;
}
.ffh-btn-orange:hover {
  background: var(--ffh-gold);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(240, 128, 54, 0.35);
  color: var(--ffh-white);
}
.ffh-btn-teal {
  background: var(--ffh-dark-teal);
  color: var(--ffh-white);
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 700;
  transition: background var(--transition-smooth), transform var(--transition-bounce);
  display: inline-block;
  text-decoration: none;
}
.ffh-btn-teal:hover {
  background: var(--ffh-mid-teal);
  transform: translateY(-3px) scale(1.03);
  color: var(--ffh-white);
}

/* =============================================
   AFFILIATE CARDS
   ============================================= */
.ffh-affiliate-card {
  background: var(--ffh-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  margin: 28px 0;
}
.ffh-affiliate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.ffh-affiliate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ffh-affiliate-card:hover img {
  transform: scale(1.05);
}
.ffh-card-body {
  padding: 20px;
}
.ffh-card-body h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

/* =============================================
   HEADER — STICKY WITH SHRINK EFFECT
   ============================================= */
.e-con.site-header,
header.site-header,
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--ffh-dark-teal);
  transition: padding var(--transition-smooth), box-shadow var(--transition-smooth);
}
.header-scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 4px 20px rgba(27, 62, 68, 0.25);
}

/* =============================================
   ARTICLE CARDS (Loop Grid / Archive)
   ============================================= */
.ffh-post-card {
  background: var(--ffh-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.ffh-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.ffh-post-card .card-image {
  overflow: hidden;
}
.ffh-post-card .card-image img {
  transition: transform 0.6s ease;
}
.ffh-post-card:hover .card-image img {
  transform: scale(1.08);
}
/* "We Visited" badge */
.ffh-badge-visited {
  background: var(--ffh-orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: ffh-pulse 2s infinite;
}
/* Theme Park badge */
.ffh-badge-park {
  background: var(--ffh-mid-teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* =============================================
   READING PROGRESS BAR
   ============================================= */
#ffh-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--ffh-gradient);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =============================================
   PRO TIP BOX
   ============================================= */
.ffh-pro-tip {
  background: rgba(57, 151, 141, 0.08);
  border-left: 4px solid var(--ffh-mid-teal);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-style: normal;
}
.ffh-pro-tip::before {
  content: "💡 Pro Tip";
  font-weight: 700;
  color: var(--ffh-mid-teal);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

/* =============================================
   HOT TAKE CALLOUT
   ============================================= */
.ffh-hot-take {
  background: rgba(240, 128, 54, 0.08);
  border-left: 4px solid var(--ffh-orange);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.ffh-hot-take::before {
  content: "🔥 Hot Take";
  font-weight: 700;
  color: var(--ffh-orange);
  display: block;
  margin-bottom: 6px;
}

/* =============================================
   GRADIENT SECTION DIVIDER
   ============================================= */
.ffh-gradient-divider {
  height: 4px;
  background: var(--ffh-gradient);
  border: none;
  margin: 48px 0;
  border-radius: 2px;
}

/* =============================================
   WAVE ANIMATION (hero/CTA backgrounds)
   ============================================= */
@keyframes ffh-wave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.ffh-wave-bg {
  background: linear-gradient(270deg, #1B3E44, #39978D, #F08036, #ED8E3A, #39978D, #1B3E44);
  background-size: 400% 400%;
  animation: ffh-wave 12s ease infinite;
}

/* =============================================
   PULSE ANIMATION (badges, CTAs)
   ============================================= */
@keyframes ffh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 128, 54, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(240, 128, 54, 0); }
}

/* =============================================
   FLOAT ANIMATION (hero icons/illustrations)
   ============================================= */
@keyframes ffh-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.ffh-float {
  animation: ffh-float 3.5s ease-in-out infinite;
}

/* =============================================
   TYPEWRITER EFFECT (hero headline)
   ============================================= */
.ffh-typewriter {
  overflow: hidden;
  border-right: 3px solid var(--ffh-orange);
  white-space: nowrap;
  animation: ffh-typing 3s steps(40, end), ffh-blink 0.75s step-end infinite;
}
@keyframes ffh-typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes ffh-blink {
  0%, 100% { border-color: var(--ffh-orange); }
  50%       { border-color: transparent; }
}

/* =============================================
   COUNTER ANIMATION (stats section)
   ============================================= */
.ffh-counter {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--ffh-orange);
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  :root { --section-padding: 48px 0; }
  .ffh-affiliate-card img { height: 160px; }
  .ffh-counter { font-size: 36px; }
  .ffh-typewriter { white-space: normal; animation: none; border-right: none; }
}
