:root {
  --bg-deep: #0f4d56;
  --bg-forest: #1b6f65;
  --surface: #fff8ec;
  --sand: #f2e5c8;
  --aqua: #2fe5d4;
  --aqua-dark: #0db9ab;
  --ink: #173638;
  --muted: #456665;
  --line: rgba(15, 77, 86, 0.2);
  --shadow: 0 16px 40px rgba(9, 71, 74, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans Pro", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(165deg, rgba(248, 253, 249, 0.9) 0%, rgba(239, 250, 244, 0.88) 55%, rgba(234, 247, 241, 0.9) 100%),
    linear-gradient(180deg, rgba(10, 73, 74, 0.14), rgba(10, 73, 74, 0.04)),
    image-set(
      url("/assets/background-landscape.avif") type("image/avif"),
      url("/assets/background-landscape.webp") type("image/webp"),
      url("/assets/background-landscape.jpg") type("image/jpeg")
    );
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, scroll, fixed;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin: 0;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffffe0;
  color: var(--ink);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn.is-active {
  background: var(--bg-deep);
  color: #ffffff;
  border-color: var(--bg-deep);
}

.lang-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

html[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", "Tajawal", "Segoe UI", "Source Sans Pro", sans-serif;
}

html[dir="rtl"] .topbar {
  direction: rtl;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .story,
html[dir="rtl"] .quality,
html[dir="rtl"] .partnership,
html[dir="rtl"] .footer {
  text-align: right;
}

html[dir="rtl"] th,
html[dir="rtl"] td,
html[dir="rtl"] input,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] .toast {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .timeline {
  border-left: 0;
  border-right: 2px solid rgba(18, 64, 60, 0.18);
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -33px;
}

html[dir="rtl"] .story-actions {
  justify-content: flex-end;
}

html[dir="rtl"] .badge-before {
  left: auto;
  right: 18px;
}

html[dir="rtl"] .badge-after {
  right: auto;
  left: 18px;
}

.section {
  padding: 72px 6vw;
}

.hero {
  min-height: min(100vh, 860px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-media {
  position: relative;
  width: min(650px, 100%);
  height: min(72vh, 620px);
  min-height: 430px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 77, 86, 0.24);
}

.hero-media.collage {
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.58), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(95, 231, 214, 0.36), transparent 40%),
    linear-gradient(160deg, #e6f8f2 0%, #d4f4eb 48%, #e8faf3 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05) brightness(1.04);
}

.photo-collage {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  z-index: 2;
}

.photo-collage.before {
  filter: grayscale(1) contrast(0.9) brightness(0.86);
}

.photo-collage.after {
  clip-path: inset(0 100% 0 0);
  animation: revealSweep 8s ease-in-out forwards;
  animation-delay: 0.9s;
}

.collage-card {
  --rot: 0deg;
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 34px rgba(7, 34, 33, 0.24);
  transform: rotate(var(--rot));
  opacity: 0;
  animation: cardFadeIn 0.85s ease forwards;
}

.collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}

.photo-collage.after .collage-card img {
  filter: saturate(1.12) contrast(1.04);
}

.card-1 {
  --rot: -7deg;
  top: 2%;
  left: 1%;
  width: 48%;
  height: 46%;
  z-index: 2;
  animation-delay: 0.06s;
}

.card-2 {
  --rot: 6deg;
  top: 2%;
  right: 1%;
  width: 38%;
  height: 34%;
  z-index: 4;
  animation-delay: 0.16s;
}

.card-3 {
  --rot: -4deg;
  bottom: 4%;
  left: 4%;
  width: 36%;
  height: 34%;
  z-index: 3;
  animation-delay: 0.26s;
}

.card-4 {
  --rot: 5deg;
  bottom: 3%;
  right: 1%;
  width: 52%;
  height: 44%;
  z-index: 5;
  animation-delay: 0.34s;
}

.card-5 {
  --rot: -2deg;
  top: 36%;
  left: 34%;
  width: 30%;
  height: 28%;
  z-index: 6;
  animation-delay: 0.44s;
}

.hero-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
  z-index: 7;
  animation: dividerSweep 8s ease-in-out forwards;
  animation-delay: 0.9s;
}

.hero-badge {
  position: absolute;
  top: 18px;
  z-index: 8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 77, 86, 0.78);
}

.badge-before {
  left: 18px;
}

.badge-after {
  right: 18px;
  background: rgba(13, 185, 171, 0.82);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.14), transparent 48%, rgba(255, 255, 255, 0.16)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 9;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.4vw, 4.1rem);
  line-height: 1.04;
}

.subtitle {
  margin-top: 20px;
  max-width: 48ch;
  font-size: 1.08rem;
  color: #2f3f3f;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(120deg, #0daea2 0%, #17c9ba 52%, #3debd9 100%);
  color: #fff;
}

.btn.ghost {
  border-color: var(--bg-deep);
  color: var(--bg-deep);
  background: rgba(255, 255, 255, 0.46);
}

.story h2,
.quality h2,
.partnership h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.story-headline p {
  margin-top: 10px;
  max-width: 70ch;
  color: #425051;
}

.story-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 18px;
}

.timeline {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
  border-left: 2px solid rgba(18, 64, 60, 0.18);
}

