/* ═══════════════════════════════════════════════════════════════
   Travorio Blog Design Overrides
   Matches travorio.com main site design language
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. TYPOGRAPHY & COLORS ─── */

/* Import Inter from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties — Travorio Brand */
:root {
  --t-primary: #FF4600;
  --t-primary-hover: #e63e00;
  --t-primary-light: #ff9066;
  --t-dark: #0a1628;
  --t-dark-card: #0d1f3c;
  --t-text: #1a1a2e;
  --t-text-secondary: #64748b;
  --t-text-muted: #94a3b8;
  --t-bg: #ffffff;
  --t-bg-subtle: #f8fafc;
  --t-bg-muted: #f1f5f9;
  --t-border: #e2e8f0;
  --t-border-light: #f1f5f9;
  --t-radius: 16px;
  --t-radius-sm: 12px;
  --t-radius-xs: 8px;
  --t-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --t-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --t-shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --t-shadow-hover: 0 12px 48px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.06);
  --t-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override base typography */
body,
body.wp-theme-jinko,
body.wp-child-theme-jinko-child {
  font-family: var(--t-font) !important;
  color: var(--t-text) !important;
  background: var(--t-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title,
.wp-block-heading {
  font-family: var(--t-font) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}

/* Heading colors - only in content areas, NOT on Elementor/Elespare elements with their own colors */
.single .entry-title,
.archive .archive-title,
.sidebar .widget-title,
.sidebar .wp-block-heading.widget-title,
.comments-area .comment-reply-title {
  color: var(--t-text) !important;
}

/* Elespare widget/section titles */
.elespare-post-title,
.elespare-widget-title {
  font-family: var(--t-font) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}

/* Preserve Elementor heading colors (orange highlighter, white on dark bg, etc.) */
.elementor-heading-title {
  font-family: var(--t-font) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

/* Elespare tiles: white text on dark image overlays */
.elespare-posts-tile-post-items .elespare-post-title,
.elespare-posts-tile-post-items .elespare-post-title a {
  color: #fff !important;
}

/* Paragraphs and body text */
p, li, td, th, span, div {
  font-family: var(--t-font) !important;
}

/* Links — Travorio orange */
a {
  color: var(--t-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--t-primary-hover);
}

/* Entry content links — underlined for readability */
.entry-content a {
  color: var(--t-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255,70,0,0.3);
  text-underline-offset: 2px;
  transition: var(--t-transition);
}
.entry-content a:hover {
  color: var(--t-primary-hover);
  text-decoration-color: var(--t-primary-hover);
}

/* Selection highlight */
::selection {
  background: rgba(255,70,0,0.15);
  color: var(--t-text);
}

/* Override theme color variables */
body {
  --primary-theme-color: #FF4600 !important;
  --secondary-theme-color: #0a1628 !important;
  --link-color: #FF4600 !important;
  --link-hover-color: #e63e00 !important;
  --button-background: #FF4600 !important;
  --button-hover-background: #e63e00 !important;
  --entry-link-color: #FF4600 !important;
  --entry-link-hover-color: #e63e00 !important;
  --category-meta-color: #FF4600 !important;
  --continue-reading-button-color: #fff !important;
  --continue-reading-button-background: #FF4600 !important;
  --continue-reading-button-hover-background: #e63e00 !important;
  --continue-reading-button-hover-color: #fff !important;
}


/* ─── 2. BLOG CARDS / POST GRID ─── */

/* Elespare post grid items — card style */
.elespare-posts-grid-post-items,
.elespare-posts-list-post-items,
.elespare-posts-express-post-items {
  background: var(--t-bg) !important;
  border-radius: var(--t-radius) !important;
  border: 1px solid var(--t-border) !important;
  overflow: hidden !important;
  box-shadow: var(--t-shadow-sm) !important;
  transition: var(--t-transition) !important;
}
.elespare-posts-grid-post-items:hover,
.elespare-posts-list-post-items:hover,
.elespare-posts-express-post-items:hover {
  box-shadow: var(--t-shadow-hover) !important;
  transform: translateY(-4px) !important;
  border-color: rgba(255,70,0,0.15) !important;
}

/* Post tile items */
.elespare-posts-tile-post-items {
  border-radius: var(--t-radius) !important;
  overflow: hidden !important;
}

/* Image wrapper in cards — smooth zoom on hover */
.elespare-img-wrapper {
  overflow: hidden !important;
  border-radius: var(--t-radius) var(--t-radius) 0 0 !important;
}
.elespare-img-wrapper img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  object-fit: cover !important;
}
.elespare-posts-grid-post-items:hover .elespare-img-wrapper img,
.elespare-posts-list-post-items:hover .elespare-img-wrapper img {
  transform: scale(1.06) !important;
}

/* Content wrapper in cards */
.elespare-content-wrapper {
  padding: 20px !important;
}

/* Post titles in cards */
.elespare-post-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--t-text) !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em;
}
.elespare-post-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.elespare-post-title a:hover {
  color: var(--t-primary) !important;
}

