/* دليل ليبيا — تصميم احترافي */
:root {
  --green-dark: #1a4d2e;
  --green: #2d6a4f;
  --green-light: #40916c;
  --gold: #c9a227;
  --gold-soft: #e8d48a;
  --cream: #f8f6f0;
  --text: #1c1c1c;
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 77, 46, 0.12);
  --radius: 12px;
  --font: "Tajawal", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-light);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.35;
  max-width: 280px;
}

.brand-text span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--gold);
}

/* Hero / covers */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.hero-panel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 77, 46, 0.88) 0%,
    rgba(26, 77, 46, 0.45) 50%,
    rgba(45, 106, 79, 0.55) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 520px;
}

.hero-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.45);
}

.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green-light));
  border-radius: 2px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* About */
.about-block {
  background: var(--white);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-right: 4px solid var(--green);
}

.about-block p + p {
  margin-top: 1rem;
}

/* Cards grid — vision / mission / goals */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 77, 46, 0.14);
}

.card h3 {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3 .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.card p,
.card ul {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card ul {
  list-style: none;
  margin-top: 0.75rem;
}

.card ul li {
  padding: 0.35rem 0;
  padding-right: 1.25rem;
  position: relative;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--green-light);
  font-weight: bold;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--cream) 0%, rgba(45, 106, 79, 0.06) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background: var(--green-dark);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--gold-soft);
}

.contact-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.contact-item a,
.contact-item span {
  color: var(--white);
  font-size: 1rem;
}

.contact-item a:hover {
  color: var(--gold-soft);
}

.contact-form-wrap {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-actions .btn-primary {
  width: 100%;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background: #d8f3dc;
  color: var(--green-dark);
  border: 1px solid #95d5b2;
}

.alert-error {
  background: #ffdad6;
  color: #7f1d1d;
  border: 1px solid #f5c2c0;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.site-footer .brand-mini img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
