/* شركة مناهل طرابلس — أسلوب احترافي */
:root {
  --color-bg: #f8f9f6;
  --color-surface: #ffffff;
  --color-primary: #1e5c3a;
  --color-primary-dark: #143d27;
  --color-accent: #c9a227;
  --color-accent-soft: #e8d89a;
  --color-text: #1a1f1c;
  --color-text-muted: #4a554e;
  --color-border: rgba(30, 92, 58, 0.12);
  --shadow-sm: 0 2px 12px rgba(20, 61, 39, 0.06);
  --shadow-md: 0 8px 32px rgba(20, 61, 39, 0.1);
  --radius: 14px;
  --font: "Tajawal", system-ui, sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.brand-text small {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--color-primary);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 8s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 61, 39, 0.88) 0%,
    rgba(30, 92, 58, 0.65) 45%,
    rgba(26, 31, 28, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 5rem 4rem;
  color: #fff;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  opacity: 0.94;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #ddb82e;
  color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-dots .dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.15);
}

/* Sections */
.section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary-dark);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.section-head-light .section-label {
  color: var(--color-accent-soft);
}

.section-head-light h2 {
  color: #fff;
}

.section-about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 2.5rem;
  align-items: start;
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-highlight {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-logo {
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-inline-start: 1.35rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.about-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Vision band */
.section-vision {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(6px);
}

.info-card-accent {
  background: rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.35);
}

.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.info-card p {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.95;
  line-height: 1.7;
}

.info-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
  color: var(--color-accent-soft);
}

/* Goals */
.section-goals {
  background: var(--color-bg);
}

.goals-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: goals;
  max-width: 720px;
}

.goals-list li {
  counter-increment: goals;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.25rem;
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.goals-list li::before {
  content: counter(goals);
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 8px;
}

/* Contact */
.section-contact {
  background: var(--color-primary-dark);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.85;
}

.contact-phone {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-accent-soft);
  text-decoration: none;
}

.contact-phone:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-address {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-card-brand img {
  margin: 0 auto 1rem;
  border-radius: 10px;
}

.contact-card-brand p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: #0f2418;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
}

/* Mobile */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .hero-content {
    padding-block: 4rem 3.5rem;
  }

  .goals-list li {
    padding-inline-start: 3rem;
  }
}
