/* HL_LANDING_CSS_BUILD: 2024-03-12T00:00 */
:root {
  --primary: #00677F;
  --secondary: #004165;
  --accent-surface: #F6F6F6;
  --surface: #FFFFFF;
  --text-dark: #0f1f2c;
  --text-muted: #5c6c7a;
  --radius: 22px;
  --border-color: rgba(0, 65, 101, 0.12);
  --shadow-soft: 0 8px 24px rgba(0, 65, 101, 0.07);
  --shadow-strong: 0 16px 38px rgba(0, 65, 101, 0.14);
  --transition: all 0.35s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface);
  color: var(--text-dark);
  line-height: 1.7;
}

html[lang="en"] body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Force landing typography to match site fonts instead of the default Odoo Inter */
body.landing-page,
body.landing-page #wrapwrap,
body.landing-page #wrapwrap .landing-root {
  --bs-font-sans-serif: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
body.landing-page #wrapwrap .landing-root *:not(svg):not(path) {
  font-family: inherit !important;
}

html.en body.landing-page,
html.en body.landing-page #wrapwrap,
html.en body.landing-page #wrapwrap .landing-root {
  --bs-font-sans-serif: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}
html.en body.landing-page #wrapwrap .landing-root *:not(svg):not(path) {
  font-family: inherit !important;
}

/* Language toggling (landing only) */
#wrapwrap .landing-root .ar-content { display: block !important; }
#wrapwrap .landing-root .en-content { display: none !important; }
#wrapwrap html.en .landing-root .ar-content,
html.en #wrapwrap .landing-root .ar-content { display: none !important; }
#wrapwrap html.en .landing-root .en-content,
html.en #wrapwrap .landing-root .en-content { display: block !important; }
#wrapwrap .landing-root span.ar-content { display: inline !important; }
#wrapwrap .landing-root span.en-content { display: none !important; }
html.en #wrapwrap .landing-root span.ar-content { display: none !important; }
html.en #wrapwrap .landing-root span.en-content { display: inline !important; }
#wrapwrap .landing-root .ar-content[hidden],
#wrapwrap .landing-root .en-content[hidden] { display: none !important; }
#wrapwrap .landing-root .ar-content:not(span),
#wrapwrap .landing-root .en-content:not(span) { display: block !important; }
html.en #wrapwrap .landing-root .ar-content:not(span) { display: none !important; }
html.en #wrapwrap .landing-root .en-content:not(span) { display: block !important; }

html[dir="rtl"] body,
html[dir="rtl"] .landing-root {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .ar-content {
  unicode-bidi: plaintext;
}
html[dir="rtl"] .landing-root p,
html[dir="rtl"] .landing-root li,
html[dir="rtl"] .landing-root h1,
html[dir="rtl"] .landing-root h2,
html[dir="rtl"] .landing-root h3,
html[dir="rtl"] .landing-root h4,
html[dir="rtl"] .landing-root h5,
html[dir="rtl"] .landing-root h6 {
  unicode-bidi: plaintext;
}
.landing-root .latin {
  direction: ltr;
  unicode-bidi: isolate;
}

.landing-root .language-toggle {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  min-width: 120px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  height: 42px;
  border-width: 2px;
  padding-inline: 1.25rem;
}
.landing-root .language-toggle:hover,
.landing-root .language-toggle:focus {
  background: rgba(0, 103, 127, 0.08);
  color: var(--primary);
}
.landing-root .nav-language {
  display: flex;
  align-items: center;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
  margin-top: 0;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--secondary);
}

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

.section-pad {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.surface-2 {
  background-color: var(--accent-surface);
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding-block: 0.75rem;
  transition: background-color 0.3s ease;
}

.navbar-brand .logo {
  height: 54px;
  width: auto;
}

.navbar-toggler {
  border: 0;
  padding: 0.25rem 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 65, 101, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  font-weight: 700;
  color: var(--secondary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0.25rem;
  height: 3px;
  background-color: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  pointer-events: none;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary);
}
body:not([data-scroll-spy-active="false"]) .navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  transform: scaleX(1);
}

body:not([data-scroll-spy-active="false"]) .navbar-nav .nav-link.active {
  background-color: rgba(0, 103, 127, 0.08);
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  /* Removed oval/underline highlight for active nav items */
  html.en .lang-img {
    order: 2;
  }
  html.en .lang-copy {
    order: 1;
  }
  html:not(.en) .lang-img {
    order: 1;
  }
  html:not(.en) .lang-copy {
    order: 2;
  }
}

