/* Thikra — shared theme (Bootstrap complements) */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
  --th-primary: #7f534f;
  --th-primary-soft: #d19b96;
  --th-bg: #fef8f6;
  --th-surface: #f8f2f0;
  --th-surface-high: #ede7e5;
  --th-on-surface: #1d1b1a;
  --th-on-variant: #514442;
  --th-secondary: #77574d;
  --th-secondary-container: #fed3c7;
  --th-nav-h: 6.5rem;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Anchor targets clear fixed navbar */
#features,
#pricing,
#how-to,
#reviews,
#order-form {
  scroll-margin-top: calc(var(--th-nav-h) + 0.75rem);
}

.pt-navbar {
  padding-top: var(--th-nav-h);
}

main {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: "Almarai", sans-serif;
  background-color: var(--th-bg);
  color: var(--th-on-surface);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, .font-headline {
  font-family: "Cairo", sans-serif;
}

/* Navbar */
.site-navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(254, 248, 246, 0.92) !important;
  box-shadow: 0 1px 0 rgba(127, 83, 79, 0.08);
  min-height: var(--th-nav-h);
}

.site-logo {
  width: auto;
  height: 68px;
  max-width: 260px;
  object-fit: contain;
  object-position: right center;
}

@media (min-width: 992px) {
  .site-logo {
    height: 80px;
    max-width: 300px;
  }
}

