* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
:root {
  --navy: #1c3a56;
  --navy-deep: #132a40;
  --terracotta: #c2652e;
  --parchment: #efe3c8;
  --parchment-light: #f7f1e1;
  --ink: #2b2019;
  --gold: #a67c3d;
}
html {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-track {
  background-color: var(--parchment-light);
}
::-webkit-scrollbar-thumb {
  background-color: var(--terracotta);
}
body {
  font-family: "Cairo", sans-serif;
}
.headline {
  font-family: "Amiri", serif;
  font-weight: 700;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
.lang-btn,
.back-btn {
  background-color: var(--navy-deep);
  color: var(--parchment);
  padding: 8px 15px;
  border: 2px dotted var(--terracotta);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.lang-btn:hover,
.back-btn:hover {
  background-color: var(--terracotta);
}
header {
  min-height: 100vh;
  background-image: url("../imgs/Sleeper-Train.png");
  background-size: cover;
  position: relative;
}
@media (max-width: 767px) {
  header {
    background-position: 70% center;
  }
}
header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 60%);
}
header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 20px;
}
header .nav .links {
  position: relative;
}
header .nav .links i {
  font-size: 25px;
  color: var(--parchment);
  cursor: pointer;
}
header .nav .links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--parchment);
  position: absolute;
  right: 0;
  min-width: 200px;
  top: calc(100% + 15px);
  display: none;
  z-index: 1;
}
header .nav .links ul::before {
  content: "";
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent var(--parchment) transparent;
  position: absolute;
  right: 5px;
  top: -19px;
}
header .links ul.active {
  display: block;
}
header .nav .links ul li:not(:last-child) a {
  border-bottom: 1px solid #ccc;
}
header .nav .links ul li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: var(--navy);
  transition: 0.3s;
}
header .nav .links ul li a:hover {
  padding-left: 20px;
}
header .header-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  text-align: center;
}
header .header-content .logo {
  height: 80px;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  header .header-content .logo {
    height: 50px;
  }
}
header .header-content h1 {
  font-size: 40px;
  color: var(--terracotta);
}
header .header-content p {
  color: var(--parchment-light);
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 60px;
}
@media (max-width: 767px) {
  header .header-content {
    width: 320px;
  }
  header .header-content h1 {
    font-size: 30px;
  }
  header .header-content p {
    font-size: 17px;
  }
}
header .header-content a {
  background-color: var(--parchment);
  padding: 5px 20px;
  border-radius: 30px;
  color: black;
  font-weight: bold;
  transition: 0.3s;
}
header .header-content a:hover {
  background-color: var(--terracotta);
  color: white;
}
header .header-content a i {
  animation: up-down-arrow 1s infinite linear;
}
.services {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.services .carriage {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
}
.services .carriage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
}
.services .menu-car {
  background-image: url("../imgs/menu-car.jpg");
}
.services .menu-car .next {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  z-index: 3;
  color: rgba(245, 235, 216, 0.65);
  font-size: 11px;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.services .price-car {
  background-image: url("../imgs/price-car.jpg");
}
.services .media-car {
  background-image: url("../imgs/media-car.jpg");
}
.services .additional-car {
  background-image: url("../imgs/additional-car.jpeg");
}
.services .carriage .text {
  position: relative;
  padding: 0 150px 100px;
  z-index: 2;
  max-width: 640px;
}
@media (max-width: 767px) {
  .services .carriage .text {
    padding: 0 20px 150px;
  }
}
.services .carriage .text span {
  display: block;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.services .carriage .text h3 {
  font-size: 50px;
  color: var(--parchment);
  margin: 0;
}
@media (max-width: 767px) {
  .services .carriage .text h3 {
    font-size: 30px;
  }
}
.services .carriage .text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--parchment-light);
  margin-top: 15px;
}
.services .carriage .text a {
  color: var(--terracotta);
  font-size: 18px;
  font-weight: bold;
  border-bottom: 2px solid var(--terracotta);
  display: flex;
  width: fit-content;
}
.services .carriage .text a i {
  animation: moving-arrow 1s infinite linear;
}
.rates {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: var(--navy-deep);
}
.rates .title {
  font-size: 50px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 0;
  color: var(--terracotta);
}
@media (max-width: 767px) {
  .rates .title {
    font-size: 40px;
  }
}
.rates .title + p {
  text-align: center;
  margin: 0 auto 30px;
  color: var(--parchment);
}
.rates .stars {
  text-align: center;
  color: var(--terracotta);
  font-size: 1.3rem;
  letter-spacing: 6px;
  margin-bottom: 80px;
}
.rates .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.rates .container .seal {
  width: 150px;
  color: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.rates .container .seal .seal-badge {
  background-color: var(--navy);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  outline: 1px dashed var(--terracotta);
  outline-offset: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(43, 32, 25, 0.1);
  transition: 0.3s;
}
.rates .container .seal:hover .seal-badge {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 14px 28px rgba(43, 32, 25, 0.2);
}
.rates .container .seal .seal-badge i {
  color: var(--terracotta);
  font-size: 35px;
}
.rates .container .seal .seal-name {
  color: var(--parchment);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
footer {
  background-color: var(--navy-deep);
  color: var(--parchment-light);
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 50px,
    transparent 50px 70px
  );
}
footer .contact {
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin: 0 auto;
  width: fit-content;
  justify-content: center;
}
footer .contact a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--parchment-light);
  font-size: 20px;
  font-weight: bold;
}
footer .contact a i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}
footer .copyright {
  padding: 20px;
  text-align: center;
  margin: 0;
  border-top: 1px solid rgba(239, 227, 200, 0.1);
}
footer .copyright span {
  color: var(--terracotta);
  font-weight: bold;
}
@keyframes up-down-arrow {
  0%,
  40%,
  80%,
  100% {
    transform: translateY(0);
  }
  20%,
  60% {
    transform: translateY(10px);
  }
}
@keyframes moving-arrow {
  0%,
  40%,
  80%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(10px);
  }
}

