/*
Theme Name: Mohamik Complete
Theme URI: https://example.com/
Author: Markplus / ChatGPT
Description: Arabic RTL WordPress theme converted from the Mohamik static HTML, CSS, and JavaScript website. It renders a one-page legal consultation and case tracking interface.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mohamik-complete
Tags: rtl-language-support, custom-logo, one-column, business, portfolio
*/

:root {
  --navy: #071a33;
  --navy-soft: #10253d;
  --gold: #d6b333;
  --gold-dark: #c6a225;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #17263a;
  --muted: #6f7785;
  --border: #e5e8ed;
  --input-border: #d9dde4;
  --shadow: 0 10px 30px rgba(9, 22, 42, 0.06);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  min-height: 100vh;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  height: 82px;
  background: #ffffff;
  border-bottom: 1px solid #edf0f3;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 82px;
  padding: 0 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  direction: ltr;
  gap: 26px;
}

.brand {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
}

.main-menu {
  direction: rtl;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 42px;
  font-size: 16px;
  color: #343b49;
  font-weight: 600;
}

.main-menu a {
  transition: 0.2s ease;
  white-space: nowrap;
}

.main-menu a:hover,
.main-menu a.active {
  color: var(--gold);
}

.topbar-actions {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
}

.top-action {
  min-width: 128px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: 0.2s ease;
  direction: rtl;
}

.action-gold {
  background: var(--gold);
  color: #1b2733;
  border: 2px solid var(--gold);
}

.action-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.action-outline {
  color: var(--navy);
  background: #ffffff;
  border: 2px solid #9aa2af;
}

.action-outline.active,
.action-outline:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  min-height: 392px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 20px;
}

.hero.compact-hero {
  min-height: 330px;
}

.hero-home {
  min-height: 500px;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 28px;
}

.hero-icon.small {
  width: 62px;
  height: 62px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
}

.hero p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}

.hero-buttons {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link {
  min-width: 160px;
  height: 50px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}

.primary-link {
  background: var(--gold);
  color: #17202e;
}

.secondary-link {
  border: 2px solid rgba(255,255,255,0.65);
  color: #ffffff;
}

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 28px;
}

.narrow-top {
  padding-top: 110px;
}

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

.section-heading h2,
.text-panel h2,
.location-section h2,
.notes-card h2,
.contact-form h2,
.security-section h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  font-weight: 800;
}

.section-heading p,
.security-section p,
.location-section p,
.text-panel p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
  margin: 0;
}

.feature-grid,
.lawyers-grid,
.contact-grid,
.file-type-grid {
  display: grid;
  gap: 28px;
}

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

.feature-card,
.file-type-card,
.contact-card,
.lawyer-card,
.search-card,
.notes-card,
.form-card,
.upload-card,
.success-box,
.location-section,
.text-panel,
.faq-wrap details,
.table-card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 38px 30px;
  text-align: center;
  min-height: 230px;
}

.card-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: #f7f5ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 48px;
  height: 48px;
}

.feature-card h3,
.file-type-card h3,
.contact-card h3,
.lawyer-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
}

.feature-card p,
.file-type-card p,
.contact-card p,
.lawyer-card p,
.lawyer-card span,
.faq-wrap p,
.notes-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}

.form-area {
  max-width: 1020px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  margin: 0 auto 48px;
  width: min(950px, 100%);
}

.tab-button {
  border: 0;
  height: 66px;
  border-radius: 8px;
  background: transparent;
  color: #9398a0;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.active {
  background: var(--navy);
  color: #ffffff;
}

.form-card {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 46px 46px 42px;
}

