/* ================================================
   IW GRUPO — BLACK & GOLD REDESIGN
   Jarvis | v1.0 | 2026-02-21
   Paleta: #0A0A0A (preto profundo) | #C9A84C (ouro)
   ================================================ */

/* ─── CSS VARIABLES ─────────────────────────────── */
:root {
  --iw-black:        #0A0A0A;
  --iw-black-soft:   #111111;
  --iw-black-mid:    #1A1A1A;
  --iw-black-light:  #252525;
  --iw-gold:         #C9A84C;
  --iw-gold-light:   #E2C46A;
  --iw-gold-dark:    #A07830;
  --iw-gold-glow:    rgba(201, 168, 76, 0.18);
  --iw-white:        #FFFFFF;
  --iw-text-primary: #F0EDE6;
  --iw-text-muted:   #9A9A8A;
  --iw-border:       rgba(201, 168, 76, 0.2);
  --iw-radius:       6px;
  --iw-radius-lg:    12px;
  --iw-transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --iw-shadow:       0 4px 24px rgba(0,0,0,0.5);
  --iw-shadow-gold:  0 4px 20px rgba(201, 168, 76, 0.25);
  --iw-font:         'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── RESET GLOBAL ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── BODY & BACKGROUND ─────────────────────────── */
body,
html {
  background-color: var(--iw-black) !important;
  color: var(--iw-text-primary) !important;
  font-family: var(--iw-font) !important;
  line-height: 1.65;
}

/* ─── TYPOGRAPHY ────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  color: var(--iw-white) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

h2.elementor-heading-title,
.iw-section-title {
  position: relative;
  display: inline-block;
}

h2.elementor-heading-title::after,
.iw-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--iw-gold), transparent);
  border-radius: 2px;
}

p, li, span, label {
  color: var(--iw-text-primary);
}

a {
  color: var(--iw-gold);
  text-decoration: none;
  transition: color var(--iw-transition);
}

a:hover {
  color: var(--iw-gold-light);
}

/* ─── HEADER & NAVIGATION ───────────────────────── */
#masthead,
.site-header,
header.elementor-section,
header,
.main-header,
.header-area,
nav.navbar,
.navbar,
.elementor-location-header {
  background: var(--iw-black) !important;
  border-bottom: 1px solid var(--iw-border) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.8) !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Logo area */
.site-logo,
.custom-logo-link,
.elementor-widget-site-logo {
  filter: brightness(1.1);
}

/* ─── MEGA MENU ─────────────────────────────────── */
.main-navigation,
nav.main-navigation,
.nav-menu,
ul.main-menu,
ul.menu {
  background: transparent !important;
}

.menu-item > a,
.nav-menu > li > a,
.main-navigation a,
.elementor-nav-menu a {
  color: var(--iw-text-primary) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
  transition: color var(--iw-transition) !important;
  position: relative;
}

.menu-item > a::after,
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--iw-gold);
  transition: width var(--iw-transition);
}

.menu-item:hover > a,
.menu-item.current-menu-item > a,
.nav-menu > li:hover > a,
.nav-menu > .current-menu-item > a {
  color: var(--iw-gold) !important;
}

.menu-item:hover > a::after {
  width: 100%;
}

/* Dropdown / Mega menu */
.sub-menu,
.dropdown-menu,
ul.sub-menu,
.mega-menu {
  background: var(--iw-black-soft) !important;
  border: 1px solid var(--iw-border) !important;
  border-top: 2px solid var(--iw-gold) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.8) !important;
  border-radius: 0 0 var(--iw-radius-lg) var(--iw-radius-lg) !important;
  min-width: 220px !important;
  padding: 12px 0 !important;
}

.sub-menu a,
.dropdown-menu a {
  color: var(--iw-text-primary) !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 10px 20px !important;
  display: block;
  border-left: 3px solid transparent;
  transition: all var(--iw-transition) !important;
}

.sub-menu a:hover,
.dropdown-menu a:hover {
  color: var(--iw-gold) !important;
  border-left-color: var(--iw-gold) !important;
  background: var(--iw-gold-glow) !important;
  padding-left: 26px !important;
}

/* ─── SECTIONS & BACKGROUNDS ────────────────────── */
section,
.elementor-section,
.elementor-top-section,
.e-con,
.e-con-inner {
  background-color: var(--iw-black) !important;
}