/* Category badges in cards */
.elespare-meta-category,
.elespare-categories {
  margin-bottom: 10px !important;
}
.elespare-categories a,
.elespare-meta-category a {
  display: inline-block !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  background: var(--t-primary) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: var(--t-transition) !important;
}
.elespare-categories a:hover,
.elespare-meta-category a:hover {
  background: var(--t-primary-hover) !important;
  color: #fff !important;
}

/* Post metadata in cards */
.elespare-metadata {
  font-size: 13px !important;
  color: var(--t-text-muted) !important;
}
.elespare-metadata a {
  color: var(--t-text-secondary) !important;
  text-decoration: none !important;
}

/* Grid spacing */
.elementor-grid {
  gap: 24px !important;
}

/* Section titles (Elespare) */
.elespare-widget-title,
.elespare-section-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--t-text) !important;
  position: relative !important;
  padding-bottom: 12px !important;
}
.elespare-widget-title::after,
.elespare-section-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 48px !important;
  height: 3px !important;
  background: var(--t-primary) !important;
  border-radius: 3px !important;
}

/* Tile overlay text */
.elespare-posts-tile-post-items .elespare-post-title {
  color: #fff !important;
}
.elespare-posts-tile-post-items .elespare-post-title a {
  color: #fff !important;
}


/* ─── 3. SINGLE POST LAYOUT ─── */

/* Single post header */
.single .entry-header.single-entry-header {
  margin-bottom: 32px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid var(--t-border) !important;
}

.single .entry-header .entry-title {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--t-text) !important;
  letter-spacing: -0.03em;
  margin-bottom: 16px !important;
}

/* Author bio / meta */
.single .entry-meta {
  font-size: 14px !important;
  color: var(--t-text-secondary) !important;
}
.single .entry-meta a {
  color: var(--t-text) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.single .entry-meta a:hover {
  color: var(--t-primary) !important;
}

/* Post content typography */
.single .entry-content {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}
.single .entry-content h2 {
  font-size: 28px !important;
  margin-top: 48px !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--t-border-light) !important;
}
.single .entry-content h3 {
  font-size: 22px !important;
  margin-top: 36px !important;
  margin-bottom: 12px !important;
}
.single .entry-content h4 {
  font-size: 18px !important;
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}
.single .entry-content p {
  margin-bottom: 20px !important;
}
.single .entry-content img {
  border-radius: var(--t-radius-sm) !important;
  box-shadow: var(--t-shadow) !important;
  margin: 24px 0 !important;
}

/* Blockquotes */
.single .entry-content blockquote,
.wp-block-quote {
  border-left: 4px solid var(--t-primary) !important;
  background: var(--t-bg-subtle) !important;
  padding: 20px 24px !important;
  margin: 28px 0 !important;
  border-radius: 0 var(--t-radius-xs) var(--t-radius-xs) 0 !important;
  font-style: italic !important;
  color: var(--t-text-secondary) !important;
}
.single .entry-content blockquote p {
  margin-bottom: 0 !important;
}

