/* فويلا للسفر والسياحة */
:root {
  /* ألوان الشعار */
  --ink: #322f30;
  --orange: #f68712;
  --amber: #af600d;
  /* محايدات مشتقة من رمادي الشعار */
  --ink-deep: #262324;
  --paper: #f6f5f4;
  --white: #fff;
  --line: #e3e0df;
  --muted: #6c6869;
  --on-dark: #dedbdb;

  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.85 var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.5; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--orange); color: var(--ink); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--body);
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }
.btn .wa { width: 22px; height: 22px; flex: none; }
.btn-orange { background: var(--orange); color: var(--ink-deep); }
.btn-orange:hover { background: #ff9a2e; }
.btn-ink { background: var(--ink-deep); color: var(--white); }
.btn-ink:hover { background: #000; }
.btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: var(--white); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }

/* ---------- الرأس ---------- */
/* شفاف فوق صورة الواجهة، ويتحول أبيض عند التمرير */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.16);
  transition: background-color .3s, color .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-solid {
  background: var(--white); color: var(--ink);
  border-bottom-color: transparent;
  box-shadow: 0 6px 30px rgba(38,35,36,.1);
}
.header-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 92px; transition: min-height .3s;
}
.is-solid .header-row { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; justify-self: start; }
.brand-mark { width: 62px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-word { width: 98px; height: 22px; }
.brand-text small { font: 400 .7rem/1 var(--body); opacity: .8; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.nav a {
  position: relative; padding: 10px 18px; border-radius: 10px;
  transition: background-color .2s;
}
.nav a:hover { background: rgba(255,255,255,.14); }
.is-solid .nav a:hover { background: var(--paper); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 18px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-end { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav-toggle { display: none; }

/* ---------- الواجهة ---------- */
.hero { position: relative; color: var(--white); background: var(--ink-deep); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(38,35,36,.92) 0%, rgba(38,35,36,.72) 42%, rgba(38,35,36,.15) 100%),
    linear-gradient(to top, rgba(38,35,36,.75), transparent 45%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(150px, 18vw, 250px) clamp(72px, 9vw, 120px);
}
.hero-copy { grid-column: 1; grid-row: 1; }

/* ---------- حركة الشعار: طيّة ثم إقلاع ---------- */
.hero-lockup { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 400px); }
.lockup {
  width: 100%; height: auto; overflow: visible; color: var(--white);
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.35));
}
.lk-orange { transform-box: fill-box; transform-origin: 50% 0; animation: lk-unfold .75s cubic-bezier(.22,1,.36,1) .15s both; }
.lk-fold   { transform-box: fill-box; transform-origin: 100% 0; animation: lk-fold .45s ease-out .6s both; }
.lk-reveal { stroke-dasharray: 1; animation: lk-takeoff .7s cubic-bezier(.6,0,.2,1) .75s both; }
.lk-trail  {
  fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: .35 1; animation: lk-trail .9s cubic-bezier(.3,0,.2,1) 1.25s both;
}
.lk-letter { transform-box: fill-box; animation: lk-letter .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(1.35s + var(--i) * 70ms); }

@keyframes lk-unfold { from { transform: scaleY(0); } to { transform: none; } }
@keyframes lk-fold   { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes lk-takeoff { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lk-trail {
  0%   { stroke-dashoffset: .35; opacity: 1; }
  60%  { opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes lk-letter { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
.lk-trail { opacity: 0; }   /* الحالة النهائية: الشعار وحده بلا أثر */
.hero-tag {
  display: inline-block; font: 500 .95rem/1.85 var(--body);
  padding: 6px 16px; margin-bottom: 26px;
  border-inline-start: 3px solid var(--orange); background: rgba(255,255,255,.1);
}
.hero h1 { margin-bottom: 22px; }
.hero-title { display: block; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.4; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--on-dark); max-width: 32em; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-bar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
}
.hero-bar a {
  display: block; text-align: center; padding: 24px 12px;
  font: 500 1.02rem/1.5 var(--display);
  border-bottom: 3px solid transparent; transition: border-color .2s, color .2s;
}
.hero-bar li + li a { border-inline-start: 1px solid var(--line); }
.hero-bar a:hover { color: var(--amber); border-bottom-color: var(--orange); }

/* ---------- عناوين الأقسام ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2::after, .about-intro h2::after, .faq h2::after, .contact h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 10px;
  background: var(--orange); transform: skewX(-32deg);     /* ميل حرف V في الشعار */
}
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 30em; }

/* ---------- الخدمات ---------- */
.services { padding-block: var(--section); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.t-12 { grid-column: span 12; } .t-7 { grid-column: span 7; } .t-5 { grid-column: span 5; } .t-4 { grid-column: span 4; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: 440px; border-radius: var(--radius);
  background: var(--ink-deep); color: var(--white);
}
.tile-wide { min-height: 380px; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover > img { transform: scale(1.04); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(38,35,36,.94) 0%, rgba(38,35,36,.6) 38%, rgba(38,35,36,0) 70%);
}
.tile-body { padding: clamp(22px, 2.6vw, 34px); max-width: 34em; }
.tile h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); margin-bottom: 6px; }
.tile p { color: var(--on-dark); margin-bottom: 18px; }
.tile-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--orange);
}
.tile-link::after {
  content: ""; width: 26px; height: 2px; background: currentColor;
  transition: width .25s;
}
.tile-link:hover::after { width: 44px; }
.tile-link::before { content: ""; position: absolute; inset: 0; }   /* البطاقة كلها قابلة للضغط */