/* Alternating dark sections */
.elementor-section:nth-child(even) {
  background-color: var(--iw-black-soft) !important;
}

/* Gold accent dividers */
.elementor-divider-separator {
  border-color: var(--iw-gold) !important;
}

/* ─── BUTTONS — CTA Black & Gold ────────────────── */
.elementor-button,
.btn,
button,
input[type="submit"],
input[type="button"],
.woocommerce button.button,
.woocommerce a.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.single_add_to_cart_button,
.add_to_cart_button {
  background: linear-gradient(135deg, var(--iw-gold) 0%, var(--iw-gold-dark) 100%) !important;
  color: var(--iw-black) !important;
  border: none !important;
  border-radius: var(--iw-radius) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.8rem !important;
  padding: 14px 28px !important;
  transition: all var(--iw-transition) !important;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3) !important;
  cursor: pointer;
}

.elementor-button:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
  background: linear-gradient(135deg, var(--iw-gold-light) 0%, var(--iw-gold) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--iw-shadow-gold) !important;
}

/* Secondary/outline buttons */
.elementor-button.elementor-button-link,
.btn-outline,
.woocommerce a.button.alt {
  background: transparent !important;
  border: 1px solid var(--iw-gold) !important;
  color: var(--iw-gold) !important;
}

.elementor-button.elementor-button-link:hover,
.btn-outline:hover {
  background: var(--iw-gold) !important;
  color: var(--iw-black) !important;
}

/* ─── CARDS & WIDGETS ───────────────────────────── */
.elementor-widget-wrap,
.elementor-column-wrap {
  background: transparent !important;
}

.iw-card,
.service-box,
.feature-box,
.elementor-widget-image-box .elementor-image-box-wrapper,
.elementor-icon-box-wrapper {
  background: var(--iw-black-soft) !important;
  border: 1px solid var(--iw-border);
  border-radius: var(--iw-radius-lg) !important;
  padding: 32px !important;
  transition: all var(--iw-transition) !important;
}

.iw-card:hover,
.service-box:hover,
.elementor-widget-image-box:hover .elementor-image-box-wrapper,
.elementor-icon-box-wrapper:hover {
  border-color: var(--iw-gold) !important;
  box-shadow: var(--iw-shadow-gold) !important;
  transform: translateY(-4px) !important;
}

/* Icon color */
.elementor-icon i,
.elementor-icon svg {
  color: var(--iw-gold) !important;
  fill: var(--iw-gold) !important;
}

/* ─── WOOCOMMERCE — LOJA ────────────────────────── */
/* Product Cards */
.woocommerce ul.products li.product,
.products .product {
  background: var(--iw-black-soft) !important;
  border: 1px solid var(--iw-border) !important;
  border-radius: var(--iw-radius-lg) !important;
  overflow: hidden;
  transition: all var(--iw-transition) !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--iw-gold) !important;
  box-shadow: var(--iw-shadow-gold) !important;
  transform: translateY(-4px) !important;
}

.woocommerce ul.products li.product a img {
  transition: transform var(--iw-transition) !important;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.04);
}

/* Product info area */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  color: var(--iw-white) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0 16px !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce .price,
.woocommerce-Price-amount,
.price ins,
.price bdi {
  color: var(--iw-gold) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--iw-text-muted) !important;
  font-size: 0.85rem !important;
}

/* Product card footer */
.woocommerce ul.products li.product .product-footer,
.woocommerce ul.products li.product .button-wrap {
  padding: 12px 16px 16px !important;
  border-top: 1px solid var(--iw-border) !important;
}

/* Sale badge */
.woocommerce span.onsale,
.onsale {
  background: var(--iw-gold) !important;
  color: var(--iw-black) !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
  font-size: 0.7rem !important;
}

/* ─── SHOP SIDEBAR & FILTERS ────────────────────── */
.woocommerce .widget_price_filter .ui-slider-range,
.price_slider_amount .button {
  background: var(--iw-gold) !important;
}

.woocommerce .widget_price_filter .ui-slider-handle {
  background: var(--iw-gold) !important;
  border-color: var(--iw-gold-dark) !important;
}

/* Faceted filters */
.wc-block-components-price-slider__range-input-progress,
.wc-block-attribute-filter,
.woocommerce-widget-layered-nav {
  accent-color: var(--iw-gold) !important;
}