/* Center nav on large screens */
.nav-centered-wrap {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.site-navbar .navbar-nav {
  align-items: center;
  gap: 0.15rem;
}

.site-navbar .nav-link {
  font-family: "Cairo", sans-serif;
  font-size: 1.05rem;
  color: #57534e !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-navbar .nav-link:hover {
  color: var(--th-primary) !important;
  background: rgba(209, 155, 150, 0.18);
}

.site-navbar .nav-link.active {
  color: var(--th-primary) !important;
  font-weight: 800;
  background: rgba(209, 155, 150, 0.22);
}

.btn-th-primary {
  background-color: var(--th-primary-soft) !important;
  border: none !important;
  color: #fff !important;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  border-radius: 999px !important;
  padding: 0.5rem 1.75rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-th-primary:hover {
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(127, 83, 79, 0.25);
  transform: translateY(-1px);
}

/* Intro — second CTA: hover uses brand dusty rose */
.btn-th-intro-secondary {
  border-color: rgba(127, 83, 79, 0.25) !important;
  color: var(--th-primary) !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-th-intro-secondary:hover {
  background: rgba(209, 155, 150, 0.35) !important;
  border-color: rgba(209, 155, 150, 0.65) !important;
  color: var(--th-primary) !important;
}

.section-title .line-accent {
  width: 6rem;
  height: 6px;
  background: var(--th-primary-soft);
  border-radius: 999px;
  margin-inline: auto;
}

.card-th {
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px rgba(127, 83, 79, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-th:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(127, 83, 79, 0.12);
}

.card-th a[href^="mailto:"]:hover,
.card-th a[href^="tel:"]:hover {
  color: var(--th-primary) !important;
}

.icon-box {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: rgba(209, 155, 150, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Home hero — backdrop behind images */
.hero-visual-column {
  min-height: 280px;
  overflow-x: clip;
}

.hero-visual-backdrop {
  background:
    radial-gradient(ellipse 85% 70% at 50% 100%, rgba(209, 155, 150, 0.45) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(127, 83, 79, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 25%, rgba(254, 211, 199, 0.35) 0%, transparent 50%),
    linear-gradient(165deg, #f5ebe8 0%, #fef8f6 45%, #ede7e5 100%);
  border-radius: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 40px rgba(127, 83, 79, 0.1);
}

.hero-visual-group {
  position: relative;
}

.hero-main-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(127, 83, 79, 0.22);
  transform: rotate(2deg);
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.hero-accent-wrap {
  position: absolute;
  bottom: -0.5rem;
  /* visual left in RTL layout */
  left: -0.5rem;
  width: 8.5rem;
  height: 8.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(127, 83, 79, 0.2);
  transform: rotate(-11deg);
  z-index: 2;
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.hero-visual-group:hover .hero-main-wrap {
  transform: rotate(0.5deg) translateY(-6px) scale(1.02);
}

.hero-visual-group:hover .hero-accent-wrap {
  transform: rotate(-6deg) translateY(-10px) scale(1.04);
}

.hero-main-wrap img,
.hero-accent-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-wrap {
  aspect-ratio: 1 / 1;
}

/* Bento gallery (social proof) */
.bento-gallery .bento-cell {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(127, 83, 79, 0.12);
  aspect-ratio: 1 / 1;
}

.bento-gallery .bento-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.bento-gallery .bento-cell:hover img {
  transform: scale(1.07);
  filter: brightness(1.05) saturate(1.05);
}

.pricing-row {
  border-radius: 1rem;
  border: 2px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.pricing-row:hover {
  border-color: rgba(209, 155, 150, 0.6);
}

.pricing-featured {
  border-color: var(--th-primary) !important;
  box-shadow: 0 8px 28px rgba(127, 83, 79, 0.12);
}

.pricing-product-visual {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pricing-product-visual:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(127, 83, 79, 0.18) !important;
}

.pricing-product-visual img {
  transition: transform 0.4s ease;
}

.pricing-product-visual:hover img {
  transform: scale(1.03);
}

.pricing-best {
  background: var(--th-primary-soft) !important;
  color: #fff !important;
  border-color: var(--th-primary-soft) !important;
  transform: scale(1.02);
  z-index: 1;
}

.pricing-best .text-primary,
.pricing-best .text-dark {
  color: #fff !important;
}

.form-th .form-control,
.form-th .form-select,
.form-th textarea {
  background: var(--th-surface-high);
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.form-th .form-control:focus,
.form-th .form-select:focus,
.form-th textarea:focus {
  box-shadow: 0 0 0 3px rgba(127, 83, 79, 0.15);
}

.dropzone-th {
  border: 2px dashed rgba(127, 83, 79, 0.35) !important;
  border-radius: 1rem;
  background: rgba(209, 155, 150, 0.08);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dropzone-th:hover {
  background: rgba(209, 155, 150, 0.15);
  transform: scale(1.01);
}

/* How-to — step numbers */
.howto-number {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.howto-number:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(127, 83, 79, 0.25) !important;
}

/* Order form — labels align from the right (RTL) */
.form-th .form-label {
  direction: rtl;
  text-align: right;
  width: 100%;
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(127, 83, 79, 0.12);
  background: var(--th-bg);
}

.footer-logo {
  height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  object-position: right center;
}

@media (min-width: 992px) {
  .footer-logo {
    height: 76px;
    max-width: 300px;
  }
}

.site-footer a {
  color: #78716c;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
  color: var(--th-primary);
}

.footer-social .rounded-circle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--th-surface-high);
  color: var(--th-primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social .rounded-circle:hover {
  background: rgba(209, 155, 150, 0.35);
  transform: translateY(-2px);
}

.footer-social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--th-surface-high);
  color: var(--th-primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(209, 155, 150, 0.35);
  color: var(--th-primary);
  transform: translateY(-2px);
}

.contact-social-inline .footer-social-link {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.15rem;
}

/* Scroll reveal — use on .reveal inside columns/cards only */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }

@keyframes float-soft {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -10px); }
}

.blob {
  animation: float-soft 8s ease-in-out infinite;
  pointer-events: none;
}

.map-container iframe {
  filter: grayscale(100%) invert(5%) sepia(20%) saturate(200%) hue-rotate(330deg) brightness(95%) contrast(90%);
}

.privacy-cookies-band {
  background: linear-gradient(135deg, var(--th-primary) 0%, #6a4542 100%);
}

/* Conditions — sticky TOC spacing */
.conditions-toc-nav {
  padding-top: 2.75rem;
}

/* Conditions TOC — logical start for RTL */
.toc-link {
  border-inline-start: 2px solid transparent;
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--th-on-variant);
  text-decoration: none;
  display: block;
  text-align: start;
  transition: border-color 0.2s, color 0.2s;
}

.toc-link:hover {
  border-inline-start-color: var(--th-primary);
  color: var(--th-primary);
}

/* Contact hero image */
.contact-hero-visual {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(127, 83, 79, 0.2);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.4s ease;
}

.contact-hero-visual:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 28px 56px rgba(127, 83, 79, 0.28);
}

.contact-hero-visual img {
  transition: transform 0.55s ease;
}

.contact-hero-visual:hover img {
  transform: scale(1.04);
}

@keyframes star-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.star-pulse .material-symbols-outlined {
  animation: star-pulse 2.5s ease-in-out infinite;
}

.star-pulse .material-symbols-outlined:nth-child(2) { animation-delay: 0.1s; }
.star-pulse .material-symbols-outlined:nth-child(3) { animation-delay: 0.2s; }
.star-pulse .material-symbols-outlined:nth-child(4) { animation-delay: 0.3s; }
.star-pulse .material-symbols-outlined:nth-child(5) { animation-delay: 0.4s; }

/* Reviews */
.review-progress {
  height: 0.45rem;
  border-radius: 999px;
  background: #ece8e7;
}

.review-progress .progress-bar {
  background: #1f1f20;
}

.review-star-picker {
  direction: rtl;
  justify-content: flex-start;
  width: fit-content;
  margin-left: auto;
}

.review-star-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: #efefef;
  color: #b9b9b9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.review-star-btn .material-symbols-outlined {
  font-size: 1.4rem;
  font-variation-settings: "FILL" 1;
}

.review-star-btn:hover,
.review-star-btn.active {
  background: #ffcd28;
  color: #fff;
  transform: translateY(-1px);
}

.review-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #222326;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.review-item-head {
  direction: ltr;
}

.review-name-wrap {
  margin-left: auto;
}

.review-rating-wrap {
  margin-right: auto;
}

.review-submit-btn {
  background: var(--th-primary-soft) !important;
  border: 1px solid var(--th-primary-soft) !important;
  color: #fff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.review-submit-btn:hover {
  background: var(--th-primary) !important;
  border-color: var(--th-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(127, 83, 79, 0.25);
  transform: translateY(-1px);
}

.reviews-stars .bi {
  line-height: 1;
}

.review-half-star-rtl {
  transform: scaleX(-1);
  display: inline-block;
}

/* Home stats/trust section */
.th-home-stats {
  background:
    radial-gradient(circle at 15% 10%, rgba(127, 83, 79, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(209, 155, 150, 0.16) 0%, transparent 45%),
    #f6f4f3;
}

.th-stats-wrap {
  background: transparent;
  box-shadow: none;
}

.th-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.th-stat-number {
  font-size: clamp(1.75rem, 2.7vw, 2.2rem);
  font-weight: 800;
  color: #1f2328;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.th-stat-label,
.th-feature-label {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 700;
  color: #232629;
  line-height: 1.2;
}

.th-stats-bi {
  color: var(--th-primary) !important;
  font-size: 1.55rem;
  line-height: 1;
}

@media (max-width: 1199.98px) {
  .th-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .th-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile — full-width offcanvas from physical left (RTL: offcanvas-end) */
.th-mobile-nav-offcanvas.offcanvas {
  width: 100% !important;
  max-width: 100vw;
  border: none;
  background: rgba(254, 248, 246, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.th-mobile-nav-body {
  min-height: calc(100dvh - 5.5rem);
}

.th-mobile-nav-list .nav-link {
  font-size: 1.15rem;
}

.th-mobile-nav-cta {
  margin-inline: auto !important;
  align-self: center;
}

/* Center main nav on desktop */
@media (min-width: 992px) {
  .site-navbar #mainNavDesktop {
    flex-grow: 1;
    position: relative;
    justify-content: flex-end !important;
    align-items: center;
    min-height: 3rem;
  }
  .site-navbar .th-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Conditions page content */
.page-conditions main,
.page-conditions aside {
  text-align: start;
}

.conditions-quote {
  border-inline-start: 4px solid rgba(127, 83, 79, 0.35);
  border-right: none !important;
}

.conditions-law-card {
  border-inline-start: 8px solid var(--th-primary);
  border-right: none !important;
}
