/* ============================================================
   Site overrides — RTL + site components on top of the Flat template.
   Template palette and components are untouched: only mirroring and
   styles for elements the template doesn't have (cookie banner etc.)
   ============================================================ */

/* ---------- Font: system stack with full Arabic support ---------- */
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
button, input, textarea, select {
  font-family: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- RTL mirroring of the template ---------- */
[dir="rtl"] body { text-align: right; }

/* Decorative shape-1 (left: -70px) causes horizontal scroll — clip it */
html, body { overflow-x: hidden; }

/* Template sets hero-img max-width only on mobile breakpoints — on desktop
   a wide image overflows its column */
.hero-style-2 .hero-image img {
  max-width: 100%;
  height: auto;
}

/* In RTL ml-auto sticks the menu to the logo — mirror: menu goes left */
[dir="rtl"] .header-2 .navbar-nav.ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}
[dir="rtl"] .header-2 .navbar-nav .nav-item {
  margin-right: 0;
  margin-left: 40px;
}
[dir="rtl"] .header-2 .navbar-nav .nav-item:last-child {
  margin-left: 0;
}

@media (min-width: 992px) {
  [dir="rtl"] .hero-style-2 .hero-content-wrapper p {
    padding-right: 0;
    padding-left: 100px;
  }
}

[dir="rtl"] .button i {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .about-content-wrapper {
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 992px) {
  [dir="rtl"] .about-content-wrapper { margin-right: 50px; }
}
@media (min-width: 1200px) {
  [dir="rtl"] .about-content-wrapper { margin-right: 85px; }
}

[dir="rtl"] .contact-style-6 .left-wrapper .single-item .icon {
  margin-right: 0;
  margin-left: 20px;
}

/* feature-img is absolutely positioned at right:0 — in RTL the content sits on the right, so mirror the image to the left */
[dir="rtl"] .feature-style-2 .feature-img {
  right: auto;
  left: 0;
}

/* Latin/digits (phones, emails, dates) — always LTR direction */
.ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ---------- Logo ---------- */
.brand-logo {
  height: 44px;
  width: auto;
  max-width: none;
  border-radius: 6px;
}
.brand-name {
  font-weight: 700;
  font-size: 19px;
  color: #323450;
  margin-right: 10px;
  vertical-align: middle;
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}
.footer-style-1 .footer-widget .logo img {
  height: 40px;
  width: auto;
  max-width: none;
  border-radius: 6px;
}

/* ---------- Accessibility: skip-link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  right: 0;
  z-index: 100000;
  background: #323450;
  color: #ffffff;
  padding: 12px 20px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: #ffffff;
  outline: 3px solid #2F80ED;
}
:focus-visible {
  outline: 2px solid #2F80ED;
  outline-offset: 2px;
}

/* ---------- Age notice (21+) ---------- */
.age-notice {
  background: #EBF4FF;
  color: #323450;
  padding: 10px 24px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid rgba(47, 128, 237, 0.25);
  position: relative;
  z-index: 3;
}

/* ---------- Cookie banner ---------- */
.hidden { display: none !important; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: #ffffff;
  border-top: 1px solid #E9E9E9;
  padding: 18px 24px;
  z-index: 9998;
  box-shadow: 0 -6px 25px rgba(50, 52, 80, 0.12);
}
.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
.cookie-banner-inner p {
  margin-bottom: 0;
  font-size: 14px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions button {
  height: 40px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid #585978;
  background: #ffffff;
  color: #585978;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease-out 0s;
}
.cookie-actions button:hover {
  border-color: #2F80ED;
  color: #2F80ED;
}
.cookie-actions button.cookie-accept {
  background: #2F80ED;
  border-color: #2F80ED;
  color: #ffffff;
}
.cookie-actions button.cookie-accept:hover {
  background: rgba(47, 128, 237, 0.85);
}
@media (max-width: 768px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}

/* ---------- Cookie modal ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(50, 52, 80, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 10px 40px rgba(50, 52, 80, 0.25);
  max-width: 520px;
  width: 100%;
  padding: 35px;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal-card h4 { font-size: 20px; margin-bottom: 10px; }
.cookie-modal-card > p { font-size: 14px; margin-bottom: 20px; }
.cookie-option {
  border: 1px solid #E9E9E9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cookie-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #323450;
  font-size: 15px;
}
.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2F80ED;
}
.cookie-option p { font-size: 13px; margin: 6px 0 0; color: #585978; }
.cookie-modal-card .cookie-actions { justify-content: flex-end; margin-top: 20px; }

/* ---------- Honeypot trap ---------- */
.form-trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* ---------- Subpages: title band ---------- */
.subpage-band {
  background: #F3F3F3;
  padding: 150px 0 70px;
}
.subpage-band h1 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.subpage-band .band-meta {
  font-size: 14px;
  color: #585978;
}
.subpage-band .band-meta a {
  color: #2F80ED;
  text-decoration: none;
}

/* ---------- Content pages (articles, legal) ---------- */
.page-section { padding: 70px 0 90px; }

.content-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 5px 25px rgba(218, 211, 211, 0.3);
  padding: 45px 40px;
}
.content-card h1 { font-size: 30px; margin-bottom: 20px; }
.content-card h2 { font-size: 22px; margin: 32px 0 14px; }
.content-card h3 { font-size: 18px; margin: 24px 0 10px; }
.content-card p { margin-bottom: 14px; line-height: 1.8; }
.content-card ol, .content-card ul { padding-right: 24px; margin-bottom: 16px; }
.content-card ul { list-style: disc; }
.content-card ol { list-style: decimal; }
.content-card li { margin-bottom: 8px; line-height: 1.7; }
.content-card a:not(.button) { color: #2F80ED; }
.content-card strong { color: #323450; }
.content-card address { font-style: normal; margin-bottom: 14px; }
.content-card .meta { font-size: 14px; color: #585978; opacity: 0.75; }
@media (max-width: 576px) {
  .content-card { padding: 28px 20px; }
}

/* Article list cards */
.article-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 5px 25px rgba(218, 211, 211, 0.3);
  padding: 30px;
  margin-bottom: 25px;
  transition: all 0.3s ease-out 0s;
}
.article-card:hover {
  box-shadow: 0px 10px 35px rgba(47, 128, 237, 0.18);
}
.article-card h2 { font-size: 20px; margin-bottom: 10px; }
.article-card h2 a { color: #323450; text-decoration: none; }
.article-card h2 a:hover { color: #2F80ED; }
.article-card p { margin-bottom: 10px; }
.article-card .meta { font-size: 14px; color: #585978; opacity: 0.75; }

/* Search form */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 35px;
}
.search-form input {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  border: 1px solid #585978;
  border-radius: 10px;
  background: transparent;
  font-size: 16px;
  box-shadow: 0px 5px 25px rgba(218, 211, 211, 0.3);
  transition: all 0.3s ease-out 0s;
}
.search-form input:focus {
  border-color: #2F80ED;
  outline: none;
}
.search-form button {
  height: 56px;
  padding: 0 30px;
  border: none;
  border-radius: 10px;
  background: #2F80ED;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-out 0s;
}
.search-form button:hover { background: rgba(47, 128, 237, 0.85); }

/* Cookie table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 5px 25px rgba(218, 211, 211, 0.3);
  font-size: 14px;
}
.cookie-table th, .cookie-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid #E9E9E9;
}
.cookie-table th {
  background: #2F80ED;
  color: #ffffff;
  font-weight: 600;
}
.cookie-table tr:hover td { background: #EBF4FF; }
.cookie-table-wrap { overflow-x: auto; }

/* Jurisdiction navigation */
.jurisdiction-nav {
  background: #EBF4FF;
  border: 1px solid rgba(47, 128, 237, 0.25);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.jurisdiction-nav a { color: #2F80ED; margin: 0 6px; }

/* ---------- thank-you page ---------- */
.order-box {
  background: #ffffff;
  border: 2px solid #2F80ED;
  border-radius: 20px;
  box-shadow: 0px 5px 25px rgba(218, 211, 211, 0.3);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}
.order-box .order-id {
  font-size: 22px;
  font-weight: 700;
  color: #2F80ED;
  margin-top: 10px;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.trust-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 5px 25px rgba(218, 211, 211, 0.3);
  padding: 18px;
  text-align: center;
}
.trust-item strong { display: block; color: #323450; font-size: 17px; margin-bottom: 4px; }
.trust-item span { font-size: 14px; color: #585978; }
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 page ---------- */
.suggestion-list {
  list-style: none;
  padding: 0;
  max-width: 420px;
  margin: 24px auto;
  text-align: right;
}
.suggestion-list li { margin: 8px 0; }
.suggestion-list a {
  color: #2F80ED;
  text-decoration: none;
  font-weight: 600;
}
.suggestion-list a::before {
  content: "\2190";
  margin-left: 8px;
}
.request-path {
  font-size: 13px;
  color: #585978;
  opacity: 0.75;
}
.request-path code { direction: ltr; unicode-bidi: embed; }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  color: #2F80ED;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Lead form: status message ---------- */
.form-message {
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
  color: #323450;
  min-height: 24px;
}

/* lindy ships only .mb-* — adding top margins in the same style */
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Expert photo: stock headshot (206px) in a frame so it holds the column */
.about-expert {
  text-align: center;
}
.about-expert img {
  width: 240px;
  height: auto;
  border-radius: 50%;
  border: 6px solid #EBF4FF;
  box-shadow: 0px 10px 35px rgba(47, 128, 237, 0.25);
}

/* hero-title promoted from h2 to h1 — keep Flat theme visual style */
.hero-section-wrapper-2 .hero-style-2 .hero-content-wrapper h1 {
  font-size: 60px;
  letter-spacing: .7px;
  line-height: 1.2;
  margin-bottom: 30px;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .hero-section-wrapper-2 .hero-style-2 .hero-content-wrapper h1 { font-size: 55px; line-height: 65px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .hero-section-wrapper-2 .hero-style-2 .hero-content-wrapper h1 { font-size: 47px; line-height: 58px; }
}
@media (max-width: 767px) {
  .hero-section-wrapper-2 .hero-style-2 .hero-content-wrapper h1 { font-size: 40px; line-height: 50px; }
}
@media only screen and (min-width: 575px) and (max-width: 767px) {
  .hero-section-wrapper-2 .hero-style-2 .hero-content-wrapper h1 { font-size: 47px; line-height: 58px; }
}
