/*
Theme Name: Tal Al-Zaan Corporate
Theme URI: https://talalzaan.com/
Author: Tal Al-Zaan
Description: Arabic-first B2B corporate catalog child theme for Tal Al-Zaan General Trading Company.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.0.1
Template: twentytwentyfive
Text Domain: talalzaan
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-theme, full-site-editing, rtl-language-support, custom-colors, wide-blocks
*/

:root {
	--tz-primary: #123c2c;
	--tz-primary-dark: #09281d;
	--tz-accent: #d6a63c;
	--tz-blue: #3a91bd;
	--tz-ink: #17221d;
	--tz-muted: #64716b;
	--tz-surface: #f4f7f4;
	--tz-warm: #faf6ec;
	--tz-border: #d9e2dc;
	--tz-white: #ffffff;
	--tz-shadow: 0 18px 42px rgba(9, 40, 29, 0.11);
	--tz-gutter: clamp(1rem, 4vw, 2.5rem);
	--tz-section: clamp(4rem, 7vw, 6.5rem);
	--tz-transition: 180ms ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	max-width: 100%;
	overflow-x: clip;
	scroll-behavior: smooth;
}

body {
	background: var(--tz-white);
	color: var(--tz-ink);
	direction: rtl;
	font-family: Tahoma, "Segoe UI", Arial, sans-serif;
	font-synthesis-weight: none;
	margin: 0;
	max-width: 100%;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}

body,
p,
li,
h1,
h2,
h3,
h4 {
	overflow-wrap: break-word;
	word-break: normal;
}

a,
.wp-block-button__link,
.tz-card,
.tz-product-card,
.tz-sector-item {
	transition: color var(--tz-transition), background-color var(--tz-transition), border-color var(--tz-transition), box-shadow var(--tz-transition), transform var(--tz-transition);
}

a:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--tz-accent);
	outline-offset: 3px;
}

.wp-site-blocks {
	max-width: 100%;
	overflow-x: clip;
	padding: 0;
}

.tz-header {
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--tz-border);
	box-shadow: 0 8px 24px rgba(9, 40, 29, 0.06);
	padding-inline: var(--tz-gutter);
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .tz-header {
	top: 32px;
}

.tz-header-inner {
	align-items: center;
	display: flex;
	gap: clamp(0.85rem, 2vw, 1.5rem);
	justify-content: space-between;
	min-height: 82px;
}

.tz-brand {
	align-items: center;
	display: flex;
	flex: 0 1 330px;
	gap: 0.75rem;
	margin: 0;
	min-width: 0;
}

.tz-brand img {
	border-radius: 4px;
	display: block;
	height: 58px;
	object-fit: cover;
	width: 102px;
}

.tz-brand-copy {
	min-width: 0;
}

.tz-brand-name {
	color: var(--tz-primary);
	display: block;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
}

.tz-brand-en {
	color: var(--tz-muted);
	direction: ltr;
	display: block;
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 0.68rem;
	line-height: 1.35;
	margin-top: 0.18rem;
	unicode-bidi: isolate;
}

.tz-header .wp-block-navigation {
	color: var(--tz-primary);
	font-size: 0.9rem;
	font-weight: 700;
}

.tz-header .wp-block-navigation__container {
	gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.tz-header .wp-block-navigation-item__content {
	color: var(--tz-primary);
	text-decoration: none;
}

.tz-header .wp-block-navigation-item__content:hover {
	color: var(--tz-blue);
}

.tz-header-actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 0.65rem;
}

.tz-language {
	align-items: center;
	border: 1px solid var(--tz-border);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	min-height: 40px;
	padding: 0.3rem 0.65rem;
}

.tz-language select,
.tz-language .gt_selector,
.tz-language .goog-te-combo {
	background: transparent;
	border: 0;
	color: var(--tz-primary);
	font: inherit;
	max-width: 130px;
	outline: 0;
}

.tz-language .gt_switcher,
.tz-language .gt_switcher .gt_selected,
.tz-language .gt_switcher .gt_option {
	background: transparent;
	border: 0;
	box-shadow: none;
	font: inherit;
}

