:root {
  --bg: #f8f7f4;
  --bg-alt: #f0ece3;
  --text: #222222;
  --muted: #777777;
  --primary: #556b2f;
  --primary-soft: #6f8b46;
  --border: #dfd7c7;
  --card-bg: #ffffff;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, #f1efe6 0, transparent 55%),
    radial-gradient(circle at bottom right, #e8f0e4 0, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

/* Splash – logo intro */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #f7f4ea 0, #e8e2d3 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: splashFade 2.8s ease forwards;
}

.splash-inner {
  transform-style: preserve-3d;
  perspective: 900px;
}

.splash-logo {
  width: 140px;
  display: block;
  margin: 0 auto 0.6rem;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  animation: splashLogo 2.4s ease forwards;
}

.splash-title {
  font-family: "Poppins", system-ui, sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #222;
}

.splash-sub {
  font-size: 0.9rem;
  margin-top: 0.1rem;
  color: #555;
}

.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes splashLogo {
  0% {
    opacity: 0;
    transform: scale(0.4) rotateY(-60deg) translateY(30px);
  }
  25% {
    opacity: 1;
    transform: scale(1.15) rotateY(0deg) translateY(0);
  }
  60% {
    opacity: 1;
    transform: scale(1) rotateY(0deg) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.7) rotateY(20deg) translateY(-25px);
  }
}

@keyframes splashFade {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Layout */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 215, 199, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
}

.logo-img {
  width: 46px;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.18));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: right;
}

.logo-mark {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.logo-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
  transition: width 0.2s.ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */

.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s.ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  box-shadow: 0 10px 28px rgba(85, 107, 47, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px) translateZ(6px);
  box-shadow: 0 16px 40px rgba(85, 107, 47, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.btn-primary.small {
  padding-block: 0.45rem;
  padding-inline: 1.1rem;
  font-size: 0.85rem;
}

.btn-primary.full-width {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset-inline-start: 50%;
  top: -160px;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(111, 139, 70, 0.26), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
  filter: blur(4px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin: 0.4rem 0 0.7rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(223, 215, 199, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Hero images */

.hero-image {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  perspective: 1100px;
}

.hero-photo {
  width: 100%;
  padding-bottom: 52%;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  transform-origin: center center;
  transform: translateZ(0) rotateX(0deg) rotateY(-5deg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  filter: saturate(1.02);
}

/* عدّل أسماء الصور حسب ملفاتك */
.hero-photo-1 { background-image: url("hero-1-aerial.jpg"); }
.hero-photo-2 { background-image: url("hero-2-flowers.jpg"); }
.hero-photo-3 { background-image: url("hero-3-vegetables.jpg"); }

.hero-photo:hover {
  transform: translateY(-6px) translateZ(30px) rotateX(4deg) rotateY(-3deg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  filter: saturate(1.08);
}

/* Grids + cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(223, 215, 199, 0.9);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* floating cards */

.float-card {
  position: relative;
  transform-style: preserve-3d;
}

.float-card::before {
  content: "";
  position: absolute;
  inset: auto 18px -18px 18px;
  height: 18px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.float-card:hover {
  transform: translateY(-7px) translateZ(10px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.14);
  border-color: rgba(85, 107, 47, 0.6);
  background: linear-gradient(135deg, #ffffff, #faf7f0);
}

.float-card:hover::before {
  opacity: 1;
}

/* About */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.2rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
}

.about-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.about-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-inline-start: 1.3rem;
}

.about-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--primary);
}

.about-image {
  position: relative;
  min-height: 230px;
}

.about-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background-image: url("about-flowers.jpg"); /* عدّل حسب صورتك */
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.about-card:hover {
  transform: translateY(-8px) translateZ(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* Contact */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-text p {
  color: var(--muted);
}

.contact-details p {
  margin: 0.2rem 0;
}

.contact-details span { color: var(--text); }

.contact-details a {
  color: var(--text);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.8rem;
}

.contact-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.contact-card .form-row { margin-bottom: 1rem; }

.contact-card label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: #fdfbf7;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(85, 107, 47, 0.15);
  background-color: #ffffff;
}

.contact-card textarea {
  resize: vertical;
  min-height: 110px;
}

/* Partners */

.section-partners { text-align: center; }

.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.partner-badge {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 215, 199, 0.9);
  background: linear-gradient(135deg, #ffffff, #f8f7f4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  font-size: 0.9rem;
  color: #444;
}

.partners-note {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */

.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(223, 215, 199, 0.7);
  background-color: #f6f3ec;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-brand p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); }

/* منتجات – ستايل Zara */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.product-card {
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(223, 215, 199, 0.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  padding-bottom: 125%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.product-body {
  padding: 1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.product-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 215, 199, 0.9);
  background-color: #faf7f0;
}

.product-cta {
  margin-top: 0.8rem;
  align-self: flex-start;
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  background-color: #111;
  color: #fff;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.product-cta:hover {
  background-color: #333;
  transform: translateY(-1px);
}

/* كروت المشاريع مع الصور */

.projects-grid {
  gap: 1.8rem;
}

.project-card {
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(223, 215, 199, 0.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  padding-bottom: 120%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, filter 0.4s.ease;
}

.project-card:hover .project-image {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.project-body {
  padding: 1.1rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 215, 199, 0.9);
  background-color: #faf7f0;
}

/* Gallery Modal */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  font-family: inherit;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.gallery-content {
  position: relative;
  max-width: 1000px;
  width: 92%;
  max-height: 90vh;
  background: #fdfbf7;
  border-radius: 22px;
  padding: 1.4rem 1.6rem 1.6rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* الحركة الناعمة عند الفتح */
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.gallery-modal.open .gallery-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-content h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.gallery-close {
  position: absolute;
  inset-inline-start: 1.1rem;
  top: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

.gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
  position: relative;

  /* بداية شفافة وتحت شوي */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s.ease;
}

/* لما نضيف الكلاس show تطلع الصور */
.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s.ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

/* Scrollbar داخل المودال */
.gallery-grid::-webkit-scrollbar {
  width: 8px;
}
.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

@media (max-width: 600px) {
  .gallery-content {
    padding: 1.1rem 1.1rem 1.4rem;
    border-radius: 18px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(223, 215, 199, 0.7);
    padding-top: 0.5rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-image {
    max-width: 430px;
    margin: 1.5rem auto 0;
  }

  .hero-photo {
    transform: rotateX(0deg) rotateY(0deg);
  }

  .hero-photo:hover {
    transform: translateY(-4px) translateZ(12px);
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-image,
  .contact-card {
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-meta span {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    justify-content: space-between;
  }

  .nav {
    font-size: 0.85rem;
  }
}
