:root {
  --color-primary: #64a7a2;      
  --color-primary-light: #d7ebe9;
  --color-accent: #212121;       
  --color-dark: #212121;         
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #f5f7f8;
  --color-white: #ffffff;

  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.1);
  --radius-lg: 18px;
  --radius-full: 999px;
  --max-width: 1120px;
}

/* Reset-ish */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

html {
  scroll-behavior: smooth;
}

/* Layout */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.section-heading p {
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 70px;
  width: auto;
  transform: scale(2.2);     
  transform-origin: left center;
}

.footer-logo-img {
  height: 120px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-lang {
  padding-inline: 0.8rem;
  font-size: 0.8rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

/* Nav toggle */

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-dark);
  margin: 4px 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.7rem;
}

.nav-mobile a {
  font-size: 0.95rem;
  padding: 0.2rem 0;
  color: var(--color-muted);
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  color: var(--color-primary);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #22c55e);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.hero-title {
  font-size: clamp(2.25rem, 3vw + 1rem, 3rem);
  letter-spacing: -0.045em;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-text {
  color: var(--color-muted);
  font-size: 0.96rem;
  max-width: 520px;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.hero-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 600;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 0.12rem;
}

.hero-meta-value {
  font-weight: 500;
  color: var(--color-dark);
}

/* Hero visual */

.hero-visual {
  background: radial-gradient(circle at 0 0, #d7ebe9, #f0f5f6 45%, #f5f7f8 100%);
  border-radius: 32px;
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  color: var(--color-dark);
}

.hero-visual-inner {
  border-radius: 22px;
  border: 1px solid rgba(100, 167, 162, 0.4); /* teal border */
  padding: 1.3rem;
  background: radial-gradient(circle at 20% 0, rgba(100, 167, 162, 0.25), #ffffff);
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #cbd5f5;
}

.hero-visual-dots {
  display: flex;
  gap: 0.3rem;
}

.hero-visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
}

.hero-visual-dot:nth-child(1) {
  background: #f97373;
}
.hero-visual-dot:nth-child(2) {
  background: #facc15;
}
.hero-visual-dot:nth-child(3) {
  background: #4ade80;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  font-size: 0.78rem;
}

.hero-card {
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(100, 167, 162, 0.35);
}

.hero-card h4 {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.hero-card p {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(100, 167, 162, 0.15);
  font-size: 0.7rem;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

/* About */

.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
}

.about-text p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.about-highlight {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #f9fafb;
  font-size: 0.85rem;
}

.about-highlight-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--color-dark);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.about-stat {
  min-width: 120px;
}

.about-stat strong {
  font-size: 1.15rem;
  display: block;
}

.about-stat span {
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* Services */

.services {
  background: linear-gradient(180deg, #eff3fb, #f9fafb);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-tag {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.service-card h3 {
  font-size: 1.05rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.service-list {
  margin-top: 0.3rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--color-dark);
}

.service-list li {
  margin-bottom: 0.25rem;
}

.service-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Portfolio */

.portfolio {
  background: var(--color-white);
}

.portfolio-placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 2.1rem 1.6rem;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    #f9fafb,
    #f9fafb 8px,
    #f3f4f6 8px,
    #f3f4f6 16px
  );
}

.portfolio-placeholder h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.portfolio-placeholder p {
  color: var(--color-muted);
  font-size: 0.93rem;
  max-width: 520px;
  margin: 0 auto 1rem;
}

.portfolio-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.portfolio-chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
}

/* Contact */

.contact {
  background: linear-gradient(180deg, #f9fafb, #e5edff);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info p {
  color: var(--color-muted);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.9rem;
}

.contact-detail {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.contact-detail-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.contact-form-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-form-card p {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: #374151;
}

input,
textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  background: #ffffff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-footnote {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
}

/* Footer */

footer {
  background: #212121;
  color: #f3f4f6;
  padding: 2.5rem 0 2rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 0.7rem;
}

.footer-text {
  color: #e0e0e0;
  max-width: 420px;
}

.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
  color: #bdbdbd;
}

.footer-links,
.footer-contact-list {
  list-style: none;
}

.footer-links li,
.footer-contact-list li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #f5f5f5;
  position: relative;
  padding-bottom: 1px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #60a5fa;
  transition: width 0.18s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 244, 246, 0.2);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.8rem;
}

/* WhatsApp widget */

.whatsapp-widget {
  position: fixed;
  bottom: 1.8rem;
  right: 1.5rem;
  z-index: 60;
}

body.rtl .whatsapp-widget {
  right: auto;
  left: 1.5rem;
}

.whatsapp-float {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  background: #1ebe5a;
}

.whatsapp-float span {
  font-size: 1.7rem;
  line-height: 1;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.45);
  opacity: 0.7;
  animation: wa-pulse 1.9s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.whatsapp-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  max-width: calc(100vw - 2.5rem);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1rem 0.95rem 0.9rem;
  font-size: 0.85rem;
  color: #111827;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  background-image: linear-gradient(135deg, #f9fafb 0%, #ffffff 30%, #ecfdf5 100%);
}

body.rtl .whatsapp-panel {
  right: auto;
  left: 0;
}

.whatsapp-widget.open .whatsapp-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.whatsapp-panel-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.whatsapp-panel-badge {
  font-size: 0.7rem;
  color: #16a34a;
}

.whatsapp-panel p {
  font-size: 0.83rem;
  color: #4b5563;
  margin-bottom: 0.7rem;
}

.whatsapp-panel small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

.whatsapp-panel-close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #6b7280;
  padding: 0.1rem;
}

.whatsapp-panel-close:hover {
  color: #111827;
}

.whatsapp-panel-cta {
  width: 100%;
  margin-top: 0.3rem;
}

/* RTL tweaks */

body.rtl .nav {
  direction: rtl;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .hero-inner,
body.rtl .about-grid,
body.rtl .contact-grid {
  direction: rtl;
}

body.rtl .hero-text,
body.rtl p,
body.rtl li,
body.rtl .section-heading p,
body.rtl .footer-text {
  text-align: right;
}

/* Responsive */

@media (max-width: 1024px) {
  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta > a:not(.btn-lang) {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    padding: 0.7rem 0;
  }

  .nav-mobile.open {
    display: flex;
  }

  .hero {
    padding-top: 3.8rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-highlights,
  .contact-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .whatsapp-widget {
    bottom: 1.1rem;
    right: 1rem;
  }

  body.rtl .whatsapp-widget {
    left: 1rem;
    right: auto;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .logo-img {
    height: 46px;
    transform: scale(1.6);
  }
}