
:root {
  --green: #145c45;
  --green-dark: #0b3d30;
  --mint: #eaf5ef;
  --gold: #d5ad62;
  --text: #24352d;
  --muted: #6c7b73;
  --white: #fff;
  --bg: #f8faf8;
  --line: #e4ece6;
  --shadow: 0 18px 50px #123e2c0d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: auto;
}

.site-header {
  background: #ffffffef;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: bold;
  font-size: 21px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  font-size: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active,
.text-link {
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 7px 12px;
  color: var(--green);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-small {
  padding: 9px 14px;
  font-size: 13px;
}

.btn-outline {
  background: white;
  color: var(--green);
  border-color: #c9ded2;
}

.btn-outline:hover {
  color: white;
}

.hero {
  overflow: hidden;
  position: relative;
  padding: 78px 0 72px;
  background:
    radial-gradient(ellipse at 5% 5%, #d5ad622e, transparent 34%),
    linear-gradient(135deg, #eff7f1, #fffdf7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 30px;
  background: #dceee3;
  color: var(--green);
  font-size: 13px;
  font-weight: bold;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.45;
  color: var(--green-dark);
}

.hero h1 span {
  color: #b58b3d;
}

.lead {
  max-width: 650px;
  color: #596c61;
  font-size: 17px;
}

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

.muted,
.small {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.hero-art {
  min-height: 310px;
  border-radius: 32px;
  background: linear-gradient(145deg, #1d7658, #0c4434);
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 55px #145c4526;
}

.hero-heart {
  font-size: 56px;
}

.hero-art h2 {
  font-size: 27px;
  margin: 0;
}

.hero-art p {
  color: #e3f2e9;
}

.art-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #ffffff28;
  border-radius: 50%;
  left: -75px;
  top: -75px;
}

.section {
  padding: 66px 0;
}

.section-tint {
  background: #f0f6f1;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 8px 0;
  color: var(--green-dark);
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

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

.feature,
.contact-card,
.case-card,
.admin-panel,
.detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: var(--mint);
  border-radius: 15px;
  font-size: 24px;
  color: var(--green);
}

.feature h3 {
  margin: 14px 0 5px;
}

.feature p,
.contact-card p,
.case-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

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

/* ===== صندوق التواصل ===== */

.contact-main {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #dce9e2;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(20, 92, 69, 0.08);
}

.contact-brand {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5f3eb;
  color: #145c45;
  font-size: 42px;
}

.contact-main h3 {
  margin: 10px 0;
  color: #145c45;
  font-size: 25px;
}

.contact-description {
  margin: 10px 0 22px !important;
  color: #68766f;
  line-height: 1.9;
}

.contact-info {
  margin: 20px 0;
  text-align: right;
}

.contact-info p {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8f5;
  color: #34483d;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  box-sizing: border-box;
  border-radius: 13px;
  background: #145c45;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}

.contact-link:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.contact-link.whatsapp {
  background: #16834b;
}

.contact-link.facebook {
  background: #1877f2;
}

.contact-link.instagram {
  background: #b83280;
}

.notice {
  grid-column: 1 / -1;
  margin: 0 auto;
  width: 100%;
  border: 1px dashed #b9d1c1;
  border-radius: 16px;
  padding: 23px;
  background: white;
  text-align: center;
  color: var(--muted);
}

.notice strong {
  color: var(--green);
}

.center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.case-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-image {
  height: 175px;
  background: linear-gradient(135deg, #eaf5ef, #fff9e9);
  display: grid;
  place-items: center;
  font-size: 42px;
  color: var(--green);
}

.case-content {
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.case-content h2,
.case-content h3 {
  font-size: 19px;
  margin: 0;
  color: var(--green-dark);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.budget {
  background: #f0f6f1;
  border-radius: 12px;
  padding: 10px 13px;
  color: var(--green-dark);
  font-weight: bold;
}

.case-content .btn {
  margin-top: auto;
}

.status {
  font-size: 12px;
  color: var(--green);
  background: var(--mint);
  padding: 4px 9px;
  border-radius: 20px;
  align-self: flex-start;
}

.detail-wrap {
  margin-top: 20px;
}

.detail-card {
  max-width: 850px;
  margin: 18px auto;
}

.detail-card h1 {
  color: var(--green-dark);
}

.detail-description {
  white-space: pre-wrap;
}

.text-link {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
}

.detail-budget {
  font-size: 24px;
  color: var(--green);
  font-weight: bold;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

footer {
  background: #0b3529;
  color: #e4f0e8;
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
}

footer p {
  margin: 5px 0;
  color: #c4d8cc;
}

.admin-body {
  background: #f5f8f5;
}

.admin-container {
  max-width: 900px;
}

.admin-panel {
  margin-bottom: 22px;
}

.admin-panel h2 {
  margin-top: 0;
  color: var(--green-dark);
}

.hidden {
  display: none !important;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: bold;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid #cfddd3;
  border-radius: 10px;
  padding: 11px;
  background: #fff;
  color: var(--text);
  outline-color: var(--green);
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid .check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}

.check-label input {
  width: auto;
}

.form-actions,
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head {
  justify-content: space-between;
}

.form-message {
  font-size: 14px;
  color: var(--green);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.admin-row h3 {
  margin: 0;
}

.admin-row p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.danger {
  background: #a63737;
}

.danger:hover {
  background: #812626;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.page-title {
  margin-top: 10px;
}

@media (min-width: 520px) {
  .contact-main {
    padding: 34px;
  }

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

@media (max-width: 760px) {
  .nav {
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 8px;
  }

  .nav > .btn {
    margin-right: auto;
  }

  .hero {
    padding: 48px 0;
  }

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

  .hero-art {
    min-height: 230px;
  }

  .feature-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 48px 0;
  }

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

  .form-grid .full {
    grid-column: auto;
  }

  .admin-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
