/**
 * Berber locality landing — UI overrides (loads after main.css)
 */

:root {
  --landing-teal-deep: #065b5e;
  --landing-teal-mid: #0a7c80;
  --landing-teal-bright: #1dc8cd;
  --landing-gold: #c9a227;
  --landing-surface: #f4fbfb;
  --landing-radius: 14px;
  --landing-shadow: 0 8px 30px rgba(6, 91, 94, 0.08);
  --landing-shadow-hover: 0 16px 40px rgba(6, 91, 94, 0.14);
}

body.index-page {
  font-family: "Tajawal", "Bahij TheSansArabic Plain", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Fixed header: first in-flow block clears the nav */
body.index-page .announcement-bar {
  margin-top: 5.5rem;
}

body.index-page .landing-main {
  padding-top: 0;
}

/* Announcement strip */
.announcement-bar {
  position: relative;
  z-index: 998;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    var(--landing-teal-deep) 0%,
    var(--landing-teal-mid) 45%,
    #0d8a8e 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(6, 91, 94, 0.15);
}

.announcement-bar__inner {
  max-width: 100%;
  padding: 0.65rem 0;
  overflow: hidden;
}

.announcement-bar__track {
  display: inline-block;
  white-space: nowrap;
  padding-inline: 2rem;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Data attribute + long selector so landing main.css / vendor rules cannot override. */
body.index-page
  .announcement-bar__inner[data-announce-scroll="rtl"]
  .announcement-bar__track {
  animation: landing-announce-scroll-rtl 45s linear infinite;
}

body.index-page
  .announcement-bar__inner[data-announce-scroll="ltr"]
  .announcement-bar__track {
  animation: landing-announce-scroll-ltr 45s linear infinite;
}

/* Right-to-left reading sense: text travels toward the physical left. */
@keyframes landing-announce-scroll-rtl {
  0% {
    transform: translate3d(40%, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Left-to-right: text travels toward the physical right. */
@keyframes landing-announce-scroll-ltr {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    transform: translate3d(40%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.index-page .announcement-bar .announcement-bar__track {
    animation: none !important;
    white-space: normal;
    text-align: center;
    padding: 0.75rem 1rem;
    display: block;
  }
}

/* Hero typography */
.hero .hero-title-line {
  line-height: 1.45;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero .hero-title-highlight {
  color: #fff;
  font-weight: 800;
}

.hero .hero-title-muted {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.hero .hero-title-accent {
  color: var(--landing-gold);
  font-weight: 800;
}

.hero .carousel-container p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 42rem;
  margin-inline: auto;
  opacity: 0.95;
}

/* Content cards */
body.index-page .card.shadow-sm {
  border: 1px solid rgba(6, 91, 94, 0.08);
  border-radius: var(--landing-radius);
  box-shadow: var(--landing-shadow) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
  overflow: hidden;
  background: var(--surface-color, #fff);
}

body.index-page .card.shadow-sm:hover {
  transform: translateY(-6px);
  box-shadow: var(--landing-shadow-hover) !important;
  border-color: rgba(29, 200, 205, 0.35);
}

body.index-page .card .card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

body.index-page .card .card-title {
  color: var(--landing-teal-deep);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

body.index-page .card .card-text {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Carousel in cards */
body.index-page .card .carousel-control-prev,
body.index-page .card .carousel-control-next {
  width: 2.25rem;
  opacity: 0.85;
}

body.index-page .carousel-inner {
  border-radius: calc(var(--landing-radius) - 2px) calc(var(--landing-radius) - 2px) 0 0;
}

/* Section titles */
body.index-page .section-title h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.index-page .section-title p {
  color: #5a6566;
  max-width: 40rem;
  margin-inline: auto;
}

/* About image */
body.index-page .about-img img {
  border-radius: var(--landing-radius);
  box-shadow: var(--landing-shadow);
}

body.index-page .watch-video {
  gap: 0.5rem;
}

body.index-page .watch-video i {
  font-size: 1.75rem;
  color: var(--landing-teal-mid);
}

body.index-page .watch-video a {
  font-weight: 600;
  color: var(--landing-teal-deep);
}

/* Footer */
body.index-page .footer {
  border-top: 1px solid rgba(6, 91, 94, 0.1);
  padding-block: 2.5rem;
}

body.index-page .footer .sitename {
  font-weight: 800;
  color: var(--landing-teal-deep);
}

body.index-page .footer .social-links a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6, 91, 94, 0.08);
  color: var(--landing-teal-deep);
  margin: 0 0.25rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

body.index-page .footer .social-links a:hover {
  background: var(--landing-teal-bright);
  color: #fff;
  transform: translateY(-2px);
}

/* Clients strip */
body.index-page .clients .client-logo img {
  filter: grayscale(0.15);
  opacity: 0.9;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

body.index-page .clients .client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Card image carousels: stable 3:2 frame */
body.index-page main .carousel.slide .carousel-inner {
  position: relative;
  width: 100%;
  padding-top: 66.66%;
  display: flex;
}

body.index-page main .carousel.slide .carousel-inner .carousel-item,
body.index-page main .carousel.slide .carousel-inner .carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

body.index-page main .carousel.slide .carousel-inner .carousel-item img {
  object-fit: cover;
}
