/*
Theme Name: Traveler Whisper
Template: astra
Version: 1.0.0
Description: Traveler Whisper child theme for travelerwhisper.com
Author: Traveler Whisper
*/

/* ============================================
   TRAVELER WHISPER - Custom Styles
   Colors: Ocean Blue #1B4F72 | White #FFFFFF | Orange #E67E22
   Fonts: Montserrat (headings) | Open Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --tw-blue: #1B4F72;
  --tw-orange: #E67E22;
  --tw-white: #FFFFFF;
  --tw-light: #F8F9FA;
  --tw-dark: #2C3E50;
  --tw-text: #444444;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--tw-text);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--tw-blue);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--tw-blue);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--tw-orange);
}

/* ============ HEADER ============ */
.site-header, .ast-primary-header-bar {
  background-color: var(--tw-blue) !important;
  padding: 0 !important;
}

.site-title a,
.site-title a:hover {
  color: var(--tw-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* Logo text styling */
.ast-site-identity .site-title {
  font-size: 24px;
}

/* Navigation */
.main-header-menu .menu-item a,
.main-navigation ul li a {
  color: var(--tw-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 15px !important;
  transition: color 0.2s ease;
}

.main-header-menu .menu-item a:hover,
.main-navigation ul li a:hover {
  color: var(--tw-orange) !important;
}

.main-header-menu .current-menu-item > a {
  color: var(--tw-orange) !important;
}

/* ============ HERO SECTION ============ */
.wp-block-cover {
  background: linear-gradient(135deg, var(--tw-blue) 0%, #154360 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
}

/* ============ BUTTONS ============ */
.wp-block-button .wp-block-button__link,
.ast-button,
input[type="submit"],
button {
  background-color: var(--tw-orange) !important;
  border-color: var(--tw-orange) !important;
  color: var(--tw-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 5px !important;
  padding: 14px 30px !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wp-block-button .wp-block-button__link:hover,
button:hover {
  background-color: #D35400 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/* ============ AFFILIATE DISCLOSURE BOX ============ */
.affiliate-disclosure {
  background: #FFF9F0;
  border-left: 4px solid var(--tw-orange);
  padding: 12px 16px;
  margin: 20px 0;
  border-radius: 0 5px 5px 0;
  font-size: 14px;
  color: #666;
}

/* ============ BLOG CARDS ============ */
.ast-article-post {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ast-article-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ============ FOOTER ============ */
.site-footer {
  background-color: var(--tw-blue) !important;
  color: var(--tw-white) !important;
}

.ast-footer-widget-area,
.footer-widget-area {
  background-color: #154360;
  padding: 40px 0;
}

.footer-widget-area .widget-title,
.ast-footer-widget-area h2,
.ast-footer-widget-area h3 {
  color: var(--tw-orange);
  font-family: 'Montserrat', sans-serif;
}

.ast-small-footer {
  background: #0E2F44;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 15px 0;
}

.ast-small-footer a {
  color: var(--tw-orange);
}

/* ============ SIDEBAR ============ */
.widget-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--tw-blue);
  border-bottom: 3px solid var(--tw-orange);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* ============ SINGLE POST ============ */
.single .entry-title {
  font-size: 2.2em;
  color: var(--tw-blue);
  margin-bottom: 15px;
}

.entry-content h2 {
  color: var(--tw-blue);
  border-left: 4px solid var(--tw-orange);
  padding-left: 15px;
  margin-top: 40px;
}

.entry-content h3 {
  color: var(--tw-dark);
}

.entry-content ul li {
  margin-bottom: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .wp-block-cover {
    min-height: 400px;
  }
  
  .wp-block-cover h1 {
    font-size: 30px !important;
  }
  
  .site-title a {
    font-size: 20px;
  }
}

/* ============ TRUST BADGES / CTA BOX ============ */
.tw-cta-box {
  background: linear-gradient(135deg, var(--tw-blue), #154360);
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin: 30px 0;
}

.tw-deal-badge {
  background: var(--tw-orange);
  color: white;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============ STICKY BOOKING SIDEBAR ============ */
.tw-sticky-booking {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 140px;
}
.tw-sticky-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  text-align: center;
  margin-bottom: 2px;
}
.tw-sticky-btn {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  color: #fff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tw-sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  color: #fff !important;
}
.tw-btn-flights { background: #1B4F72; }
.tw-btn-hotel   { background: #1a7a4a; }
.tw-btn-tours   { background: #7b3fa0; }
.tw-btn-car     { background: #b5520a; }
@media (max-width: 1200px) { .tw-sticky-booking { display: none; } }

/* ============ BOTTOM BOOKING BLOCK ============ */
.tw-bottom-booking {
  background: linear-gradient(135deg, #1B4F72 0%, #154360 100%);
  border-radius: 12px;
  padding: 32px 28px;
  margin: 48px 0 24px;
  text-align: center;
}
.tw-bottom-booking h3 {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin: 0 0 6px;
  border: none !important;
  padding: 0 !important;
}
.tw-bottom-booking p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin: 0 0 22px;
}
.tw-booking-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tw-booking-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: 8px;
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tw-booking-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  color: #fff !important;
}
.tw-booking-grid a span {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 4px;
}
.tw-booking-grid .bg-flights { background: rgba(255,255,255,0.15); }
.tw-booking-grid .bg-hotel   { background: rgba(26,122,74,0.8); }
.tw-booking-grid .bg-tours   { background: rgba(123,63,160,0.8); }
.tw-booking-grid .bg-car     { background: rgba(181,82,10,0.8); }
@media (max-width: 768px) {
  .tw-booking-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ INLINE AFFILIATE CTA ============ */
.tw-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tw-orange);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  margin: 4px 0;
  transition: background 0.2s, transform 0.15s;
}
.tw-inline-cta:hover {
  background: #D35400;
  transform: translateY(-1px);
  color: #fff !important;
}
.tw-inline-cta.secondary {
  background: #1B4F72;
}

/* ============ STATS BAR ============ */
.tw-stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--tw-blue);
  padding: 14px 20px;
}
.tw-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.tw-stat-item:last-child { border-right: none; }
.tw-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--tw-orange);
  line-height: 1;
}
.tw-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ============ BANNER WRAPPER ============ */
.tw-banner-wrapper {
  text-align: center;
  padding: 24px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  overflow: hidden;
}
.tw-banner-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}

/* ============ SECTIONS ============ */
.tw-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}
.tw-section-header {
  text-align: center;
  margin-bottom: 32px;
}
.tw-section-header h2 {
  color: var(--tw-blue);
  font-size: 1.8rem;
  margin: 0 0 8px;
  border: none !important;
  padding: 0 !important;
}
.tw-section-header p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

/* ============ DEALS GRID ============ */
.tw-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tw-deal-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,79,114,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.tw-deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(27,79,114,0.2);
}
.tw-deal-card-header {
  background: linear-gradient(135deg, #1B4F72, #154360);
  padding: 20px 16px;
  text-align: center;
}
.tw-deal-card-header h3 {
  color: white !important;
  font-size: 1rem;
  margin: 6px 0 0 !important;
  border: none !important;
  padding: 0 !important;
}
.tw-deal-card-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}
.tw-deal-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tw-deal-card-body p {
  color: #6c757d;
  font-size: 0.88rem;
  margin: 0 0 12px;
  flex: 1;
}
.tw-deal-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tw-blue);
  margin-bottom: 14px;
}
.tw-btn-deal {
  display: block;
  background: var(--tw-orange) !important;
  color: white !important;
  text-align: center;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none !important;
  box-shadow: none !important;
}
.tw-btn-deal:hover {
  background: #D35400 !important;
  transform: translateY(-2px);
  color: white !important;
}

/* ============ DESTINATIONS GRID ============ */
.tw-destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tw-destination-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tw-destination-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ============ VIEW ALL LINK ============ */
.tw-view-all {
  display: inline-block;
  color: var(--tw-blue) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-bottom: 2px solid var(--tw-orange);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.tw-view-all:hover {
  color: var(--tw-orange) !important;
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
  /* Stats bar: 2x2 grid */
  .tw-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .tw-stat-item {
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 14px 8px;
  }
  .tw-stat-item:nth-child(2n) { border-right: none; }
  .tw-stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .tw-stat-number { font-size: 1.3rem; }

  /* Sections */
  .tw-section { padding: 36px 16px; }
  .tw-section-header h2 { font-size: 1.4rem; }
  .tw-section-header p { font-size: 0.9rem; }

  /* Deals: 1 column */
  .tw-deals-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Destinations: 2 columns */
  .tw-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Banner */
  .tw-banner-wrapper { padding: 16px 12px; }
}

@media (max-width: 480px) {
  /* Destinations: 1 column on very small screens */
  .tw-destinations-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}