/*
 * Emetco shared section styles (concept 06-v2). Tokens only, never a hex.
 * Logical properties, so Arabic (RTL) mirrors without a second file.
 * Section blocks use these classes; each block's own style.css holds the rest.
 */
/* Manrope Fallback: Arial sized to Manrope's metrics, so text keeps its size when Manrope swaps in
 * (no layout shift; PageSpeed CLS 0.058 on the hero buttons, 2026-11-24). Values from fontTools on manrope.woff2. */
@font-face{font-family:"Manrope Fallback";font-weight:200 599;src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Helvetica");size-adjust:103.82%;ascent-override:102.68%;descent-override:28.9%;line-gap-override:0%}
@font-face{font-family:"Manrope Fallback";font-weight:600 800;src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Helvetica Bold");size-adjust:103.01%;ascent-override:103.48%;descent-override:29.12%;line-gap-override:0%}

body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3{text-wrap:balance}

/* Wrap and section rhythm */
.em-wrap{width:100%;max-width:var(--base-frame-w);margin-inline:auto;padding-inline:clamp(16px,4vw,32px);box-sizing:border-box}
.em-sec{padding-block:clamp(72px,9vw,120px)}
.em-sec--tight-top{padding-block-start:0}
.em-sec--soft{background:var(--base-surface-1)}
.em-sec--teal{background:var(--base-secondary);color:var(--base-on-secondary)}

/* Section heading group */
.em-head{max-width:760px;margin-block-end:clamp(36px,5vw,56px)}
.em-head--center{margin-inline:auto;text-align:center}
.em-eyebrow{display:inline-flex;align-items:center;margin:0;font-size:14px;font-weight:700;letter-spacing:.01em;color:var(--base-secondary)}
.em-head h2,.em-h2{margin:16px 0 0;font-size:clamp(32px,3.8vw,52px);line-height:1.06;letter-spacing:-.04em;font-weight:800;color:var(--base-text)}
.em-head p,.em-lead{margin:18px 0 0;font-size:clamp(17px,1.4vw,19px);line-height:1.55;color:var(--base-text-muted)}
.em-sec--teal .em-eyebrow{color:var(--base-on-brand-2-muted)}
.em-sec--teal .em-head h2{color:var(--base-on-secondary)}
.em-sec--teal .em-head p{color:var(--base-on-brand-2-muted)}

/* Buttons */
.em-btns{display:flex;flex-wrap:wrap;gap:12px}
.em-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-block-size:var(--base-control-h);padding:0 28px;border-radius:var(--base-radius-pill);font-size:16px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;border:0;cursor:pointer;transition:background var(--base-dur) var(--base-ease),box-shadow var(--base-dur) var(--base-ease),transform var(--base-dur) var(--base-ease)}
.em-btn svg{inline-size:20px;block-size:20px;flex:none}
.em-btn--primary{background:var(--base-primary);color:var(--base-on-primary);box-shadow:0 8px 22px -10px var(--base-primary)}
.em-btn--primary:hover{background:var(--base-primary-hover);color:var(--base-on-primary);transform:translateY(-1px)}
.em-btn--ghost{background:var(--base-surface);color:var(--base-text);box-shadow:inset 0 0 0 1.5px var(--base-outline-variant)}
.em-btn--ghost:hover{color:var(--base-text);box-shadow:inset 0 0 0 1.5px var(--base-text)}
.em-btn--whatsapp{background:var(--base-whatsapp);color:var(--base-on-secondary)}
.em-btn--whatsapp:hover{color:var(--base-on-secondary);filter:brightness(.92)}
.em-btn--whatsapp svg{fill:currentColor}
.em-btn--light{background:var(--base-on-secondary);color:var(--base-secondary)}
.em-btn--light:hover{color:var(--base-secondary);transform:translateY(-1px)}
.em-btn:focus-visible{outline:2.5px solid var(--base-focus);outline-offset:3px}
@media (max-width:520px){.em-btns .em-btn{flex:1 1 100%}}

/* Small text link with an arrow */
.em-link{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--base-primary);text-decoration:none}
.em-link:hover{text-decoration:underline;text-underline-offset:4px}
.em-link__arrow{display:inline-block;transition:transform var(--base-dur) var(--base-ease)}
.em-link:hover .em-link__arrow{transform:translateX(3px)}
[dir=rtl] .em-link__arrow{transform:scaleX(-1)}
[dir=rtl] .em-link:hover .em-link__arrow{transform:scaleX(-1) translateX(3px)}

