/* ==========================================================================
   Lawh — اشتراكات Canva Pro
   Palette: paper / ink / tangerine (60-30-10), plum as quiet secondary.
   ========================================================================== */

:root {
	--paper: #F4EFE6;
	--paper-2: #EBE4D6;
	--card: #FFFDF8;
	--ink: #16130F;
	--ink-2: #4A443B;
	--muted: #7A7266;
	--line: #DDD3C1;
	--accent: #FF5A1F;
	--accent-ink: #C23C0A;
	--plum: #2E1F5E;
	--ok: #1F7A4D;

	--r-sm: 8px;
	--r: 14px;
	--r-lg: 24px;
	--shadow: 0 1px 0 rgba(22, 19, 15, .06), 0 12px 32px -16px rgba(22, 19, 15, .25);

	--font: "IBM Plex Sans Arabic", system-ui, sans-serif;
	--display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;

	--fast: 140ms;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.skip-link { position: absolute; inset-inline-start: -9999px; }
.skip-link:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px;
	font: 700 16px/1 var(--font);
	text-decoration: none; border: 2px solid transparent; border-radius: 999px;
	cursor: pointer;
	transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 4px 4px 0 var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-disabled { background: var(--paper-2); color: var(--muted); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--fast) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.brand-logo { max-height: 44px; width: auto; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 8px); gap: 3px; align-items: end; }
.brand-mark i { display: block; width: 8px; border-radius: 2px; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 12px; }
.brand-mark i:nth-child(2) { height: 22px; background: var(--accent); }
.brand-mark i:nth-child(3) { height: 16px; }
.brand-light .brand-mark i:nth-child(1), .brand-light .brand-mark i:nth-child(3) { background: var(--paper); }
.brand-light { color: var(--paper); }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.main-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
	font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--card);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,31,.18); }

.hero h1 { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -1.5px; margin: 20px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.hero h1 em::after {
	content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .14em;
	background: var(--ink); border-radius: 2px; transform: rotate(-1.5deg);
}
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.trust-row li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-inline-end: 6px; }

/* Hero art: a mock design board, pure CSS */
.hero-art { position: relative; }
.board {
	background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);
	box-shadow: 10px 10px 0 var(--ink); overflow: hidden;
	transform: rotate(-2deg);
}
.board-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--paper); font-size: 13px; }
.board-bar i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.board-bar span { margin-inline-start: auto; color: var(--muted); direction: ltr; }
.board-canvas {
	position: relative; aspect-ratio: 5 / 4;
	background:
		linear-gradient(var(--paper-2) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, var(--paper-2) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--card);
}
.shape { position: absolute; }
.s-sun { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); top: 12%; inset-inline-end: 12%; }
.s-arch { width: 40%; height: 52%; background: var(--plum); border-radius: 999px 999px 0 0; bottom: 0; inset-inline-start: 10%; }
.s-type {
	font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.05;
	color: var(--ink); top: 10%; inset-inline-start: 8%; text-align: start;
}
.sel { position: absolute; top: 9%; inset-inline-end: 9%; width: 40%; aspect-ratio: 1; border: 2px dashed var(--ink); }
.sel b { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid var(--ink); }
.sel b:nth-child(1) { top: -6px; left: -6px; } .sel b:nth-child(2) { top: -6px; right: -6px; }
.sel b:nth-child(3) { bottom: -6px; left: -6px; } .sel b:nth-child(4) { bottom: -6px; right: -6px; }
.board-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-top: 2px solid var(--ink); }
.board-tools span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.sticker {
	position: absolute; top: -22px; inset-inline-start: -14px;
	width: 92px; height: 92px; display: grid; place-items: center;
	border-radius: 50%; background: var(--accent); color: #fff;
	font: 700 22px/1 var(--display); letter-spacing: 1px;
	border: 2px solid var(--ink); transform: rotate(12deg);
	box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -1px; margin: 0; }
.kicker { font-size: 14px; font-weight: 700; color: var(--accent-ink); letter-spacing: .5px; margin-bottom: 8px; }

/* Steps */
.how { background: var(--ink); color: var(--paper); }
.how .kicker { color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(244,239,230,.2); }
.steps li { padding: 32px 0 8px; padding-inline-end: 32px; border-inline-start: 1px solid rgba(244,239,230,.2); padding-inline-start: 28px; }
.steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step-no { font: 700 56px/1 var(--display); color: var(--accent); display: block; margin-bottom: 16px; }
.steps h3 { font-size: 24px; }
.steps p { color: rgba(244,239,230,.72); }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.plan {
	position: relative; display: flex; flex-direction: column;
	background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);
	padding: 32px 28px 28px;
	transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.plan.is-featured { background: var(--ink); color: var(--paper); }
