 :root {
  --navy: #101b31;
  --navy-light: #1c2b46;
  --gold: #bd964b;
  --gold-light: #ead49a;
  --text: #000000;
  --muted: #000000;
  --cream: #f8f6f0;
  --white: #ffffff;
  --border: #e5e0d5;
}

/* تنظیمات عمومی */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
  color: #000000;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* رنگ یکسان سرتیترها */
h1,
h2,
h3,
.section-heading h2,
.hero h1,
.contact-copy h2,
.service-card h3,
.timeline-item h3,
.brand-copy strong,
.footer-inner strong {
  color: #101b31;
}

/* سربرگ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(189, 150, 75, .55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: min-height .22s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border: 1px solid var(--gold);
  border-radius: 12px 3px;
  color: var(--gold-light);
  font-weight: bold;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 13px;
}

.brand-copy small {
  color: #ffffff;
  font-size: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 19px;
}

.nav a {
  color: #ffffff;
  font-size: 12px;
  transition: color .2s;
}

.nav a:hover {
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold-light);
  padding: 4px 10px;
  font-size: 20px;
  cursor: pointer;
}

/* جمع‌وجور شدن سربرگ هنگام اسکرول */
.header.scrolled .nav-wrap {
  min-height: 57px;
}

.header.scrolled .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.header.scrolled .brand-copy small {
  display: none;
}

/* بخش اصلی */
.hero {
  background: linear-gradient(125deg, var(--navy), #1d304d);
  color: #ffffff;
  padding: 65px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 50px;
}

.eyebrow,
.section-label {
  color: #101b31;
  font-size: 11px;
  font-weight: bold;
}

.hero .eyebrow {
  color: #ffffff;
}

.hero h1 {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.8;
  margin: 12px 0;
}

.hero h1 span {
  color: #ffffff;
}

.hero-description {
  color: #000000;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 2.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.button-gold {
  background: var(--gold);
  color: var(--navy);
}

.button-outline {
  border-color: var(--gold-light);
  color: #ffffff;
  background: transparent;
}

.hero-highlights {
  display: flex;
  gap: 25px;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid #ffffff25;
}

.hero-highlights div {
  display: flex;
  flex-direction: column;
}

.hero-highlights strong {
  color: #ffffff;
  font-size: 15px;
}

.hero-highlights span {
  color: #ffffff;
  font-size: 10px;
}

.hero-visual {
  width: 100%;
  max-width: 350px;
  margin: auto;
}

.photo-frame {
  aspect-ratio: 4 / 4.6;
  padding: 9px;
  border: 1px solid var(--gold);
  border-radius: 45% 45% 8px 8px;
  background: #ffffff0a;
  overflow: hidden;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.photo-placeholder {
  display: none;
  height: 100%;
  min-height: 260px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--navy-light);
  color: #ffffff;
  border-radius: inherit;
}

.placeholder-mark {
  color: var(--gold-light);
  font-size: 24px;
}

.photo-placeholder small {
  color: #ffffff;
}

/* بخش‌های عمومی */
.section {
  padding: 70px 0;
}

.section-soft {
  background: var(--cream);
}

.section-heading {
  text-align: center;
  margin: 0 auto 35px;
  max-width: 700px;
}

.section-heading h2 {
  color: #101b31;
  font-size: 25px;
  line-height: 1.8;
  margin: 7px 0;
}

.section-heading h2 span {
  color: #101b31;
}

.section-heading p {
  color: #000000;
  font-size: 12px;
}

/* درباره وکیل */
.about-copy {
  max-width: 900px;
  margin: auto;
}

.about-copy p {
  line-height: 2.2;
  color: #000000;
  font-size: 13px;
}

.license-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--cream);
}

.license-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 6px;
}

.license-box div {
  display: flex;
  flex-direction: column;
}

.license-box small {
  color: #000000;
  font-size: 10px;
}

.license-box strong {
  color: #101b31;
  font-size: 14px;
}

/* خدمات حقوقی */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  transition: border-color .2s, box-shadow .2s;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px #101b3112;
}

.service-icon {
  color: #9a742f;
  font-size: 22px;
}

.service-card h3 {
  color: #101b31;
  font-size: 14px;
  margin: 7px 0;
}

.service-card p {
  color: #000000;
  font-size: 12px;
  line-height: 2;
  margin-bottom: 0;
}

.legal-note {
  background: #f1ecdf;
  border-right: 3px solid var(--gold);
  padding: 12px 14px;
  color: #000000;
  font-size: 11px;
  line-height: 2;
}

/* سوابق حرفه‌ای */
.timeline {
  max-width: 800px;
  margin: auto;
  border-right: 2px solid #d7c49b;
  padding-right: 22px;
}

.timeline-item {
  position: relative;
  padding: 0 8px 20px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  right: -29px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #ffffff;
}

.timeline-item h3 {
  color: #101b31;
  font-size: 14px;
  margin: 0 0 5px;
}