/* =========================
   Added for the dynamic system (moved out of inline style="" attributes
   — security review finding H5, so the Content-Security-Policy in
   SecurityHeaders middleware doesn't need 'unsafe-inline' for style-src)
========================= */

/* Language-toggle <form> around the header button: was
   style="display:contents" so the form itself doesn't affect layout. */
.lang-form {
  display: contents;
}

/* "No menus/products available yet" placeholder text. */
.empty-state-message {
  text-align: center;
}

/* Optional description line under a menu's name on the top-level list. */
.menu-card-description {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

/* "View menu" link inside a menu card: was style="align-self:flex-start". */
.back-btn--card {
  align-self: flex-start;
}

/* 404 page hero section. */
.error-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================
   Arabic / RTL support
========================= */

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .services .dots {
  right: auto;
  left: 30px;
}

html[dir="rtl"] .services .carriage .text {
  text-align: right;
}

html[dir="rtl"] header .nav .links ul {
  right: auto;
  left: 0;
}

html[dir="rtl"] header .nav .links ul::before {
  right: auto;
  left: 5px;
}

html[dir="rtl"] header .nav .links ul li a:hover {
  padding-left: 15px;
  padding-right: 20px;
}

html[dir="rtl"] .rates .container .seal .seal-name {
  flex-direction: column-reverse;
}

html[dir="rtl"] .services .carriage .text a i,
html[dir="rtl"] .menu .box a i,
html[dir="rtl"] .news .slide .card span i {
  animation-name: moving-arrow-rtl;
}

html[dir="rtl"] .media > div .title,
html[dir="rtl"] .media > div .title + p {
  text-align: right;
}

html[dir="rtl"] .news .slide .card span {
  text-align: end;
}

/* Keep slider movement in its original LTR coordinate system. */
html[dir="rtl"] .slider-track {
  direction: ltr;
}

html[dir="rtl"] .slider-btn {
  direction: ltr;
}

html[dir="rtl"] .header .buttons {
  direction: rtl;
}

html[dir="rtl"] footer .contact {
  direction: rtl;
}

@keyframes moving-arrow-rtl {
  0%,
  40%,
  80%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-10px);
  }
}