/* Hero */
#home {
  padding-block: clamp(4rem, 10vw, 7rem);
  background-color: var(--accent-surface);
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  max-width: 22ch;
  margin: 0 auto 1rem;
}
html[lang="ar"] .hero-title {
  line-height: 1.5;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 65ch;
  margin: 0 auto 1.75rem;
  line-height: 1.8;
}

@media (max-width: 767.98px) {
  html[dir="rtl"] #home,
  html[dir="rtl"] #home .container {
    text-align: center;
  }
  html[dir="rtl"] #home .hero-title,
  html[dir="rtl"] #home .hero-text {
    margin-inline: auto;
  }
}

/* Buttons */
.btn {
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0.8rem 1.75rem;
  transition: all 0.2s ease-out;
  border-width: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline-secondary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* General Card Style */
.bordered-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 5vw, 1.75rem);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: var(--transition);
}
.bordered-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

/* Why Section */
.why-card {
  text-align: center;
}
.why-card .icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  background-color: rgba(0, 103, 127, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card ul {
  padding-inline-start: 0;
  list-style: none;
  margin: 0;
}
.why-card li {
  color: var(--text-muted);
}
.why-card li:not(:last-child) {
  margin-bottom: 0.5rem;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  min-height: 300px;
}
.about-image-wrapper .about-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Services Section */
.service-card h3 {
  font-size: clamp(1.1rem, 3.5vw, 1.2rem);
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.service-card ul {
  list-style: none;
  padding-inline-start: 0;
  margin-bottom: 0;
  flex: 1;
  display: grid;
  gap: 0.4rem;
}
.service-card li {
  position: relative;
  padding-inline-start: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary);
  font-weight: 700;
}

.service-card.is-visible li {
  opacity: 1;
  transform: translateX(0);
}

.service-card.is-visible li:nth-child(1) { transition-delay: 0.1s; }
.service-card.is-visible li:nth-child(2) { transition-delay: 0.2s; }
.service-card.is-visible li:nth-child(3) { transition-delay: 0.3s; }
.service-card.is-visible li:nth-child(4) { transition-delay: 0.4s; }
.service-card.is-visible li:nth-child(5) { transition-delay: 0.5s; }
.service-card.is-visible li:nth-child(6) { transition-delay: 0.6s; }
.service-card.is-visible li:nth-child(7) { transition-delay: 0.7s; }

/* Reasons Section */
.reasons-list li {
  font-weight: 500;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-30px) scale(0.95);
}
.reasons-list li:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.reasons-list li.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.reasons-list li:nth-child(1).is-visible { transition-delay: 0.1s; }
.reasons-list li:nth-child(2).is-visible { transition-delay: 0.2s; }
.reasons-list li:nth-child(3).is-visible { transition-delay: 0.3s; }
.reasons-list li:nth-child(4).is-visible { transition-delay: 0.4s; }
.reasons-list li:nth-child(5).is-visible { transition-delay: 0.5s; }