/* Code blocks */
.single .entry-content pre,
.wp-block-code {
  background: var(--t-dark) !important;
  color: #e2e8f0 !important;
  border-radius: var(--t-radius-sm) !important;
  padding: 24px !important;
  font-size: 14px !important;
  overflow-x: auto !important;
}
.single .entry-content code {
  background: var(--t-bg-muted) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 0.9em !important;
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol {
  padding-left: 24px !important;
  margin-bottom: 20px !important;
}
.single .entry-content li {
  margin-bottom: 8px !important;
  line-height: 1.7 !important;
}

/* Post navigation (prev/next) */
.post-navigation .article {
  border-radius: var(--t-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--t-shadow-sm) !important;
  transition: var(--t-transition) !important;
}
.post-navigation .article:hover {
  box-shadow: var(--t-shadow) !important;
  transform: translateY(-2px) !important;
}

/* Tags */
.entry-meta.footer-meta a,
.tags-links a,
a.tag-link {
  display: inline-block !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: var(--t-bg-muted) !important;
  color: var(--t-text-secondary) !important;
  border: 1px solid var(--t-border) !important;
  text-decoration: none !important;
  transition: var(--t-transition) !important;
  margin: 3px !important;
}
.entry-meta.footer-meta a:hover,
.tags-links a:hover,
a.tag-link:hover {
  background: var(--t-primary) !important;
  color: #fff !important;
  border-color: var(--t-primary) !important;
}

/* Author bio section */
.author-bio,
.tfm-author-bio {
  background: var(--t-bg-subtle) !important;
  border-radius: var(--t-radius) !important;
  padding: 28px !important;
  border: 1px solid var(--t-border) !important;
  margin: 32px 0 !important;
}

/* Share icons */
.tfm-share-icons a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--t-bg-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--t-transition) !important;
}
.tfm-share-icons a:hover {
  background: var(--t-primary) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* Comments section */
.comments-area {
  margin-top: 40px !important;
  padding-top: 32px !important;
  border-top: 1px solid var(--t-border) !important;
}
.comment-respond .comment-reply-title {
  font-size: 24px !important;
  font-weight: 700 !important;
}
.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
  border: 1px solid var(--t-border) !important;
  border-radius: var(--t-radius-xs) !important;
  padding: 12px 16px !important;
  font-family: var(--t-font) !important;
  font-size: 15px !important;
  transition: border-color 0.2s !important;
}
.comment-respond textarea:focus,
.comment-respond input:focus {
  border-color: var(--t-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255,70,0,0.1) !important;
}
.comment-respond .submit {
  background: var(--t-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.comment-respond .submit:hover {
  background: var(--t-primary-hover) !important;
}


/* ─── 4. SIDEBAR ─── */

.aside-sidebar.sidebar {
  padding-left: 24px !important;
}
@media (max-width: 1023px) {
  .aside-sidebar.sidebar { padding-left: 0 !important; }
}

/* Widget containers */
.sidebar .widget {
  background: var(--t-bg) !important;
  border-radius: var(--t-radius) !important;
  border: 1px solid var(--t-border) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: var(--t-shadow-sm) !important;
}

/* Widget titles */
.sidebar .widget-title,
.sidebar .wp-block-heading.widget-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--t-text) !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  border-bottom: 2px solid var(--t-border-light) !important;
  position: relative !important;
}
.sidebar .widget-title::after,
.sidebar .wp-block-heading.widget-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 32px !important;
  height: 2px !important;
  background: var(--t-primary) !important;
}

