:root {
  --color-bg: #f7f3ee;
  --color-bg-soft: #f1e7dd;
  --color-primary: #5a3b25;
  --color-primary-dark: #3f2816;
  --color-accent: #c8a264;
  --color-text: #2b2119;
  --color-muted: #8a7460;
  --radius-lg: 18px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
  --transition-base: 0.35s ease;
}

* {
  box-sizing: border-box;
}

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

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

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

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER + NAVBAR */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(to right, rgba(247, 243, 238, 0.96), rgba(247, 243, 238, 0.98));
  border-bottom: 1px solid rgba(90, 59, 37, 0.08);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}


.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}


.logo-text-main {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--color-muted);
}

/* NAV */

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  color: var(--color-muted);
  position: relative;
  padding-bottom: 2px;
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff7ea !important;
  box-shadow: 0 10px 24px rgba(90, 59, 37, 0.35);
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 16px 35px rgba(63, 40, 22, 0.45);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(90, 59, 37, 0.21);
  background: #fbf7f2;
}

.nav-toggle-label span {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition-base), top var(--transition-base), opacity var(--transition-base);
}

.nav-toggle-label span::before {
  top: -5px;
}

.nav-toggle-label span::after {
  top: 5px;
}

.nav-toggle:checked + .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 16px;
    background: #fbf7f2;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    text-align: left;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* Sections */

.page-section {
  padding: 50px 0;
}

.page-section.hero {
  padding-top: 40px;
  padding-bottom: 60px;
}

.section-card {
  background: linear-gradient(135deg, #fbf7f2, #f0e2d4);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(200, 162, 100, 0.26), transparent 60%),
    radial-gradient(circle at bottom right, rgba(90, 59, 37, 0.25), transparent 55%);
  opacity: 0.8;
}

.section-inner {
  position: relative;
  z-index: 1;
}

.content-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}

.col-en,
.col-ar {
  background: rgba(253, 249, 244, 0.88);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.03);
}

.col-en {
  direction: ltr;
  text-align: left;
}

.col-ar {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.section-title-en {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--color-primary-dark);
}

.section-title-ar {
  font-family: "Cairo", system-ui;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.highlight-text {
  font-weight: 600;
  color: var(--color-primary);
}

.muted {
  color: var(--color-muted);
  font-size: 14px;
}

/* HERO */

.hero-card {
  position: relative;
}

.hero-logo-watermark {
  position: absolute;
  right: -70px;
  top: -40px;
  width: 220px;
  opacity: 0.06;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-logo-watermark img {
  width: 100%;
  height: auto;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  font-weight: 600;
}

.hero-heading-en {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
}

.hero-heading-sub {
  font-size: 19px;
  letter-spacing: 0.24em;
}

.hero-sub-en {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.btn-primary {
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #3f2816;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 32px rgba(200, 162, 100, 0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #dfb975;
  box-shadow: 0 20px 38px rgba(200, 162, 100, 0.6);
}

.hero-meta {
  font-size: 12px;
  color: var(--color-muted);
}

/* Lawyer card & portrait */

.hero-lawyer-card {
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(140deg, rgba(63, 40, 22, 0.94), rgba(90, 59, 37, 0.98));
  color: #fdf7ec;
  box-shadow: 0 20px 40px rgba(56, 36, 21, 0.85);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  text-align: center;
}

.hero-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 20% 10%, #f7f3ee, #5a3b25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-lawyer-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hero-lawyer-role {
  font-size: 12px;
  color: #f6e2c4;
  margin-bottom: 4px;
}

.hero-lawyer-meta {
  font-size: 11px;
  color: #e5d3bb;
}

/* clearer Arabic contact text */

.hero-contact-ar {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-block;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.hero-contact-ar span {
  display: block;
}

/* PROFILE SECTION extra photo */

.profile-row {
  align-items: center;
}

.profile-ar {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 16px;
  align-items: center;
}

.profile-photo-wrapper {
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, #fefaf3, #5a3b25);
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.profile-photo-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
}

/* SERVICES */

.two-col-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
  font-size: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.service-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

.service-icon {
  width: 26px;
  height: 26px;
  border-radius: 11px;
  background: linear-gradient(135deg, #c8a264, #8e6c3f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fdf7ec;
  flex-shrink: 0;
}

.service-text {
  flex: 1;
}

.section-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

/* CREDENTIALS */

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cred-label {
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 4px;
}

/* CTA */

.cta-banner {
  background: linear-gradient(135deg, #5a3b25, #3b2414);
  border-radius: 26px;
  padding: 24px 22px;
  box-shadow: 0 20px 45px rgba(33, 19, 10, 0.8);
  color: #fdf7ec;
}

.cta-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
}

.cta-title-en {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin: 0 0 6px;
}

.cta-title-ar {
  font-family: "Cairo", system-ui;
  font-size: 20px;
  margin: 0 0 10px;
}

.cta-text {
  font-size: 14px;
}

.cta-btn {
  margin-top: 10px;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f4d29a;
  color: #3b2414;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 32px rgba(244, 210, 154, 0.6);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.cta-btn:hover {
  transform: translateY(-1px);
  background: #ffe1ae;
  box-shadow: 0 20px 40px rgba(255, 225, 174, 0.7);
}

.cta-contact {
  font-size: 13px;
  margin-top: 8px;
}

.cta-contact span {
  display: block;
}

.cta-ar {
  direction: rtl;
  font-family: "Cairo", system-ui;
}

.cta-label {
  color: #f4d29a;
}

/* FOOTER */

footer {
  margin-top: 40px;
  padding: 18px 0 24px;
  background: #22140b;
  color: #e9dccb;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-ar {
  direction: rtl;
  font-family: "Cairo", system-ui;
}


.footer-credit {
  font-size: 12px;
  color: #f4d29a;
}

.footer-credit a {
  color: #f4d29a;
  font-weight: 600;
}

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



/* Animations */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.8s var(--transition-base) forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.12s;
}

.fade-in.delay-2 {
  animation-delay: 0.22s;
}

.fade-in.delay-3 {
  animation-delay: 0.32s;
}

.fade-in.delay-4 {
  animation-delay: 0.42s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 992px) {
  .content-row {
    grid-template-columns: 1fr;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .section-card {
    padding: 24px 20px;
  }

  .profile-ar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-heading-en {
    font-size: 24px;
  }

  .section-title-en {
    font-size: 22px;
  }

  .section-title-ar {
    font-size: 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-lawyer-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-avatar {
    margin: 0 auto;
  }
}

