/* ---------- Noor Travel — main stylesheet ------------------------------- */

:root {
  --ink:        #0a3d2e;
  --ink-soft:   #14503d;
  --ink-deep:   #062219;
  --gold:       #c9a961;
  --gold-soft:  #d9bf82;
  --gold-deep:  #a8893f;
  --cream:      #f8f3e9;
  --paper:      #fdfbf5;
  --paper-alt:  #f3ecde;
  --text:       #1a1f1c;
  --muted:      #5a6560;
  --line:       rgba(10, 61, 46, 0.12);
  --line-gold:  rgba(168, 137, 63, 0.35);
  --shadow-sm:  0 1px 2px rgba(6, 34, 25, 0.05);
  --shadow:     0 8px 28px rgba(6, 34, 25, 0.08);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar:      "Cairo", "Noto Sans Arabic", system-ui, sans-serif;
  --font-ar-display: "Amiri", "Cormorant Garamond", serif;

  --radius: 2px;
  --radius-img: 4px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 169, 97, 0.08), transparent),
    radial-gradient(900px 500px at 110% 10%, rgba(10, 61, 46, 0.05), transparent);
}
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .hero-title, html[dir="rtl"] .brand-name {
  font-family: var(--font-ar-display);
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.8em;
  font-weight: 500;
}
.eyebrow-gold { color: var(--gold-deep); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper-alt); }
.section-head { text-align: center; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-cta { text-align: center; margin-top: 2rem; }

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.center-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 4rem 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.2rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.brand-mark { display: inline-flex; }

.primary-nav { display: none; gap: 1.4rem; }
.primary-nav a {
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
}
.primary-nav a:hover { color: var(--gold-deep); }
.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-deep);
  transition: width 0.25s ease;
}
.primary-nav a:hover::after { width: 100%; }
@media (min-width: 960px) { .primary-nav { display: flex; } }

.nav-right { display: flex; align-items: center; gap: 0.8rem; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line-gold); border-radius: 999px; padding: 2px; }
.lang {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang.is-active { background: var(--ink); color: var(--cream); }
.cta-nav { display: none; }
@media (min-width: 720px) { .cta-nav { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-block { width: 100%; }

/* ---------- Flash messages ---------- */
.flash-wrap { padding-top: 1rem; }
.flash {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-gold);
  border-left-width: 4px;
  background: var(--paper);
  margin-bottom: 0.6rem;
}
.flash-success { border-left-color: var(--ink); }
.flash-error { border-left-color: #b4432d; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(180deg, rgba(10, 61, 46, 0.02), transparent),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 90% 20%, rgba(201, 169, 97, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Page head ---------- */
.page-head {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  background: linear-gradient(180deg, var(--paper), transparent);
}
.page-head h1 { max-width: 20ch; margin: 0 auto 0.4em; }
.page-lead { max-width: 60ch; margin: 0.4rem auto 1.2rem; color: var(--muted); }

/* ---------- Ornament ---------- */
.ornament {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-deep);
  margin: 0.6rem 0;
}
.ornament-line {
  display: inline-block;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-gold);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-alt);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media-placeholder {
  display: grid; place-items: center; height: 100%;
  font-size: 3rem; color: var(--gold-deep); opacity: 0.4;
}
.badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[dir="rtl"] .badge { left: auto; right: 0.8rem; }
.badge-kind { background: var(--gold-deep); }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.card-title { font-size: 1.3rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--gold-deep); }
.card-summary { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.card-destination { color: var(--ink-soft); font-style: italic; font-size: 0.88rem; margin: 0 0 0.3rem; }
.card-meta {
  list-style: none;
  padding: 0; margin: 0.4rem 0 0;
  display: flex; gap: 0.9rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted);
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line-gold);
  gap: 0.8rem;
}
.price { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 600; }

/* ---------- Filter pills ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-pill {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
  transition: all 0.2s ease;
}
.filter-pill:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.filter-pill.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ---------- Detail pages ---------- */
.detail-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--paper), transparent);
}
.detail-hero-inner { max-width: 820px; }
.detail-summary { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

.fact-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1rem 0 1.4rem;
  margin: 0 0 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact-row li { display: flex; flex-direction: column; }
.fact-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-cover {
  margin: 0 0 2rem;
  border: 1px solid var(--line-gold);
}
.detail-cover img { width: 100%; max-height: 520px; object-fit: cover; }

.detail-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .detail-grid { grid-template-columns: 1fr 340px; }
}
.detail-main .prose {
  font-size: 1.02rem;
  color: #2a332e;
}
.detail-main .prose p { margin: 0 0 1rem; }

.detail-aside { display: flex; flex-direction: column; gap: 1rem; }
.aside-card {
  border: 1px solid var(--line-gold);
  padding: 1.2rem;
  background: var(--paper);
}
.aside-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.aside-card .inclusions li {
  padding-left: 1.1rem;
  position: relative;
}
.aside-card .inclusions li::before {
  content: "✦";
  color: var(--gold-deep);
  position: absolute;
  left: 0; top: 0;
  font-size: 0.8rem;
}
html[dir="rtl"] .aside-card .inclusions li { padding-left: 0; padding-right: 1.1rem; }
html[dir="rtl"] .aside-card .inclusions li::before { left: auto; right: 0; }

.aside-cta { display: flex; flex-direction: column; gap: 0.6rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid.wide { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--paper-alt);
  border: 1px solid var(--line-gold);
}
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  background: rgba(253, 251, 245, 0.9);
}

/* ---------- Testimonials ---------- */
.testimonial {
  margin: 0;
  padding: 1.6rem;
  border: 1px solid var(--line-gold);
  background: var(--paper);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -12px; left: 14px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
}
html[dir="rtl"] .testimonial::before { left: auto; right: 14px; content: "”"; }
.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}
.testimonial figcaption { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.88rem; }
.t-author { font-weight: 600; color: var(--ink); }
.t-rating { margin-left: auto; color: var(--gold-deep); letter-spacing: 0.1em; }
html[dir="rtl"] .t-rating { margin-left: 0; margin-right: auto; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .about-grid { grid-template-columns: 1fr 320px; } }
.about-main.prose { font-size: 1.02rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 340px; } }

.contact-form {
  background: var(--paper);
  padding: 1.8rem;
  border: 1px solid var(--line-gold);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.16);
}
.field-error { color: #b4432d; font-size: 0.85rem; margin: 0; }
.honeypot { position: absolute; left: -9999px; }

.contact-cta { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.4rem;
  border-top: 3px solid var(--gold);
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: rgba(248, 243, 233, 0.65); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.site-footer h4 { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.license { font-size: 0.82rem; margin-top: 0.6rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.socials a {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201, 169, 97, 0.22);
  font-size: 0.82rem;
}
.footer-bottom .credit a {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.footer-bottom .credit a:hover { border-bottom-color: var(--gold); }

/* ---------- RTL specifics ---------- */
html[dir="rtl"] .card-meta { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .hero-ctas { flex-direction: row-reverse; justify-content: flex-start; }
html[dir="rtl"] .filter-bar { direction: rtl; }