/* Widget links */
.sidebar .widget a {
  color: var(--t-text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.sidebar .widget a:hover {
  color: var(--t-primary) !important;
}

/* Search widget */
.widget_search .wp-block-search__inside-wrapper {
  border: 1px solid var(--t-border) !important;
  border-radius: var(--t-radius-xs) !important;
  overflow: hidden !important;
  display: flex !important;
}
.widget_search input[type="search"],
.widget_search .wp-block-search__input {
  border: none !important;
  padding: 12px 16px !important;
  font-family: var(--t-font) !important;
  font-size: 14px !important;
  flex: 1 !important;
  outline: none !important;
}
.widget_search .wp-block-search__button {
  background: var(--t-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.widget_search .wp-block-search__button:hover {
  background: var(--t-primary-hover) !important;
}

/* Widget post entries */
.sidebar .widget-entry .entry-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
.sidebar .widget-entry .post-media img {
  border-radius: var(--t-radius-xs) !important;
}

/* Posts widget (sidebar recent/popular) */
.sidebar .tfm_posts_widget .article {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--t-border-light) !important;
}
.sidebar .tfm_posts_widget .article:last-child {
  border-bottom: none !important;
}


/* ─── 5. PERFORMANCE & GENERAL ─── */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Better image rendering */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--t-primary) !important;
  outline-offset: 2px !important;
}

/* Buttons — global override */
.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link,
.elementor-button,
.tfm-cta,
a.tfm-read-more {
  font-family: var(--t-font) !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 10px 24px !important;
  transition: var(--t-transition) !important;
  text-decoration: none !important;
}

/* Primary button style */
.wp-block-button__link,
.elementor-button {
  background: var(--t-primary) !important;
  color: #fff !important;
  border: none !important;
}
.wp-block-button__link:hover,
.elementor-button:hover {
  background: var(--t-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(255,70,0,0.3) !important;
}

/* Read more / continue reading */
a.tfm-read-more,
.continue-reading a {
  background: var(--t-primary) !important;
  color: #fff !important;
  font-size: 13px !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  display: inline-block !important;
}
a.tfm-read-more:hover,
.continue-reading a:hover {
  background: var(--t-primary-hover) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* Breadcrumbs */
.breadcrumbs,
.tfm-breadcrumbs {
  font-size: 13px !important;
  color: var(--t-text-muted) !important;
  padding: 12px 0 !important;
}
.breadcrumbs a,
.tfm-breadcrumbs a {
  color: var(--t-text-secondary) !important;
  text-decoration: none !important;
}
.breadcrumbs a:hover,
.tfm-breadcrumbs a:hover {
  color: var(--t-primary) !important;
}

/* Archive / category page headers */
.archive-header {
  margin-bottom: 32px !important;
}
.archive-header .archive-title {
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* Pagination */
.pagination,
.nav-links {
  margin-top: 40px !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
}
.pagination a,
.nav-links a,
.nav-links span.current {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: var(--t-radius-xs) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: var(--t-transition) !important;
}
.pagination a,
.nav-links a {
  background: var(--t-bg) !important;
  color: var(--t-text-secondary) !important;
  border: 1px solid var(--t-border) !important;
}
.pagination a:hover,
.nav-links a:hover {
  background: var(--t-primary) !important;
  color: #fff !important;
  border-color: var(--t-primary) !important;
}
.nav-links span.current {
  background: var(--t-primary) !important;
  color: #fff !important;
  border: 1px solid var(--t-primary) !important;
}

/* Hide old theme footer and header elements that conflict */
.site-footer,
header.mainHeader .navbar {
  display: none !important;
}

/* Hide old back-to-top from theme */
.goto-top.backtotop { display: none !important; }

/* Hide theme's built-in sticky nav (our header is already fixed) */
.has-sticky-nav .site-header.fixed-header { display: none !important; }

/* Elementor section spacing */
.elementor-section {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
@media (min-width: 1024px) {
  .elementor-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Content area max width */
.single-content-wrapper {
  max-width: 760px !important;
}

/* Post thumbnail on single */
.single .post-media {
  border-radius: var(--t-radius) !important;
  overflow: hidden !important;
  margin-bottom: 32px !important;
  box-shadow: var(--t-shadow) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--t-bg-muted); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Loading animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.elementor-widget {
  animation: fadeInUp 0.4s ease-out;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .elespare-content-wrapper { padding: 16px !important; }
  .elespare-post-title { font-size: 16px !important; }
  .single .entry-header .entry-title { font-size: 26px !important; }
  .single .entry-content { font-size: 16px !important; }
  .sidebar .widget { padding: 20px !important; }
}

/* Ensure our header/footer override old theme elements */
header.otherPageMenu.mainHeader { display: none !important; }
.offcanvas.offcanvas-end#offcanvasRight { display: none !important; }
.fade.offcanvas-backdrop.d-none { display: none !important; }
footer.footer:not(.travorio-footer) { display: none !important; }


/* ─── 6. CTA SECTION FIX (before footer) ─── */

/* The "Pay Your Way" CTA section with Toronto skyline background image */
.elementor-element-d91700b {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Restore white text colors on CTA section (overrides our h1/h3 dark color rules) */
.elementor-element-d91700b h1,
.elementor-element-d91700b h2,
.elementor-element-d91700b h3,
.elementor-element-d91700b h4,
.elementor-element-d91700b h5,
.elementor-element-d91700b h6,
.elementor-element-d91700b .elementor-heading-title {
  color: #FFFFFF !important;
}

/* Restore white text for paragraph/body text in CTA section */
.elementor-element-d91700b p,
.elementor-element-d91700b .elementor-widget-text-editor {
  color: #FFFFFF !important;
}

/* Restore white button with black text in CTA section */
.elementor-element-d91700b .elementor-button {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  padding: 16px 32px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
.elementor-element-d91700b .elementor-button:hover {
  background-color: #f0f0f0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}
