/*
Theme Name: IPTEGY Base
Theme URI: https://iptegy.com/
Author: IPTEGY
Description: Accessible flat WordPress block theme and design-system foundation.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: iptegy-base
Domain Path: /languages
License: GPL-2.0-or-later
*/
:root{color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;overflow-wrap:break-word}
a{text-underline-offset:.2em}
:where(a,button,input,textarea,select):focus-visible{outline:3px solid var(--wp--preset--color--primary,#2955d9);outline-offset:3px}
.wp-site-blocks{min-height:100vh;display:flex;flex-direction:column}
.wp-site-blocks>footer{margin-block-start:auto}
.wp-block-image img{max-width:100%;height:auto}
.iptegy-card{border:1px solid #e2e8f0;border-radius:6px;padding:clamp(20px,3vw,36px);background:var(--wp--preset--color--base,#fff);box-shadow:none}
.iptegy-hero{border-radius:8px;overflow:hidden}
.wp-block-group.alignfull{max-width:none}
:where(.wp-block-button__link){transition:background-color .15s ease,opacity .15s ease}
:where(.wp-block-button__link:hover){opacity:.88}
[dir="rtl"] .wp-block-navigation__container{direction:rtl}
@media(max-width:600px){.iptegy-hero{border-radius:0}.iptegy-card{padding:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Flat news and editorial variants */
.iptegy-news-feature{padding-block:clamp(24px,4vw,56px)}
.iptegy-news-story{border:1px solid #e2e8f0;border-radius:5px;padding:14px;background:var(--wp--preset--color--base,#fff);height:100%}
.iptegy-news-story .wp-block-post-title{font-size:clamp(1.05rem,1.8vw,1.4rem);line-height:1.4}
.iptegy-news-story .wp-block-post-title a{text-decoration:none}
.iptegy-breaking{border-inline-start:4px solid var(--wp--preset--color--primary,#2955d9);background:var(--wp--preset--color--surface,#f5f7fb);padding:14px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.iptegy-breaking .wp-block-query{flex:1;min-width:200px}
.iptegy-breaking .wp-block-post-title{font-size:1rem;margin:0}
.iptegy-ad-slot{border:1px dashed #97a3b7;border-radius:4px;min-height:100px;display:grid;place-items:center;padding:16px;background:#f8fafc;color:#58677d}
@media(max-width:680px){.iptegy-breaking{display:block}.iptegy-news-story{padding:10px}}

.iptegy-industry--travel{background:#eaf8f4;color:#173e42}

.iptegy-industry--real-estate{background:#f6f0e5;color:#47392c}

.iptegy-industry--import-export{background:#e9f1fb;color:#193c59}

/* Separate industry sections; all content is native editable Gutenberg blocks. */
.iptegy-industry{padding-block:clamp(36px,6vw,92px);padding-inline:clamp(16px,3vw,44px)}.iptegy-industry h1{font-size:clamp(2rem,4vw,3.75rem);line-height:1.16}.iptegy-industry__visual{min-height:230px;padding:38px;border:1px solid currentColor;border-radius:7px;background:rgba(255,255,255,.52);display:flex;flex-direction:column;justify-content:center}.iptegy-industry .wp-block-button__link{background:#213b55;color:#fff}@media(max-width:781px){.iptegy-industry__visual{min-height:140px}}

/* Industry-specific themes stay scoped to kit landing blocks. */
.iptegy-industry--construction{background:#f2f3f5;color:#273746}
.iptegy-industry--clinic{background:#eaf7f5;color:#164c50}
.iptegy-industry--education{background:#f0effd;color:#342a68}
.iptegy-industry--restaurant{background:#fff3ea;color:#5a302a}
.iptegy-industry--construction .iptegy-industry__visual{background:#d9e0e6}
.iptegy-industry--clinic .iptegy-industry__visual{background:#d1ebe7}
.iptegy-industry--education .iptegy-industry__visual{background:#dfdaf6}
.iptegy-industry--restaurant .iptegy-industry__visual{background:#f5ded2}
.iptegy-industry .wp-block-column.iptegy-card{min-width:0}

/* Medical store layout: header, ticker, trust strip, best-sellers grid and footer. */
.iptegy-ticker{overflow:hidden;padding:8px 16px;gap:48px;font-size:.8125rem;white-space:nowrap}
.iptegy-ticker__item{gap:10px;flex-shrink:0}.iptegy-ticker p{margin:0}
.iptegy-badge{display:inline-block;margin:0;padding:1px 10px;border-radius:999px;background:var(--wp--preset--color--accent,#14b8a6);color:#fff;font-size:.75rem;font-weight:700;line-height:1.6}
.iptegy-mheader{padding:12px 16px 16px}.iptegy-mheader__tagline{margin:0 0 12px;font-size:.875rem}
.iptegy-mheader__row{gap:16px;align-items:center}.iptegy-mheader__search{flex:1;max-width:560px}
.iptegy-mheader__search .wp-block-search__inside-wrapper{background:#fff;border-radius:8px;padding:3px}
.iptegy-icon-btn{margin:0}.iptegy-icon-btn a{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:var(--wp--preset--color--primary);text-decoration:none}
.iptegy-mnav{border-bottom:1px solid #e3e8e5;padding:10px 16px;font-size:.875rem}
.iptegy-mtrust__grid{gap:0;background:#fff;border:1px solid #e3e8e5;border-radius:12px;box-shadow:0 6px 22px rgba(0,0,0,.06);margin:var(--wp--preset--spacing--50) 0}
.iptegy-mtrust__grid>.wp-block-column{padding:18px;border-inline-start:1px solid #e3e8e5}.iptegy-mtrust__grid>.wp-block-column:first-child{border-inline-start:0}
.iptegy-mtrust__item{gap:12px}.iptegy-mtrust__item p{margin:0 0 4px}
.iptegy-mtrust__icon{flex:0 0 32px;display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--wp--preset--color--surface);color:var(--wp--preset--color--primary)}
.iptegy-mbest__grid{gap:20px}.iptegy-span-2{grid-column:span 2}
.iptegy-product{position:relative;background:#fff;border-radius:12px;padding:16px;box-shadow:0 4px 18px rgba(0,0,0,.07)}
.iptegy-badge--sale{position:absolute;inset-block-start:12px;inset-inline-end:12px;z-index:2;background:var(--wp--preset--color--accent)}
.iptegy-price del{color:#5b6762;margin-inline-end:8px}.iptegy-price strong{font-size:1.05rem}
.iptegy-mfooter .wp-block-heading{margin-bottom:8px}.iptegy-mfooter a{color:inherit;text-decoration:none}
@media(max-width:900px){.iptegy-mbest__grid{grid-template-columns:repeat(2,1fr)!important}.iptegy-span-2{grid-column:span 2}.iptegy-mtrust__grid>.wp-block-column{border-inline-start:0;border-top:1px solid #e3e8e5}.iptegy-mtrust__grid>.wp-block-column:first-child{border-top:0}}
@media(max-width:560px){.iptegy-mbest__grid{grid-template-columns:1fr!important}.iptegy-span-2{grid-column:auto}}

/* WooCommerce: listings, single product, one-page order form, thank-you. */
.iptegy-shop-head{align-items:center;margin-bottom:var(--wp--preset--spacing--40)}.iptegy-shop-head .wp-block-query-title{margin:0}
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-template{gap:20px}
.iptegy-product .wc-block-components-product-image{margin-bottom:12px}
.iptegy-product .wc-block-components-product-sale-badge{background:var(--wp--preset--color--accent);color:#fff;border:0;border-radius:999px;font-size:.75rem;font-weight:700;padding:1px 10px}
.iptegy-product .wc-block-components-product-price{text-align:center}.iptegy-product del,.iptegy-product del *{opacity:1;color:#5b6762}
.iptegy-product .wp-block-button__link{width:100%;text-align:center}
.iptegy-single{gap:var(--wp--preset--spacing--50)}
.iptegy-qo{border:1px solid #e3e8e5;border-radius:12px;padding:20px;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.06)}
.iptegy-qo__title{margin:0 0 14px;padding:10px 14px;border-radius:8px;background:var(--wp--preset--color--surface);color:var(--wp--preset--color--primary);font-size:1.1rem}
.iptegy-qo label{display:block;font-size:.875rem}.iptegy-qo input,.iptegy-qo select,.iptegy-qo textarea{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1px solid #cfd8d3;border-radius:8px;font:inherit}
.iptegy-qo input:focus-visible,.iptegy-qo select:focus-visible,.iptegy-qo textarea:focus-visible{outline:2px solid var(--wp--preset--color--primary);outline-offset:1px}
.iptegy-qo__error{padding:10px 12px;border-radius:8px;background:#fdecec;color:#9f1c1c}
.iptegy-qo__hp{position:absolute;inset-inline-start:-9999px;height:0;overflow:hidden}
.iptegy-qo__pay{padding:12px;border:1px solid var(--wp--preset--color--primary);border-radius:8px;text-align:center}
.iptegy-qo__submit{display:block;width:100%;padding:14px;border:0;border-radius:10px;background:var(--wp--preset--color--primary);color:#fff;font-weight:700;cursor:pointer}
.iptegy-thanks{padding-block:var(--wp--preset--spacing--50)}
.iptegy-thanks__check{width:84px;height:84px;margin:0 auto 16px;display:grid;place-items:center;border-radius:50%;background:#2cc4a8;color:#fff;font-size:2.6rem;line-height:1}

/* Store identity: scrolling ticker, wide search, logo and floating WhatsApp. */
.iptegy-ticker{padding:0;overflow:hidden}
.iptegy-ticker__track{width:max-content;padding:8px 0;gap:0}
.is-marquee .iptegy-ticker__track{animation:iptegy-marquee 60s linear infinite}
.iptegy-ticker__item{flex:0 0 auto;padding-inline:28px;gap:10px;border-inline-end:1px solid rgba(255,255,255,.15)}
@keyframes iptegy-marquee{to{transform:translateX(-50%)}}
[dir=rtl] .is-marquee .iptegy-ticker__track{animation-name:iptegy-marquee-rtl}
@keyframes iptegy-marquee-rtl{to{transform:translateX(50%)}}
@media(prefers-reduced-motion:reduce){.iptegy-ticker__track{animation:none!important;flex-wrap:wrap;width:auto}}
.iptegy-mheader__logo,.iptegy-mheader .custom-logo-link{display:block;line-height:0}.iptegy-mheader__logo img,.iptegy-mheader .custom-logo{width:64px;height:auto;border-radius:10px}
.iptegy-mheader__search{max-width:none;width:80%}
.iptegy-mheader__search .wp-block-search__inside-wrapper{border-radius:16px;height:54px;padding:5px 6px;border:0}
.iptegy-mheader__search .wp-block-search__input{border:0;background:transparent}
.iptegy-mheader__search .wp-block-search__button{background:var(--wp--preset--color--primary);color:#fff;border:0;border-radius:10px}
.iptegy-wa{position:fixed;inset-block-end:100px;inset-inline-end:8px;z-index:9999;display:flex;flex-direction:column;align-items:center;gap:8px}
.iptegy-wa__label{background:var(--wp--preset--color--secondary);color:#fff;font-size:12px;font-weight:700;padding:7px 12px;border-radius:999px;white-space:nowrap;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.iptegy-wa__btn{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#25d366;box-shadow:2px 2px 5px rgba(0,0,0,.3)}
.iptegy-wa__btn:hover{background:#128c7e}
@media(max-width:768px){.iptegy-mheader__search{width:100%}.iptegy-wa{inset-block-end:95px}}
.iptegy-badge,.onsale,.wc-block-components-product-sale-badge{direction:ltr;unicode-bidi:isolate}
.iptegy-mcats a,.iptegy-product .wp-block-post-title a{color:inherit;text-decoration:none}
.iptegy-product .wc-block-components-product-price,.iptegy-product .wc-block-components-product-price a{color:inherit;text-decoration:none}
@media(max-width:768px){.iptegy-mheader__row{flex-wrap:wrap!important;justify-content:space-between}.iptegy-mheader__search{order:3;flex:1 0 100%}}
.iptegy-minicart .wc-block-mini-cart__button{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;background:#fff;color:var(--wp--preset--color--primary)}
.iptegy-minicart .wc-block-mini-cart__badge{inset-block-start:-4px;inset-inline-end:-4px;min-width:19px;height:19px;padding:0;background:var(--wp--preset--color--accent);color:#fff;font-size:11px;line-height:19px;border-radius:50%}
.iptegy-minicart .wc-block-mini-cart__quantity-badge{position:relative;display:grid;place-items:center}
.iptegy-minicart .wc-block-mini-cart__amount{display:none}

/* Store-specific blocks: category cards, banner. */
.iptegy-cat{display:block;text-decoration:none;color:inherit}.iptegy-cat__img{display:block;aspect-ratio:4/3;border-radius:10px;background:var(--wp--preset--color--surface) center/cover no-repeat;margin-bottom:10px}
.iptegy-cat strong{font-size:1rem}
.iptegy-banner{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:100%;padding:32px 20px;border-radius:12px;text-align:center;color:#fff;text-decoration:none;background:var(--wp--preset--color--primary) center/cover no-repeat}
.iptegy-banner strong{font-size:1.5rem;line-height:1.3}.iptegy-banner em{font-style:normal;padding:8px 18px;border:1px solid #fff;border-radius:8px;margin-top:8px}
.iptegy-mbest__cols{gap:20px}
@media(max-width:781px){.iptegy-banner{min-height:160px}}

/* Product cards: tidy titles and prices in narrow columns. */
.iptegy-product .wp-block-post-title{font-size:.95rem!important;line-height:1.5;margin-block:.4em}
.iptegy-product .wp-block-post-title a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:inherit;text-decoration:none}
.iptegy-product .wc-block-components-product-price{display:flex;flex-wrap:wrap;justify-content:center;gap:.2em .5em;font-size:.95rem}
.iptegy-product .wc-block-components-product-price .wc-block-components-product-price__value,.iptegy-product .wc-block-components-product-price del,.iptegy-product .wc-block-components-product-price ins{unicode-bidi:isolate;white-space:nowrap}

/* Lightweight cart link (no heavy block scripts) with a live count. */
.iptegy-cart{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:var(--wp--preset--color--primary)}
.iptegy-cart svg{width:20px;height:20px}
.iptegy-cart__count{position:absolute;inset-block-start:-5px;inset-inline-end:-5px;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:var(--wp--preset--color--accent);color:#fff;font-size:11px;font-weight:700;line-height:19px;text-align:center}
.iptegy-cart__count[hidden]{display:none}
/* Sticky header on large screens: the ticker and tagline scroll away, search and menu stay. */
@media(min-width:782px){header.wp-block-template-part{position:sticky;top:var(--iptegy-sticky-offset,0px);z-index:50}body.admin-bar header.wp-block-template-part{top:calc(32px + var(--iptegy-sticky-offset,0px))}}
/* Mobile "Order now" bar on product pages. */
.iptegy-sticky-order{position:fixed;inset-inline:12px;inset-block-end:calc(12px + var(--iptegy-consent-h,0px));z-index:9000;display:none;padding:14px;border:0;border-radius:12px;background:var(--wp--preset--color--primary);color:#fff;font:inherit;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer}
@media(max-width:781px){.iptegy-sticky-order.is-visible{display:block}}

/* Sale badges use the brand highlight colour everywhere (single product gallery too). */
.wc-block-components-product-sale-badge,.onsale,.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge{background:var(--wp--preset--color--accent);color:#fff;border:0;border-radius:999px;font-weight:700}
/* Product page on phones: photo first, then details and the order form. */
@media(max-width:781px){.iptegy-single>.wp-block-column:last-child{order:-1}}

.woocommerce span.onsale,span.onsale{background:var(--wp--preset--color--accent)!important;color:#fff!important;border:0;min-height:0;min-width:0;padding:2px 12px;line-height:1.6;border-radius:999px;font-weight:700}

/* Business header and footer (generic layout used by every non-store template kit). */
.iptegy-bheader{border-bottom:1px solid #e3e8ee;padding:14px 16px}.iptegy-bheader__row{gap:20px;align-items:center}
.iptegy-bheader__brand,.iptegy-bheader .custom-logo-link{display:block;font-size:1.35rem;font-weight:800;line-height:1.2;color:var(--wp--preset--color--primary);text-decoration:none}
.iptegy-bheader .custom-logo{max-height:48px;width:auto}
.iptegy-cta{display:inline-block;padding:9px 18px;border-radius:999px;background:var(--wp--preset--color--primary);color:#fff;font-weight:700;font-size:.9rem;text-decoration:none;white-space:nowrap}
.iptegy-bfooter a{color:inherit;text-decoration:none}.iptegy-bfooter a:hover{text-decoration:underline}
@media(max-width:781px){.iptegy-cta{padding:8px 12px;font-size:.8rem}.iptegy-bheader__row{flex-wrap:wrap!important}}

/* The home page title stays for screen readers and search engines but is not drawn above the hero. */
.home .iptegy-page-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.iptegy-page-title:has(+ .wp-block-post-content > .alignfull:first-child),.iptegy-page-title:has(+ .wp-block-post-content > .alignwide:first-child){margin-bottom:0}

/* New kits: salon, gym, law firm, interior design. */
.iptegy-industry--salon{background:#fdf0f4;color:#5c1a38}.iptegy-industry--salon .iptegy-industry__visual{background:#f9d9e5}
.iptegy-industry--gym{background:#111827;color:#f3f4f6}.iptegy-industry--gym .iptegy-industry__visual{background:#1f2937;border-color:#374151}
.iptegy-industry--law{background:#eef2f7;color:#1a2f4a}.iptegy-industry--law .iptegy-industry__visual{background:#dbe4ef}
.iptegy-industry--interior{background:#f6f0e8;color:#4a3626}.iptegy-industry--interior .iptegy-industry__visual{background:#eadfce}
.iptegy-industry--salon .wp-block-button__link{background:#be185d}.iptegy-industry--gym .wp-block-button__link{background:#f97316;color:#111827}
.iptegy-industry--law .wp-block-button__link{background:#1e3a5f}.iptegy-industry--interior .wp-block-button__link{background:#6b4f3a}
.iptegy-price-row{gap:14px;padding:10px 0;border-bottom:1px dashed #d8c4cc}.iptegy-price-row p{margin:0}
.iptegy-stat{padding:12px}.iptegy-stat p{margin:0}.iptegy-stat strong{font-size:2.4rem;line-height:1.1;color:var(--wp--preset--color--primary)}
.iptegy-step{margin:0 0 6px;font-size:1.6rem;font-weight:800;color:var(--wp--preset--color--accent)}

/* Contact form */
.iptegy-cf{max-width:720px;margin-inline:auto;display:grid;gap:4px}
.iptegy-cf p{margin:0 0 14px}
.iptegy-cf label{display:block;font-weight:600;margin-bottom:6px}
.iptegy-cf input,.iptegy-cf textarea{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:inherit;font:inherit;min-height:48px}
.iptegy-cf textarea{min-height:140px;resize:vertical}
.iptegy-cf input:focus-visible,.iptegy-cf textarea:focus-visible,.iptegy-cf__submit:focus-visible{outline:3px solid var(--wp--preset--color--primary,#2955d9);outline-offset:2px}
.iptegy-cf__row{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.iptegy-cf__hint{font-size:.875rem;color:#475569}
.iptegy-cf__hp{position:absolute!important;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
.iptegy-cf__status{padding:12px 16px;border-radius:6px;font-weight:600}
.iptegy-cf__status.is-ok{background:#e8f6ee;color:#14532d}
.iptegy-cf__status.is-error{background:#fdecec;color:#7f1d1d}
.iptegy-cf__submit{cursor:pointer;min-height:48px;padding-inline:28px}
@media(max-width:600px){.iptegy-cf__row{grid-template-columns:1fr}}
