/*
Theme Name: Sama Salt
Theme URI: https://samasalt.com/
Author: M. Eltayeb
Description: Bilingual (English / Arabic, RTL-ready) corporate theme for Sama Salt Production Company — products, price inquiry and contact forms built in. No external requests.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: samasalt
*/

/* ---------- Fonts (self-hosted Cairo, SIL OFL) ---------- */
@font-face {
	font-family: "Cairo";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(assets/fonts/cairo-arabic.woff2) format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Cairo";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(assets/fonts/cairo-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--navy: #0b2f55;
	--navy-deep: #082340;
	--blue: #1d7fae;
	--blue-bright: #2e9cca;
	--sky: #e6f3f9;
	--sky-soft: #f4f9fc;
	--ink: #1c2b3a;
	--muted: #586b7c;
	--line: #dbe6ed;
	--white: #fff;
	--coral: #c9684d;
	--ok: #1b7a4b;
	--err: #b3382c;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(11, 47, 85, .08);
	--container: 1160px;
	--font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.3em; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 20px; font-size: .95rem; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .75); color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.link-more { font-weight: 700; text-decoration: none; color: var(--blue); white-space: nowrap; }
.link-more::after { content: " →"; }
[dir="rtl"] .link-more::after { content: " ←"; }
.link-more:hover { text-decoration: underline; }

.eyebrow {
	display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--blue);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand__link, .brand--footer { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; color: var(--navy); }