.plan.is-featured:hover { box-shadow: 8px 8px 0 var(--accent); }
.plan h3 { font-size: 22px; margin-bottom: 12px; }
.price { font: 700 52px/1 var(--display); margin: 0 0 6px; letter-spacing: -1px; }
.price small, .price .woocommerce-Price-currencySymbol { font-size: .4em; font-weight: 500; letter-spacing: 0; }
.price del { font-size: .4em; opacity: .55; display: block; margin-bottom: 6px; }
.price ins { text-decoration: none; }
.per { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.is-featured .per { color: rgba(244,239,230,.7); }
.plan-desc { font-size: 15px; color: var(--ink-2); }
.is-featured .plan-desc { color: rgba(244,239,230,.8); }
.perks { list-style: none; margin: 8px 0 28px; padding: 0; flex: 1; }
.perks li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.is-featured .perks li { border-color: rgba(244,239,230,.18); }
.perks li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; margin-inline-end: 10px; transform: rotate(45deg); }
.ribbon {
	position: absolute; top: -14px; inset-inline-start: 24px;
	background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
	padding: 4px 14px; border-radius: 999px; border: 2px solid var(--ink);
}

.pro-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; justify-content: center; }
.pro-strip span { padding: 8px 16px; border-radius: 999px; background: var(--paper-2); font-size: 14px; font-weight: 500; }

/* FAQ */
.faq { background: var(--card); border-block: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary {
	cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 18px;
	display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 28px/1 var(--display); color: var(--accent); transition: transform var(--fast) var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding-bottom: 12px; }

/* Final CTA */
.cta-card {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
	padding: 48px; border-radius: var(--r-lg); background: var(--accent); color: #fff;
	border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
.cta-card h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0; }
.cta-card .btn-accent { background: var(--ink); }
.cta-card .btn-accent:hover { box-shadow: 4px 4px 0 #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.site-footer .muted { color: rgba(244,239,230,.6); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.legal { border-top: 1px solid rgba(244,239,230,.15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.legal p { margin: 0; }

/* ---------- Pages / Checkout ---------- */
.page-wrap { padding: 48px 0 88px; }
.page-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); max-width: 860px; margin-inline: auto; }
.is-checkout .page-card { max-width: 1040px; }
.page-title { font-size: clamp(30px, 4vw, 44px); }
.entry a { color: var(--accent-ink); }

/* WooCommerce forms */
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.woocommerce form .form-row .required { color: var(--accent-ink); text-decoration: none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
	width: 100%; min-height: 50px; padding: 10px 14px;
	font: 400 16px var(--font); color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
	transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,90,31,.18); outline: 0; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #C0392B; }
.woocommerce form .form-row .description { font-size: 13px; color: var(--muted); margin-top: 6px; }
.lawh-ltr, input[type="email"], input[type="tel"] { direction: ltr; text-align: left; }

.lawh-canva-field {
	padding: 20px; margin-bottom: 24px; border-radius: var(--r);
	background: #FFF4E8; border: 2px solid var(--accent);
}
.lawh-canva-field label[for="lawh_canva_email"] { font-weight: 700; }
.lawh-same { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.woocommerce-checkout #customer_details { display: block; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .col2-set .col-2:empty { display: none; }
#order_review_heading { font-size: 22px; margin-top: 32px; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; overflow: hidden; width: 100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: start; }
.woocommerce #payment { background: var(--paper); border-radius: var(--r); padding: 20px; margin-top: 24px; }
.woocommerce #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
.woocommerce #place_order {
	width: 100%; min-height: 56px; border: 2px solid var(--ink); border-radius: 999px;
	background: var(--accent); color: #fff; font: 700 18px var(--font); cursor: pointer;
	box-shadow: 4px 4px 0 var(--ink); transition: transform var(--fast) var(--ease);
}
.woocommerce #place_order:hover { transform: translateY(-2px); }
.woocommerce-error, .woocommerce-message, .woocommerce-info {
	list-style: none; padding: 14px 18px; border-radius: var(--r-sm); margin: 0 0 20px;
	background: var(--paper-2); border-inline-start: 4px solid var(--ink);
}
.woocommerce-error { border-color: #C0392B; background: #FBEDEB; }
.woocommerce-order-overview { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
	.hero { padding-top: 32px; }
	.hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
	.steps { grid-template-columns: 1fr; }
	.steps li, .steps li:first-child { border-inline-start: 0; border-bottom: 1px solid rgba(244,239,230,.2); padding-inline: 0; }
	.main-nav { display: none; }
	.header-row .btn { margin-inline-start: auto; }
	.cta-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
	body { font-size: 16px; }
	.section { padding: 64px 0; }
	.sticker { width: 72px; height: 72px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0ms !important; scroll-behavior: auto !important; }
	.btn:hover, .plan:hover { transform: none; }
}
