:root {
  --ink: #101820;
  --muted: #66717d;
  --line: #dce5ea;
  --paper: #f7f4ef;
  --white: #ffffff;
  --teal: #0f9f9a;
  --mint: #c9f6df;
  --gold: #f4b942;
  --coral: #ee6b5f;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cairo", "Inter", system-ui, sans-serif;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef6f7;
  --muted: #b8c6cc;
  --line: #2d3c43;
  --paper: #091014;
  --teal: #20c7c3;
  --mint: #7ddfc6;
  --gold: #f2c25d;
  --coral: #ff8a7d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

body[data-theme="light"] {
  color-scheme: light;
}

body[data-lang="en"],
body[data-lang="tr"] {
  font-family: "Inter", "Cairo", system-ui, sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(10, 16, 22, 0.82), rgba(10, 16, 22, 0));
}

.site-header.page-header {
  position: static;
  color: var(--white);
  background: var(--ink);
}

.brand,
.main-nav,
.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
}

.main-nav {
  flex-wrap: wrap;
  gap: 24px;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  gap: 10px;
}

.site-theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.site-theme-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-block;
}

.site-theme-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.18);
}

body[data-theme="dark"] .site-theme-icon::before {
  inset: 3px;
  background: transparent;
  box-shadow: inset -6px -3px 0 0 var(--mint);
}

.language-switcher {
  position: relative;
  gap: 6px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.language-trigger {
  min-width: 92px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 118px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.lang-button {
  width: 100%;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lang-button.active {
  color: var(--ink);
  background: var(--white);
}

body[data-theme="dark"] .lang-button.active {
  color: #101820;
}

.flag-icon {
  position: relative;
  width: 26px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.18);
}

.flag-ar {
  background: #0b7d3b;
}

.flag-ar::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.flag-ar::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 12px;
  height: 1px;
  background: #fff;
  border-radius: 2px;
}

.flag-en {
  background: #173f8a;
}

.flag-en::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(32deg, transparent 42%, #fff 43% 55%, transparent 56%),
    linear-gradient(-32deg, transparent 42%, #fff 43% 55%, transparent 56%),
    linear-gradient(90deg, transparent 38%, #fff 39% 61%, transparent 62%),
    linear-gradient(0deg, transparent 34%, #fff 35% 65%, transparent 66%);
}

.flag-en::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 43%, #d81e34 44% 56%, transparent 57%),
    linear-gradient(0deg, transparent 40%, #d81e34 41% 59%, transparent 60%);
}

.flag-tr {
  background: #e30a17;
}

.flag-tr::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.flag-tr::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e30a17;
  box-shadow: 8px 2px 0 -3px #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #101820;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 16, 22, 0.94) 0%, rgba(10, 16, 22, 0.7) 42%, rgba(10, 16, 22, 0.15) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.86) 0%, rgba(16, 24, 32, 0) 40%);
}

[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(10, 16, 22, 0.94) 0%, rgba(10, 16, 22, 0.7) 42%, rgba(10, 16, 22, 0.15) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.86) 0%, rgba(16, 24, 32, 0) 40%);
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 36px));
  margin-inline: clamp(18px, 8vw, 110px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--ink);
  background: var(--mint);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.stats {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -58px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.stats div {
  padding: 26px;
  background: var(--white);
}

.stats strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section,
.split-section,
.reserve-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 0;
}

.section-heading {
  max-width: 780px;
}

.section-heading p:not(.eyebrow),
.safety-panel p:not(.eyebrow),
.reserve-section > div p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -34px;
  bottom: -34px;
  width: 126px;
  height: 126px;
  border: 18px solid color-mix(in srgb, var(--teal), transparent 76%);
  border-radius: 34px;
  transform: rotate(18deg);
}

.feature-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--coral);
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--ink);
  background: var(--gold);
}

.feature-card p,
.safety-list p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.8;
}

.feature-card h3 {
  position: relative;
  z-index: 1;
}

.cms-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.cms-page-card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cms-page-card p {
  color: var(--muted);
  line-height: 1.8;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.safety-panel {
  position: sticky;
  top: 100px;
}

.safety-list {
  display: grid;
  gap: 16px;
}

.safety-list div {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.08);
}

.safety-list div::after {
  content: "";
  position: absolute;
  inset-inline-end: 20px;
  top: 22px;
  width: 42px;
  height: 42px;
  border: 3px solid color-mix(in srgb, var(--gold), transparent 42%);
  border-radius: 12px;
  transform: rotate(12deg);
}

[dir="rtl"] .safety-list div {
  border-left: 0;
  border-right: 5px solid var(--teal);
}

.reserve-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
  padding-bottom: 96px;
}

.reserve-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(201, 246, 223, 0.18), transparent 34%),
    var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.reserve-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.reserve-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.reserve-form input:focus {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.reserve-form .button {
  width: 100%;
  margin-top: 4px;
  font: inherit;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
}

.site-footer span:first-child {
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

.footer-links a {
  opacity: 0.78;
}

.footer-links a:hover {
  opacity: 1;
}

.content-page {
  min-height: calc(100vh - 154px);
  padding: 84px clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.content-page-inner {
  width: min(880px, 100%);
  margin: 0 auto;
}

.content-page h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.page-body {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 2;
}

.page-body p {
  margin-bottom: 22px;
}

body[data-theme="dark"] .stats div,
body[data-theme="dark"] .feature-card,
body[data-theme="dark"] .cms-page-card,
body[data-theme="dark"] .safety-list div,
body[data-theme="dark"] .content-page {
  color: var(--ink);
  background: #121c22;
  border-color: var(--line);
}

body[data-theme="dark"] .reserve-form,
body[data-theme="dark"] .site-header.page-header,
body[data-theme="dark"] .site-footer {
  background: #080d10;
}

body[data-theme="dark"] .button.primary {
  color: #06100d;
}

body[data-theme="dark"] .button.secondary,
body[data-theme="dark"] .reserve-form input {
  color: #eef6f7;
  border-color: rgba(238, 246, 247, 0.22);
  background: rgba(238, 246, 247, 0.08);
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    font-size: 0.9rem;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 128px;
  }

  .stats,
  .feature-grid,
  .cms-pages-grid,
  .split-section,
  .reserve-section {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: 0;
  }

  .safety-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .language-trigger {
    min-width: 84px;
  }

  .site-theme-toggle {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section,
  .split-section,
  .reserve-section {
    padding-top: 72px;
  }

  .stats div,
  .feature-card,
  .reserve-form,
  .safety-list div {
    padding: 22px;
  }

  .site-footer {
    display: grid;
  }
}
