/**
 * branded.be — brand overrides for Allegro2 / Elementor / WooCommerce.
 *
 * Primary: Carbon + Branded orange + Ivory
 * Secondary: Olive, Rusty, Sand, Chocolate, Steel
 */

:root,
body,
.elementor-kit-15 {
  /* Brand tokens */
  --brand-carbon: #060606;
  --brand-orange: #F1861B;
  --brand-ivory: #FFF7F1;
  --brand-olive: #555434;
  --brand-rusty: #BA320B;
  --brand-sand: #E4CBB0;
  --brand-chocolate: #352113;
  --brand-steel: #605D5D;

  --brand-carbon-rgb: 6, 6, 6;
  --brand-orange-rgb: 241, 134, 27;
  --brand-ivory-rgb: 255, 247, 241;

  --color-primary: var(--brand-orange);
  --color-primary-hover: #D97412;
  --color-primary-active: #C4680E;
  --color-text: var(--brand-carbon);
  --color-bg: var(--brand-ivory);
  --color-surface: #ffffff;
  --color-border: #E8D9C8;
  --color-link: var(--brand-orange);
  --color-link-hover: var(--brand-rusty);
  --color-focus: rgba(241, 134, 27, 0.35);

  /* Map Allegro2 / Elementor globals — force on body+kit (theme :root alone is not enough) */
  --e-global-color-primary: #F1861B !important;
  --e-global-color-primary-hover: #D97412 !important;
  --e-global-color-secondary: #060606 !important;
  --e-global-color-text: #352113 !important;
  --e-global-color-accent: #BA320B !important;
  --e-global-color-lighter: #605D5D !important;
  --e-global-color-dark: #060606 !important;
  --e-global-color-highlight: #E4CBB0 !important;
  --e-global-color-border: #E8D9C8 !important;

  --e-global-typography-primary-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  --e-global-typography-secondary-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  --e-global-typography-text-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  --e-global-typography-accent-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  --e-global-typography-primary-font-weight: 700 !important;
  --e-global-typography-secondary-font-weight: 600 !important;
  --e-global-typography-accent-font-weight: 600 !important;
  --e-global-typography-accent-letter-spacing: 0.12em !important;

  --primary: var(--brand-orange);
  --secondary: var(--brand-carbon);
  --accent: var(--brand-rusty);
}

/* -------------------------------------------------------------------------- */
/* Base surfaces & type                                                       */
/* -------------------------------------------------------------------------- */

html {
  background-color: var(--brand-ivory);
}

