:root {
  --maroon: #4d0f1d;
  --maroon-dark: #350812;
  --gold: #c2ad85;
  --gold-dark: #a78c5e;
  --ink: #221b1c;
  --muted: #6f6262;
  --white: #ffffff;
  --soft: #f5f2ef;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(53, 8, 18, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", Arial, sans-serif;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.9;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 242, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(77, 15, 29, 0.08);
}

.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--maroon);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 10px 12px;
  color: #443539;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--maroon);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--maroon);
  display: none;
  place-items: center;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid,
.split-grid,
.services-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 62px;
}

.hero-image,
.service-photo,
.image-stack {
  position: relative;
}

.hero-image img,
.service-photo img,
.image-stack img,
.wide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image img {
  min-height: 580px;
}

.corner-block {
  position: absolute;
  width: 160px;
  height: 48px;
  background: var(--maroon);
  z-index: -1;
}

.corner-block.top {
  top: -22px;
  right: 42px;
  background: var(--white);
}

.corner-block.bottom {
  bottom: -22px;
  left: 54px;
}

.logo-img {
  width: 250px;
  margin-bottom: 18px;
  mix-blend-mode: multiply;
}

.eyebrow {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.eyebrow.light {
  color: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.35;
  color: var(--maroon);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 5rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero-text,
.section-text p,
.section-heading p,
.service-card p,
.feature-card p {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn.primary {
  background: var(--maroon);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.outline {
  border: 2px solid var(--gold);
  color: var(--maroon);
}

.btn:hover {
  transform: translateY(-3px);
}

.about {
  background: var(--white);
}

.wide-card {
  height: 430px;
}

.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

.services-layout {
  grid-template-columns: 380px 1fr;
  align-items: start;
}

.service-photo {
  position: sticky;
  top: 110px;
  height: 610px;
}

.service-photo::before,
.image-stack span {
  content: "";
  position: absolute;
  width: 70px;
  height: 230px;
  background: var(--maroon);
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

.service-photo::before {
  right: -24px;
}

.image-stack span {
  left: -24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.feature-card {
  background: var(--card);
  border: 1px solid rgba(77, 15, 29, 0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(53, 8, 18, 0.06);
  transition: 0.25s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card h3,
.feature-card h3 {
  color: var(--gold-dark);
}

.dark-section {
  background: var(--maroon);
}

.dark-card,
.contact-card {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background-image: url("../assets/courtroom-bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.dark-overlay,
.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(53, 8, 18, 0.76), rgba(77, 15, 29, 0.88));
}

.dark-content,
.contact-content {
  position: relative;
  z-index: 2;
  padding: 72px;
  max-width: 860px;
}

.dark-content h2,
.dark-content li,
.contact-content h2,
.contact-content p,
.contact-content a {
  color: var(--white);
}

.check-list {
  list-style: none;
  margin-top: 28px;
}

.check-list li {
  position: relative;
  padding-right: 34px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.2rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-weight: 900;
}

.image-stack {
  height: 560px;
}

.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.features-grid .feature-card:first-child,
.features-grid .feature-card:nth-child(2) {
  grid-column: span 1;
}

.features-grid .feature-card:last-child {
  grid-column: span 1;
}

.contact-card {
  background-image: url("../assets/contact-bg.jpg");
  min-height: 620px;
}

.contact-content {
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 34px 0;
}

.contact-list a {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.contact-list a:hover {
  background: var(--gold);
  color: var(--maroon);
}

.qr-code {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto;
  border: 8px solid var(--white);
  border-radius: 12px;
}

.footer {
  background: var(--maroon-dark);
  color: var(--white);
  text-align: center;
  padding: 24px 0;
}

.to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
  z-index: 900;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

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

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 18px;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
  }

  .hero-grid,
  .split-grid,
  .reverse,
  .services-layout {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    min-height: 420px;
  }

  .service-photo {
    position: relative;
    top: auto;
    height: 480px;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .dark-content,
  .contact-content {
    padding: 42px 24px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 68px 0;
  }

  .brand span:last-child {
    font-size: 0.92rem;
  }

  .hero-actions,
  .contact-list {
    flex-direction: column;
  }

  .btn,
  .contact-list a {
    width: 100%;
  }

  .hero-image img,
  .service-photo,
  .image-stack,
  .wide-card {
    height: 360px;
    min-height: auto;
  }

  .logo-img {
    width: 210px;
  }
}
