/* Mehrbood theme 2.1: new navy brand, logo with tagline, mobile quick links,
   photo-backed sections, certificates. Loaded after main.css. */

:root {
	--c-primary-d: color-mix(in srgb, var(--c-primary) 78%, #000);
	--c-primary-soft: color-mix(in srgb, var(--c-primary) 9%, transparent);
	--c-accent: color-mix(in srgb, var(--c-primary) 35%, #fff);
	--c-dark-2: color-mix(in srgb, var(--c-dark) 88%, #fff);
	--c-error: #c62828;
	--shadow: 0 10px 30px rgba(0, 38, 58, .09);
}

/* Brand tints that were hard-coded in red */
.download__icon, .info-card__icon { background: var(--c-primary-soft); }
.field.has-error input, .field.has-error textarea, .question.has-error .rating { border-color: var(--c-error); box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.form-msg.is-error, .alert--error { color: var(--c-error); }
.about-band__media { background: linear-gradient(135deg, var(--c-primary), var(--c-dark)); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 38, 58, .1); }

/* Dark sections: navy-on-navy needs light accents */
.section--dark .accent-line { background: var(--c-accent); }
.section--dark .btn--primary { background: #fff; color: var(--c-primary); }
.section--dark .btn--primary:hover { background: var(--c-accent); color: var(--c-dark); }
.cta-band .btn--light:hover { background: var(--c-dark); }

/* ---------- Logo: wordmark + line + tagline ---------- */
.site-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; flex: none; color: var(--c-primary); line-height: 1; }
.site-logo img { height: 34px; width: auto; }
.site-logo__tag { display: block; padding-top: 4px; border-top: 1px solid currentColor; font-size: 9px; font-weight: 500; line-height: 1.5; white-space: nowrap; letter-spacing: 0; }
@media (min-width: 768px) { .site-logo img { height: 38px; } .site-logo__tag { font-size: 10px; } }
@media (min-width: 1024px) { .site-logo img { height: 42px; } .site-logo__tag { font-size: 10.5px; } }
.main-nav__head .site-logo img { height: 32px; }
.site-logo--footer { color: #c9d3da; }
.site-logo--footer img { height: 44px; filter: brightness(0) invert(1); }
.site-logo--footer .site-logo__tag { font-size: 11px; }

/* ---------- Header ---------- */
.lang-switch__short { display: none; }
.lang-switch--header a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: var(--radius); color: var(--c-text); }
.lang-switch--header a:hover { background: var(--c-gray); color: var(--c-primary); }
@media (max-width: 1099px) {
	.header-tools .lang-switch--header { display: inline-flex; padding: 0; }
	.lang-switch--header .ic, .lang-switch--header .lang-switch__full { display: none; }
	.lang-switch--header .lang-switch__short { display: inline; font-size: 13px; font-weight: 700; }
}
@media (max-width: 767px) {
	.header-catalog { display: none !important; }
	.header-inner { gap: 8px; }
}

/* Quick links row (products / contact) under the header on phones and tablets */
.header-quick { display: none; }
@media (max-width: 1099px) {
	.header-quick { display: block; border-top: 1px solid var(--c-line); background: #fff; }
	.header-quick__inner { display: grid; grid-template-columns: 1fr 1fr; }
	.header-quick a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; font-size: 14px; font-weight: 500; color: var(--c-text); }
	.header-quick a + a { border-inline-start: 1px solid var(--c-line); }
	.header-quick a .ic { width: 17px; height: 17px; color: var(--c-primary); }
	.header-quick a:hover, .header-quick a:focus-visible { color: var(--c-primary); background: var(--c-gray); }
}

/* ---------- Page intro on a darkened photo ---------- */
.page-intro--media { position: relative; isolation: isolate; overflow: hidden; color: #fff; border-bottom: 0; background: var(--c-dark); }
.page-intro__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-intro--media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 20, 31, .78) 0%, rgba(4, 20, 31, .62) 55%, rgba(4, 20, 31, .82) 100%); }
[dir="rtl"] .page-intro--media::before { background: linear-gradient(270deg, rgba(4, 20, 31, .86) 0%, rgba(4, 20, 31, .66) 55%, rgba(4, 20, 31, .5) 100%); }
[dir="ltr"] .page-intro--media::before { background: linear-gradient(90deg, rgba(4, 20, 31, .86) 0%, rgba(4, 20, 31, .66) 55%, rgba(4, 20, 31, .5) 100%); }
.page-intro--media .page-intro__title { color: #fff; }
.page-intro--media .page-intro__text { color: rgba(255, 255, 255, .88); }
.page-intro--media .breadcrumbs ol, .page-intro--media .breadcrumbs a { color: rgba(255, 255, 255, .78); text-decoration-color: rgba(255, 255, 255, .4); }
.page-intro--media .breadcrumbs li + li::before { color: rgba(255, 255, 255, .45); }
.page-intro--media .product-search input { background: #fff; }
.page-intro--home.page-intro--media { padding-block: 56px 64px; }
@media (min-width: 1024px) { .page-intro--home.page-intro--media { padding-block: 88px 104px; } .page-intro--media:not(.page-intro--home) { padding-bottom: 72px; } }
.page-intro--media .btn--primary { background: #fff; color: var(--c-primary); }
.page-intro--media .btn--primary:hover { background: var(--c-accent); color: var(--c-dark); }

/* ---------- Hero slider without the stats box ---------- */
.hero__caption { bottom: 48px; }
.hero__dots { bottom: 56px; }
@media (min-width: 1024px) { .hero__caption { bottom: 72px; } .hero__dots { bottom: 80px; } }
.hero__slide::after { background: linear-gradient(0deg, rgba(4, 20, 31, .7), rgba(4, 20, 31, 0) 60%); }
.hero + .section { padding-top: 64px; }
@media (min-width: 1024px) { .hero + .section { padding-top: 88px; } }

/* ---------- Category photo tiles ---------- */
.tile { height: 100%; }
.tile__link { position: relative; display: flex; align-items: flex-end; height: 100%; min-height: 320px; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-dark); color: #fff; isolation: isolate; }
.tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 20, 31, .9) 0%, rgba(4, 20, 31, .35) 55%, rgba(4, 20, 31, .08) 100%); transition: background .3s; }
.tile__link:hover { color: #fff; }
.tile__link:hover .tile__img { transform: scale(1.05); }
.tile__body { display: flex; flex-direction: column; gap: 6px; padding: 22px; width: 100%; }
.tile__count { align-self: flex-start; font-size: 12px; padding: 2px 10px; border-radius: 20px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.tile__title { margin: 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.6; color: #fff; }
.tile__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.tile__more .ic { width: 16px; height: 16px; transition: transform .2s; }
.tile__link:hover .tile__more .ic { transform: translateX(-4px); }
[dir="ltr"] .tile__link:hover .tile__more .ic { transform: translateX(4px); }
@media (min-width: 1024px) { .tile__link { min-height: 400px; } }
.strip .tile__link { min-height: 360px; }
@media (min-width: 1024px) { .strip .tile__link { min-height: 420px; } }
.tiles .tile__link { min-height: 300px; }

/* Products page: category heading on its photo */
.cat-block__head--media { position: relative; isolation: isolate; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); color: #fff; background: var(--c-dark); }
.cat-block__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cat-block__head--media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 20, 31, .55), rgba(4, 20, 31, .85)); }
[dir="ltr"] .cat-block__head--media::before { background: linear-gradient(270deg, rgba(4, 20, 31, .55), rgba(4, 20, 31, .85)); }
.cat-block__head--media .cat-block__title a, .cat-block__head--media .link-arrow { color: #fff; }
.cat-block__head--media .cat-block__desc { color: rgba(255, 255, 255, .85); }
@media (min-width: 1024px) { .cat-block__head--media { padding: 44px 40px; min-height: 220px; align-content: end; } }

/* ---------- Factory / company section ---------- */
.company__grid { display: grid; gap: 32px; align-items: center; }
.company__media { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--c-gray-2); }
.company__img { width: 100%; height: 100%; object-fit: cover; }
.company__title { font-size: clamp(24px, 3vw, 36px); }
.company__text { color: var(--c-muted); margin-bottom: 26px; max-width: 560px; }
@media (min-width: 1024px) {
	.company__grid { grid-template-columns: 1fr 1fr; gap: 88px; }
	.company__media { aspect-ratio: 5 / 5.4; }
	.company--about .company__grid { grid-template-columns: 1fr 1.1fr; }
}

/* ---------- Certificates ---------- */
.section-lead { max-width: 720px; margin: -16px 0 28px; color: var(--c-muted); }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(4, 1fr); } }
.cert { display: flex; flex-direction: column; padding: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); text-align: start; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.cert:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cert__media { display: block; padding: 18px 18px 0; color: inherit; }
.cert__img { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--c-gray); border-radius: var(--radius); color: var(--c-primary); overflow: hidden; }
.cert__img img { width: 100%; height: 100%; object-fit: contain; }
.cert__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; flex: 1; }
.cert__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.7; }
.cert__issuer { margin: 0; font-size: 13px; color: var(--c-muted); }
.cert__meta { display: grid; gap: 4px; margin: 4px 0 0; font-size: 13px; }
.cert__meta div { display: flex; justify-content: space-between; gap: 10px; padding-block: 4px; border-bottom: 1px dashed var(--c-line); }
.cert__meta dt { color: var(--c-muted); }
.cert__meta dd { margin: 0; font-weight: 500; text-align: end; }
.cert__text { margin: 4px 0 0; font-size: 13px; color: var(--c-muted); line-height: 1.85; }
.cert__body .btn { align-self: flex-start; margin-top: auto; }
.cert-grid--page { grid-template-columns: 1fr; }
@media (min-width: 560px) { .cert-grid--page { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cert-grid--page { grid-template-columns: repeat(3, 1fr); } }
.empty-state { padding: 48px 24px; background: #fff; border-radius: var(--radius); text-align: center; color: var(--c-muted); }
.certs-content { margin-top: 48px; }

@media (max-width: 1023px) {
	[dir] .page-intro--media::before { background: rgba(4, 20, 31, .72); }
}

/* ---------- English (LTR) ---------- */
html[lang^="en"] { --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html[lang^="en"] body { line-height: 1.7; }
html[lang^="en"] .site-logo__tag { letter-spacing: .02em; }

/* Footer contact icons on the dark background */
.site-footer .contact-list .ic { color: var(--c-accent); }