.tz-button-primary .wp-block-button__link,
.tz-header-cta .wp-block-button__link {
	background: var(--tz-accent);
	border: 1px solid var(--tz-accent);
	border-radius: 6px;
	color: var(--tz-primary-dark);
	font-weight: 800;
	line-height: 1.25;
	min-height: 46px;
	padding: 0.78rem 1.15rem;
	white-space: nowrap;
}

.tz-button-primary .wp-block-button__link:hover,
.tz-header-cta .wp-block-button__link:hover {
	background: #e3b84e;
	border-color: #e3b84e;
	box-shadow: 0 10px 24px rgba(214, 166, 60, 0.25);
	transform: translateY(-2px);
}

.tz-button-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 6px;
	color: var(--tz-white);
	font-weight: 800;
	min-height: 46px;
	padding: 0.78rem 1.15rem;
}

.tz-button-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: var(--tz-white);
	transform: translateY(-2px);
}

.tz-main {
	margin: 0;
}

.tz-hero {
	align-items: center;
	background-color: var(--tz-primary-dark);
	color: var(--tz-white);
	display: flex;
	min-height: min(720px, calc(100vh - 82px));
	overflow: hidden;
	padding: clamp(5rem, 10vw, 8rem) var(--tz-gutter);
	position: relative;
}