[dir="rtl"] .brand__name { letter-spacing: 0; font-size: 1.35rem; }
.brand__sub { font-size: .74rem; color: var(--muted); font-weight: 600; }
.custom-logo { max-height: 56px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a {
	display: block; padding: 10px 12px; border-radius: 8px;
	color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none;
}
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current-menu-ancestor > a { color: var(--blue); }
.site-nav .menu .current-menu-item > a { background: var(--sky-soft); }

.submenu-toggle {
	width: 26px; height: 26px; margin-inline-start: -8px; padding: 0;
	border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 6px;
}
.submenu-toggle::before {
	content: ""; display: block; width: 7px; height: 7px; margin: 0 auto 3px;
	border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
[dir="rtl"] .submenu-toggle::before { transform: rotate(-45deg); }

.site-nav .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; z-index: 10;
	min-width: 250px; margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu,
.site-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { font-weight: 500; }
.site-nav .sub-menu a:hover { background: var(--sky-soft); }

.site-nav__extra { display: flex; align-items: center; gap: 14px; }
.lang-link {
	font-weight: 700; text-decoration: none; color: var(--navy);
	padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; line-height: 1.3;
}
.lang-link:hover { border-color: var(--blue); color: var(--blue); }

.nav-toggle {
	display: none; width: 46px; height: 46px; padding: 0;
	border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; margin: 0 auto;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #f1f8fb; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(247, 251, 253, .96) 0%, rgba(247, 251, 253, .82) 42%, rgba(247, 251, 253, 0) 72%);
}
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(247, 251, 253, .96) 0%, rgba(247, 251, 253, .82) 42%, rgba(247, 251, 253, 0) 72%); }
[dir="rtl"] .hero__art { transform: scaleX(-1); }
.hero__inner { padding-block: clamp(72px, 11vw, 150px) clamp(150px, 20vw, 250px); }
.hero__kicker { font-weight: 700; color: var(--blue); margin-bottom: 10px; font-size: .95rem; }
.hero__title {
	font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: .01em; margin-bottom: 18px;
	position: relative; padding-bottom: 22px; max-width: 14ch;
}
[dir="rtl"] .hero__title { letter-spacing: 0; line-height: 1.35; }
.hero__title::after {
	content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
	width: 120px; height: 6px; border-radius: 3px; background: var(--blue-bright);
}
.hero__sub { max-width: 56ch; font-size: 1.12rem; color: var(--ink); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 30px 24px; border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__num { display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat__label { color: #b9d3e6; font-size: .96rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tint { background: var(--sky-soft); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 .7em; }
.section__head .section__title { margin: 0; }
.section__title--sm { font-size: 1.45rem; }
.lead { font-size: 1.12rem; color: var(--ink); max-width: 62ch; margin-bottom: 1.6em; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why__item { display: flex; gap: 16px; padding: 18px 20px; background: var(--sky-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.why__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--blue); }
.why__icon .icon { width: 28px; height: 28px; }
.why__title { font-size: 1.05rem; margin-bottom: .2em; }
.why__item p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.product-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c4dbe8; }
.product-card__media {
	display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--navy);
	background:
		radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .9) 0 11%, transparent 12%),
		linear-gradient(135deg, #d6ecf6 0%, #b4dcee 100%);
}
.product-card:nth-child(3n+2) .product-card__media { background: linear-gradient(135deg, #e7f3f9 0%, #cfe6f2 100%); }
.product-card:nth-child(3n) .product-card__media { background: linear-gradient(135deg, #f6e4dc 0%, #eccbbf 100%); color: #7a3b28; }
.product-card__media .icon { width: 84px; height: 84px; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.product-card__title { font-size: 1.2rem; margin: 0; }
.product-card__title a { color: inherit; text-decoration: none; }
.product-card__title a:hover { color: var(--blue); }
.product-card__text { color: var(--muted); font-size: .96rem; line-height: 1.65; margin: 0; }
.product-card .link-more { margin-top: auto; padding-top: 6px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #14507f); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: 48px; }
.cta__title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .2em; }
.cta p { margin: 0; color: #c7dcec; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 100%); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(32px, 4.5vw, 54px); }
.page-hero__title { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; margin: 0; position: relative; padding-bottom: 14px; }
.page-hero__title::after {
	content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
	width: 64px; height: 4px; border-radius: 3px; background: var(--blue-bright);
}
.page-hero__lead { margin: 18px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Content ---------- */
.entry { font-size: 1.05rem; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: 1.55rem; margin-top: 1.6em; }
.entry h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry > h2:first-child, .entry > h3:first-child { margin-top: 0; }
.entry li { margin-bottom: .55em; }
.entry strong { color: var(--navy); }
.entry img { border-radius: var(--radius); }

.ss-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-block: 0 1.6em; }
.ss-card { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-top: 5px solid var(--blue-bright); }
.ss-card h2, .ss-card h3 { margin-top: 0; font-size: 1.3rem; }
.ss-card > *:last-child { margin-bottom: 0; }
.ss-card--center { text-align: center; }
.ss-card--center .ss-card__badge { margin-inline: auto; }
.ss-card__badge {
	width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 16px;
	border-radius: 50%; background: var(--sky); color: var(--navy);
}
.ss-card__badge .icon { width: 44px; height: 44px; }

.ss-points { list-style: none; padding: 0; display: grid; gap: 14px; }
.ss-points li { margin: 0; padding: 18px 22px; background: var(--sky-soft); border: 1px solid var(--line); border-inline-start: 5px solid var(--blue-bright); border-radius: 10px; }

.ss-figure {
	display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius); margin: 0;
	background: linear-gradient(135deg, #d6ecf6, #b4dcee); color: var(--navy);
}
.ss-figure--warm { background: linear-gradient(135deg, #f6e4dc, #eccbbf); color: #7a3b28; }
.ss-figure .icon { width: 110px; height: 110px; }
.ss-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.ss-row:last-child { margin-bottom: 0; }
.ss-row--reverse > :first-child,
.ss-row--reverse > .wp-block-group__inner-container > :first-child { order: 2; }
.ss-row p:last-child { margin-bottom: 0; }
/* Classic themes wrap group blocks in an inner container: let the grid see its children. */
.ss-cards > .wp-block-group__inner-container,
.ss-row > .wp-block-group__inner-container { display: contents; }
.ss-card > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }
.ss-card > .wp-block-group__inner-container > h2 { margin-top: 0; font-size: 1.3rem; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.product__media {
	position: sticky; top: 100px; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
	border-radius: var(--radius); color: var(--navy);
	background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .9) 0 9%, transparent 10%), linear-gradient(135deg, #d6ecf6, #b4dcee);
}
.product__media .icon { width: 150px; height: 150px; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__cta { margin-top: 1.8em; }

/* ---------- Forms ---------- */
.form { margin: 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin: 0 0 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .98rem; }
.field__req { color: var(--err); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; color: var(--ink); background: #fff;
	padding: 12px 14px; border: 1.5px solid #c3d3de; border-radius: 10px; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input[type="file"] { padding: 10px 12px; cursor: pointer; background: var(--sky-soft); border-style: dashed; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 700; margin-inline-end: 12px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; cursor: pointer; }
.field__hint { display: block; margin-top: 6px; color: var(--muted); font-size: .88rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46, 156, 202, .18); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; font-weight: 600; border: 1px solid; }
.notice--ok { color: var(--ok); background: #eaf7f0; border-color: #b9e2cb; }
.notice--err { color: var(--err); background: #fcefed; border-color: #f0c5bf; }

.contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; padding: 22px; background: var(--sky-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card__icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; }
.info-card__icon .icon { width: 28px; height: 28px; }
.info-card__title { font-size: 1.1rem; margin-bottom: .3em; }
.info-card p { margin: 0; color: var(--ink); }
.info-card a { font-weight: 600; display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { background: #1f2c3f; color: #c3d0dd; font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-block: 56px 44px; }
.site-footer a { color: #e5eef6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: #9fb3c6; }
.brand--footer { margin-bottom: 14px; }
.site-footer__title { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__list--contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__list--contact .icon { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--blue-bright); }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.site-footer__bar p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; top: 100%; inset-inline: 0;
		flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 24px 24px;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		max-height: calc(100vh - 76px); overflow-y: auto;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.site-nav .menu > li > a { flex: 1; padding: 14px 4px; }
	.submenu-toggle { width: 44px; height: 44px; margin: 0; }
	.site-nav .sub-menu {
		position: static; display: none; width: 100%; min-width: 0; padding: 0 0 10px; padding-inline-start: 14px;
		border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
	}
	.site-nav .menu > li.is-open > .sub-menu { display: block; }
	.site-nav__extra { justify-content: space-between; padding-top: 6px; }
}

@media (max-width: 860px) {
	body { font-size: 16px; }
	.split, .contact, .product, .ss-row { grid-template-columns: 1fr; }
	.ss-row--reverse > :first-child,
	.ss-row--reverse > .wp-block-group__inner-container > :first-child { order: 0; }
	.product__media { position: static; aspect-ratio: 16 / 9; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 44px 32px; }
	.hero::after, [dir="rtl"] .hero::after { background: linear-gradient(180deg, rgba(247, 251, 253, .95) 0%, rgba(247, 251, 253, .85) 55%, rgba(247, 251, 253, 0) 85%); }
}

@media (max-width: 620px) {
	.container { padding-inline: 16px; }
	.stats__grid { grid-template-columns: 1fr; }
	.stat { padding: 18px 0; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
	.stat:first-child { border-top: 0; }
	.form__grid { grid-template-columns: 1fr; }
	.hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
	.brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Sama Builder helpers (classes used by the converted pages) ---------- */
.ss-underline .sb-heading { position: relative; padding-bottom: 16px; }
.ss-underline .sb-heading::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 84px; height: 5px; border-radius: 3px; background: var(--blue-bright); }
.ss-underline--lg .sb-heading { padding-bottom: 22px; line-height: 1.2; }
.ss-underline--lg .sb-heading::after { width: 120px; height: 6px; }
.ss-measure { max-width: 56ch; }
.sb-section.ss-pagehero { background-image: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 100%); border-bottom: 1px solid var(--line); }
.sb-section.ss-hero {
	background-image: linear-gradient(90deg, rgba(247, 251, 253, .96) 0%, rgba(247, 251, 253, .82) 42%, rgba(247, 251, 253, 0) 72%), url(assets/img/hero.svg);
	background-size: cover; background-position: center bottom;
}
[dir="rtl"] .sb-section.ss-hero { background-image: linear-gradient(270deg, rgba(247, 251, 253, .96) 0%, rgba(247, 251, 253, .82) 42%, rgba(247, 251, 253, 0) 72%), url(assets/img/hero.svg); }
.sb-section.ss-cta { background-image: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #14507f); }
.sb-section.ss-cta .se-dualbtn__b { color: #fff; border-color: rgba(255, 255, 255, .6); }
.sb-root .sb-col.ss-card { justify-content: flex-start; }
.sb-root .sb-col.ss-card .sb-heading a:hover { color: var(--blue); }
.sb-root .ss-card--center .ss-card__badge { margin-inline: auto; }
.sb-root .sb-text h3 { font-size: 1.1rem; margin: 0 0 .3em; }
.sb-root .sb-text .ss-points { margin: 0; }
.sb-root .ss-stats .sb-widget + .sb-widget { margin-top: 2px; }
.sama-builder-page .site-main { overflow-x: clip; }
@media (max-width: 860px) {
	.sb-section.ss-hero, [dir="rtl"] .sb-section.ss-hero { background-image: linear-gradient(180deg, rgba(247, 251, 253, .95) 0%, rgba(247, 251, 253, .85) 55%, rgba(247, 251, 253, 0) 85%), url(assets/img/hero.svg); }
}
