/* =====================================================================
   wp-override-layer.css · DARK v2 · DRAFT for si-surfer-brand v2.0.0
   NOT deployed. Loads AFTER theme, global-styles, Elementor kit-11,
   WooCommerce and Hostinger Reach CSS, and AFTER sis-ds.css.
   Job: map every existing widget on thesisurfer.com onto the ONE system
   in sis-ds.css (one banner, one heading scale, one button system with one
   interaction spec, three surfaces). Selectors taken from the live HTML on
   25 Nov 2026. Current dark look is kept.
   ===================================================================== */

/* ---------- 1. Theme presets (Hostinger AI theme 2.1.17, dark preset)
   html:root beats the theme's :root global-styles block without !important. */
html:root{
  --wp--preset--color--page-background:#0B1220;  /* surface 0 */
  --wp--preset--color--page-text:#F1F5F9;
  --wp--preset--color--base:#0B1220;
  --wp--preset--color--surface:#1A2540;          /* surface 2 */
  --wp--preset--color--surface-alt:#121B2E;      /* surface 1, was #1d2431 */
  --wp--preset--color--contrast:#F1F5F9;
  --wp--preset--color--ink:#F1F5F9;
  --wp--preset--color--ink-soft:#A3ACB9;         /* was #a0a5ad, now 8.2:1 on Ink */
  --wp--preset--color--ink-inverse:#0B1220;
  --wp--preset--color--light:#F1F5F9;
  --wp--preset--color--dark:#0B1220;
  --wp--preset--color--grey:#A3ACB9;
  --wp--preset--color--primary:#2DD4BF;          /* was #0052ff (Ink on it 3.26:1) */
  --wp--preset--color--primary-soft:#CCFBF1;
  --wp--preset--color--color-3:#2DD4BF;          /* Reach Subscribe bg, was #0052ff / invisible on 7 of 10 pages */
  --wp--preset--color--accent:#2DD4BF;
  --wp--preset--color--accent-soft:#CCFBF1;
  --wp--preset--color--button-text:#0B1220;      /* was #ffffff: never white on teal */
  --wp--preset--font-family--montserrat:"DM Serif Display",DMSerifDisplay,Georgia,serif; /* Montserrat headings -> DM Serif */
}
/* Elementor kit 11 globals (About, Blog, Contact). These pages are rebuilt as block
   pages in the plan; this block only covers the interim and any leftover widgets. */
