/* Frontend standards: shared sizing, readable copy, keyboard controls and RTL.
   Brand artwork, approved content and warehouse geometry use the original files. */
:root {
  --body-font: "Segoe UI", Arial, sans-serif;
  --font-latin: "Segoe UI", Arial, sans-serif;
  --font-local: "Peyda", Tahoma, "Segoe UI", Arial, sans-serif;
  --header-offset: 88px;
}

html {
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
}

html[dir="rtl"] body {
  font-family: var(--font-local);
  line-height: 1.9;
}

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; }
:lang(fa), :lang(ps) { font-family: var(--font-local); }
:lang(en) { font-family: var(--font-latin); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
input, textarea, select { min-width: 0; max-width: 100%; }
input, textarea { font-size: 1rem; }
textarea { resize: vertical; }
input[type="tel"], a[href^="tel:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
input[type="tel"] { text-align: start; }

.shell { width: min(calc(100% - 3rem), var(--shell)); }
.skip-link { inset-inline-start: 1rem; border-radius: .5rem; color: #102b56; }
.skip-link:focus { top: 1rem; outline: 3px solid #5eb5e6; }
.header-inner { gap: 1rem; }
#header .brand { width: clamp(185px, 17vw, 240px); max-width: 100%; }
.header-actions { gap: .5rem; flex-shrink: 0; }
#header .main-nav { gap: .85rem; font-size: .875rem; }
#header .lang-switch, #header .header-icon { min-width: 44px; min-height: 44px; }
#header .lang-switch { font-size: .875rem; padding: .5rem .75rem; }
#header .header-quote { min-height: 44px; font-size: .875rem; padding: .7rem 1rem; }
#header .dropdown-panel { left: auto; inset-inline-start: -1rem; min-width: 240px; }
#header .dropdown-panel a { min-height: 44px; white-space: normal; }
#header .nav-dropdown .dropdown-panel { display: none; }
#header .nav-dropdown .dropdown-panel.show { display: flex; }
.button, .about-signature-cta, .ez-return-button, .ez-context-link {
  min-height: 44px;
  font-size: .875rem;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.eyebrow { font-size: .875rem; line-height: 1.5; letter-spacing: .14em; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.section-heading > p,
#about .about-signature-copy p,
.ez15-chain-head p,
.ez15-chain-node p,
.service-strip > p,
.future-grid p,
.purpose-copy p,
.contact-top p,
.page-header p,
.about-block p,
.mission-grid p,
.product-summary-card p { font-size: 1rem; line-height: 1.8; }

.about-signature-copy { padding: clamp(1.5rem, 3.5vw, 3rem); }
#about .about-signature-timeline strong { color: #a5e5ff; }
#about .about-signature-timeline span { color: #c9dce9; font-size: .875rem; line-height: 1.5; }
.about-signature-plate span { font-size: .8125rem; }
.about-signature-plate strong { font-size: 1rem; }
.about-to-build { flex-wrap: wrap; }
.about-to-build span, .about-to-build a { font-size: .875rem; line-height: 1.6; }
.hero-v10 .hero-action-buttons .button { font-size: .875rem; }
.hero-v10 .hero-motto-text { font-size: 1rem; }
.ez15-chain-node strong { font-size: 1rem; }
.ez15-chain-foot p { font-size: .875rem; }
.catalog-controls { flex-wrap: wrap; gap: .5rem; }
.catalog-filter { min-height: 44px; font-size: .875rem; }
.catalog-count { font-size: .875rem; }
.machine-card { display: flex; flex-direction: column; gap: .375rem; }
.machine-card strong { line-height: 1.5; font-size: 1rem; }
.machine-card small { font-size: .875rem; }
.product-grid-v9 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card-copy { padding: 1rem; }
.product-card-copy h3 { font-size: 1.0625rem; line-height: 1.4; }
.product-card-copy p { font-size: .9375rem; line-height: 1.6; }
.product-card-copy > span { display: inline-block; font-size: .875rem; line-height: 1.6; margin-top: .5rem; }
.fineprint, .product-disclaimer, .construction-disclaimer, .modal-description,
.spec-status, .product-list-head p, .project-explore p, .products-explore p {
  font-size: .875rem;
  line-height: 1.7;
}
.product-thumbs { flex-wrap: wrap; }
.product-thumbs button { min-width: 64px; min-height: 64px; }
.product-specs { overflow-x: auto; }
.product-specs th, .product-specs td { font-size: .9375rem; overflow-wrap: anywhere; }
.service-tiles b { font-size: .875rem; line-height: 1.5; }
.partner-logo small, .partner-logo.special { font-size: .875rem; line-height: 1.5; }
.contact-details { font-size: 1rem; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-grid a:not(.footer-brand), .footer-grid strong { font-size: .9375rem; line-height: 1.7; }
.footer-grid a:not(.footer-brand) { min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom { font-size: .875rem; }
.dialog { max-height: calc(100dvh - 2rem); padding: 2rem; overscroll-behavior: contain; }
.dialog-close { min-width: 44px; min-height: 44px; right: auto; inset-inline-end: .75rem; }
.dialog h2 { padding-inline-end: 2rem; line-height: 1.4; }
.inquiry-dialog label { font-size: .9375rem; }
.inquiry-dialog input, .inquiry-dialog select, .inquiry-dialog textarea { font-size: 1rem; padding: .8rem; }
.inquiry-dialog select {
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, #5eb5e6 50%), linear-gradient(135deg, #5eb5e6 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
html[dir="rtl"] .inquiry-dialog select { background-position: 15px 50%, 20px 50%; }
.no-script { padding: 1rem; background: #eaf5fb; color: #102b56; text-align: center; }
.quote-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.quote-actions .button { flex: 1 1 190px; }
html[dir="rtl"] .contact-top p, html[dir="rtl"] .service-strip > p {
  border: 0;
  padding-inline: 0;
}
html[dir="rtl"] .about-signature-timeline { text-align: start; }
html[dir="rtl"] :is(h1,h2,h3) { letter-spacing: 0; }

/* Keep the artwork unchanged while exposing the real heading on desktop. */
@media (min-width: 601px) {
  .hero-v10 .hero-mobile-text {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 1280px) {
  #header .main-nav, #header .header-quote { display: none; }
  #header .menu-toggle { display: flex; }
  #header .header-inner { min-height: 76px; }
  #header .brand { width: 240px; }
  #header .mobile-menu { max-height: calc(100dvh - 76px); overscroll-behavior: contain; }
  #header .mobile-menu a { font-size: 1rem; min-height: 48px; }
}

@media (max-width: 1000px) {
  .product-grid-v9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-heading { flex-wrap: wrap; align-items: start; }
  .section-heading > p { max-width: 100%; }
  .machinery-heading .button { margin-inline: 0; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .standard-section { padding-block: 3rem; }
  .equipment-grid, .product-grid-v9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-signature { grid-template-columns: minmax(0, 1fr); }
  .about-signature-copy { padding: 1.5rem; }
  .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip { grid-template-columns: minmax(0, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .future-grid, .purpose-section, .contact-top, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-brand { margin-bottom: .75rem; }
  .footer-bottom { flex-direction: column; align-items: start; }
  .contact-top p, .contact-open { grid-column: auto; grid-row: auto; }
  .contact-top p { padding: 0; border: 0; }
  .contact-open { justify-self: start; }
  .contact-details { justify-content: start; gap: .5rem 1.5rem; }
  .future-image, .purpose-image { height: 260px; }
  .product-page-grid { grid-template-columns: minmax(0, 1fr); }
  .product-list-head { display: block; }
  .spec-status { display: inline-block; white-space: normal; margin-top: .75rem; }
  .page-container { width: calc(100% - 2rem); }
  .page-cta { flex-direction: column; align-items: start; }
  .overlay { padding: .75rem; }
  .dialog { width: 100%; padding: 1.5rem; max-height: calc(100dvh - 1.5rem); }
}

@media (max-width: 600px) {
  :root { --header-offset: 80px; }
  #header .header-inner { gap: .5rem; min-height: 76px; }
  #header .brand { width: 180px; max-width: none; flex: 1 1 180px; min-width: 90px; }
  #header .header-actions { gap: .25rem; }
  #header .lang-switch { font-size: .8125rem; padding: .5rem; }
  #header .snow-toggle { display: none; }
  .hero-v10 .hero-mobile-text p { font-size: .8125rem; line-height: 1.5; }
  .hero-v10 .hero-mobile-text h1 { font-size: clamp(1.5rem, 7vw, 2.25rem); }
  .hero-v10 .hero-action-buttons { width: 100%; }
  .hero-v10 .hero-action-buttons .button { flex: 1 1 160px; padding: .75rem 1rem; }
  .about-signature-copy h2 { font-size: 1.875rem; }
  .about-signature-timeline { gap: .75rem; }
  .about-signature-timeline > div { min-width: 0; }
  .about-signature-plate strong { font-size: .9375rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card.large { grid-column: auto; }
  .project-card { min-height: 250px; }
  .machine-card img { height: 120px; }
  .product-card-image { height: 150px; }
  .product-card-copy { padding: .875rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo.special { grid-column: 1 / -1; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .equipment-grid, .product-grid-v9 { grid-template-columns: minmax(0, 1fr); }
  .product-card-image { height: 190px; }
  .about-signature-copy { padding: 1.25rem; }
  .about-signature-timeline { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
