@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;800;900&display=swap");

:root {
  --black: #0c0b09;
  --ink: #19140d;
  --gold: #c7a45a;
  --gold-soft: #ead7aa;
  --cream: #f6efe3;
  --white: #ffffff;
  --muted: #7c715f;
  --line: rgba(199, 164, 90, 0.28);
  --shadow: 0 24px 70px rgba(12, 11, 9, 0.14);
  --body-font: "Vazirmatn", Tahoma, Arial, sans-serif;
  --heading-font: "Peyda", "Estedad", "Vazirmatn", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(12, 11, 9, 0.92);
  border-bottom: 1px solid rgba(199, 164, 90, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  width: auto;
  height: 100px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.brand-mark img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(246, 239, 227, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold-soft);
  text-shadow: 0 0 18px rgba(199, 164, 90, 0.34);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(246, 239, 227, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold-soft);
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  direction: ltr;
  gap: clamp(48px, 6vw, 80px);
  min-height: calc(100vh - 104px);
  padding: clamp(20px, 3vw, 30px) clamp(24px, 5vw, 72px) clamp(72px, 8vw, 112px);
  background: var(--black);
  color: var(--white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  flex: 0 0 42%;
  order: 2;
  max-width: 580px;
  direction: rtl;
  text-align: right;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 24px;
  max-width: 100%;
  font-size: clamp(48px, 5vw, 82px);
  line-height: 1.15;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: normal;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.34;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
}

.hero-subtitle {
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-size: clamp(20px, 2.8vw, 31px);
  font-weight: 500;
}

.hero-services {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--black);
}

.button-secondary {
  border-color: rgba(234, 215, 170, 0.48);
  color: var(--white);
}

.hero-showcase {
  position: relative;
  flex: 0 0 min(48%, 620px);
  order: 1;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  border: 1px solid rgba(234, 215, 170, 0.32);
  border-radius: 28px;
  background: #12100c;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(199, 164, 90, 0.08);
}

.hero-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading h2 {
  max-width: 680px;
}

.asset-note {
  max-width: 390px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.order,
.contact,
.about-panel,
.faq details {
  background: var(--white);
  border: 1px solid rgba(199, 164, 90, 0.22);
  box-shadow: var(--shadow);
}

.about p,
.faq p,
.nova p {
  color: var(--muted);
  font-weight: 400;
}

.order-consult {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.order-consult-copy {
  max-width: 680px;
}

.order-consult-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.order-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.button-secondary.dark {
  border-color: rgba(234, 215, 170, 0.44);
  color: var(--gold-soft);
}

.contact-lines {
  display: grid;
  gap: 8px;
  color: var(--gold-soft);
  font-weight: 500;
}

.order-preview {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(234, 215, 170, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.preview-label {
  display: grid;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 500;
}

.preview-field {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid rgba(234, 215, 170, 0.28);
  background: rgba(246, 239, 227, 0.08);
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
  outline: none;
}

.preview-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.preview-field:focus {
  border-color: rgba(199, 164, 90, 0.72);
}

.preview-field-large {
  min-height: 128px;
  resize: vertical;
}

.preview-field.is-selected {
  border-color: rgba(199, 164, 90, 0.72);
  background: rgba(199, 164, 90, 0.16);
  color: var(--gold-soft);
}

.file-field {
  padding: 11px 14px;
}

.file-field::file-selector-button {
  margin-left: 12px;
  border: 1px solid rgba(199, 164, 90, 0.56);
  background: var(--gold);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
}

.preview-label small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 400;
}

.order-success {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(199, 164, 90, 0.48);
  background: rgba(199, 164, 90, 0.14);
  color: var(--gold-soft);
  font-weight: 700;
}

.portfolio {
  background: var(--white);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.order-shortcuts {
  display: flex;
  position: sticky;
  top: 96px;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid rgba(199, 164, 90, 0.22);
  background: var(--cream);
  box-shadow: 0 18px 50px rgba(12, 11, 9, 0.08);
}

.shortcut-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
}

.shortcut-heading strong {
  font-family: var(--heading-font);
  font-weight: 700;
}

.shortcut-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.order-shortcuts button {
  width: 100%;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  text-align: right;
}

.order-shortcuts button.is-selected,
.order-shortcuts button:hover {
  background: var(--black);
  color: var(--gold-soft);
}

.portfolio-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(199, 164, 90, 0.2);
  box-shadow: 0 18px 50px rgba(12, 11, 9, 0.08);
  cursor: pointer;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible,
.portfolio-card.is-active {
  border-color: rgba(199, 164, 90, 0.52);
  box-shadow: 0 26px 70px rgba(12, 11, 9, 0.14);
  outline: none;
  transform: translateY(-4px);
}

.portfolio-media {
  position: relative;
  display: grid;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--gold-soft);
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.045);
  opacity: 0.88;
}


.portfolio-media.is-missing img {
  display: none;
}

.portfolio-media.is-missing::before,
.portfolio-media-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(234, 215, 170, 0.38);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
}

.portfolio-media.is-missing::before {
  content: attr(data-fallback-label);
}

.portfolio-card-body {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.portfolio-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.portfolio-category {
  color: var(--gold) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.portfolio-details {
  margin-top: clamp(34px, 6vw, 72px);
}

.portfolio-detail {
  display: none;
}

.portfolio-detail.is-active {
  display: block;
}

.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-top: 1px solid rgba(199, 164, 90, 0.22);
  padding-top: 28px;
}

.detail-heading h3 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.detail-order-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.photo-detail-grid {
  grid-template-columns: minmax(0, min(760px, 100%));
  justify-content: center;
}

.photo-detail-card .portfolio-media img {
  object-fit: contain;
}

.detail-card {
  overflow: hidden;
  border: 1px solid rgba(199, 164, 90, 0.2);
  background: var(--cream);
}

.detail-card p {
  margin: 0;
  padding: 18px 20px;
  color: var(--muted);
  font-weight: 500;
}

.detail-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  border-style: dashed;
  background: rgba(246, 239, 227, 0.66);
}

.detail-placeholder p {
  color: var(--gold);
  font-weight: 800;
  text-align: center;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
}

.about-copy {
  max-width: 760px;
}

.about-panel {
  padding: 34px;
}

.about-panel span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: var(--heading-font);
  font-size: 74px;
  font-weight: 700;
  line-height: 1;
}