.contact-form {
  margin-top: 64px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form-row {
  margin-bottom: 28px;
}

.form-row.single {
  width: 100%;
}

.form-row label {
  display: block;
  margin-bottom: 12px;
  color: #55606e;
  font-size: 19px;
  font-weight: 800;
}

.form-row label span {
  color: #e45d6a;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 2px solid var(--input-border);
  background: #ffffff;
  color: #313845;
  border-radius: 8px;
  min-height: 56px;
  padding: 0 18px;
  font-size: 17px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  direction: ltr;
  text-align: left;
}

.form-row select {
  direction: rtl;
  text-align: right;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ba3ae 50%), linear-gradient(135deg, #9ba3ae 50%, transparent 50%);
  background-position: 18px 24px, 11px 24px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.form-row textarea {
  min-height: 144px;
  padding: 18px;
  resize: vertical;
  line-height: 1.6;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: #9aa3b1;
  box-shadow: 0 0 0 3px rgba(7, 26, 51, 0.08);
}

.small-link {
  display: inline-block;
  margin: -10px 0 26px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.wide-button,
.compact-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 8px;
  transition: 0.2s ease;
}

.wide-button {
  width: 100%;
  min-height: 70px;
  font-size: 23px;
}

.compact-button {
  min-width: 190px;
  min-height: 50px;
  padding: 0 24px;
  font-size: 17px;
}

.dark {
  background: var(--navy);
  color: #ffffff;
}

.dark:hover {
  background: var(--navy-soft);
}

.gold {
  background: var(--gold);
  color: #1c2733;
}

.gold:hover {
  background: var(--gold-dark);
}

.form-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.form-message.success {
  color: #2d7d46;
}

.form-message.error {
  color: #bd3d47;
}

.auth-switch {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.auth-switch a {
  color: var(--gold);
  font-weight: 800;
}

.account-wrap {
  max-width: 1100px;
}

.account-card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 46px;
  margin: 0 auto;
}

.account-card h2 {
  color: var(--navy);
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 16px;
}

.account-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 24px;
}

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

.account-summary div,
.saved-data-panel {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 20px;
}

.account-summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.account-summary strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
}

.saved-data-panel h3 {
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 10px;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.account-actions .compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-button.outline {
  border: 2px solid var(--navy);
  background: #ffffff;
  color: var(--navy);
}

.compact-button.outline:hover {
  background: var(--navy);
  color: #ffffff;
}

.hidden {
  display: none !important;
}

.success-box {
  max-width: 960px;
  padding: 62px 40px;
  margin-top: 86px;
  text-align: center;
}

.success-box img {
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
}

.success-box h2 {
  color: var(--navy);
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.success-box p {
  margin: 0 auto 28px;
  max-width: 760px;
  color: #555e69;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 600;
}

.tracking-wrap {
  max-width: 1400px;
}

.search-card {
  padding: 38px 34px;
  margin-bottom: 86px;
}

.search-card label {
  display: block;
  text-align: right;
  font-size: 19px;
  color: #566171;
  font-weight: 800;
  margin-bottom: 14px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  height: 58px;
  border: 2px solid #86909f;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 54px 0 20px;
  font-size: 18px;
  color: #4c5663;
  direction: ltr;
  text-align: right;
  outline: none;
}

.search-symbol {
  position: absolute;
  right: auto;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #a3a9b2;
}

.table-card {
  overflow: hidden;
  margin-bottom: 44px;
}

.cases-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 18px;
}

.cases-table thead {
  background: var(--navy);
  color: #ffffff;
}

.cases-table th,
.cases-table td {
  padding: 18px 12px;
  border-bottom: 1px solid #edf0f4;
}

.cases-table th {
  font-weight: 800;
}

.cases-table td {
  color: #303a49;
  background: #ffffff;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 26px;
  border-radius: 999px;
  background: #8a94a3;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.status-badge.inactive {
  background: #b0b5bd;
}

.notes-card {
  padding: 36px 34px;
  text-align: right;
}

.notes-card h2 {
  font-size: 32px;
}

.notes-card p {
  font-size: 20px;
  color: #303846;
  font-weight: 600;
}

.upload-wrap {
  max-width: 1040px;
}

.upload-card {
  padding: 52px;
}

.upload-zone {
  border: 3px dashed var(--gold);
  border-radius: 12px;
  min-height: 365px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
  background: #ffffff;
}

.upload-zone.dragging,
.upload-zone:hover {
  background: #fffdf6;
}

.upload-zone img {
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
}

.upload-zone strong {
  font-size: 25px;
  color: var(--navy);
  margin-bottom: 12px;
}

.upload-zone span {
  color: #737d8d;
  font-size: 18px;
  margin-bottom: 24px;
}

.upload-zone small {
  color: #9aa1ad;
  font-size: 16px;
  font-weight: 700;
}

.upload-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.upload-list div {
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: #465061;
  font-weight: 700;
}

.notice-card {
  margin-top: 40px;
  border-radius: 8px;
  background: #f6f7fa;
  padding: 28px 28px;
  border: 1px solid #eef0f3;
  color: #4e5966;
}

.notice-card strong {
  color: var(--navy);
  font-size: 20px;
  display: block;
  margin-bottom: 10px;
}

.notice-card p {
  margin: 0;
  line-height: 1.8;
  font-size: 17px;
}

.files-title {
  margin-top: 78px;
}

.file-type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.file-type-card {
  min-height: 250px;
  padding: 42px 24px;
  text-align: center;
}

.mini-doc {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4f3f1;
  color: var(--gold);
  font-size: 36px;
  margin-bottom: 28px;
}

.file-type-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #172033;
}

