:root {
  --color-primary: #00693E;   /* Oman green */
  --color-accent:  #DA291C;   /* Oman red */
  --color-sand:    #c49a6c;   /* desert sand */
  --color-bg:      #f4f4f4;
  --color-bg-alt:  #ffffff;
  --color-bg-soft: #f9f7f3;
  --color-text:    #222222;
  --radius:        14px;
  --shadow-soft:   0 10px 25px rgba(0,0,0,0.08);
}

/* LANGUAGE TOGGLING
   We keep both EN + AR text in HTML and show/hide with body class.
*/

[data-lang] {
  display: none;
}

body.lang-en [data-lang="en"],
body.lang-ar [data-lang="ar"] {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Arabic mode */

body.lang-ar {
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Basic layout */

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 1.9rem;
  font-weight: 700;
}

/* Topbar / navigation */

.topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  padding-block: 0.25rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.lang-switch {
  display: flex;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
}

/* Hero */

.hero is non-cooperative,
.hero is non-cooperative,
.hero is non-cooperative,.hero is non-cooperative,.hero is non-cooperative,
.hero {
  position: relative;
  color: #fff;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-home {
  background: url("../img/hero-home.jpg") center/cover fixed no-repeat;
}

.hero-wadi {
  background: url("../img/hero-wadi.jpg") center/cover fixed no-repeat;
}

.hero-turtle {
  background: url("../img/hero-turtle.jpg") center/cover fixed no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.55), rgba(0,0,0,0.7));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-inner h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 1rem;
}

.hero-inner p {
  margin: 0 0 1.7rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn,
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.btn {
  background: var(--color-primary);
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Grids / cards */

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(0,0,0,0.04);
  margin-bottom: 0.6rem;
}

/* Stats */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

.stat {
  flex: 1 1 160px;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stat span {
  display: block;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
}

/* CTA box */

.cta-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-sand));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

/* Article layout & meta */

.article-wrapper {
  max-width: 820px;
  margin-inline: auto;
}

.article-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  margin-bottom: 0.8rem;
}

.article-wrapper article {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.article-wrapper h1 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 2.1rem;
  font-family: "Playfair Display", serif;
}

.article-wrapper h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.article-wrapper p {
  margin: 0 0 1.1rem;
}

/* Contact (older simple card) */

.form-card {
  max-width: 600px;
  margin-inline: auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.18);
  font: inherit;
  resize: vertical;
}

/* Footer */

.footer {
  background: #111;
  color: #eee;
  padding: 1.7rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  font-size: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

/* --- Ad placeholders --- */

.ad-section {
  margin: 2rem 0;
}

.ad-placeholder {
  border-radius: var(--radius);
  border: 2px dashed rgba(0,0,0,0.12);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  background: var(--color-bg-soft);
  color: #555;
}

.ad-placeholder span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* --- Comments section --- */

.comments-section {
  margin-top: 2.5rem;
}

.comments-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* --- Contact form layout (new) --- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-form label span {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.13);
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  margin-top: 0.5rem;
}

/* --- Donate page --- */

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.donate-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.donate-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.donate-card p {
  font-size: 0.92rem;
}

.donate-card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}

/* RESPONSIVE */

@media (max-width: 880px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    background: #fff;
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    gap: 0.6rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .article-wrapper article {
    padding-inline: 1.25rem;
  }
}

/* RTL tweaks */

body.lang-ar .nav-container {
  flex-direction: row-reverse;
}

body.lang-ar .nav {
  text-align: right;
}

body.lang-ar .cta-box,
body.lang-ar .footer-inner,
body.lang-ar .article-wrapper {
  text-align: right;
}
/* ============================
   ENHANCEMENTS: ANIMATION + VISUALS
   ============================ */

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover animation */
.card-animated {
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.card-animated:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

/* Button hover polish */
.btn,
.btn-outline,
.btn-outline-dark {
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover,
.btn-outline:hover,
.btn-outline-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Slightly more "designed" hero overlay */
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.35),
    transparent 55%
  );
  opacity: 0.8;
  pointer-events: none;
}

/* Article images / figures */

.article-image {
  margin: 1.4rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.article-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.article-image figcaption {
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
  background: #fafafa;
  color: #555;
}

/* RTL tweak for figcaption */
body.lang-ar .article-image figcaption {
  text-align: right;
}