.tz-hero::before {
	background: linear-gradient(90deg, rgba(9, 40, 29, 0.97) 0%, rgba(18, 60, 44, 0.91) 48%, rgba(18, 60, 44, 0.45) 100%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.tz-hero .wp-block-cover__image-background {
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.tz-hero .wp-block-cover__inner-container {
	position: relative;
	width: 100%;
	z-index: 2;
}

.tz-hero-content {
	margin-inline: auto;
	max-width: 1180px;
	min-width: 0;
	width: 100%;
}

.tz-hero-content > * {
	max-width: 100%;
}

.tz-eyebrow,
.tz-kicker {
	align-items: center;
	color: var(--tz-accent);
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 800;
	gap: 0.55rem;
	margin: 0 0 1rem;
}

.tz-eyebrow::before,
.tz-kicker::before {
	background: currentColor;
	content: "";
	height: 2px;
	width: 34px;
}

.tz-hero h1 {
	color: var(--tz-white);
	font-size: clamp(2.65rem, 6vw, 5.4rem);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0;
	max-width: 820px;
}

.tz-hero-copy {
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(1.05rem, 1.55vw, 1.25rem);
	line-height: 1.85;
	margin: 1.35rem 0 0;
	max-width: 700px;
}

.tz-hero .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 2rem;
}

.tz-trust-band {
	background: var(--tz-primary);
	color: var(--tz-white);
	padding: 1.25rem var(--tz-gutter);
}

.tz-trust-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-inline: auto;
	max-width: 1180px;
}

.tz-trust-item {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	min-width: 0;
}

.tz-trust-number {
	color: var(--tz-accent);
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 1.7rem;
	font-weight: 900;
	margin: 0;
}

.tz-trust-item p:last-child {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.82rem;
	line-height: 1.55;
	margin: 0;
}

.tz-section {
	padding: var(--tz-section) var(--tz-gutter);
}

.tz-section-muted {
	background: var(--tz-surface);
}

.tz-section-warm {
	background: var(--tz-warm);
}

.tz-section-inner {
	margin-inline: auto;
	max-width: 1180px;
	width: 100%;
}

.tz-section-heading {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	max-width: 760px;
}

.tz-section-heading h2,
.tz-page-hero h1,
.tz-cta h2 {
	color: var(--tz-primary);
	font-size: clamp(2rem, 4vw, 3.45rem);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.18;
	margin: 0;
}

.tz-section-heading > p:last-child,
.tz-page-hero p,
.tz-cta p {
	color: var(--tz-muted);
	line-height: 1.85;
	margin-top: 1rem;
}

.tz-category-grid,
.tz-product-grid,
.tz-sector-grid,
.tz-process-grid,
.tz-contact-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tz-category-grid > *,
.tz-product-grid > *,
.tz-sector-grid > *,
.tz-process-grid > *,
.tz-contact-grid > * {
	min-width: 0;
}

.tz-card,
.tz-product-card,
.tz-process-card,
.tz-contact-card {
	background: var(--tz-white);
	border: 1px solid var(--tz-border);
	border-radius: 6px;
	height: 100%;
	overflow: hidden;
}

.tz-card:hover,
.tz-product-card:hover {
	border-color: rgba(214, 166, 60, 0.75);
	box-shadow: var(--tz-shadow);
	transform: translateY(-5px);
}

.tz-card-image,
.tz-product-image {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.tz-card-body,
.tz-product-body,
.tz-process-card,
.tz-contact-card {
	padding: 1.35rem;
}

.tz-card h3,
.tz-product-card h3,
.tz-process-card h3,
.tz-contact-card h3,
.tz-sector-item h3 {
	color: var(--tz-primary);
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.4;
	margin: 0;
}

.tz-card p,
.tz-product-card p,
.tz-process-card p,
.tz-contact-card p,
.tz-sector-item p {
	color: var(--tz-muted);
	font-size: 0.94rem;
	line-height: 1.75;
	margin: 0.65rem 0 0;
}

.tz-card-link {
	color: var(--tz-primary);
	display: inline-block;
	font-size: 0.88rem;
	font-weight: 800;
	margin-top: 1rem;
	text-decoration: none;
}

.tz-card-link:hover {
	color: var(--tz-blue);
}

.tz-split {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tz-split > * {
	min-width: 0;
}

.tz-feature-image {
	border-radius: 6px;
	box-shadow: var(--tz-shadow);
	display: block;
	max-height: 560px;
	object-fit: cover;
	width: 100%;
}

.tz-fact-list {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 2rem;
}

.tz-fact {
	border-inline-start: 3px solid var(--tz-accent);
	padding-inline-start: 1rem;
}

.tz-fact strong {
	color: var(--tz-primary);
	display: block;
	font-size: 1.05rem;
}

.tz-fact span {
	color: var(--tz-muted);
	display: block;
	font-size: 0.86rem;
	line-height: 1.6;
	margin-top: 0.3rem;
}

.tz-sector-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tz-sector-item {
	border-top: 2px solid var(--tz-accent);
	padding: 1.4rem 0;
}

.tz-sector-index,
.tz-step {
	color: var(--tz-accent);
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 0.82rem;
	font-weight: 900;
	margin: 0 0 0.65rem;
}

.tz-process-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tz-process-card {
	border-top: 3px solid var(--tz-primary);
}

.tz-cta-wrap {
	padding: 0 var(--tz-gutter) var(--tz-section);
}

.tz-cta {
	align-items: center;
	background: var(--tz-primary-dark);
	border-radius: 6px;
	color: var(--tz-white);
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-inline: auto;
	max-width: 1180px;
	padding: clamp(2rem, 5vw, 4rem);
}

.tz-cta h2 {
	color: var(--tz-white);
}

.tz-cta p {
	color: rgba(255, 255, 255, 0.72);
	max-width: 700px;
}

.tz-page-hero {
	background: linear-gradient(120deg, var(--tz-primary-dark), var(--tz-primary));
	color: var(--tz-white);
	padding: clamp(4.5rem, 8vw, 7rem) var(--tz-gutter);
}

.tz-page-hero > div {
	margin-inline: auto;
	max-width: 1180px;
}

.tz-page-hero h1 {
	color: var(--tz-white);
	max-width: 850px;
}

.tz-page-hero p {
	color: rgba(255, 255, 255, 0.76);
	max-width: 760px;
}

.tz-contact-card a {
	color: var(--tz-primary);
	font-weight: 800;
	text-decoration: none;
}

.tz-contact-card a:hover {
	color: var(--tz-blue);
}

.tz-map-placeholder {
	align-items: center;
	background: linear-gradient(135deg, var(--tz-surface), var(--tz-warm));
	border: 1px solid var(--tz-border);
	border-radius: 6px;
	display: flex;
	justify-content: center;
	min-height: 360px;
	padding: 2rem;
	text-align: center;
}

.tz-footer {
	background: var(--tz-primary-dark);
	color: var(--tz-white);
	padding: clamp(3.5rem, 6vw, 5rem) var(--tz-gutter) 1.5rem;
}

.tz-footer-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1.5fr 0.8fr 1fr;
	margin-inline: auto;
	max-width: 1180px;
}

.tz-footer h2,
.tz-footer h3 {
	color: var(--tz-white);
	margin-top: 0;
}

.tz-footer h2 {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.tz-footer h3 {
	font-size: 1rem;
}

.tz-footer p,
.tz-footer li {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	line-height: 1.8;
}

.tz-footer a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.tz-footer a:hover {
	color: var(--tz-accent);
}

.tz-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tz-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	margin: 2.5rem auto 0;
	max-width: 1180px;
	padding-top: 1.25rem;
}

.tz-footer-bottom p {
	font-size: 0.8rem;
	margin: 0;
}

@media (max-width: 1080px) {
	.tz-header-cta {
		display: none;
	}

	.tz-category-grid,
	.tz-product-grid,
	.tz-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	:root {
		--tz-gutter: clamp(1rem, 5vw, 1.35rem);
		--tz-section: clamp(3.5rem, 12vw, 5rem);
	}

	.admin-bar .tz-header {
		top: 46px;
	}

	.tz-header {
		position: relative;
	}

	.tz-header-inner {
		flex-wrap: nowrap;
		gap: 0.7rem;
		min-height: auto;
		padding-block: 0.75rem;
	}

	.tz-brand {
		flex: 1 1 auto;
		min-width: 0;
	}

	.tz-brand img {
		height: 48px;
		width: 84px;
	}

	.tz-brand-en {
		display: none;
	}

	.tz-header .wp-block-navigation {
		flex: 0 0 auto;
		margin-inline-start: auto;
	}

	.tz-header-actions {
		flex: 0 0 auto;
		margin: 0;
	}

	.tz-language {
		max-width: 130px;
	}

	.tz-hero {
		min-height: 640px;
		padding-block: 5rem;
	}

	.tz-hero::before {
		background: linear-gradient(180deg, rgba(9, 40, 29, 0.93), rgba(18, 60, 44, 0.78));
	}

	.tz-hero h1 {
		font-size: clamp(2.25rem, 12vw, 3.4rem);
		max-width: 100%;
		overflow-wrap: normal;
		word-break: normal;
	}

	.tz-hero .wp-block-buttons,
	.tz-cta .wp-block-buttons {
		align-items: stretch;
		display: flex;
		flex-direction: column;
		gap: 0.8rem;
		width: 100%;
	}

	.tz-hero .wp-block-button,
	.tz-hero .wp-block-button__link,
	.tz-cta .wp-block-button,
	.tz-cta .wp-block-button__link {
		display: flex;
		justify-content: center;
		margin: 0;
		text-align: center;
		white-space: normal;
		width: 100%;
	}

	.tz-trust-grid,
	.tz-category-grid,
	.tz-product-grid,
	.tz-sector-grid,
	.tz-process-grid,
	.tz-contact-grid,
	.tz-split,
	.tz-footer-grid {
		grid-template-columns: 1fr;
	}

	.tz-trust-item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		padding-bottom: 1rem;
	}

	.tz-trust-item:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.tz-fact-list {
		grid-template-columns: 1fr;
	}

	.tz-card h3,
	.tz-product-card h3,
	.tz-process-card h3,
	.tz-contact-card h3,
	.tz-card p,
	.tz-product-card p,
	.tz-process-card p,
	.tz-contact-card p {
		max-width: 100%;
		overflow-wrap: normal;
		white-space: normal;
		word-break: keep-all;
	}

	.tz-cta {
		align-items: stretch;
		flex-direction: column;
		padding: 1.5rem;
	}
}

@media (max-width: 480px) {
	.tz-brand-copy {
		display: none;
	}

	.tz-brand {
		flex: 0 1 auto;
	}

	.tz-brand img {
		height: 44px;
		width: 76px;
	}

	.tz-brand-name {
		font-size: 0.88rem;
	}

	.tz-language {
		font-size: 0.72rem;
		padding: 0.25rem 0.5rem;
	}

	.tz-section-heading h2,
	.tz-page-hero h1,
	.tz-cta h2 {
		font-size: clamp(1.75rem, 9vw, 2.3rem);
	}

	.tz-hero h1 {
		font-size: clamp(2rem, 10.5vw, 2.65rem);
		line-height: 1.16;
	}

	.tz-category-grid,
	.tz-product-grid,
	.tz-contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