/* Trust ticks */
.em-ticks{display:flex;flex-wrap:wrap;gap:10px 22px;margin:0;padding:0;list-style:none;font-size:15px;color:var(--base-text-muted)}
.em-ticks li{display:inline-flex;align-items:center;gap:8px}
.em-ticks svg{inline-size:18px;block-size:18px;color:var(--base-secondary);flex:none}
.em-ticks b{color:var(--base-text);font-weight:800}

/* Chips */
.em-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.em-chip{display:inline-flex;align-items:center;min-block-size:36px;padding:0 14px;border-radius:var(--base-radius-pill);background:var(--base-surface-1);color:var(--base-text);font-size:14px;font-weight:600}

/* Editor canvas: server previews are not links */
.editor-styles-wrapper .em-btn,.editor-styles-wrapper .em-link{pointer-events:none}

@media (prefers-reduced-motion:reduce){.em-btn,.em-link__arrow{transition:none}.em-btn:hover{transform:none}}

/* Ghost button with the WhatsApp glyph (concept: "WhatsApp us") */
.em-btn--ghost-wa{background:var(--base-surface);color:var(--base-text);box-shadow:inset 0 0 0 1.5px var(--base-outline-variant)}
.em-btn--ghost-wa:hover{color:var(--base-text);box-shadow:inset 0 0 0 1.5px var(--base-text)}
.em-btn--ghost-wa svg{fill:var(--base-whatsapp);color:var(--base-whatsapp)}

/* Inner page title band (template page-no-title): the page's one h1 */
.em-page-head{max-width:var(--base-frame-w);margin-inline:auto;padding:clamp(40px,6vw,72px) clamp(16px,4vw,32px) 0;box-sizing:border-box}
.em-page-head .em-page-head__title{margin:0;font-size:clamp(38px,5vw,64px);line-height:1.04;letter-spacing:-.045em;font-weight:800;color:var(--base-text)}
.em-page-head + .wp-block-post-content > .alignfull:first-child{margin-block-start:0}

/* Sections touch each other; the page keeps one gap above the footer. A last .em-sec has its own padding. */
.base-main.em-main{margin-block:0;padding-block:0 clamp(56px,7vw,96px)}
.base-main.em-main:has(> .wp-block-post-content > .em-sec:last-child){padding-block-end:0}
/* Home only: the last section touches the footer (Moaz, 2026-11-23). */
.home .base-main.em-main{padding-block-end:0}
.em-main > .wp-block-post-content > .alignfull{margin-block:0}
/* Flat look (default; Customizer › Emetco look turns shadows back on, inc/shadows.php). Inset borders stay. */
.em-flat{--base-shadow:none;--bs-qv-shadow:none;--bs-cart-shadow:none}
.em-flat :is(.em-btn--primary,.bs-quote-box__form,.base-form__submit,.em-contact__card,.em-hero__card,.em-pl__card,.wc-block-product,.bs-qv-trigger,.single_add_to_cart_button,.button.alt,.checkout-button,.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,.wc-block-components-button.contained,.emetco-main-action > .wp-element-button,.woocommerce-form-login__submit,.woocommerce-form-register__submit,.woocommerce-product-gallery__trigger,.base-ai__launcher,.base-ai__lead-send,.base-buttons .bb__item,.base-buttons .bb__label),
.em-flat :is(.em-btn--primary,.bs-quote-box__form,.base-form__submit,.em-pl__card,.wc-block-product,.single_add_to_cart_button,.button.alt,.checkout-button,.wc-block-components-button.contained,.emetco-main-action > .wp-element-button):hover{box-shadow:none!important}
/* Arabic (base-i18n /ar/): letter-spacing breaks the joined Arabic script, and IBM Plex Sans Arabic ships 400 and 700 only. */
:lang(ar) :is(h1,h2,h3,h4,h5,h6,.em-eyebrow,.em-btn,.wp-block-post-title){letter-spacing:0}
:lang(ar) :is(h1,h2,h3,h4,h5,h6,.wp-block-post-title){font-weight:700;line-height:1.3}
/* Phones (under 600px). "Hide on phones" switch on section blocks (functions.php). The editor preview keeps the section. */
@media (max-width:599.98px){body:not(.block-editor-page) .em-hide-phone{display:none}}
