:root {
  --ink: #13221d;
  --green: #173f32;
  --green-2: #215746;
  --mint: #d9efe7;
  --gold: #c6a15b;
  --paper: #fbfaf6;
  --line: rgba(19, 34, 29, 0.14);
  --shadow: 0 18px 40px rgba(19, 34, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Tahoma", "Arial", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.brand-mark {
  width: 174px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  overflow: hidden;
  position: relative;
  color: white;
  font-weight: 800;
  padding: 10px;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  opacity: 0.45;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.brand-copy strong {
  display: block;
  font-size: 18px;
  color: var(--green);
}

.brand-copy span {
  display: block;
  font-size: 12px;
  color: #66746e;
  margin-top: -3px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.menu a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #34423c;
  font-size: 15px;
}

.menu a:hover,
.menu .active {
  background: #eef3ef;
  color: var(--green);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(23, 63, 50, 0.18);
}

.btn:hover {
  background: var(--green-2);
}

.btn.gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(198, 161, 91, 0.22);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(19, 34, 29, 0.90), rgba(23, 63, 50, 0.70)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: white;
}

.hero-inner,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}

.hero-content {
  width: min(760px, 100%);
  padding: 64px 0;
}

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

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

h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  color: var(--green);
  margin-bottom: 14px;
}

h3 {
  color: var(--green);
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
}

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

.section {
  padding: 82px 0;
}

.section.alt {
  background: #f0f5f1;
}

.intro {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(19, 34, 29, 0.06);
}

.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  margin-bottom: 18px;
  font-size: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  max-width: 820px;
}

.stat {
  padding: 22px;
  background: rgba(255,255,255,0.08);
}

.stat strong {
  display: block;
  font-size: 30px;
  color: var(--gold);
}

.page-hero {
  padding: 86px 0;
  background:
    linear-gradient(90deg, rgba(19, 34, 29, 0.92), rgba(23, 63, 50, 0.72)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: white;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255,255,255,0.86);
  font-size: 19px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.media-panel {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(19, 34, 29, 0.16), rgba(19, 34, 29, 0.16)),
    url("https://images.unsplash.com/photo-1562564055-71e051d33c19?auto=format&fit=crop&w=1200&q=80") center / cover;
  box-shadow: var(--shadow);
}

.list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-box {
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 28px;
}

.contact-box h2 {
  color: white;
}

.contact-box p {
  color: rgba(255,255,255,0.84);
}

.form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(19, 34, 29, 0.06);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

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

.cta-band {
  background: var(--green);
  color: white;
  padding: 48px 0;
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  color: white;
  margin-bottom: 6px;
}

.site-footer {
  background: #101b17;
  color: rgba(255,255,255,0.78);
  padding: 34px 0;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.disabled-page {
  min-height: 420px;
  display: grid;
  align-content: center;
}

.admin-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.is-locked .admin-private {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(19, 34, 29, 0.92), rgba(23, 63, 50, 0.76)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.login-box {
  width: min(430px, 100%);
  background: var(--paper);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.login-box h1 {
  color: var(--green);
  font-size: 34px;
  margin-bottom: 18px;
}

.login-logo {
  margin: 0 auto 18px;
}

.login-error {
  min-height: 26px;
  margin: 12px 0 0;
  color: #9a2f2f;
  font-weight: 700;
}

body:not(.is-locked) .login-screen {
  display: none;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 34px 0;
}

.admin-hero h1 {
  color: var(--green);
  font-size: clamp(30px, 5vw, 52px);
}

.admin-hero p {
  max-width: 720px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(19, 34, 29, 0.06);
}

.admin-card h2 {
  font-size: 28px;
}

.admin-card textarea {
  min-height: 150px;
  direction: ltr;
  text-align: left;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.5;
}

.content-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.content-editor label {
  margin: 0;
}

.content-editor textarea {
  min-height: 104px;
  direction: rtl;
  text-align: right;
  font-family: inherit;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-section-head select {
  width: min(260px, 100%);
}

.toggle-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.toggle-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toggle-list input {
  width: auto;
  margin: 0;
}

.admin-note {
  padding: 10px 12px;
  margin: 0 0 20px;
  border-radius: 8px;
  background: #eef3ef;
  color: #52635c;
  font-size: 14px;
}

.file-btn input {
  display: none;
}

.btn.ghost {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
  box-shadow: none;
}

.admin-status {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  background: var(--green);
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
  pointer-events: none;
}

.admin-status.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    width: 100%;
    overflow: visible;
    padding-bottom: 4px;
  }

  .menu a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .brand {
    min-width: 0;
    width: 100%;
  }

  .brand-mark {
    width: 152px;
    height: 64px;
    padding: 9px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy span {
    font-size: 11px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .lead {
    font-size: 18px;
  }

  .actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .stats .stat {
    padding: 18px;
  }

  .grid,
  .grid.two,
  .split,
  .contact-layout,
  .admin-grid,
  .admin-hero,
  .stats {
    grid-template-columns: 1fr;
  }

  .content-editor {
    grid-template-columns: 1fr;
  }

  .admin-section-head,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding: 58px 0;
  }

  .cta-band .section-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
