/* قالب تازه وب‌سایت ریحانه فرزندی — فقط ظاهر تغییر کرده است */
:root {
  --ink: #203047;
  --muted: #65748b;
  --primary: #6558c9;
  --primary-dark: #4c42a5;
  --accent: #e6a86a;
  --paper: #ffffff;
  --soft: #f3f5fb;
  --line: #e2e7f0;
  --shadow: 0 18px 55px rgba(37, 47, 79, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 42px 18px;
  min-height: 100vh;
  direction: rtl;
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.95;
  background:
    radial-gradient(ellipse at 8% 4%, rgba(230,168,106,.22), transparent 32%),
    radial-gradient(ellipse at 92% 10%, rgba(101,88,201,.18), transparent 34%),
    linear-gradient(145deg, #f7f8fc 0%, #edf0f8 100%);
  background-attachment: fixed;
}
.menu-box {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  background: linear-gradient(120deg, #242f4b, #403b77 68%, #6558c9);
  border: 0;
  position: relative;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.menu a:hover, .menu a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
  outline: none;
}

.content {
  min-height: 300px;
  padding: clamp(22px, 5vw, 54px);
  background: var(--paper);
  border: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 2.05;
}
.content p {
  margin: 0 0 18px;
  color: #43516a;
}
.content h1, .content h2, .content h3, .content h4 {
  color: #2c3454;
  line-height: 1.6;
  margin: 0 0 18px;
  font-weight: 800;
}
.content h1 {
  font-size: clamp(25px, 4vw, 36px);
  padding-bottom: 14px;
  border-bottom: 3px solid #f0c18b;
}
.content h2 { font-size: clamp(21px, 3vw, 28px); }
.content h3 { font-size: 20px; }
.content a:not(.menu a) { color: var(--primary); }
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.photo-container {
  display: flex;
  justify-content: center;
  padding: 12px;
}
.thumbnail {
  width: min(220px, 70vw);
  height: auto;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px rgba(35,45,75,.17);
  cursor: zoom-in;
}
.lightbox {
  z-index: 9999;
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 23, 42, .92);
}
.lightbox img {
  max-width: min(90vw, 800px);
  max-height: 85vh;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}
.lightbox .close, .content button, button {
  border: 0;
  border-radius: 11px;
  padding: 11px 19px;
  color: #fff;
  background: var(--primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox .close { position: absolute; top: 22px; left: 22px; }
.content button:hover, button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.gallery-images img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(37,47,79,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-images img:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(37,47,79,.15);
}
.content form {
  max-width: 680px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.content label { color: #303c5a; font-weight: 700; }
.content input, .content textarea, .content select {
  max-width: 100%;
  border: 1px solid #d6ddec;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.content input:focus, .content textarea:focus, .content select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(101,88,201,.12);
}
.content ul, .content ol { padding-right: 24px; }
.content li { margin-bottom: 8px; }
::selection { color: #fff; background: var(--primary); }
@media (max-width: 700px) {
  body { padding: 14px 10px; }
  .menu-box { border-radius: 18px; }
  .menu { padding: 16px; gap: 6px; }
  .menu::before { width: 100%; padding: 0 0 8px; font-size: 18px; }
  .menu a { flex: 1 1 calc(50% - 8px); padding: 9px 8px; font-size: 12px; }
  .content { padding: 24px 18px; font-size: 14px; }
  .content form { padding: 16px; }
  .gallery-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-images img { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