.tile-solid { background: var(--orange); color: var(--ink-deep); }
.tile-solid::after { display: none; }
.tile-solid p { color: var(--ink); }
.tile-solid .tile-link { color: var(--ink-deep); }
.tile-mark { position: absolute; top: 30px; inset-inline-end: 30px; width: 150px; height: 92px; color: var(--ink-deep); opacity: .16; z-index: -1; }

/* ---------- عن فويلا ---------- */
.about { background: var(--paper); padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.about-intro h2 { margin-bottom: 28px; }
.about-lead { font: 500 clamp(1.2rem, 1.9vw, 1.5rem)/1.8 var(--display); margin-bottom: 16px; }
.about-intro p:not(.about-lead) { color: var(--muted); font-size: 1.08rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }
.values > div { background: var(--white); border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); }
.values dt { font: 600 1.25rem/1.6 var(--display); margin-bottom: 6px; }
.values dd { color: var(--muted); }

/* ---------- أسئلة شائعة ---------- */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 7vw, 110px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 22px; cursor: pointer; list-style: none;
  font: 500 1.12rem/1.7 var(--display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--amber); font: 400 1.4rem/1 var(--body);
  transition: transform .2s, background-color .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: var(--ink-deep); }
.faq-list details p { color: var(--muted); padding-bottom: 24px; max-width: 38em; }

/* ---------- تواصل ---------- */
.contact { background: var(--orange); color: var(--ink-deep); padding-block: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%;
  background: var(--amber); opacity: .28;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}
[dir="rtl"] .contact::before { clip-path: polygon(0 0, 62% 0, 100% 100%, 0 100%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2::after { background: var(--ink-deep); }
.contact h2 + p { font-size: 1.15rem; margin: 18px 0 30px; max-width: 28em; }
.contact-list { display: grid; gap: 14px; font-size: 1.08rem; }
.contact-list:empty { display: none; }
.contact-list li { display: flex; gap: 14px; }
.contact-list b { min-width: 4.5em; font-weight: 600; }
.contact-list a { border-bottom: 1.5px solid rgba(38,35,36,.4); }

/* ---------- التذييل ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark); padding-block: 48px 40px; }
.site-footer .brand { color: var(--white); }
.hero::after {   /* تعتيم خفيف أعلى الصورة ليبقى الهيدر مقروءاً */
  content: ""; position: absolute; inset: 0 0 auto; height: 180px; z-index: -1;
  background: linear-gradient(to bottom, rgba(38,35,36,.7), transparent);
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.footer-nav a:hover { color: var(--orange); }
.legal { flex-basis: 100%; font-size: .9rem; color: #a9a5a6; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.legal details { margin-top: 8px; }
.legal summary { cursor: pointer; width: fit-content; }
.legal details p { margin-top: 8px; font-size: .82rem; line-height: 1.7; text-align: left; }
.legal details a { text-decoration: underline; }

/* ---------- زر واتساب العائم ---------- */
.fab {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink-deep);
  box-shadow: 0 10px 28px rgba(38,35,36,.32);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.07); }
.fab .wa { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lockup * { animation: none !important; }
  * { transition: none !important; }
}

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 980px) {
  .t-7, .t-5 { grid-column: span 12; }
  .t-4 { grid-column: span 6; }
  .bento > .t-4:nth-of-type(5) { grid-column: span 12; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .tile { min-height: 380px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle {
    display: grid; gap: 7px; place-content: center;
    width: 46px; height: 46px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .2s; }
  .nav-toggle { color: inherit; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .header-row { grid-template-columns: 1fr auto; min-height: 72px; }
  .brand-mark { width: 50px; height: 31px; }
  .brand-word { width: 84px; height: 19px; }
  .header-wa { padding: 11px; border-radius: 50%; }
  .header-wa span { display: none; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); color: var(--ink); padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 30px rgba(38,35,36,.12);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a:hover { background: none; color: var(--amber); }

  .hero::before { background: linear-gradient(to top, rgba(38,35,36,.95) 0%, rgba(38,35,36,.78) 55%, rgba(38,35,36,.45) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 120px; }
  .hero-lockup { grid-column: 1; grid-row: 1; justify-self: start; width: 190px; }
  .hero-copy { grid-row: 2; }
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .hero-bar li:last-child { grid-column: span 2; }
  .hero-bar a { padding: 16px 8px; border-inline-start: 0 !important; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .hero-bar li:nth-child(even) a { border-inline-start: 1px solid var(--line) !important; }

  .t-4, .t-12, .t-7, .t-5 { grid-column: span 12; }
  .tile, .tile-wide { min-height: 340px; }
  .tile-solid { min-height: 260px; }
  .values { grid-template-columns: 1fr; }
  .contact::before { display: none; }
  .contact .btn { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