/* Sidebar widgets */
.widget,
aside.widget-area .widget,
.woocommerce-sidebar .widget {
  background: var(--iw-black-soft) !important;
  border: 1px solid var(--iw-border) !important;
  border-radius: var(--iw-radius-lg) !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
}

.widget-title,
.widgettitle {
  color: var(--iw-gold) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  border-bottom: 1px solid var(--iw-border);
  padding-bottom: 12px;
  margin-bottom: 16px !important;
}

/* ─── SEARCH BAR ────────────────────────────────── */
.search-form input[type="search"],
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  background: var(--iw-black-light) !important;
  border: 1px solid var(--iw-border) !important;
  color: var(--iw-text-primary) !important;
  border-radius: var(--iw-radius) !important;
  padding: 12px 16px !important;
  transition: border-color var(--iw-transition) !important;
  font-family: var(--iw-font) !important;
}

.search-form input[type="search"]:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--iw-gold) !important;
  box-shadow: 0 0 0 3px var(--iw-gold-glow) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--iw-text-muted) !important;
}

/* Predictive search dropdown */
.dgwt-wcas-suggestions-wraper,
.dgwt-wcas-sf-wraper .dgwt-wcas-search-form,
.woocommerce-product-search,
[class*="search-result"],
.autocomplete-suggestions {
  background: var(--iw-black-soft) !important;
  border: 1px solid var(--iw-border) !important;
  border-top: 2px solid var(--iw-gold) !important;
  border-radius: 0 0 var(--iw-radius-lg) var(--iw-radius-lg) !important;
  box-shadow: var(--iw-shadow) !important;
}

/* ─── PRODUCT SINGLE PAGE ───────────────────────── */
.woocommerce div.product {
  background: var(--iw-black-soft) !important;
  padding: 32px !important;
  border-radius: var(--iw-radius-lg) !important;
  border: 1px solid var(--iw-border) !important;
}

.woocommerce div.product .product_title {
  color: var(--iw-white) !important;
  font-size: 1.8rem !important;
}

.woocommerce div.product p.price {
  color: var(--iw-gold) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  background: transparent !important;
  border-bottom: 1px solid var(--iw-border) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--iw-black-light) !important;
  border-color: var(--iw-border) !important;
  border-radius: var(--iw-radius) var(--iw-radius) 0 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--iw-black-soft) !important;
  border-bottom-color: var(--iw-gold) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--iw-text-primary) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--iw-gold) !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--iw-black-soft) !important;
  border: 1px solid var(--iw-border) !important;
  padding: 24px !important;
}

/* ─── CHECKOUT & CART ───────────────────────────── */
.woocommerce-cart table.cart,
.woocommerce-checkout form.checkout {
  background: var(--iw-black-soft) !important;
  border: 1px solid var(--iw-border) !important;
  border-radius: var(--iw-radius-lg) !important;
}

.woocommerce table.shop_table {
  border-color: var(--iw-border) !important;
}

.woocommerce table.shop_table th {
  color: var(--iw-gold) !important;
  background: var(--iw-black-light) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.woocommerce table.shop_table td {
  color: var(--iw-text-primary) !important;
  border-color: var(--iw-border) !important;
}

/* Order summary */
.woocommerce-checkout #order_review {
  background: var(--iw-black-mid) !important;
  border: 1px solid var(--iw-gold) !important;
  border-radius: var(--iw-radius-lg) !important;
  padding: 24px !important;
}

/* ─── HERO / BANNER SECTIONS ────────────────────── */
.elementor-widget-image img {
  border-radius: var(--iw-radius-lg);
}

/* Hero overlay for dark effect */
.hero-section .elementor-background-overlay,
[class*="hero"] .elementor-background-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(10,10,10,0.6) 100%) !important;
}

/* Gold accent line */
.iw-gold-line,
.elementor-divider.gold-accent .elementor-divider-separator {
  border-top: 2px solid var(--iw-gold) !important;
  width: 60px !important;
  margin: 16px 0 !important;
}

/* ─── STATS / COUNTERS ──────────────────────────── */
.elementor-counter-number,
.elementor-counter-number-wrapper {
  color: var(--iw-gold) !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
}

