/* ========== FAYUL RETREAT THEME CSS ========== */
/* Logo-driven color palette and modern styling */

/* ========== CSS VARIABLES ========== */
:root {
  /* Logo-driven color palette */
  --logo-teal-900: #083E3F;   /* darker teal for headings, nav */
  --logo-teal-700: #0F5E60;   /* primary brand teal (hero bg accents) */
  --logo-teal-500: #19807F;   /* accent & buttons */
  --logo-mint: #CFF6EE;       /* very light mint / highlight backgrounds */
  --logo-cream: #F6F4EE;      /* paper / page background */
  --logo-tree-yellow: #F4D662; /* tree accent, CTA micro accents */
  --muted-600: #7B8A88;       /* secondary text */
  --surface: #FFFFFF;         /* cards */
  --cta-gradient: linear-gradient(90deg, #19807F, #F4D662);
  
  /* Typography scale */
  --fs-hero: 2.8rem;
  --fs-h1: 2.0rem;
  --fs-h2: 1.5rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(8, 62, 63, 0.1);
  --shadow-md: 0 4px 12px rgba(8, 62, 63, 0.15);
  --shadow-lg: 0 8px 28px rgba(15, 94, 96, 0.14);
}

/* ========== FONT IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

/* ========== BASE STYLES ========== */
body {
  background-color: var(--logo-cream);
  font-family: 'Poppins', sans-serif;
  color: var(--logo-teal-900);
  line-height: 1.6;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--logo-teal-900);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h2); }

p {
  color: var(--muted-600);
  font-size: var(--fs-body);
  margin-bottom: var(--spacing-sm);
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--surface);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,62,63,0.68) 0%, rgba(8,62,63,0.45) 55%, rgba(8,62,63,0.2) 100%);
  z-index: 1;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-hero);
  color: var(--logo-cream);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
  font-size: var(--fs-h1);
  color: var(--logo-mint);
  font-weight: 400;
  margin-bottom: var(--spacing-md);
}

/* ========== BUTTONS & CTAs ========== */
.btn-cta {
  background: var(--cta-gradient);
  color: var(--logo-teal-900);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  font-size: var(--fs-body);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,94,96,0.2);
  color: var(--logo-teal-900);
  text-decoration: none;
}

.btn-cta::after {
  content: "🌿";
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.btn-cta:hover::after {
  transform: scale(1.2);
}

/* ========== CARDS ========== */
.story-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(25, 128, 127, 0.1);
}

.story-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.story-card h3 {
  color: var(--logo-teal-700);
  margin-bottom: var(--spacing-sm);
}

.story-card .card-label {
  background: var(--logo-mint);
  color: var(--logo-teal-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

/* ========== MICRO-FACTS STRIP ========== */
.micro-facts {
  background: var(--surface);
  padding: var(--spacing-md) 0;
  border-top: 3px solid var(--logo-tree-yellow);
  border-bottom: 1px solid rgba(25, 128, 127, 0.1);
}

.fact-pill {
  background: var(--logo-mint);
  color: var(--logo-teal-700);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: all 0.3s ease;
}

.fact-pill:hover {
  background: var(--logo-teal-500);
  color: var(--surface);
  transform: scale(1.05);
}

.fact-pill .icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

/* ========== ROOM CARDS ========== */
.room-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.room-card .room-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.room-card .room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.room-card .room-content {
  padding: var(--spacing-lg);
}

.room-card .room-title {
  color: var(--logo-teal-700);
  margin-bottom: var(--spacing-sm);
  font-size: var(--fs-h2);
}

.room-card .room-excerpt {
  color: var(--muted-600);
  margin-bottom: var(--spacing-md);
  font-size: var(--fs-small);
}

.room-card .book-btn {
  background: var(--logo-teal-500);
  color: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-small);
  transition: all 0.3s ease;
}

.room-card .book-btn:hover {
  background: var(--logo-teal-700);
  color: var(--surface);
  text-decoration: none;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--logo-teal-500), var(--logo-tree-yellow));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  background: var(--surface);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex: 1;
  margin: 0 var(--spacing-lg);
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: var(--surface);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: var(--surface);
}

.timeline-time {
  background: var(--logo-tree-yellow);
  color: var(--logo-teal-900);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
}

/* ========== STICKY CTA ========== */
.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sticky-cta.minimized {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.sticky-cta.minimized .cta-text {
  display: none;
}

.sticky-cta.minimized .cta-icon {
  font-size: 1.5rem;
}

/* ========== BLOG MASONRY ========== */
.blog-masonry {
  column-count: 3;
  column-gap: var(--spacing-lg);
}

@media (max-width: 992px) {
  .blog-masonry {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .blog-masonry {
    column-count: 1;
  }
}

.blog-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-item .blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-item .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item .blog-content {
  padding: var(--spacing-lg);
}

.blog-item .blog-title {
  color: var(--logo-teal-700);
  margin-bottom: var(--spacing-sm);
  font-size: var(--fs-h2);
}

.blog-item .blog-excerpt {
  color: var(--muted-600);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* ========== NAVIGATION ENHANCEMENTS ========== */
.ftco_navbar {
  background: rgba(8, 62, 63, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ftco_navbar.scrolled {
  background: rgba(8, 62, 63, 0.98) !important;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--logo-cream) !important;
}

.navbar-brand span {
  color: var(--logo-tree-yellow) !important;
}

.nav-link {
  color: var(--logo-mint) !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.nav-link:hover {
  color: var(--logo-tree-yellow) !important;
  transform: translateY(-1px);
}

/* ========== SKIP TO CONTENT ========== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--logo-teal-700);
  color: var(--surface);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 1001;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 6px;
  color: var(--surface);
  text-decoration: none;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  :root {
    --fs-hero: 2.2rem;
    --fs-h1: 1.8rem;
    --fs-h2: 1.3rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero .hero-inner {
    padding: 2rem 1rem;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 4rem;
  }
  
  .timeline-content {
    margin: 0;
    margin-top: var(--spacing-sm);
  }
  
  .timeline-content::before {
    display: none;
  }
  
  .sticky-cta {
    bottom: 1rem;
    right: 1rem;
  }
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
*:focus {
  outline: 2px solid var(--logo-tree-yellow);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --logo-teal-900: #000000;
    --muted-600: #333333;
    --surface: #ffffff;
  }
}

/* ========== LOADING STATES ========== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--logo-mint);
  border-top: 2px solid var(--logo-teal-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== PRINT STYLES ========== */
@media print {
  .sticky-cta,
  .ftco_navbar,
  .btn-cta {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero::before {
    display: none;
  }
}