.timeline-item p {
  color: #000000;
  font-size: 12px;
  margin: 0;
}

/* جست‌وجو */
.search-form {
  display: flex;
  max-width: 720px;
  margin: auto;
  padding: 6px;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 9px 12px;
  color: #000000;
  font-size: 12px;
}

.search-form button {
  border: 0;
  border-radius: 5px;
  padding: 8px 17px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
}

.search-message {
  text-align: center;
  color: #000000;
  font-size: 11px;
}

.search-hit {
  outline: 3px solid #b4232f !important;
  outline-offset: 4px;
  background-color: #fff0f0 !important;
}

/* دیدگاه‌ها */
.comment-card {
  max-width: 760px;
  margin: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.comment-card form {
  display: grid;
  gap: 9px;
}

.comment-card label {
  color: #101b31;
  font-size: 12px;
  font-weight: bold;
}

.comment-card input,
.comment-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8d4cb;
  border-radius: 5px;
  color: #000000;
  background: #ffffff;
  font-size: 12px;
  outline: none;
}

.comment-card input:focus,
.comment-card textarea:focus {
  border-color: var(--gold);
}

.comment-card textarea {
  resize: vertical;
}

.form-message {
  color: #000000;
  font-size: 11px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.comment-item {
  background: #fbf9f4;
  border-right: 3px solid var(--gold);
  padding: 12px;
}

.comment-item strong {
  color: #101b31;
  font-size: 12px;
}

.comment-item time {
  color: #000000;
  font-size: 10px;
  margin-right: 8px;
}

.comment-item p {
  color: #000000;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* تماس با دفتر */
.contact-section {
  background: var(--navy);
  padding: 65px 0;
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.section-label-light {
  color: #ffffff;
}

.contact-copy h2 {
  color: #ffffff;
  font-size: 26px;
  line-height: 1.9;
}

.contact-copy h2 span {
  color: #ffffff;
}

.contact-copy p {
  color: #000000;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 2.2;
}

.contact-details {
  display: grid;
  gap: 11px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid #d9c99f;
  border-radius: 7px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  user-select: text;
  -webkit-user-select: text;
}

.contact-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--gold-light);
}

.contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.contact-info small {
  color: #000000 !important;
  font-size: 10px;
}

.contact-info strong {
  display: block;
  color: #000000 !important;
  -webkit-text-fill-color: #000000;
  opacity: 1;
  visibility: visible;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: normal;
}

.address-row .contact-info strong {
  line-height: 2;
}

.social-block > small {
  color: #ffffff;
  font-size: 10px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.social-links a {
  color: #ffffff;
  border: 1px solid var(--gold);
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 11px;
}

.social-links a:hover {
  background: #ffffff12;
}

/* پایین سایت */
.footer {
  background: #0a1220;
  color: #ffffff;
  padding: 25px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 12px;
}

.footer-inner span,
.footer-inner a {
  color: #ffffff;
  font-size: 11px;
}

.footer-inner a {
  margin-right: auto;
}

.footer-inner small {
  flex-basis: 100%;
  border-top: 1px solid #ffffff20;
  padding-top: 12px;
  color: #ffffff;
  font-size: 10px;
}

/* تبلت و موبایل */
@media (max-width: 900px) {
  .container {
    width: calc(100% - 32px);
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 10px 18px 16px;
    background: var(--navy);
    border-top: 1px solid #bd964b66;
    box-shadow: 0 12px 20px #0003;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 9px 3px;
    border-bottom: 1px solid #ffffff14;
  }

  .hero-grid {
    gap: 25px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 60px;
  }

  .container {
    width: calc(100% - 26px);
  }

  .nav-wrap {
    min-height: 68px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    font-size: 12px;
  }

  .brand-copy strong {
    font-size: 11px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .header.scrolled .nav-wrap {
    min-height: 49px;
  }

  .header.scrolled .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .header.scrolled .brand-copy strong {
    font-size: 10px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero-visual {
    max-width: 270px;
  }

  .hero-highlights {
    gap: 13px;
    justify-content: space-between;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-copy h2 {
    font-size: 23px;
  }

  .contact-row {
    padding: 12px;
    gap: 10px;
  }

  .contact-info strong {
    font-size: 12px;
  }

  .search-form input {
    padding-inline: 7px;
  }

  .search-form button {
    padding-inline: 11px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner a {
    margin-right: 0;
  }
}.logo-icon {
  font-size: 36px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* خواناتر شدن متن‌های توضیحی سایت */

/* متن‌های عمومی */
p {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}

/* بخش درباره وکیل */
#about p {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}

/* توضیحات خدمات حقوقی */
#services p {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}

/* سوابق و تجربه‌ها */
#experience p {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}

/* اطلاعات تماس */
#contact p {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}

/* کارت‌های خدمات و سوابق */
.service-card,
.experience-card {
  font-size: 17px;
  line-height: 2;
}

/* توضیحات زیر تیترها */
.section-description {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}