.elementor-kit-11{
  --e-global-color-primary:#F1F5F9; --e-global-color-secondary:#A3ACB9;
  --e-global-color-text:#F1F5F9;    --e-global-color-accent:#2DD4BF;
  --e-global-typography-primary-font-family:DMSerifDisplay; --e-global-typography-primary-font-weight:400;
  --e-global-typography-secondary-font-family:FiraSans;
  --e-global-typography-text-font-family:FiraSans;
  --e-global-typography-accent-font-family:FiraSans; --e-global-typography-accent-font-weight:600;
}
body{background:#0B1220;color:#F1F5F9;font-family:"Fira Sans",FiraSans,system-ui,Arial,sans-serif}

/* ---------- 2. Headings: one family, one scale, everywhere */
h1,h2,.wp-block-post-title,.elementor-heading-title,.woocommerce-products-header__title,.product_title{
  font-family:"DM Serif Display",DMSerifDisplay,Georgia,serif!important;font-weight:400!important;letter-spacing:-.01em;color:#F1F5F9}
h3,h4,.wc-block-grid__product-title,.woocommerce-loop-product__title,.wc-block-components-product-name{
  font-family:"Fira Sans",FiraSans,system-ui,sans-serif!important;font-weight:600!important}
main h1:not(.sis-banner__title){font-size:var(--ds-fs-h1)!important}
main h2:not(.sis-keep){font-size:var(--ds-fs-h2)!important;line-height:var(--ds-lh-head)}
main h3:not(.sis-keep){font-size:var(--ds-fs-h3)!important}
/* the one emphasis colour inside headings */
h1 mark,h2 mark,h1 .has-primary-color,h2 .has-primary-color,.elementor-heading-title span[style*="color"]{color:#2DD4BF!important;background:none}

/* ---------- 3. BUTTONS: every source on the site -> .sis-btn spec
   Same shape, font, sizes, colours and the SAME 180ms transition and
   hover / active / focus / disabled behaviour as sis-ds.css section 4. */
body:not(#sis) :where(
  .wp-block-button__link,.wp-element-button,
  .elementor-button,
  .woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
  .single_add_to_cart_button,.add_to_cart_button,.checkout-button,#place_order,
  .wc-block-components-button:not(.wc-block-components-drawer__close),
  .wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,
  .hostinger-reach-block-submit,
  .elementor-field-type-submit button,
  input[type=submit],button[type=submit],
  .sis-btn-primary,.sis-btn-ghost,
  .sis-ribbon-pause
){
  --_bg:#2DD4BF; --_fg:#0B1220; --_bd:#2DD4BF;
  --_bg-h:#5EEAD4; --_fg-h:#0B1220; --_bd-h:#5EEAD4;
  --_bg-a:#14B8A6; --_bd-a:#14B8A6;
  --_glow:0 6px 16px -6px rgba(45,212,191,.45);
  display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
  min-height:48px!important;height:auto!important;padding:0 24px!important;
  background:var(--_bg)!important;color:var(--_fg)!important;
  border:2px solid var(--_bd)!important;border-radius:999px!important;
  font:600 16px/1 "Fira Sans",FiraSans,system-ui,sans-serif!important;
  text-transform:none!important;letter-spacing:0!important;text-decoration:none!important;white-space:nowrap;
  box-shadow:none!important;outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;
  transition-property:background-color,border-color,color,box-shadow,transform!important;
  transition-duration:180ms!important;
  transition-timing-function:cubic-bezier(.2,.7,.2,1)!important;
  animation:none!important;
}
/* secondary = outline Porcelain. Block "Outline" style, the 2nd button in a pair,
   v1 ghost, mini-cart "View cart", Woo loop buttons, ribbon Pause */
body:not(#sis) :where(
  .is-style-outline > .wp-block-button__link,
  .wp-block-buttons > .wp-block-button + .wp-block-button .wp-block-button__link,
  .elementor-widget-button + .elementor-widget-button .elementor-button,
  .wc-block-components-button.is-style-outline,.wc-block-mini-cart__footer-cart,
  .woocommerce a.button.wc-forward:not(.checkout),
  .sis-btn-ghost,
  .sis-ribbon-pause
){
  --_bg:transparent; --_fg:#F1F5F9; --_bd:#F1F5F9;
  --_bg-h:#F1F5F9; --_fg-h:#0B1220; --_bd-h:#F1F5F9;
  --_bg-a:#D5DBE1; --_bd-a:#D5DBE1;
  --_glow:0 6px 16px -6px rgba(241,245,249,.35);
}
/* product-loop Add to cart (Shop, Woo product collection block) = primary sm, same as the preview cards */
body:not(#sis) :where(.wc-block-components-product-button__button,.wp-block-woocommerce-product-button .wp-block-button__link,
  .woocommerce ul.products li.product a.button){
  --_bg:#2DD4BF; --_fg:#0B1220; --_bd:#2DD4BF; --_bg-h:#5EEAD4; --_fg-h:#0B1220; --_bd-h:#5EEAD4;
  --_bg-a:#14B8A6; --_bd-a:#14B8A6; --_glow:0 6px 16px -6px rgba(45,212,191,.45)}
/* hover / active / focus / disabled: identical for every source */
body:not(#sis) :where(.wp-block-button__link,.wp-element-button,.elementor-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
  .single_add_to_cart_button,.add_to_cart_button,.checkout-button,#place_order,.wc-block-components-button,.wc-block-cart__submit-button,
  .hostinger-reach-block-submit,.elementor-field-type-submit button,input[type=submit],button[type=submit],.sis-btn-primary,.sis-btn-ghost,.sis-ribbon-pause
):hover{
  background:var(--_bg-h)!important;border-color:var(--_bd-h)!important;color:var(--_fg-h)!important;
  transform:translateY(var(--ds-btn-lift,-1px));box-shadow:var(--_glow)!important}
body:not(#sis) :where(.wp-block-button__link,.wp-element-button,.elementor-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
  .single_add_to_cart_button,.add_to_cart_button,.checkout-button,#place_order,.wc-block-components-button,.wc-block-cart__submit-button,
  .hostinger-reach-block-submit,.elementor-field-type-submit button,input[type=submit],button[type=submit],.sis-btn-primary,.sis-btn-ghost,.sis-ribbon-pause
):active{
  background:var(--_bg-a)!important;border-color:var(--_bd-a)!important;color:#0B1220!important;transform:translateY(0);box-shadow:none!important}
body:not(#sis) :where(.wp-block-button__link,.wp-element-button,.elementor-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
  .single_add_to_cart_button,.add_to_cart_button,.checkout-button,#place_order,.wc-block-components-button,.wc-block-cart__submit-button,
  .hostinger-reach-block-submit,.elementor-field-type-submit button,input[type=submit],button[type=submit],.sis-btn-primary,.sis-btn-ghost,.sis-ribbon-pause
):focus-visible{
  outline:none!important;box-shadow:0 0 0 3px #0B1220,0 0 0 6px #2DD4BF!important}
body:not(#sis) :where(.wp-element-button,.elementor-button,.woocommerce .button,.wc-block-components-button,.hostinger-reach-block-submit,input[type=submit],button[type=submit]):is([disabled],.disabled,[aria-disabled=true],.loading){opacity:.45!important;cursor:not-allowed;transform:none!important;box-shadow:none!important}
@media (prefers-reduced-motion:reduce){
  body:not(#sis) :where(.wp-element-button,.elementor-button,.woocommerce .button,.wc-block-components-button,.hostinger-reach-block-submit,input[type=submit],button[type=submit],.sis-ribbon-pause){
    transition-duration:0ms!important;transform:none!important}}
/* Theme / Elementor / Woo add their own hover animations: switch them off so only ours runs */
.elementor-button[class*="elementor-animation-"]:hover{transform:translateY(-1px)!important}
.elementor-button .elementor-button-icon{transition:transform 180ms cubic-bezier(.2,.7,.2,1)}
.elementor-button:hover .elementor-button-icon{transform:translateX(3px)}
.woocommerce a.added_to_cart{font:600 15px/1 "Fira Sans",FiraSans,sans-serif;color:#2DD4BF;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;margin-left:12px}

/* Specificity note: every button rule is "body:not(#sis) :where(...)" = (1,0,1). That beats WP core's
   .has-*-color !important utilities and Woo/Elementor selectors (incl. #respond input#submit) the same way
   for every source, so source order inside this file is the only thing that decides. */
/* flex parents (Woo .cart, Reach form) must not stretch a button taller than its size */
body:not(#sis) :where(form.cart,.hostinger-reach-block-form,.wp-block-buttons,.elementor-form .elementor-field-group){align-items:center!important}
body:not(#sis) :where(.single_add_to_cart_button,.hostinger-reach-block-submit){align-self:center!important;white-space:nowrap!important}
/* SIZES: sm 40 / md 48 (default above) / lg 56. Nothing else exists. */
body:not(#sis) :where(.sis-ribbon-pause,.wc-block-components-product-button__button,.wp-block-woocommerce-product-button .wp-block-button__link,
  .woocommerce ul.products li.product a.button,.wc-block-grid__product .wp-block-button__link,
  .sis-card .wp-block-button__link,.sis-header .wp-block-button__link,.site-header .wp-block-button__link,.hostinger-ai-menu .wp-block-button__link,
  .wc-block-mini-cart__footer .wc-block-components-button,.wp-block-buttons.is-style-sm .wp-block-button__link){
  min-height:40px!important;padding:0 18px!important;font-size:15px!important}
body:not(#sis) :where(.sis-banner .wp-block-button__link,.single_add_to_cart_button,#place_order,.wc-block-components-checkout-place-order-button,.checkout-button){
  min-height:56px!important;padding:0 30px!important;font-size:17px!important}
/* inline newsletter form: input and Subscribe share 48px, centred (was 54px Subscribe) */
.hostinger-reach-block-form{display:flex;gap:12px;align-items:center}
.hostinger-reach-block-form-field input{min-height:48px!important;height:48px}
/* icon-only buttons (mini-cart, menu, drawer close): sm square, same motion */
.wc-block-mini-cart__button,.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close,.wc-block-components-drawer__close{
  width:40px;height:40px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px!important;border:2px solid #34425E!important;background:transparent!important;color:#F1F5F9!important;
  transition:background-color 180ms cubic-bezier(.2,.7,.2,1),border-color 180ms cubic-bezier(.2,.7,.2,1),transform 180ms cubic-bezier(.2,.7,.2,1)}
.wc-block-mini-cart__button:hover,.wp-block-navigation__responsive-container-open:hover{border-color:#F1F5F9!important;transform:translateY(-1px)}
.wc-block-mini-cart__button:focus-visible,.wp-block-navigation__responsive-container-open:focus-visible{outline:none;box-shadow:0 0 0 3px #0B1220,0 0 0 6px #2DD4BF}

/* ---------- 4. Links: the only other clickable style */
main a:not([class]),.entry-content a:not([class]),.elementor-widget-text-editor a,.woocommerce-info a,.woocommerce-message a:not(.button){
  color:#2DD4BF;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;
  transition:color 180ms cubic-bezier(.2,.7,.2,1),text-decoration-thickness 180ms cubic-bezier(.2,.7,.2,1)}
main a:not([class]):hover,.entry-content a:not([class]):hover,.elementor-widget-text-editor a:hover{color:#5EEAD4;text-decoration-thickness:2.5px}

/* ---------- 5. Forms on dark (Elementor form, Woo, Reach/Brevo) */
input[type=text],input[type=email],input[type=tel],input[type=url],input[type=number],input[type=search],input[type=password],select,textarea,
.elementor-field-textual,.hostinger-reach-block-form-field input,.wc-block-components-text-input input{
  min-height:52px;padding:14px 16px!important;font:400 17px/1.4 "Fira Sans",FiraSans,system-ui,sans-serif!important;
  color:#F1F5F9!important;background:#0B1220!important;border:1.5px solid #7A879E!important;border-radius:12px!important}
textarea{min-height:140px}
::placeholder{color:#A3ACB9!important;opacity:1}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:#2DD4BF!important;box-shadow:0 0 0 4px rgba(45,212,191,.30)!important}
.elementor-field-group > label,.woocommerce form .form-row label,.wc-block-components-text-input label{font:600 15px/1.3 "Fira Sans",FiraSans,sans-serif!important;color:#F1F5F9!important}
.elementor-form,.woocommerce-checkout #customer_details,.wc-block-checkout__main{background:#1A2540;border:1px solid #26324A;border-radius:18px;padding:clamp(20px,3vw,32px)}

/* ---------- 6. Sections: three surfaces, no curves, one rhythm */
.sid-sheet,.sat-sheet{border-radius:0!important;margin-top:0!important}           /* the 56px-radius sheets = grey band */
.sid-sheet--light,.sat-sheet--light,.has-light-background-color:not(.wp-block-button__link),
.has-surface-alt-background-color{background:#121B2E!important;color:#F1F5F9!important}   /* light sheet -> surface 1 */
.has-primary-background-color:not(.wp-element-button):not(.wp-block-button__link){background:#121B2E!important}  /* old #0052ff bands */
main > .wp-block-group.alignfull,.elementor > .e-con{padding-block:var(--ds-section-y)}
.hostinger-elementor-aos[class*=e-con] > .e-con-inner{max-width:1200px}
/* cards: one surface, one radius */
.wp-block-group.is-style-card,.sis-card,.elementor-widget-icon-box > .elementor-widget-container,.elementor-widget-image-box > .elementor-widget-container{
  background:#1A2540!important;border:1px solid #26324A!important;border-radius:18px!important;box-shadow:none!important}

/* ---------- 7. ONE banner. The plugin prints .sis-banner (sis/page-banner) above the content on
   EVERY page incl. Home, shop, product and posts, and adds body.sis-has-banner.
   All old heroes / title blocks are hidden so only one H1 remains. */
body.sis-has-banner :is(
  .sis-hero,                                            /* old home video hero (657px) */
  .sis-inner-cover,                                     /* Services / Tools 320px cover */
  main > .wp-block-group:first-child > .wp-block-post-title,
  .wp-block-post-title.sis-old-title,
  .woocommerce-products-header,                         /* Shop title */
  .woocommerce-breadcrumb,                              /* moved into the banner eyebrow */
  .single-product .product_title                        /* Product title, now the banner H1 */
){display:none!important}
.single-product .product_title.sis-visually-hidden{display:block!important}
/* 2.1.5: About / Blog / Contact Elementor hero (interim). Scoped away from the WooCommerce
   cart (41), checkout (42) and My Account (43) pages, where the first Elementor container
   holds the WooCommerce shortcode (cart table, checkout form, login/register). */
body.sis-has-banner:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.page-id-41):not(.page-id-42):not(.page-id-43) :is(
  .elementor > .e-con:first-child,
  .elementor > .elementor-section:first-child
){display:none!important}

/* ---------- 8. WooCommerce surfaces */
.woocommerce ul.products li.product,.wc-block-grid__product{
  background:#1A2540;border:1px solid #26324A;border-radius:18px;padding:0 0 24px;overflow:hidden;box-shadow:none;text-align:left}
.woocommerce ul.products li.product img{aspect-ratio:16/10;object-fit:cover;margin:0 0 16px!important}
.woocommerce ul.products li.product :is(.woocommerce-loop-product__title,.price,.button){margin-inline:20px!important}
.woocommerce .price,.woocommerce-Price-amount{color:#F1F5F9!important;font-family:"DM Serif Display",DMSerifDisplay,Georgia,serif}
.woocommerce span.onsale{background:#CCFBF1;color:#0B1220;border-radius:999px;font:500 12px/1 "IBM Plex Mono",monospace;padding:6px 10px;min-height:0}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:#1A2540;color:#F1F5F9;border-top:0;border-left:4px solid #2DD4BF;border-radius:12px}
.quantity .qty{width:84px;min-height:56px;text-align:center}

/* ---------- 9. Ribbon fixes
   Root cause of the 18px horizontal scroll on every page: .sis-ribbon-inner is width:100% plus 18px
   padding with content-box sizing (v1 ribbon.css). Verified on the live DOM: 1458 -> 1440.
   Labels #2DD4BF on #0F5C5C were 4.17:1. Pause becomes the standard sm secondary (section 3). */
.sis-ribbon{min-height:48px}
.sis-ribbon-inner{box-sizing:border-box}
.sis-ribbon-kicker{color:#CCFBF1!important}          /* 6.89:1 */
.sis-ribbon-list li::after{color:#CCFBF1!important}
.sis-ribbon-pause[aria-pressed=true]{--_bg:#F1F5F9;--_fg:#0B1220}
html,body{overflow-x:clip}                            /* belt and braces only; the fix is box-sizing */