.timeline-item {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffffcc;
  box-shadow: 0 10px 22px rgba(13, 37, 35, 0.08);
  padding: 16px 18px 16px 18px;
  margin: 0 0 12px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -33px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--aqua-dark);
  box-shadow: 0 0 0 4px rgba(18, 142, 131, 0.2);
}

.timeline-year {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-dark);
  font-weight: 700;
}

.timeline-item h3 {
  margin-top: 6px;
  font-size: 1.35rem;
}

.timeline-item p {
  margin-top: 5px;
  color: #445354;
}

.story-media {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffefb;
  box-shadow: 0 12px 26px rgba(13, 37, 35, 0.08);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.story-media picture {
  display: block;
}

.story-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(18, 64, 60, 0.16);
}

.story-media img:last-child {
  grid-column: 1 / -1;
  height: 210px;
}

.story-note {
  margin-top: 14px;
  max-width: 90ch;
  color: #324344;
}

.story-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quality-headline p,
.partnership-headline p {
  margin-top: 8px;
  color: #495a59;
}

.quality-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(290px, 370px) 1fr;
  gap: 16px;
}

.mineral-card,
.point-card,
.partner-form {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffefb;
  box-shadow: 0 12px 26px rgba(13, 37, 35, 0.08);
}

.mineral-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mineral-card h3 {
  font-size: 1.6rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.point-card {
  padding: 22px;
}

.point-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(130deg, var(--bg-deep), var(--aqua-dark));
}

.point-card h3 {
  margin-top: 12px;
  font-size: 1.4rem;
}

.point-card p {
  margin-top: 6px;
  color: #4d5c5d;
}

.distribution-map {
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.distribution-map img {
  display: block;
  width: 100%;
  height: auto;
}

.form-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-form {
  margin-top: 18px;
  padding: 20px;
}

.quick-note {
  color: #445354;
  margin-top: 4px;
}

.quick-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.partner-form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-form h3 {
  font-size: 1.55rem;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(64, 195, 181, 0.4);
  border-color: var(--aqua-dark);
}

.hotel-note {
  margin-top: 14px;
  color: #2c3b3c;
}

.partner-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-strip span {
  border-radius: 999px;
  border: 1px solid rgba(18, 64, 60, 0.22);
  background: rgba(255, 255, 255, 0.86);
  padding: 7px 12px;
  font-size: 0.84rem;
  color: #2f4142;
}

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 251, 245, 0.4), rgba(255, 250, 240, 0.9));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer a,
.footer p {
  display: block;
  color: #2f3f40;
  margin-bottom: 6px;
}

.badges {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.footer-lang-switch {
  margin-top: 8px;
}

.legal-links {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.legal-links a {
  font-size: 0.9rem;
  color: #2f3f40;
}

.mobile-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 42;
  display: none;
  width: calc(100% - 32px);
  max-width: 420px;
  text-align: center;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #0daea2 0%, #17c9ba 52%, #3debd9 100%);
  box-shadow: 0 12px 26px rgba(8, 34, 36, 0.35);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(8, 34, 36, 0.22);
  padding: 14px;
}

.cookie-banner p {
  color: #324344;
}

.cookie-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cookie-actions a {
  font-size: 0.9rem;
  color: #1f5f5a;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealSweep {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  40% {
    clip-path: inset(0 58% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes dividerSweep {
  0% {
    left: 0;
  }
  40% {
    left: 42%;
  }
  100% {
    left: 100%;
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(var(--rot)) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot)) scale(1);
  }
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  body {
    background-attachment: scroll;
  }

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

  .hero-media {
    width: 100%;
    max-width: 760px;
    height: 420px;
    min-height: 0;
  }

  .card-1 {
    top: 3%;
    width: 54%;
  }

  .card-2 {
    width: 41%;
    height: 32%;
  }

  .card-3 {
    width: 39%;
    height: 35%;
  }

  .card-4 {
    width: 55%;
    height: 45%;
  }

  .card-5 {
    top: 38%;
    left: 33%;
    width: 32%;
    height: 28%;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-media img {
    height: 200px;
  }

  .story-media img:last-child {
    height: 220px;
  }

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

  .quality-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .section {
    padding: 56px 5vw;
  }

  .topbar {
    padding: 12px 5vw;
  }

  .brand {
    font-size: 1.22rem;
  }

  .photo-collage {
    inset: 10px;
  }

  .collage-card {
    border-radius: 14px;
  }

  .card-1 {
    --rot: -4deg;
    width: 56%;
    height: 42%;
  }

  .card-2 {
    --rot: 3deg;
    width: 40%;
    height: 30%;
  }

  .card-3 {
    --rot: -3deg;
    width: 40%;
    height: 33%;
  }

  .card-4 {
    --rot: 4deg;
    width: 58%;
    height: 43%;
  }

  .card-5 {
    --rot: -1deg;
    top: 39%;
    left: 31%;
    width: 35%;
    height: 26%;
  }

  .hero-badge {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    padding: 5px 9px;
  }

  .story-media img {
    height: 140px;
  }

  .story-media img:last-child {
    height: 160px;
  }

  .mobile-cta {
    display: block;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 80px;
    padding: 12px;
  }

  .toast {
    bottom: 78px;
  }
}
