/*
 * LD d.o.o. — local improvement layer
 * Keeps the downloaded visual direction while implementing the requested fixes.
 */

:root {
  --ld-navy: #071a2f;
  --ld-navy-deep: #03101a;
  --ld-gold: #d5b36d;
  --ld-cream: #f4f0e7;
  --ld-ink: #102033;
  --ld-copy: #344457;
}

html {
  scroll-padding-top: 96px;
}

body {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.intro-open {
  overflow: hidden;
}

.brand-intro.is-closing {
  pointer-events: none;
  animation: introClose 420ms ease forwards;
}

.brand-intro[hidden],
.music-control[hidden] {
  display: none !important;
}

@keyframes introClose {
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
  }
}

/* Use the official company mark instead of a text approximation. */
.nav .brand {
  width: 232px;
  min-width: 232px;
  height: 52px;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.nav .brand img {
  display: block;
  width: 205px;
  height: auto;
  margin: auto;
  filter: brightness(0) invert(1);
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #071a2f;
  background: #fff;
  border: 2px solid var(--ld-gold);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.language-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.nav nav a {
  position: relative;
  color: #f2f5f7;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.nav nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--ld-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav nav a:hover::after,
.nav nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Make the first viewport immediately legible and unmistakably the landing page. */
.hero {
  min-height: calc(100svh - 92px);
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 108px);
}

.hero h1 {
  max-width: 880px;
  color: #fff;
  font-size: clamp(3.15rem, 7.1vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 3px 34px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  max-width: 760px;
  color: #eef3f6;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.78;
}

.hero .signature {
  color: #f1d89f;
  font-size: 0.98rem;
}

.kicker {
  color: var(--ld-gold) !important;
  font-size: clamp(0.76rem, 0.9vw, 0.88rem) !important;
  font-weight: 800;
  line-height: 1.5;
}

/* Requested typography pass: larger body copy and fully visible headings. */
.section h2,
.ai-statement h2,
.intl h2,
.contact h2,
.book-copy h2 {
  opacity: 1 !important;
  color: var(--ld-ink) !important;
  font-size: clamp(2.25rem, 4.65vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ai-statement h2,
.intl h2,
.contact h2 {
  color: #fff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.section h3,
.case-grid h3,
.legal-grid h3,
.reasons h3,
.people h3,
.support-team h3 {
  opacity: 1 !important;
  color: var(--ld-ink) !important;
  font-size: clamp(1.22rem, 1.65vw, 1.62rem);
  line-height: 1.25;
}

.body,
.services article p,
.case-grid article p,
.legal-intro > p,
.legal-grid article p,
.profile p,
.reasons article p,
.book-copy > p,
.intl span,
.contact-lead {
  color: var(--ld-copy) !important;
  font-size: clamp(1rem, 1.08vw, 1.12rem) !important;
  line-height: 1.78 !important;
}

.ai-statement > p,
.intl span,
.contact-lead {
  color: #dce5eb !important;
}

.services article,
.case-grid article,
.legal-grid article,
.reasons article {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.services article:hover,
.case-grid article:hover,
.legal-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 147, 79, 0.72);
  box-shadow: 0 18px 46px rgba(7, 26, 47, 0.1);
}

/* High-contrast legal updates block. */
.legal-news {
  color: #f7fafc;
  background-color: #071827;
}

.legal-news .legal-intro .kicker {
  color: #e4c783 !important;
}

.legal-news .legal-intro h2 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.32);
}

.legal-news .legal-intro > p:last-child {
  color: #d8e2e9 !important;
  font-size: clamp(1rem, 1.08vw, 1.12rem) !important;
  line-height: 1.8 !important;
}

.legal-news .legal-grid {
  border-color: rgba(255, 255, 255, 0.22);
}

.legal-news .legal-grid article {
  color: #f8fafb;
  background: rgba(12, 39, 60, 0.94);
  border-color: rgba(255, 255, 255, 0.22);
}

.legal-news .legal-grid article:hover {
  background: #12344d;
  border-color: rgba(228, 199, 131, 0.72);
}

.legal-news .legal-grid span {
  color: #e8c979 !important;
  font-size: 0.72rem;
  font-weight: 800;
}

.legal-news .legal-grid h3 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.legal-news .legal-grid p {
  color: #d5dfe6 !important;
  font-size: clamp(0.98rem, 1vw, 1.08rem) !important;
  line-height: 1.75 !important;
}

.legal-news .legal-grid a {
  color: #f2d590 !important;
  border-color: rgba(242, 213, 144, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
}

.legal-news .legal-grid a:hover,
.legal-news .legal-grid a:focus-visible {
  color: #ffffff !important;
  border-color: #ffffff;
}

.why h2 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.38);
}

.why .reasons article > i {
  color: #efd38f !important;
  opacity: 1 !important;
}

.why .reasons h3 {
  color: #ffffff !important;
  opacity: 1 !important;
}

.why .reasons p {
  color: #dce5eb !important;
  opacity: 1 !important;
}

/* Preserve and clarify the Sarajevo watermark/panorama. */
.hero-panorama {
  opacity: 1;
  filter: saturate(0.78) contrast(1.08) brightness(1.12) sepia(0.04);
  background-image:
    linear-gradient(90deg, rgba(6, 26, 45, 0.88) 0%, rgba(6, 26, 45, 0.78) 40%, rgba(6, 26, 45, 0.42) 68%, rgba(6, 26, 45, 0.68) 100%),
    linear-gradient(rgba(6, 26, 45, 0.14) 0%, rgba(6, 26, 45, 0.5) 82%, rgba(6, 26, 45, 0.78) 100%),
    url("images/sarajevo-panorama.webp?v=20260830-3");
}

/* Keep section artwork working when the site is hosted in a subfolder. */
.about {
  background-image:
    linear-gradient(90deg, rgba(245, 242, 235, 0.82) 0%, rgba(245, 242, 235, 0.67) 44%, rgba(245, 242, 235, 0.56) 72%, rgba(245, 242, 235, 0.72) 100%),
    linear-gradient(rgba(245, 242, 235, 0.18), rgba(245, 242, 235, 0.52)),
    url("images/bascarsija-panorama.webp?v=20260830-3");
}

.brand-sculpture::before {
  opacity: 0.66;
  letter-spacing: 0.22em;
  text-shadow: 0 0 32px rgba(199, 161, 90, 0.22);
}

.actions a,
.contact-actions a,
.book-copy .primary {
  min-height: 48px;
  font-size: 0.78rem;
  font-weight: 700;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f4c96d;
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .nav {
    gap: 18px;
  }

  .nav .brand {
    width: 205px;
    min-width: 205px;
  }

  .nav .brand img {
    width: 182px;
  }

  .nav nav {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 142px;
  }

  .nav .brand {
    width: 210px;
    min-width: 210px;
  }

  .nav nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 24px;
    padding: 4px 0 8px;
    scrollbar-width: none;
  }

  .nav nav::-webkit-scrollbar {
    display: none;
  }

  .nav nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: calc(100svh - 140px);
  }

}

@media (max-width: 560px) {
  .nav .brand {
    width: 185px;
    min-width: 185px;
    height: 48px;
  }

  .nav .brand img {
    width: 165px;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-method span {
    white-space: normal;
  }

  .section h2,
  .ai-statement h2,
  .intl h2,
  .contact h2,
  .book-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }
}

[dir="rtl"] body {
  font-family: "Noto Sans Arabic", Arial, sans-serif;
}

[dir="rtl"] .nav,
[dir="rtl"] .hero,
[dir="rtl"] .about,
[dir="rtl"] .ai-statement,
[dir="rtl"] .book-section,
[dir="rtl"] .why {
  direction: rtl;
}

[dir="rtl"] .nav .brand {
  direction: ltr;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
