/* =========================================================
   FINAL POLISH - Ashwar Tourism
   هدف الملف: ضبط نهائي للتسليم بدون الاعتماد على تحميل الهيدر والفوتر بجافاسكربت.
========================================================= */

:root {
  --final-bg: #f7f1e7;
  --final-card: #ffffff;
  --final-text: #122033;
  --final-muted: #647184;
  --final-blue: #245fbd;
  --final-blue-dark: #123f83;
  --final-gold: #b9975b;
  --final-border: rgba(18, 32, 51, 0.10);
}

html {
  font-size: 16px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 32px, 1180px);
}

.section {
  padding: clamp(58px, 7vw, 92px) 0;
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-title,
.section-title-left,
.about-section-head h2,
.services-hero-inner h1,
.programs-hero-content h1,
.contact-hero-title,
.hero-title {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .section-title-left,
html[dir="rtl"] .about-section-head h2,
html[dir="rtl"] .services-hero-inner h1,
html[dir="rtl"] .programs-hero-content h1,
html[dir="rtl"] .contact-hero-title,
html[dir="rtl"] .hero-title {
  letter-spacing: 0;
}

.section-title,
.section-title-left {
  font-size: clamp(1.65rem, 3.3vw, 2.65rem);
  line-height: 1.25;
}

.section-desc,
.about-text,
.info-card p,
.service-card p,
.tour-body p,
.contact-hero-text,
.services-hero-inner p,
.programs-hero-content p,
.about-section-head p {
  font-size: clamp(0.94rem, 1.3vw, 1.04rem);
  line-height: 1.85;
}

/* Header */
.site-header {
  background: rgba(247, 241, 231, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  gap: 18px;
}

.brand-logo {
  height: 74px;
  max-width: 150px;
}

.main-nav {
  gap: clamp(16px, 2.2vw, 28px);
}

.main-nav a {
  font-size: 0.96rem;
  white-space: nowrap;
}

.lang-switch {
  min-width: 54px;
  height: 44px;
  font-size: 0.9rem;
}

.header-cta {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 0.92rem;
}

/* Hero */
.hero-section {
  min-height: auto;
  padding: clamp(112px, 14vw, 150px) 0 clamp(64px, 8vw, 96px);
}

.hero-grid {
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}

.hero-title {
  font-size: clamp(1.9rem, 1.35vw, 1.35rem) !important;
  line-height: 1.65 !important;
  max-width: 430px !important;
  font-weight: 900;
}

.hero-text {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  max-width: 650px;
}

.hero-image-wrap {
  border-radius: 32px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
}

.hero-stats {
  gap: 14px;
}

.stat-card,
.info-card,
.service-card,
.tour-card,
.about-story-card,
.about-value-box,
.about-step-item,
.contact-panel,
.contact-form-wrap {
  border: 1px solid var(--final-border);
  box-shadow: 0 16px 44px rgba(18, 32, 51, 0.08);
}

.card-icon,
.service-icon,
.contact-hero-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.25rem;
}

/* Grids */
.card-grid-3,
.tours-grid,
.services-grid,
.about-story-grid,
.about-values-grid,
.about-steps-grid,
.card-grid-4 {
  gap: clamp(18px, 2.4vw, 28px);
}

.info-card,
.service-card,
.tour-body,
.about-story-card,
.about-value-box,
.about-step-item {
  padding: clamp(20px, 2.4vw, 30px);
}

/* Contact */
.contact-grid {
  align-items: stretch;
}

.contact-item {
  border-radius: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(18, 32, 51, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-actions {
  align-items: stretch;
}

.contact-actions .btn {
  min-height: 52px;
}

/* Footer - clean vertical quick links */
.site-footer {
  background: radial-gradient(circle at top right, rgba(185, 151, 91, 0.16), transparent 32%), #0f2138;
}

.footer-grid {
  padding: clamp(48px, 7vw, 70px) 0 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(170px, 0.8fr) minmax(245px, 1fr) minmax(210px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.footer-brand {
  align-items: flex-start;
  text-align: start;
  justify-self: stretch;
  max-width: 340px;
  transform: none !important;
}

.footer-logo {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.98rem;
  line-height: 1.9;
}

.footer-column,
.footer-column.social-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  min-width: 0;
}

.footer-column h4,
.footer-column.social-column h4 {
  width: auto;
  text-align: start;
  font-size: 1.05rem;
  margin-bottom: 16px;
  position: relative;
}

.footer-column h4::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: var(--final-gold);
  margin-top: 8px;
}

.footer-column a,
.footer-column span {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 10px;
  font-size: 0.96rem;
  line-height: 1.65;
}

.footer-column a i,
.footer-column span i {
  width: 20px;
  text-align: center;
  margin-top: 0;
  color: rgba(185, 151, 91, 0.95);
}

.social-links {
  width: auto;
  margin: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links .social-link {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 15px;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* Direction helpers */
html[dir="ltr"] .footer-brand,
html[dir="rtl"] .footer-brand,
html[dir="ltr"] .footer-column,
html[dir="rtl"] .footer-column,
html[dir="ltr"] .footer-column.social-column,
html[dir="rtl"] .footer-column.social-column {
  transform: none !important;
  text-align: start;
  align-items: flex-start;
}

/* Mobile navigation */
@media (max-width: 992px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    height: 62px;
  }

  .main-nav {
    top: calc(100% + 8px);
    inset-inline: 16px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .main-nav a {
    padding: 10px 4px;
  }

  .hero-section,
  .contact-hero,
  .programs-hero-luxury,
  .services-hero-clean,
  .about-corporate {
    padding-top: 105px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 52px 0;
  }

  .hero-section {
    padding-top: 98px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 9vw, 2.85rem);
  }

  .hero-text,
  .section-desc,
  .about-text {
    font-size: 0.96rem;
  }

  .hero-actions,
  .cta-actions,
  .services-hero-actions,
  .programs-hero-actions,
  .about-cta-actions,
  .contact-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .services-hero-actions .btn,
  .programs-hero-actions a,
  .about-cta-actions .btn,
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image {
    min-height: 260px;
    max-height: 340px;
  }

  .floating-card {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand,
  .footer-column,
  .footer-column.social-column {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .footer-column h4,
  .footer-column.social-column h4 {
    text-align: center;
  }

  .footer-column h4::after {
    margin-inline: auto;
  }

  .footer-column a,
  .footer-column span {
    justify-content: center;
    width: 100%;
  }

  .social-links {
    justify-content: center;
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 15px;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .brand-logo {
    height: 56px;
  }

  .lang-switch {
    min-width: 48px;
    height: 40px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .info-card,
  .service-card,
  .tour-body,
  .about-story-card,
  .about-value-box,
  .about-step-item,
  .contact-panel,
  .contact-form-wrap {
    padding: 18px;
  }
}

/* ===== Footer final requested layout ===== */
.site-footer {
  background: #0f2138 !important;
  color: #ffffff;
}

.site-footer .container {
  width: min(1120px, calc(100% - 32px));
}

.footer-grid {
  padding: clamp(46px, 7vw, 72px) 0 34px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(28px, 4vw, 48px) !important;
  align-items: start !important;
}

.footer-brand {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  max-width: 680px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto 10px !important;
}

.footer-logo {
  width: clamp(96px, 12vw, 122px) !important;
  height: clamp(96px, 12vw, 122px) !important;
  object-fit: contain !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  padding: 8px !important;
  margin: 0 auto 22px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18) !important;
}

.footer-brand p {
  max-width: 720px !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1rem, 1.5vw, 1.22rem) !important;
  line-height: 2 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.footer-column,
.footer-column.social-column,
html[dir="ltr"] .footer-column,
html[dir="rtl"] .footer-column,
html[dir="ltr"] .footer-column.social-column,
html[dir="rtl"] .footer-column.social-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  min-width: 0 !important;
}

.footer-column h4,
.footer-column.social-column h4 {
  width: 100% !important;
  text-align: center !important;
  color: #ffffff !important;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem) !important;
  font-weight: 800 !important;
  margin: 0 0 20px !important;
}

.footer-column h4::after {
  margin: 10px auto 0 !important;
}

.footer-column a,
.footer-column span {
  justify-content: center !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.82) !important;
  margin-bottom: 12px !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
}

.footer-column a i,
.footer-column span i {
  color: #d7b36a !important;
}

.social-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.social-links .social-link {
  width: 58px !important;
  height: 58px !important;
  flex-basis: 58px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
}

.social-links .social-link:hover {
  background: rgba(215, 179, 106, 0.18) !important;
  border-color: rgba(215, 179, 106, 0.55) !important;
}

.footer-bottom {
  text-align: center !important;
}

.footer-bottom p {
  text-align: center !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

html[dir="ltr"] .footer-brand,
html[dir="rtl"] .footer-brand {
  text-align: center !important;
  align-items: center !important;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .footer-brand {
    margin-bottom: 4px !important;
  }
}

@media (max-width: 480px) {
  .site-footer .container {
    width: min(100% - 24px, 1120px);
  }

  .footer-grid {
    padding-top: 42px !important;
  }

  .footer-logo {
    width: 104px !important;
    height: 104px !important;
  }

  .social-links .social-link {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
  }
}
