@font-face {
  font-family: IRANSans;
  src: url("assets/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: IRANSans;
  src: url("assets/IRANSansWebBold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --canvas: #f8f7f4;
  --paper: #fff;
  --ink: #202325;
  --muted: #565e62;
  --line: #deded8;
  --night: #191c1f;
  --copper: #f1ad81;
  --rust: #8c3e20;
  --radius: 16px;
  font-family: IRANSans, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.8;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.45; }
address { font-style: normal; }
:focus-visible { outline: 3px solid #c46e42; outline-offset: 4px; }
:target { scroll-margin-top: 2rem; }
.wrap { width: min(100% - 64px, 1200px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink);
}

.site-header { position: relative; z-index: 2; background: var(--canvas); border-bottom: 1px solid var(--line); }
.nav-row { position: relative; min-height: 84px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 700; white-space: nowrap; flex-shrink: 0; line-height: 1.45; }
.brand img { border-radius: 9px; }
.brand small { display: block; text-align: start; direction: rtl; font: 600 .65rem/1.5 system-ui, sans-serif; letter-spacing: .14em; }
.desktop-nav { display: flex; gap: clamp(12px, 2vw, 28px); align-items: center; font-size: .9rem; }
.desktop-nav a { position: relative; color: var(--muted); white-space: nowrap; padding-block: 10px; }
.desktop-nav a[aria-current], .desktop-nav a:hover { color: var(--rust); }
.desktop-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 3px;
  height: 2px;
  background: var(--rust);
  border-radius: 2px;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.search-tools { position: relative; }
.search-tools summary, .menu-toggle {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  list-style: none;
}
.search-tools summary::-webkit-details-marker { display: none; }
.search-icon { display: block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 6px; height: 2px; position: absolute; top: 10px; left: 9px; transform: rotate(45deg); background: currentColor; }
.search-form { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 6px; gap: 8px; }
.search-tools .search-form { position: absolute; inset-inline-end: 0; top: 55px; width: min(310px, 78vw); box-shadow: 0 10px 30px #2125291a; }
.search-form input { min-width: 0; flex: 1; padding: 7px 9px; border: 0; border-radius: 6px; background: var(--canvas); color: var(--ink); }
.search-form button { display: grid; place-items: center; width: 44px; border: 0; border-radius: 7px; background: var(--night); color: #fff; }
.menu-toggle, .mobile-nav { display: none; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--copper);
  color: var(--night);
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button:hover { background: #ffc6a4; }
.button-dark { background: var(--night); color: #fff; }
.button-dark:hover { background: #40464b; }
.button-outline { color: #fff; border-color: #6c6b68; background: transparent; }
.button-outline:hover { background: #fff; color: var(--night); }
.button-light { background: var(--paper); border-color: var(--line); }
.button-light:hover { background: var(--canvas); }

.hero { overflow: hidden; background: var(--night); color: #fff; }
.hero-inner {
  min-height: 495px;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 84px);
  padding-block: clamp(32px, 5vw, 64px);
}
.hero-copy h1 { font-size: clamp(2.6rem, 5.6vw, 5.1rem); line-height: 1.22; letter-spacing: -.045em; }
.hero-copy em { color: var(--copper); font-style: normal; }
.hero-copy p { margin-block: 24px 28px; color: #dddedd; font-size: clamp(1rem, 1.55vw, 1.25rem); line-height: 2.1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  border: 1px solid #ffffff29;
  background: #292729;
  aspect-ratio: 1.38;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 68%, #1617197d); }
.hero-photo figcaption { position: absolute; z-index: 1; inset-inline-start: 14px; bottom: 14px; padding: 4px 11px; border-radius: 6px; background: #191c1fe6; color: #fff; font-size: .82rem; }

.products-section { padding-block: clamp(46px, 6vw, 79px); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 24px; }
.section-heading h2, .company h2, .holding h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
.section-heading p, .holding p { margin-top: 6px; color: var(--muted); }
.text-link { color: var(--rust); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

.product-grid, .catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product-card, .catalog-card, .post-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.product-card { display: block; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: #b97856; box-shadow: 0 9px 21px #2623220f; }
.product-photo { overflow: hidden; }
.product-photo img, .catalog-card > img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.product-photo img { transition: transform .3s; }
.product-card:hover img { transform: scale(1.035); }
.product-copy, .catalog-card > div { padding: 17px; }
.product-copy h3, .catalog-card h2 { font-size: 1rem; }
.product-copy p, .catalog-card p {
  margin-top: 6px;
  color: var(--muted);
  text-align: right;
  font: .85rem/1.5 system-ui, sans-serif;
}

.company { background: #eeede8; border-block: 1px solid var(--line); }
.company-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: stretch; padding-block: clamp(36px, 5vw, 70px); }
.company-copy p { max-width: 60ch; color: var(--muted); margin-block: 6px 15px; }
.company-copy h3 { font-size: 1.15rem; margin-top: 19px; }
.experience { background: var(--night); color: #fff; border-radius: var(--radius); display: grid; justify-items: center; align-content: center; min-height: 200px; }
.experience strong { color: var(--copper); font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1.2; direction: ltr; }
.experience span { font-size: .62em; }
.holding { padding-block: clamp(40px, 5vw, 65px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

.interior-title { background: var(--night); color: #fff; padding-block: clamp(34px, 6vw, 70px); }
.interior-title h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.interior-title p { margin-top: 8px; color: #dddedd; }
.catalog, .post-grid, .interior-copy { margin-block: 34px clamp(48px, 7vw, 92px); }
.catalog-card { display: flex; flex-direction: column; }
.catalog-card > div { flex: 1; display: flex; flex-direction: column; align-items: start; gap: 8px; }
.catalog-card .button { margin-top: auto; white-space: normal; }
.catalog-card:target, .post-grid article:target { outline: 2px solid var(--rust); outline-offset: 3px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.post-grid article, .interior-copy { padding: clamp(19px, 4vw, 40px); }
.post-grid article img { border-radius: 9px; margin-bottom: 15px; }
.post-grid h2, .interior-copy h2 { font-size: 1.25rem; }
.post-grid p, .interior-copy p { color: var(--muted); margin-block: 8px; }
.interior-copy { max-width: 800px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.interior-copy h2:not(:first-child) { margin-top: 25px; }
.interior-copy .button { margin-top: 12px; }
.contact address { margin-top: 10px; line-height: 2.2; overflow-wrap: anywhere; }
.contact address a { color: var(--rust); text-decoration: underline; }
[data-search] .search-form { margin-bottom: 19px; }
[data-search-results] { padding-inline-start: 22px; }
[data-search-results] a { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding-top: 38px; color: #eee; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr .83fr; gap: 25px; padding-bottom: 26px; }
.footer-grid h2 { font-size: 1rem; margin-bottom: 13px; }
.footer-grid p, .footer-grid address, .footer-posts { font-size: .9rem; color: #c6cbcc; overflow-wrap: anywhere; }
.footer-brand p { margin-top: 12px; }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--copper); }
.footer-posts { list-style: none; padding: 0; margin: 0; }
.footer-posts li + li { margin-top: 8px; }
.footer-posts a { display: flex; align-items: center; gap: 9px; }
.footer-posts img { border-radius: 6px; flex-shrink: 0; }
.footer-posts small { display: block; font-size: .76rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 72px)); gap: 6px; }
.gallery a { border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; height: 58px; object-fit: cover; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #ffffff25; padding-block: 16px; color: #c6cbcc; font-size: .85rem; }
.to-top, .gallery-close {
  background: var(--night);
  color: #fff;
  border: 1px solid #ffffff50;
  border-radius: 9px;
  width: 44px;
  height: 44px;
}
.to-top { position: fixed; z-index: 1; bottom: 16px; inset-inline-end: 16px; }
.gallery-view { position: fixed; inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: calc(100vw - 28px); padding: 0; border: 0; border-radius: 14px; }
.gallery-view::backdrop { background: #000b; }
.gallery-view img { max-height: 82vh; object-fit: contain; }
.gallery-close { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 1.4rem; }

@media (max-width: 910px) {
  .wrap { width: min(100% - 40px, 1200px); }
  .nav-row { min-height: 70px; }
  .desktop-nav { display: none; }
  .has-js .menu-toggle { display: grid; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .has-js .mobile-nav { position: absolute; z-index: 1; inset-inline: 0; top: calc(100% + 6px); box-shadow: 0 10px 25px #2125291a; }
  .mobile-nav a { padding: 8px 10px; border-radius: 6px; }
  .mobile-nav a[aria-current], .mobile-nav a:hover { color: var(--rust); background: var(--canvas); }
  .hero-inner { min-height: auto; }
  .product-grid, .catalog, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-cta { display: none; }
  .header-actions { gap: 6px; }
  .hero-inner, .company-layout, .post-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 24px; }
  .hero-copy p { margin-block: 14px 18px; }
  .hero-photo { aspect-ratio: 1.55; }
  .product-grid, .catalog, .footer-grid { gap: 11px; }
  .product-copy, .catalog-card > div { padding: 11px; }
  .product-copy h3, .catalog-card h2 { font-size: .92rem; }
  .footer-grid { gap: 22px 14px; }
}

@media (max-width: 380px) {
  .catalog { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media (max-width: 910px) {
  html:not(.has-js) .nav-row { flex-wrap: wrap; padding-block: 11px; }
  html:not(.has-js) .mobile-nav { width: 100%; }
}