.security-section {
  text-align: center;
  padding: 86px 0 10px;
}

.security-section img {
  width: 86px;
  height: 86px;
  margin-bottom: 28px;
}

.contact-wrap {
  max-width: 1040px;
}

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

.contact-card {
  min-height: 150px;
  padding: 26px 16px;
  text-align: center;
}

.contact-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 16px;
  font-weight: 700;
}

.contact-form h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 38px;
}

.contact-success {
  margin-top: 62px;
}

.location-section {
  margin-top: 78px;
  padding: 50px;
  text-align: center;
}

.map-placeholder {
  margin-top: 30px;
  height: 260px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e9edf2, #f5f6f8);
  color: #88919e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.text-panel {
  padding: 46px;
  line-height: 1.8;
}

.text-panel h2 {
  font-size: 38px;
}

.text-panel p + p {
  margin-top: 18px;
}

.compact-cards {
  margin-top: 34px;
}

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

.lawyer-card {
  padding: 38px 28px;
  text-align: center;
}

.avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 24px;
}

.lawyer-card p {
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 12px;
}

.faq-wrap {
  max-width: 900px;
}

.faq-wrap details {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
}

.faq-wrap summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 28px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

.faq-wrap summary::-webkit-details-marker {
  display: none;
}

.faq-wrap p {
  padding: 0 28px 24px;
  font-size: 18px;
}

.site-footer {
  background: var(--navy);
  color: #ffffff;
  padding: 62px 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  color: #ffffff;
  font-size: 28px;
}

.footer-inner h3 {
  color: #ffffff;
  font-size: 22px;
  margin: 0 0 18px;
}

.footer-inner a,
.footer-inner span,
.footer-inner p {
  display: block;
  color: rgba(255,255,255,0.68);
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.8;
}

.footer-inner a:hover {
  color: var(--gold);
}

@media (max-width: 1180px) {
  .topbar-inner {
    padding: 0 22px;
    gap: 16px;
  }
  .main-menu {
    gap: 20px;
  }
  .top-action {
    min-width: 116px;
  }
  .contact-grid,
  .file-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
  }
  .topbar-inner {
    height: auto;
    min-height: 74px;
    grid-template-columns: auto 1fr auto;
    position: relative;
  }
  .hamburger {
    display: flex;
    justify-self: start;
  }
  .main-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    z-index: 80;
  }
  .main-menu.open {
    display: flex;
  }
  .main-menu a {
    padding: 10px 12px;
    border-radius: 6px;
  }
  .topbar-actions {
    display: none;
  }
  .feature-grid.three,
  .lawyers-grid {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .login-tabs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 0 16px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .hero,
  .hero-home,
  .hero.compact-hero {
    min-height: 330px;
    padding: 40px 18px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 17px;
  }
  .hero-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
  }
  .section-wrap {
    padding: 48px 16px;
  }
  .narrow-top {
    padding-top: 58px;
  }
  .form-card,
  .upload-card,
  .text-panel,
  .location-section {
    padding: 28px 18px;
  }
  .contact-grid,
  .file-type-grid,
  .footer-inner,
  .account-summary {
    grid-template-columns: 1fr;
  }
  .cases-table {
    font-size: 14px;
  }
  .cases-table th,
  .cases-table td {
    padding: 12px 6px;
  }
  .table-card {
    overflow-x: auto;
  }
  .cases-table {
    min-width: 760px;
  }
  .wide-button {
    min-height: 60px;
    font-size: 19px;
  }
  .upload-zone {
    min-height: 260px;
  }
}
