@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --yellow: #ffd101; /* exact background of the hero tire photo */
  --navy: #12304d;
  --navy-deep: #0d2439;
  --blue: #0a6ebd;
  --blue-dark: #07548f;
  --tint: #f2f5f8;
  --line: #d5dce3;
  --ink: #14202b;
  --muted: #52606d;
  --white: #fff;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --font: Vazirmatn, Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.9 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.hero :focus-visible, .page-head :focus-visible { outline-color: var(--ink); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 960px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { top: 8px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-head { margin-block-end: clamp(24px, 3vw, 40px); }
.section-head p { margin-block-start: 8px; color: var(--muted); }
.tint { background: var(--tint); }
.on-dark { background: var(--navy); color: var(--white); }
.on-dark .section-head p { color: #c6d3df; }
.wide-photo { width: 100%; border-radius: var(--radius); margin-block-end: clamp(28px, 4vw, 48px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--white); }
.bar { display: flex; align-items: stretch; min-height: 68px; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 900; font-size: 1.4rem; margin-inline-end: 20px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: stretch; flex: 1; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; display: flex; }
.top { display: flex; align-items: center; gap: 8px; padding-inline: 16px; color: var(--white); background: none; border: 0; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.top:hover, li:hover > .top, .top[aria-expanded="true"] { background: var(--navy-deep); }
.home { background: var(--blue); padding-inline: 20px; }
.home:hover { background: var(--blue-dark) !important; }
.home svg { width: 22px; height: 22px; }
.chev { width: 11px; height: 11px; transition: transform .15s; }
.top[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drop { position: absolute; top: 100%; inset-inline-start: 0; min-width: 250px; background: var(--white); color: var(--ink); padding: 10px; border-radius: 0 0 var(--radius) var(--radius); display: none; box-shadow: 0 14px 30px rgb(13 36 57 / .25); }
li:hover > .drop, li:focus-within > .drop, .top[aria-expanded="true"] + .drop { display: block; }
.drop strong { display: block; padding: 10px 12px 2px; font-size: .875rem; color: var(--muted); font-weight: 700; }
.drop a { display: block; padding: 7px 12px; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.6; border-radius: 4px; }
.drop a:hover { background: var(--tint); }
.call-top { margin-inline-start: auto; display: flex; align-items: center; color: var(--yellow); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1.05rem; }
.menu-btn { display: none; margin-inline-start: auto; align-self: center; background: none; border: 2px solid var(--white); border-radius: 6px; color: var(--white); font: 700 .95rem var(--font); padding: 7px 14px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 8px 24px; background: var(--blue); color: var(--white); border: 0; border-radius: 6px; font: 700 1.0625rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: var(--navy); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffe04d; }
.btn-line { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* Hero: the photo's own yellow continues across the page */
.hero { background: var(--yellow); color: var(--ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.hero-photo img { height: clamp(440px, 42vw, 620px); width: auto; max-width: none; }
.hero-text { padding: 40px clamp(24px, 4vw, 64px); justify-self: center; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.75rem); line-height: 1.25; }
.hero-text > p { margin-block: 16px 28px; font-size: 1.2rem; }
.finder { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.finder label { width: 100%; font-weight: 700; }
.finder select { flex: 1 1 220px; border-color: var(--ink); }
select, input[type="search"], input[type="text"] { min-height: 48px; padding: 6px 12px; background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 6px; font: 400 1.0625rem var(--font); }

/* Brands */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.brand-panel { color: inherit; text-decoration: none; display: block; }
.brand-panel img { width: 100%; border-radius: var(--radius); }
.brand-panel h3 { margin-block-start: 16px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 900; }
.brand-panel:hover h3 { color: var(--blue-dark); }
.brand-panel p { color: var(--muted); }

/* City index */
.cities { display: flex; flex-wrap: wrap; gap: 4px 30px; list-style: none; margin: 0 0 36px; padding: 0; font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.5; }
.cities a { color: var(--white); text-decoration: none; }
.cities a:hover { color: var(--yellow); }

/* About strip */
.about-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-strip p { margin-block: 12px 24px; }
.types { display: grid; grid-template-columns: 1fr 1fr 1fr; list-style: none; margin: 0; padding: 0; border-block-start: 3px solid var(--ink); }
.types li { padding-block: 14px; border-block-end: 1px solid var(--line); font-weight: 700; font-size: 1.15rem; }

/* Page title */
.page-head { background: var(--yellow); color: var(--ink); padding-block: clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.page-head p { margin-block-start: 6px; }

/* Dealers */
.dealer-tools { position: sticky; top: 68px; z-index: 10; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 8px 18px rgb(13 36 57 / .07); padding-block: 14px; }
.dealer-tools .wrap { display: grid; grid-template-columns: 1fr 260px auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 2px; font-weight: 700; font-size: .95rem; }
.field input, .field select { width: 100%; font-weight: 400; }
.count { margin: 0; min-height: 48px; display: flex; align-items: center; color: var(--muted); font-size: 1rem; white-space: nowrap; }
.province { padding-block-start: 40px; }
.province h2 { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); padding-block-end: 8px; border-block-end: 2px solid var(--ink); }
.dealer { display: grid; grid-template-columns: 170px minmax(0, 1fr) 230px; gap: 8px 28px; padding-block: 20px; border-block-end: 1px solid var(--line); align-items: start; }
.dealer h3 { font-size: 1.5rem; font-weight: 900; line-height: 1.4; }
.dealer .who { font-weight: 700; }
.dealer .addr { margin: 0; line-height: 1.75; color: var(--muted); }
.dealer .tel { display: grid; gap: 4px; }
.dealer .tel .btn { font-size: 1rem; padding: 6px 10px; }
.dealer .fax { font-size: .875rem; color: var(--muted); text-align: center; }
.empty { padding-block: 40px; }
.empty p { margin-block-end: 14px; }
.dealer-after { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 40px 72px; }

/* Products */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.jump a { color: var(--ink); padding: 5px 16px; box-shadow: inset 0 0 0 2px var(--ink); border-radius: 6px; text-decoration: none; font-weight: 700; }
.jump a:hover { background: var(--ink); color: var(--white); }
.brand-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.brand-row + .brand-row { margin-block-start: clamp(40px, 5vw, 72px); }
.brand-row > img { width: 100%; border-radius: var(--radius); }
.brand-row .logo { max-height: 52px; width: auto; margin-block-end: 16px; }
.brand-row p { margin-block-end: 16px; }
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.patterns figure { margin: 0; }
.patterns img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center bottom; border-radius: var(--radius); }
.patterns figcaption { padding-block-start: 12px; font-weight: 700; font-size: 1.25rem; direction: ltr; text-align: end; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); margin-block-end: 28px; }
.segments img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: right; border-radius: var(--radius); margin-block-end: 12px; }
.note { background: var(--tint); border-radius: var(--radius); padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* Size reader */
.reader-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.reader-input { display: grid; gap: 6px; margin-block-start: 22px; font-weight: 700; max-width: 340px; }
.reader-input input { width: 100%; border-color: var(--ink); direction: ltr; text-align: left; font-size: 1.25rem; font-weight: 700; }
.reader-msg { color: #a3210f; margin: 6px 0 0; min-height: 1.9em; font-size: 1rem; }
.decode { margin: 8px 0 0; border-block-start: 2px solid var(--ink); }
.decode div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.decode dt { font-weight: 700; }
.decode dd { margin: 0; color: var(--ink); }
.tire-fig { width: 100%; height: auto; }
.fig-tire { fill: var(--ink); }
.fig-tread { fill: none; stroke: var(--tint); stroke-width: 8; stroke-dasharray: 3 8; }
.fig-rim { fill: #dfe5ea; stroke: #9aa6b1; stroke-width: 3; }
.fig-spokes { fill: none; stroke: #b4bec8; stroke-width: 14; stroke-linecap: round; }
.fig-dim { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.fig-dim-side { stroke: var(--yellow); }
.fig-label { fill: var(--ink); font: 700 17px var(--font); }
.fig-on-rim { paint-order: stroke; stroke: #dfe5ea; stroke-width: 6px; stroke-linejoin: round; }

/* Forms page */
.doc-group { display: grid; grid-template-columns: 200px 1fr; gap: 8px 40px; padding-block: 28px; }
.doc-group + .doc-group { border-block-start: 2px solid var(--ink); }
.doc-group:first-child { padding-block-start: 0; }
.doc-group ul { list-style: none; margin: 0; padding: 0; }
.doc-group li + li { border-block-start: 1px solid var(--line); }
.doc-group a { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; color: var(--ink); text-decoration: none; font-weight: 700; }
.doc-group a:hover { color: var(--blue-dark); text-decoration: underline; }
.doc-group small { font-weight: 400; color: var(--muted); white-space: nowrap; font-size: .875rem; }

/* About and contact */
.prose p + p { margin-block-start: 14px; }
.contact-rows { margin: 0; border-block-start: 3px solid var(--ink); }
.contact-rows div { display: grid; grid-template-columns: 140px 1fr; padding-block: 14px; border-block-end: 1px solid var(--line); align-items: baseline; }
.contact-rows dt { font-weight: 700; }
.contact-rows dd { margin: 0; font-size: 1.2rem; font-weight: 700; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c6d3df; font-size: 1rem; }
.foot-call { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: clamp(32px, 4vw, 48px); }
.site-footer .foot-call h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; margin: 0; }
.site-footer .num { color: var(--yellow); font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; text-decoration: none; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-block: 32px 44px; position: relative; }
.foot::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); height: 1px; background: #2c4660; }
.site-footer h2 { font-size: 1.05rem; color: var(--white); margin-block-end: 6px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #c6d3df; }
.site-footer a:hover { color: var(--yellow); }

@media (max-width: 1060px) {
  .call-top { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--navy); max-height: calc(100vh - 68px); overflow-y: auto; padding-block-end: 12px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav li { display: block; }
  .top { width: 100%; padding: 14px var(--gutter); justify-content: space-between; }
  .home { background: none; }
  .home::after { content: "خانه"; }
  .home svg { display: none; }
  .drop, li:hover > .drop, li:focus-within > .drop { display: none; position: static; box-shadow: none; border-radius: 0; }
  .top[aria-expanded="true"] + .drop { display: block; }
  .hero-photo img { height: clamp(320px, 38vw, 440px); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { display: flex; justify-content: flex-start; }
  .hero-photo img { height: 250px; }
  .hero-text { padding: 8px var(--gutter) 40px; justify-self: stretch; }
  .brands, .about-strip, .brand-row, .two { grid-template-columns: 1fr; }
  .dealer-tools { position: static; }
  .dealer-tools .wrap { grid-template-columns: 1fr; }
  .count { min-height: 0; }
  .dealer { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
  .patterns { grid-template-columns: repeat(2, 1fr); }
  .reader-grid { grid-template-columns: 1fr; }
  .reader-input { max-width: none; }
  .doc-group { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .contact-rows div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chev { transition: none; }
}