.about-panel strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
}

.faq {
  background: var(--black);
  color: var(--white);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq details {
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.faq summary {
  cursor: pointer;
  font-family: var(--heading-font);
  font-weight: 800;
}

.faq p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.order-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
}

.order,
.contact {
  padding: clamp(24px, 4vw, 42px);
}

.order-intro {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 500;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(199, 164, 90, 0.32);
  background: #fffaf1;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}

.contact {
  align-self: start;
  background: var(--black);
  color: var(--white);
}

.contact a {
  display: block;
  margin-top: 14px;
  color: var(--gold-soft);
}

.nova {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 28px;
  background: var(--white);
}

.status {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 800;
}

.nova ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.nova li {
  padding: 14px 18px;
  border-right: 3px solid var(--gold);
  background: var(--cream);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 72px);
  background: var(--black);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin: 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--gold-soft);
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 36px);
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.footer-brand p,
.footer-column p {
  max-width: 560px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column a {
  color: rgba(234, 215, 170, 0.86);
  font-weight: 500;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(12, 11, 9, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .about,
  .order-consult,
  .order-contact,
  .nova {
    grid-template-columns: 1fr;
  }

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

  .portfolio-layout {
    grid-template-columns: 1fr;
  }

  .order-shortcuts {
    top: 70px;
    z-index: 6;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    margin-bottom: 6px;
    scrollbar-width: none;
  }

  .order-shortcuts::-webkit-scrollbar {
    display: none;
  }

  .order-shortcuts button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .shortcut-heading {
    min-width: 170px;
    flex: 0 0 auto;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 80px;
    padding: 10px 18px;
  }

  .brand {
    max-width: calc(100vw - 92px);
    white-space: normal;
    line-height: 1.4;
  }

  .brand-mark {
    width: auto;
    height: 64px;
  }

  .section {
    padding: 64px 18px;
  }

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

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

  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-media {
    min-height: 240px;
  }


  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    direction: rtl;
    padding: 28px 20px 48px;
  }

  .hero-content {
    order: 1;
    flex: 0 1 auto;
    max-width: 560px;
    align-items: center;
    text-align: center;
  }

  .hero-showcase {
    order: 2;
    width: 100%;
    flex: 0 1 auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    width: auto;
  }
}