.elementor-counter-title {
  color: var(--iw-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 0.75rem !important;
}

/* ─── FOOTER ────────────────────────────────────── */
#colophon,
.site-footer,
footer,
.elementor-location-footer {
  background: var(--iw-black-soft) !important;
  border-top: 1px solid var(--iw-border) !important;
  color: var(--iw-text-muted) !important;
}

.site-footer a,
footer a,
.elementor-location-footer a {
  color: var(--iw-text-muted) !important;
  transition: color var(--iw-transition) !important;
}

.site-footer a:hover,
footer a:hover {
  color: var(--iw-gold) !important;
}

/* Footer widget titles */
.site-footer .widget-title,
.elementor-location-footer .elementor-heading-title {
  color: var(--iw-gold) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
}

/* ─── SCROLLBAR CUSTOM ──────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--iw-black);
}

::-webkit-scrollbar-thumb {
  background: var(--iw-gold-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--iw-gold);
}

/* ─── SELECTION COLOR ───────────────────────────── */
::selection {
  background: var(--iw-gold);
  color: var(--iw-black);
}

/* ─── ANIMATIONS & TRANSITIONS ──────────────────── */
@keyframes iw-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.elementor-widget {
  animation: iw-fade-in 0.5s ease both;
}

/* Stagger animation for product grids */
.products li.product:nth-child(1) { animation-delay: 0.05s; }
.products li.product:nth-child(2) { animation-delay: 0.10s; }
.products li.product:nth-child(3) { animation-delay: 0.15s; }
.products li.product:nth-child(4) { animation-delay: 0.20s; }
.products li.product:nth-child(5) { animation-delay: 0.25s; }
.products li.product:nth-child(6) { animation-delay: 0.30s; }

/* ─── MOBILE FIRST ──────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --iw-radius: 4px;
    --iw-radius-lg: 8px;
  }

  .elementor-button,
  .woocommerce button.button,
  .single_add_to_cart_button {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 0.875rem !important;
  }

  .woocommerce ul.products li.product {
    margin-bottom: 16px !important;
  }

  .sub-menu,
  .dropdown-menu {
    background: var(--iw-black-mid) !important;
    border: none !important;
    border-left: 3px solid var(--iw-gold) !important;
    border-radius: 0 !important;
    padding-left: 16px !important;
  }

  /* Mobile nav */
  .elementor-nav-menu--toggle .elementor-nav-menu {
    background: var(--iw-black-soft) !important;
    border-top: 2px solid var(--iw-gold) !important;
  }

  /* Mobile hamburger */
  .elementor-menu-toggle {
    color: var(--iw-gold) !important;
  }
}

@media (max-width: 480px) {
  h1, .elementor-heading-title[class*="h1"] { font-size: 1.8rem !important; }
  h2, .elementor-heading-title[class*="h2"] { font-size: 1.4rem !important; }

  .woocommerce-checkout .col2-set {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ─── ELEMENTOR OVERRIDES ───────────────────────── */
.e-con {
  --e-con-background: transparent !important;
}

/* Dark overlays on images */
.elementor-widget-image-box .elementor-image-box-img img {
  border-radius: var(--iw-radius) !important;
  filter: brightness(0.9) !important;
}

/* Progress bars */
.elementor-progress-bar {
  background: linear-gradient(90deg, var(--iw-gold), var(--iw-gold-light)) !important;
}

/* Star ratings */
.star-rating span::before,
.woocommerce .star-rating span::before {
  color: var(--iw-gold) !important;
}

/* ─── PERFORMANCE: reduce repaints ─────────────── */
.elementor-widget,
.woocommerce ul.products li.product,
a, button {
  will-change: transform;
}

/* ─── NOTICES / ALERTS ──────────────────────────── */
.woocommerce-message,
.woocommerce-info {
  background: var(--iw-black-soft) !important;
  border-top: 3px solid var(--iw-gold) !important;
  color: var(--iw-text-primary) !important;
}

.woocommerce-error {
  background: rgba(180, 40, 40, 0.15) !important;
  border-top-color: #C0392B !important;
  color: #ff6b6b !important;
}

/* ─── BREADCRUMBS ───────────────────────────────── */
.woocommerce-breadcrumb,
.breadcrumb {
  color: var(--iw-text-muted) !important;
  font-size: 0.8rem !important;
}

.woocommerce-breadcrumb a {
  color: var(--iw-text-muted) !important;
}

.woocommerce-breadcrumb a:hover {
  color: var(--iw-gold) !important;
}

/* ─── LOADING SPINNER ───────────────────────────── */
.woocommerce .blockUI.blockOverlay::before {
  border-top-color: var(--iw-gold) !important;
}

/* END IW GRUPO — BLACK & GOLD */
