/* OK Royal Travel — RTL tourism site */
:root {
  --purple: #028cb0;
  --purple-dark: #016e8a;
  --purple-light: #3eb0d4;
  --purple-card: #a8dce8;
  --purple-card-bg: #e6f5fa;
  --gold: #ffffff;
  --gold-dark: #f0f0f0;
  --white: #ffffff;
  --text-dark: #2d2d2d;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius-card: 18px;
  --radius-btn: 10px;
  --header-height: 88px;
  --font-ar: "Tajawal", "Cairo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  direction: rtl;
  background: linear-gradient(160deg, var(--purple-dark) 0%, var(--purple) 45%, var(--purple-light) 100%);
  min-height: 100vh;
  color: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(1, 90, 115, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-height);
  padding: 0.6rem 0;
}

.site-header .container {
  width: min(1200px, 96%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
  grid-column: 1;
  justify-self: start;
}

.logo-brand {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  padding: 7px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f4f8 100%);
  border-radius: 50%;
  border: 2px solid var(--purple);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.25;
}

.logo-text__name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-text__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
}

.nav-main a {
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-main a:hover {
  color: var(--gold);
}

.nav-main a.active {
  color: var(--gold);
  font-weight: 700;
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.4rem;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}

.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
}

.logo-emblem {
  display: none !important;
}

.header-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.header-social a:hover {
  background: var(--white);
  color: var(--purple-dark);
  transform: translateY(-2px);
}

/* أيقونة X */
.header-social a.social-x svg,
.footer-social a.social-x svg {
  width: 17px;
  height: 17px;
  display: block;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ─── Hero (inner pages) ─── */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 600px;
  margin-inline: auto;
}

/* ─── Home hero strip ─── */
.home-hero {
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.home-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 700px;
  margin-inline: auto;
}

/* ─── Hero animation (الصفحة الرئيسية) ─── */
.hero-animation {
  margin-bottom: 1.25rem;
}

.hero-animation__viewport {
  position: relative;
  width: 100%;
  height: clamp(88px, 14vw, 118px);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #028cb0;
  box-shadow: var(--shadow);
}

.hero-animation__slide {
  position: absolute;
  top: 50%;
  left: 0;
  will-change: transform, opacity;
}

.hero-animation__slide--banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-banner-move 15s linear infinite;
}

.hero-animation__slide--plane {
  height: 72%;
  width: auto;
  max-width: none;
  object-fit: contain;
  animation: hero-plane-move 15s linear infinite;
}

.hero-animation__slide--text {
  width: 100%;
  margin: 0;
  padding: 0 1.25rem;
  text-align: center;
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  animation: hero-text-show 15s ease-in-out infinite;
}

@keyframes hero-banner-move {
  0% {
    transform: translateY(-50%) translateX(-110%);
    opacity: 1;
  }
  30% {
    transform: translateY(-50%) translateX(110%);
    opacity: 1;
  }
  31%,
  100% {
    transform: translateY(-50%) translateX(110%);
    opacity: 0;
  }
}

@keyframes hero-plane-move {
  0%,
  30% {
    transform: translateY(-50%) translateX(-110%);
    opacity: 0;
  }
  31% {
    transform: translateY(-50%) translateX(-110%);
    opacity: 1;
  }
  61% {
    transform: translateY(-50%) translateX(110%);
    opacity: 1;
  }
  62%,
  100% {
    transform: translateY(-50%) translateX(110%);
    opacity: 0;
  }
}

@keyframes hero-text-show {
  0%,
  61% {
    opacity: 0;
    transform: translateY(-50%) scale(0.94);
  }
  68% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  93% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  99%,
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animation__slide--banner,
  .hero-animation__slide--plane {
    display: none;
  }

  .hero-animation__slide--text {
    animation: none;
    transform: translateY(-50%);
    opacity: 1;
  }
}

/* ─── Cards grid ─── */
.section {
  padding: 2rem 0 3rem;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--purple-card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.service-card__image {
  height: 160px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 0.85rem;
  text-align: center;
}

.service-card__list {
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: #444;
}

.service-card__list li i {
  color: var(--purple);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(2, 140, 176, 0.45);
}

.btn-gold {
  background: var(--gold);
  color: var(--purple-dark);
}

.btn-gold:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--purple-dark);
  box-shadow: 0 0 0 2px var(--white);
}

/* ─── Offer badge ─── */
.offer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.service-card {
  position: relative;
}

/* ─── About page ─── */
.about-content {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin-bottom: 2rem;
}

.about-content h2 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.about-content p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-box {
  background: var(--purple-card-bg);
  color: var(--text-dark);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
}

.feature-box i {
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.feature-box h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

/* ─── Destinations / map ─── */
.map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.map-embed {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.location-info {
  background: var(--purple-card-bg);
  color: var(--text-dark);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.location-info h2 {
  color: var(--purple-dark);
  margin-bottom: 1rem;
}

.location-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.location-info li span {
  line-height: 1.8;
}

.location-info li i {
  color: var(--purple);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.destinations-grid .service-card__title {
  text-align: right;
}

/* ─── Contact page ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

.contact-form-wrap h2 {
  color: var(--purple-dark);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-info__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
}

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

.contact-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  backdrop-filter: blur(6px);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card__icon i {
  font-size: 1.4rem;
  color: var(--gold);
}

.contact-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card__body p {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.95;
}

.contact-card__body a {
  color: var(--white);
  font-weight: 600;
  word-break: break-word;
}

.contact-card__body a:hover {
  color: var(--gold);
}

.contact-card--whatsapp .contact-card__icon {
  background: rgba(37, 211, 102, 0.2);
}

.contact-card--whatsapp .contact-card__icon i {
  color: #25d366;
}

.contact-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-card__body a.contact-phone-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #ffffff;
  color: var(--purple-dark);
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.contact-card__body a.contact-phone-btn:hover {
  background: var(--purple-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--gold);
  color: var(--text-dark);
  margin-top: 2rem;
  border-radius: 40px 40px 0 0;
  padding-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--purple-dark);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--purple);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.footer-contact i {
  color: #028cb0;
  width: 22px;
  font-size: 1.05rem;
  flex-shrink: 0;
  text-align: center;
}

.footer-contact a {
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-word;
}

.footer-contact a:hover {
  color: var(--purple);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 160px;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius-btn);
  font-family: inherit;
}

.newsletter-form .btn {
  flex-shrink: 0;
  padding-inline: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem 0 1.75rem;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.15rem;
  transition: transform 0.2s, background 0.2s;
}

.footer-social a:hover {
  background: var(--purple-dark);
  transform: scale(1.08);
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ─── Back to top ─── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 80px;
  right: 50%;
  transform: translateX(50%) translateY(20px);
  background: var(--purple-dark);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-btn);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1001;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .header-social {
    display: none;
  }

  .header-inner {
    grid-template-columns: minmax(180px, auto) 1fr auto;
  }

  .nav-main a {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 992px) {
  .map-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .logo-brand {
    width: 52px;
    height: 52px;
    padding: 5px;
  }

  .logo-text__name {
    font-size: 1rem;
  }

  .logo-text__tag {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
    grid-column: 2;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    flex-direction: column;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    background: rgba(1, 90, 115, 0.98);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-main a {
    white-space: normal;
  }

  .nav-main.open {
    display: flex;
  }

  .header-social {
    display: none;
  }

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

  .site-footer {
    border-radius: 28px 28px 0 0;
  }
}