/* Reviews Section */
.review-card {
  background-color: var(--accent-surface);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.review-card .stars {
  color: #f4b400;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.review-card p {
  color: var(--text-dark);
  font-style: italic;
}
html[lang="ar"] .review-card p {
  font-style: normal;
}

.review-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.review-card:nth-child(1).is-visible { transition-delay: 0.1s; }
.review-card:nth-child(2).is-visible { transition-delay: 0.2s; }

/* Testimonials Carousel */
.testimonial-shell {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  --slides: 6;
}
.testimonial-shell .t-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.testimonial-viewport {
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(0, 103, 127, 0.07), rgba(0, 65, 101, 0.05));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.testimonial-track {
  display: flex;
  flex-wrap: nowrap;
  width: calc(100% * var(--slides));
  transition: transform 0.4s ease;
  will-change: transform;
  direction: ltr;
}
.testimonial-card {
  padding: clamp(1.5rem, 5vw, 2.25rem);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: center;
  min-width: calc(100% / var(--slides));
  width: calc(100% / var(--slides));
  flex: 0 0 calc(100% / var(--slides));
}
.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.testimonial-meta {
  line-height: 1.5;
}
.testimonial-name {
  margin: 0;
  font-weight: 700;
  color: var(--secondary);
}
.testimonial-role {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.testimonial-tag {
  background: rgba(0, 103, 127, 0.08);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-quote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.8;
}
.testimonial-card .stars {
  color: #f4b400;
  font-size: 1.4rem;
  letter-spacing: 1px;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 103, 127, 0.2);
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-dots .dot:hover,
.testimonial-dots .dot:focus-visible {
  background: rgba(0, 103, 127, 0.55);
  outline: 2px solid rgba(0, 103, 127, 0.3);
}
.testimonial-shell .t-radio:nth-of-type(1):checked ~ .testimonial-dots label:nth-of-type(1),
.testimonial-shell .t-radio:nth-of-type(2):checked ~ .testimonial-dots label:nth-of-type(2),
.testimonial-shell .t-radio:nth-of-type(3):checked ~ .testimonial-dots label:nth-of-type(3),
.testimonial-shell .t-radio:nth-of-type(4):checked ~ .testimonial-dots label:nth-of-type(4),
.testimonial-shell .t-radio:nth-of-type(5):checked ~ .testimonial-dots label:nth-of-type(5),
.testimonial-shell .t-radio:nth-of-type(6):checked ~ .testimonial-dots label:nth-of-type(6) {
  background: var(--primary);
  transform: scale(1.1);
}

#t-ar-1:checked ~ .testimonial-dots label[for="t-ar-1"],
#t-ar-2:checked ~ .testimonial-dots label[for="t-ar-2"],
#t-ar-3:checked ~ .testimonial-dots label[for="t-ar-3"],
#t-ar-4:checked ~ .testimonial-dots label[for="t-ar-4"],
#t-ar-5:checked ~ .testimonial-dots label[for="t-ar-5"],
#t-ar-6:checked ~ .testimonial-dots label[for="t-ar-6"],
#t-en-1:checked ~ .testimonial-dots label[for="t-en-1"],
#t-en-2:checked ~ .testimonial-dots label[for="t-en-2"],
#t-en-3:checked ~ .testimonial-dots label[for="t-en-3"],
#t-en-4:checked ~ .testimonial-dots label[for="t-en-4"],
#t-en-5:checked ~ .testimonial-dots label[for="t-en-5"],
#t-en-6:checked ~ .testimonial-dots label[for="t-en-6"] {
  background: var(--primary);
  transform: scale(1.15);
}


@media (max-width: 575.98px) {
  .testimonial-card {
    min-height: 200px;
  }
  .testimonial-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Order Section */
#order, #contact {
  padding-bottom: 150px; /* Safe area for floating button */
}
.form-control, .form-select {
  border-radius: var(--radius);
  padding-block: 0.8rem;
  border-color: var(--border-color);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 103, 127, 0.15);
}
.form-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Contact Section */
.contact-list a {
  display: block;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--primary);
}
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-links a {
  color: var(--secondary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 103, 127, 0.08);
  transition: var(--transition);
}
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--primary);
  background: rgba(0, 103, 127, 0.15);
}
.social-links svg {
  width: 22px;
  height: 22px;
}

.ltr-text {
  direction: ltr;
  unicode-bidi: embed;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  z-index: 100;
  inset-inline-end: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-strong);
  transition: var(--transition);
}
.floating-cta:hover {
  transform: scale(1.1) rotate(10deg);
  background: var(--secondary);
}
.floating-cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.floating-cta svg {
  width: 32px;
  height: 32px;
}

/* Thank You Page */
.thank-you-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--accent-surface);
  padding: 2rem;
}
.thank-you-card {
  max-width: 600px;
  width: 100%;
  text-align: center;
}
.thank-you-card .logo {
  height: 60px;
  margin: 0 auto 1.5rem;
}
.thank-you-card .tier-title {
  margin-top: 1.25rem;
}
.thank-you-card .tier-details {
  margin-top: 0.5rem;
}
.thank-you-card .tier-target {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.thank-you-card .tier-note {
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 0.5rem;
}
.thank-you-card .tier-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.thank-you-card .tier-list li {
  margin: 0.35rem 0;
}
.thank-you-card .tier-price {
  font-weight: 700;
  margin-top: 0.75rem;
}

/* Reveal on Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition-delay: 0ms !important;
  }
  .floating-cta:hover {
    transform: none;
  }
  .bordered-card:hover {
    transform: none;
  }
  .btn-primary:hover, .btn-primary:focus,
  .btn-outline-secondary:hover, .btn-outline-secondary:focus {
    transform: none;
  }
}


html[dir="rtl"] .testimonial-card,
html[dir="rtl"] .testimonial-card * {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[dir="rtl"] .testimonial-track {
  flex-direction: row;
  direction: ltr;
}

@media (max-width: 991.98px) {
  html,
  body,
  body.landing-page,
  body.landing-page #wrapwrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}
