/**
 * True Travel — WordPress theme styles
 * Brand: #1E4D3A (primary), #BF9468 (gold), Tajawal, RTL-first
 */

:root {
  --color-primary: #1E4D3A;
  --color-primary-dark: #163a2b;
  --color-primary-light: #2d6b52;
  --color-gold: #BF9468;
  --color-gold-dark: #a67d56;
  --color-gold-light: #d4ab85;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-gray-50: #fafbfa;
  --color-gray-100: #f5f7f6;
  --color-gray-200: #e8ebe9;
  --color-gray-400: #9ca3a0;
  --color-gray-600: #4a5250;
  --color-gray-700: #333938;
  --color-gray-800: #1f2423;
  --color-gray-900: #141716;
  --color-success: #16a34a;
  --radius-sm: 0.25rem;
  --radius-full: 9999px;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --transition-base: 0.25s ease;
  --gradient-primary: linear-gradient(135deg, #1E4D3A 0%, #2d6b52 100%);
  --gradient-gold: linear-gradient(135deg, #BF9468 0%, #a67d56 100%);
  --font-arabic: 'Tajawal', Tahoma, sans-serif;
  --font-english: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1200px;
  --container-padding: 1.25rem;
  --nav-height: 65px;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-2xl: 1.5rem;
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.14);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-5: 1.25rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --text-base: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.625rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;
  --text-5xl: clamp(2.25rem, 1.75rem + 2vw, 3.625rem);
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --true-card-image-ratio: 16 / 10;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"],
html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

html[dir="ltr"],
html[dir="ltr"] body {
  font-family: var(--font-english);
}

body.true-travel {
  margin: 0;
  color: var(--color-gray-800);
  background: var(--color-gray-50);
  font-size: var(--text-base);
  line-height: 1.7;
}

body.true-travel img { max-width: 100%; display: block; }

body.true-travel h1,
body.true-travel h2,
body.true-travel h3,
body.true-travel h4 {
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
}

body.true-travel p,
body.true-travel li {
  color: var(--color-gray-800);
}

.true-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.true-container--narrow { max-width: 800px; }

.true-main { padding-top: var(--nav-height); min-height: 60vh; }

/* Navigation → assets/css/navbar.css */

/* ── Buttons ── */
.true-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.true-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.true-btn--primary {
  background: var(--gradient-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.true-btn--primary:hover,
.true-btn--primary:focus {
  color: var(--color-white);
}

.true-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.true-btn--outline:hover,
.true-btn--outline:focus {
  color: var(--color-primary-dark);
}

.true-btn--light {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.true-btn--light:hover,
.true-btn--light:focus {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

.true-btn--lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

/* ── Hero ── */
.true-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.true-hero--home { min-height: calc(100vh - var(--nav-height)); margin-top: calc(-1 * var(--nav-height)); padding-top: var(--nav-height); }
.true-hero--page { min-height: 45vh; }
.true-hero--short { min-height: 28vh; }
.true-hero--post { min-height: 50vh; }

.true-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.true-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 77, 58, 0.75) 0%, rgba(22, 58, 43, 0.55) 100%);
}

.true-hero__overlay--solid {
  background: var(--gradient-primary);
}

.true-hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: var(--space-16) 0;
}

.true-hero__content h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  max-width: 16ch;
}

.true-hero__content p {
  font-size: var(--text-lg);
  max-width: 55ch;
  color: rgba(255, 255, 255, 0.92);
}

.true-hero__badge, .true-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.true-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-6);
}

/* ── Sections ── */
.true-section { padding: var(--space-16) 0; }
.true-section--alt { background: var(--color-white); }

.true-section__header { text-align: center; margin-bottom: var(--space-8); }
.true-section__header h2 { font-size: var(--text-3xl); }
.true-section__title { font-size: var(--text-2xl); margin-bottom: var(--space-8); }
.true-section__cta { text-align: center; margin-top: var(--space-8); display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Shared centered section heading ── */
.true-section-heading-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}

.true-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  gap: 1rem;
}

.true-section-heading .true-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(30, 77, 58, 0.08);
  border: 1px solid rgba(30, 77, 58, 0.15);
  border-radius: 999px;
  text-align: center;
}

html[dir="rtl"] .true-section-heading .true-label {
  letter-spacing: 0.02em;
  text-transform: none;
}

.true-section-heading__icon {
  flex-shrink: 0;
  color: #2d6b52;
}

.true-section-heading h2 {
  width: 100%;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-align: center;
}

.true-section-heading p {
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #64748b;
  text-align: center;
}

.true-label {
  display: block;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.true-split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .true-split { grid-template-columns: 1fr 1fr; }
}

.true-split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.true-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: var(--space-6) 0;
}

@media (min-width: 640px) { .true-stats { grid-template-columns: repeat(4, 1fr); } }

.true-stats strong {
  display: block;
  font-size: var(--text-2xl);
  color: var(--color-primary);
}

.true-stats span { font-size: 0.9rem; color: var(--color-gray-600); }

/* ── Grids ── */
.true-grid {
  display: grid;
  gap: var(--space-6);
  align-items: stretch;
}

.true-grid--3 { grid-template-columns: 1fr; }
.true-grid--4 { grid-template-columns: 1fr; }

/* ── Shared card image sizing ── */
.true-blog-card__image,
.true-offer-card__image,
.true-guide-card__image {
  position: relative;
  aspect-ratio: var(--true-card-image-ratio);
  overflow: hidden;
  flex-shrink: 0;
}

.true-blog-card__image img,
.true-offer-card__image img,
.true-guide-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .true-grid--3, .true-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .true-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .true-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Blog card ── */
.true-blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.true-blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.true-blog-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  text-decoration: none;
}
.true-blog-card__tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

