/* Mouatamid Law Firm - Simple responsive stylesheet */
:root {
  --brand: #b7956e;
  --brand-dark: #6c593f;
  --bg: #f8f6f2;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --border: #e2ddd6;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #8a6f4f;
}

button,
input,
textarea {
  font: inherit;
}

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

header {
  background: #1f242a;
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo img {
  max-height: 54px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: white;
  font-weight: 600;
}

nav a.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}

nav a:hover {
  color: var(--brand);
}

.language-switcher {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.language-switcher a {
  color: white;
  font-size: 0.95rem;
}

.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(31,36,42,.75) 0%, rgba(31,36,42,.85) 100%), url("../assets/img/header.jpg") center/cover no-repeat;
  color: white;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
}

.hero .hero-content {
  padding: 80px 0;
  width: min(640px, 100%);
  max-width: 640px;
  margin-left: auto;
  margin-right: 20px;
  text-align: left;
}

html[dir="rtl"] .hero {
  justify-content: flex-start !important;
  padding-left: 40px !important;
  padding-right: 0 !important;
}

html[dir="rtl"] .hero .hero-content {
  margin-left: auto !important;
  margin-right: 20px !important;
  text-align: right !important;
}


.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 800px;
  line-height: 1.05;
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #f1ece4;
  font-size: 1.05rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
  font-weight: 700;
}

.button {
  background: var(--brand);
  color: white;
  border: 1px solid transparent;
}

.button-secondary {
  border: 1px solid rgba(255,255,255,.85);
  color: white;
  background: transparent;
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

main {
  background: var(--bg);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #ffffff;
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
}

.section-title p {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 17, 20, 0.05);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.card-body p {
  margin: 16px 0 0;
  color: var(--muted);
}

.card-body a {
  display: inline-block;
  margin-top: 18px;
  color: var(--brand-dark);
  font-weight: 700;
}

.features {
  display: grid;
  gap: 18px;
}

.feature {
  display: flex;
  gap: 18px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.feature-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-content p {
  margin: 0;
  color: var(--muted);
}

section .content-grid {
  display: grid;
  gap: 24px;
}

section .content-grid img {
  border-radius: 20px;
}

section h2 + p,
section h3 + p {
  margin-top: 20px;
}

footer {
  padding: 32px 0;
  background: #1f242a;
  color: rgba(255,255,255,.8);
}

footer .footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-share h3 {
  color: white;
  margin-bottom: 16px;
}

.footer-share p {
  margin: 0;
}

.footer-share a {
  color: rgba(255,255,255,.8);
  font-weight: 700;
}

.footer-share a:hover {
  color: white;
}

footer h3 {
  color: white;
  margin-bottom: 16px;
}

footer a {
  color: rgba(255,255,255,.8);
}

footer a:hover {
  color: white;
}

@media (max-width: 960px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 460px;
    padding-bottom: 40px;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-start;
  }
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] header {
  text-align: right;
}

html[dir="rtl"] nav ul {
  justify-content: flex-end;
}

html[dir="rtl"] .feature {
  flex-direction: row-reverse;
}

html[dir="rtl"] .feature-icon {
  margin-left: 0;
  margin-right: 0;
}
