:root {
  --green: #2a956b;
  --green-dark: #1f6f50;
  --red-bar: #dd0b0b;
  --gold: #ceb288;
  --gold-border: #b18b51;
  --text: #333333;
  --white: #ffffff;
  --light: #fbfbfb;
  --accent-yellow: #e9ff00;
  --whatsapp: linear-gradient(211deg, #51eb59 0%, #2c8f24 100%);
  --shadow: 0 0 11px -2px rgba(0, 0, 0, 0.48);
  --radius-lg: 35px;
  --radius-md: 18px;
  --radius-pill: 50px;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Almarai", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.highlight {
  color: #ff0000;
  font-weight: 700;
}

/* Site nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.site-nav-logo img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.site-nav.is-scrolled .site-nav-logo img {
  filter: none;
}

.site-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav-links a {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  transition: color 0.3s ease, opacity 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-nav.is-scrolled .site-nav-links a {
  color: var(--green-dark);
  text-shadow: none;
}

.site-nav-links a:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .site-nav-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding-block: 0.75rem;
  }

  .site-nav-logo img {
    height: 52px;
    margin-inline: auto;
  }

  .site-nav-links {
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .site-nav-links a {
    font-size: 0.85rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url("https://campaign.manazel.sa/wp-content/uploads/2023/03/DM-Bird_Cam03-1024x576.jpg")
      center / cover no-repeat;
  color: var(--white);
  padding: 6.5rem 0 5rem;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: var(--green);
  clip-path: polygon(0 0, 0 100%, 50% 20%, 100% 100%, 100% 0);
}

.hero-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-logo img {
  width: 58%;
  margin-inline: auto;
}

.hero-headline {
  font-size: clamp(1.125rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0;
}

.project-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
}

.project-logos a {
  display: flex;
  justify-content: center;
}

.project-logos img {
  width: 40%;
}

.project-logos .logo-center img {
  width: 21%;
}

/* Booking */
.booking {
  background: var(--green);
  color: var(--white);
  padding: 2.5rem 0;
  position: relative;
}

.booking::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--green);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.9rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.booking-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 15px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--green-dark);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select option {
  color: var(--text);
  background: var(--white);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 15px;
  background: #4f52b0;
  color: var(--white);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #3a3d8a;
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-yellow);
  min-height: 1.5rem;
}

/* Features */
.features {
  padding: 2.5rem 0 1rem;
}

.features::before {
  content: "";
  display: block;
  height: 40px;
  background: var(--green);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  margin-bottom: 1.5rem;
}

.section-badge {
  display: block;
  width: fit-content;
  margin: 2rem auto 0.5rem;
  padding: 0.6rem 2rem;
  background: rgba(206, 178, 136, 0.61);
  border: 5px groove var(--gold-border);
  border-radius: var(--radius-pill);
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
}

.features .section-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
}

.feature-card img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.feature-card p {
  margin: 0.75rem 0.5rem 0;
  font-weight: 800;
  font-size: 0.95rem;
}

.features-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

/* Projects */
.projects {
  padding: 2rem 0 3rem;
}

.project-block {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.project-block.reverse {
  direction: ltr;
}

.project-block.reverse .project-content {
  direction: rtl;
}

.project-block img {
  width: 100%;
}

.project-block .round img {
  border-radius: 50%;
}

.project-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.project-content p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

/* CTA */
.cta {
  margin: 1.25rem 0;
}

.cta-inner {
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("https://campaign.manazel.sa/wp-content/uploads/2023/03/focused-call-center-operators-during-working-process-1024x683.png")
      center / cover no-repeat;
  border-radius: var(--radius-md);
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  text-align: center;
  color: var(--white);
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cta-inner p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-whatsapp,
.btn-book {
  background: var(--whatsapp);
  color: var(--white);
}

/* In-page contact buttons */
.contact-page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  color: var(--white);
  text-align: right;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-page-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  color: var(--white);
}

.contact-page-whatsapp {
  background: var(--whatsapp);
}

.contact-page-call {
  background: linear-gradient(135deg, #0d6efd, #084298);
}

.contact-page-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.contact-page-icon svg {
  width: 24px;
  height: 24px;
}

.contact-page-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.3;
}

.contact-page-info strong {
  font-size: 1rem;
  font-weight: 800;
}

.contact-page-info span {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .contact-page-btn {
    min-width: 100%;
    justify-content: center;
  }
}

/* Footer */
.footer {
  padding: 1.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  width: 18%;
  margin: 0 auto 0.75rem;
}

.footer-logo h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-developer {
  margin-top: 1.5rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(42, 149, 107, 0.15);
  text-align: center;
}

.footer-developer-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, rgba(42, 149, 107, 0.08), rgba(206, 178, 136, 0.12));
  border: 1px solid rgba(42, 149, 107, 0.18);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-developer-prefix {
  color: #555;
  font-weight: 600;
}

.footer-developer-brand {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-developer-brand:hover {
  color: var(--green);
  text-decoration: none;
  opacity: 0.9;
}

.footer-whatsapp {
  display: inline-block;
}

/* Floating contact icons */
.contact-float-btn {
  position: fixed;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-float-btn svg {
  width: 34px;
  height: 34px;
}

.contact-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  color: var(--white);
}

.contact-float-whatsapp {
  left: 20px;
  background: var(--whatsapp);
}

.contact-float-call {
  right: 20px;
  background: linear-gradient(135deg, #0d6efd, #084298);
}

@media (max-width: 768px) {
  .contact-float-btn {
    width: 60px;
    height: 60px;
    bottom: 18px;
  }

  .contact-float-btn svg {
    width: 30px;
    height: 30px;
  }

  .contact-float-whatsapp {
    left: 14px;
  }

  .contact-float-call {
    right: 14px;
  }
}

/* Legal pages */
.legal-body {
  background: var(--light);
}

.site-nav--solid {
  background: rgba(31, 111, 80, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.site-nav--solid .site-nav-links a {
  color: var(--white);
  text-shadow: none;
}

.legal-page {
  padding: 6rem 0 3rem;
  min-height: 60vh;
}

.legal-page-inner {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.legal-page-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--green-dark);
}

.legal-page-content {
  line-height: 1.9;
}

.legal-page-content p {
  margin: 0 0 1rem;
}

.legal-page-content h2,
.legal-page-content h3 {
  color: var(--green-dark);
  margin: 1.5rem 0 0.75rem;
}

.legal-back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--green-dark);
  font-weight: 700;
}

.legal-back-link:hover {
  text-decoration: underline;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo img {
    width: 32%;
  }

  .project-logos img,
  .project-logos .logo-center img {
    width: 100%;
  }

  .features-grid,
  .features-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card p {
    font-size: 0.8125rem;
  }

  .project-block,
  .project-block.reverse {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo img {
    width: 35%;
  }
}