html[dir="ltr"] .true-blog-card__tag { right: auto; left: 0.75rem; }

.true-blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.true-blog-card__meta { font-size: 0.85rem; color: var(--color-gray-400); margin-bottom: 0.5rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.true-blog-card__title { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.true-blog-card__excerpt { color: var(--color-gray-600); font-size: 0.95rem; margin-bottom: 0.75rem; flex: 1; }
.true-blog-card__author { font-size: 0.85rem; font-weight: 700; color: var(--color-gold); }

/* ── Offer card ── */
.true-offer-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s;
}

.true-offer-card:hover { transform: translateY(-6px); }
.true-offer-card__rating {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.true-offer-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.true-offer-card__title { font-size: 1.2rem; color: var(--color-primary); }
.true-offer-card__duration { color: var(--color-gold); font-weight: 600; font-size: 0.9rem; }
.true-offer-card__desc { color: var(--color-gray-600); flex: 1; }
.true-offer-card__price { font-size: 1.35rem; font-weight: 800; color: var(--color-primary); }
.true-offer-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.75rem; }

/* ── Guide card ── */
.true-guide-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.true-guide-card:hover { transform: translateY(-6px); }
.true-guide-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  text-decoration: none;
}
.true-guide-card__tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.true-guide-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.true-guide-card__body h3 { font-size: 1.15rem; color: var(--color-primary); }
.true-guide-card__body p { color: var(--color-gray-600); margin: 0 0 0.5rem; flex: 1; }
.true-guide-card__more { color: var(--color-gold); font-weight: 700; font-size: 0.9rem; }

/* ── Featured post ── */
.true-featured-post {
  display: grid;
  gap: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--color-gray-800);
  text-decoration: none;
}

.true-featured-post:hover {
  color: var(--color-gray-800);
}

.true-featured-post h2 {
  color: var(--color-primary);
}

.true-featured-post p {
  color: var(--color-gray-600);
}

@media (min-width: 768px) {
  .true-featured-post { grid-template-columns: 1.2fr 1fr; }
}

.true-featured-post__image { min-height: 280px; }
.true-featured-post__image img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.true-featured-post__body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.true-featured-post__meta {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.true-featured-post__author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-top: 0.5rem;
}

/* ── Blog filters ── */
.true-blog-filters {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: var(--navbar-height, 80px);
  z-index: 10;
}

.true-blog-filters__search {
  max-width: 700px;
  margin: 0 auto var(--space-6);
}

.true-blog-filters__input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--color-gray-200);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-gray-800);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.true-blog-filters__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.12);
}

.true-blog-filters__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.true-blog-filters__chip {
  border: 2px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-gray-700);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.true-blog-filters__chip:hover,
.true-blog-filters__chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.true-blog-empty {
  text-align: center;
  color: var(--color-gray-500);
  padding: 3rem 1rem;
  margin: 0;
}

.true-blog-card.is-hidden,
.true-blog-card[hidden] {
  display: none !important;
}

/* ── FAQ ── */
.true-faq__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
  box-shadow: var(--shadow-md);
}

.true-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  padding: 1rem 0;
  list-style: none;
}

.true-faq__item summary::-webkit-details-marker { display: none; }
.true-faq__item p { margin: 0 0 1rem; color: var(--color-gray-600); }

/* ── Content / Prose ── */
.true-content p { margin-bottom: 1rem; }
.true-prose h2 { margin-top: 2rem; font-size: var(--text-xl); color: var(--color-primary); }
.true-prose h3 { margin-top: 1.5rem; font-size: var(--text-lg); color: var(--color-primary); }
.true-prose p,
.true-prose li { color: var(--color-gray-800); }
.true-prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.15em; }
.true-prose a:hover { color: var(--color-primary-dark); }
.true-list { padding-right: 1.25rem; margin: 0 0 1rem; }
html[dir="ltr"] .true-list { padding-right: 0; padding-left: 1.25rem; }
.true-list li { margin-bottom: 0.35rem; }

.true-post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; opacity: 0.9; font-size: 0.95rem; }
.true-share { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.true-offer-sidebar {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.true-offer-sidebar__price { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.true-offer-sidebar__rating { font-size: 1.25rem; color: var(--color-gold); font-weight: 700; }
.true-offer-sidebar p { color: var(--color-gray-600); margin: 0 0 0.5rem; }
.true-offer-sidebar strong { color: var(--color-primary); }
.true-offer-sidebar .true-btn { width: 100%; margin-top: 0.75rem; }

/* ── Contact ── */
.true-contact-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.true-contact-list a { font-weight: 600; }
.true-contact-cta { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }

.true-form label { display: block; margin-bottom: 1rem; }
.true-form label span { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--color-primary); }
.true-form input, .true-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--color-gray-800);
  background: var(--color-white);
}

.true-form-note { font-size: 0.9rem; color: var(--color-gray-400); margin-top: 0.75rem; }
.true-form-notice { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.95rem; }
.true-form-notice--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.true-form-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Accreditations ── */
.true-accreditations { background: var(--color-gray-100); padding: var(--space-8) 0; text-align: center; }
.true-accreditations__title { font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; }
.true-accreditations__badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.true-accreditations__badges span {
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gray-600);
  box-shadow: var(--shadow-md);
}

.true-empty { text-align: center; color: var(--color-gray-400); padding: 3rem; }

/* Footer → footer.css */

.true-page-title {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin: var(--space-8) 0;
}

@media (min-width: 1024px) {
  :root { --nav-height: 80px; }
}

.true-related-offers .true-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 1100px) {
  .true-related-offers .true-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