body {
  background-color: var(--brand-ivory) !important;
  color: var(--brand-carbon);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-heading-title {
  color: var(--brand-carbon);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: -0.02em;
}

a {
  color: var(--brand-orange);
}

a:hover,
a:focus {
  color: var(--brand-rusty);
}

::selection {
  background: var(--brand-orange);
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.button,
button.button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.added_to_cart,
.elementor-button,
.elementor-button.elementor-size-sm,
.elementor-button.elementor-size-md,
.elementor-button.elementor-size-lg {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: none;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.added_to_cart:hover,
.elementor-button:hover {
  background-color: #D97412 !important;
  border-color: #D97412 !important;
  color: #fff !important;
}

.button:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.elementor-button:active {
  background-color: #C4680E !important;
  border-color: #C4680E !important;
}

/* Secondary / muted */
.button.secondary,
.woocommerce a.button.secondary {
  background-color: var(--brand-steel) !important;
  border-color: var(--brand-steel) !important;
  color: #fff !important;
}

.button.secondary:hover,
.woocommerce a.button.secondary:hover {
  background-color: #4E4B4B !important;
  border-color: #4E4B4B !important;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-input-wrapper .input-text,
.select2-container--default .select2-selection--single {
  background-color: #fff;
  border-color: #E0D2C2 !important;
  color: var(--brand-carbon);
  border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--brand-orange) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: var(--brand-orange);
}

::placeholder {
  color: var(--brand-steel);
  opacity: 0.85;
}

/* -------------------------------------------------------------------------- */
/* WooCommerce                                                                */
/* -------------------------------------------------------------------------- */

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.product .onsale {
  background-color: var(--brand-rusty) !important;
  color: #fff !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.price ins,
.woocommerce .price {
  color: var(--brand-carbon) !important;
}

.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del {
  color: var(--brand-steel) !important;
  opacity: 0.8;
}

.woocommerce .star-rating span::before,
.woocommerce .star-rating::before,
.woocommerce p.stars a {
  color: var(--brand-orange) !important;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--brand-orange) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--brand-orange) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background-color: var(--brand-orange) !important;
}

/* Product cards on ivory */
.woocommerce ul.products li.product,
.product-block,
.product-block-list {
  background-color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Header / nav / footer surfaces                                             */
/* -------------------------------------------------------------------------- */

/* Top header bar: olive (brand) instead of carbon/teal */
.elementor-location-header .elementor-element-1145b2b,
.elementor-location-header .elementor-element-e0be0fd,
.elementor-65 .elementor-element-1145b2b,
.elementor-65 .elementor-element-e0be0fd {
  background-color: var(--brand-olive) !important;
}

.elementor-65 .elementor-element-1145b2b,
.elementor-65 .elementor-element-e0be0fd {
  border-color: #3F3E26 !important;
}

/* Logo ↔ search spacing */
.elementor-65 .elementor-element-21b4fbc > .elementor-element-populated {
  padding-right: 24px !important;
}

.elementor-65 .elementor-element-9e4aec0 > .elementor-element-populated {
  padding-left: 24px !important;
}

.elementor-65 .elementor-element-98f3e8e .hfe-site-logo-container img,
.elementor-65 .elementor-element-98f3e8e .custom-logo,
.elementor-location-header .elementor-widget-site-logo img {
  max-width: 180px !important;
  height: auto !important;
  width: auto !important;
}

.elementor-65 .elementor-element-98f3e8e > .elementor-widget-container,
.elementor-location-header .elementor-widget-site-logo > .elementor-widget-container {
  margin-right: 0 !important;
}

/* Search submit + count badges → branded orange (never leftover teal/blue/old #ff6700) */
.elementor-widget-allegro2-search .widget form button[type="submit"],
.elementor-65 .elementor-element-bff6d9e .widget form button[type="submit"],
.site-search .woocommerce-product-search button[type="submit"],
.site-search .widget_product_search button[type="submit"],
.site-search .widget_product_search #searchsubmit {
  background: #F1861B !important;
  background-color: #F1861B !important;
}

.elementor-widget-allegro2-search .widget form button[type="submit"]:hover,
.elementor-65 .elementor-element-bff6d9e .widget form button[type="submit"]:hover,
.site-search .woocommerce-product-search button[type="submit"]:hover,
.site-search .widget_product_search #searchsubmit:hover {
  background: #D97412 !important;
  background-color: #D97412 !important;
}

.header-group-action .count,
.header-group-action .site-header-wishlist .count,
.header-group-action .site-header-cart .count,
.site-header-cart .count,
.site-header-wishlist .count,
.elementor-header-group-wrapper .count,
.woosw-menu-item .woosw-menu-item-inner .woosw-menu-item-count,
.cart-contents .count {
  background-color: #F1861B !important;
  background: #F1861B !important;
  color: #fff !important;
}

/* Active-ish nav accents */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.elementor-nav-menu .elementor-item.elementor-item-active,
.elementor-nav-menu .elementor-item:hover {
  color: var(--brand-orange) !important;
}

/* Dark surfaces: muted ivory text */
.site-footer,
#colophon,
.elementor-location-footer,
.elementor-75 {
  color: rgba(255, 247, 241, 0.78);
  background-color: #060606;
}

.site-footer a,
#colophon a,
.elementor-location-footer a,
.elementor-75 a {
  color: var(--brand-orange);
}

.site-footer a:hover,
#colophon a:hover,
.elementor-location-footer a:hover,
.elementor-75 a:hover {
  color: var(--brand-sand);
}

/* —— Stronger footer composition —— */
.elementor-75 {
  position: relative;
}

/* Orange top accent rail */
.elementor-75 > .elementor-element-3f49b54 {
  position: relative;
  background:
    linear-gradient(180deg, #0f0f0c 0%, #060606 40%) !important;
  border-top: 3px solid var(--brand-olive, #555434) !important;
  padding-top: 4px !important;
}

.elementor-75 > .elementor-element-3f49b54::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f1861b 0%, #555434 45%, #060606 100%);
  pointer-events: none;
  z-index: 2;
}

/* Column dividers with more presence */
.elementor-75 .elementor-element-ec44240,
.elementor-75 .elementor-element-8dd00a5 {
  border-right: 1px solid rgba(255, 247, 241, 0.1) !important;
}

.elementor-75 .elementor-element-ec44240 > .elementor-element-populated,
.elementor-75 .elementor-element-8dd00a5 > .elementor-element-populated,
.elementor-75 .elementor-element-34e63be > .elementor-element-populated {
  padding: 8px 28px !important;
}

/* Logo scale in footer */
.elementor-75 .elementor-widget-site-logo img,
.elementor-75 .hfe-site-logo-container img {
  max-width: 200px !important;
  height: auto !important;
}

/* Tagline under logo */
.elementor-75 .elementor-element-6214f56 {
  margin-top: 0.35rem !important;
  margin-bottom: 1.25rem !important;
}

.elementor-75 .elementor-element-6214f56 p {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: #c4b8a8 !important;
}

/* Contact icon boxes */
.elementor-75 .elementor-widget-icon-box {
  margin-bottom: 0.85rem !important;
}

.elementor-75 .elementor-icon-box-wrapper {
  align-items: flex-start !important;
}

.elementor-75 .elementor-icon-box-icon .elementor-icon {
  background: rgba(241, 134, 27, 0.12) !important;
  border-color: rgba(241, 134, 27, 0.45) !important;
  color: #f1861b !important;
  fill: #f1861b !important;
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.elementor-75 .elementor-icon-box-icon .elementor-icon i {
  color: #f1861b !important;
  font-size: 14px !important;
}

.elementor-75 .elementor-icon-box-title,
.elementor-75 .elementor-icon-box-title a {
  color: #fff7f1 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

.elementor-75 .elementor-icon-box-description {
  color: #c4b8a8 !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

/* Section headings */
.elementor-75 .elementor-widget-heading .elementor-heading-title {
  color: #fff7f1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.85rem !important;
  position: relative;
  padding-bottom: 0.55rem;
}

.elementor-75 .elementor-widget-heading .elementor-heading-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 0.55rem;
  background: #f1861b;
  border-radius: 2px;
}

/* Nav links */
.elementor-75 .hfe-nav-menu a,
.elementor-75 .elementor-nav-menu a,
.elementor-75 nav a {
  color: #fff7f1 !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.elementor-75 .hfe-nav-menu a:hover,
.elementor-75 .elementor-nav-menu a:hover,
.elementor-75 nav a:hover {
  color: #f1861b !important;
  padding-left: 4px;
}

/* Newsletter copy */
.elementor-75 .elementor-element-296ec29 {
  margin-bottom: 1rem !important;
}

.elementor-75 .elementor-element-296ec29,
.elementor-75 .elementor-element-296ec29 p {
  color: #c4b8a8 !important;
  line-height: 1.5 !important;
}

/* Mailchimp / newsletter form (when present) */
.elementor-75 input[type="email"],
.elementor-75 .mc4wp-form input[type="email"],
.elementor-75 form input[type="email"] {
  background: #141414 !important;
  border: 1px solid rgba(255, 247, 241, 0.16) !important;
  color: #fff7f1 !important;
  border-radius: 4px !important;
  padding: 0.75rem 1rem !important;
  min-height: 46px;
}

.elementor-75 form button,
.elementor-75 form input[type="submit"],
.elementor-75 .mc4wp-form input[type="submit"] {
  background: #f1861b !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  padding: 0.75rem 1.25rem !important;
}

/* Social icons — brand orange, not network brand colors */
.elementor-75 .elementor-social-icon {
  background-color: rgba(241, 134, 27, 0.12) !important;
  border: 1px solid rgba(241, 134, 27, 0.35) !important;
  color: #f1861b !important;
  fill: #f1861b !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.elementor-75 .elementor-social-icon i,
.elementor-75 .elementor-social-icon svg {
  color: #f1861b !important;
  fill: #f1861b !important;
}

.elementor-75 .elementor-social-icon:hover {
  background-color: #f1861b !important;
  border-color: #f1861b !important;
  transform: translateY(-2px);
}

.elementor-75 .elementor-social-icon:hover i,
.elementor-75 .elementor-social-icon:hover svg {
  color: #fff !important;
  fill: #fff !important;
}

/* Bottom copyright bar */
.elementor-75 > .elementor-element-3a496a4 {
  background: #0c0c0c !important;
  border-top: 1px solid rgba(255, 247, 241, 0.08) !important;
}

.elementor-75 .elementor-element-41d0e0b,
.elementor-75 .elementor-element-41d0e0b p {
  color: #8a8178 !important;
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
}

.elementor-75 .elementor-element-41d0e0b a {
  color: #f1861b !important;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .elementor-75 .elementor-element-ec44240,
  .elementor-75 .elementor-element-8dd00a5 {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 247, 241, 0.08) !important;
  }

  .elementor-75 .elementor-element-ec44240 > .elementor-element-populated,
  .elementor-75 .elementor-element-8dd00a5 > .elementor-element-populated,
  .elementor-75 .elementor-element-34e63be > .elementor-element-populated {
    padding: 1.25rem 8px !important;
  }
}

/* Mobile footer bar */
.hfe-before-footer-wrapper,
.elementor-location-footer .elementor-element[data-element_type="section"] {
  border-color: var(--color-border);
}

/* -------------------------------------------------------------------------- */
/* Cards / panels                                                             */
/* -------------------------------------------------------------------------- */

.widget,
.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content,
.opal-canvas-filter,
.sidebar .widget {
  background-color: #fff;
  border: 1px solid rgba(53, 33, 19, 0.08);
  box-shadow: 0 1px 2px rgba(6, 6, 6, 0.04);
}

/* -------------------------------------------------------------------------- */
/* Focus rings                                                                */
/* -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Eyebrow / small-caps labels                                                */
/* -------------------------------------------------------------------------- */

.elementor-widget-heading .elementor-heading-title.elementor-size-small,
.eyebrow,
.sub-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  font-weight: 600;
}
