/* ════════════════════════════════════════════
   TREMIX — Premium Design System v2.0
   ════════════════════════════════════════════ */

:root {
  /* ── Brand Colors ── */
  --trem-primary: #df0202;
  --trem-primary-hover: #a50000;
  --trem-primary-rgb: 223, 2, 2;
  --trem-yellow: #f0b823;
  --trem-yellow-rgb: 240, 184, 35;
  --trem-black: #040404;
  --trem-gray: #2c2c2b;
  --trem-light: #fefefe;
  --trem-dark-steel: #1c1c1c;
  --trem-gunmetal: #383838;
  --trem-silver: #b8b8b8;
  --trem-concrete: #e5e5e5;

  /* ── Premium Gradients ── */
  --trem-gradient-dark: linear-gradient(135deg, #040404 0%, #0a0a0a 50%, #111111 100%);
  --trem-gradient-hero: linear-gradient(160deg, rgba(4,4,4,0.92) 0%, rgba(4,4,4,0.6) 40%, rgba(223,2,2,0.15) 100%);
  --trem-gradient-accent: linear-gradient(135deg, #f0b823 0%, #e8a40f 50%, #d4950a 100%);
  --trem-gradient-red: linear-gradient(135deg, #df0202 0%, #b00000 100%);
  --trem-gradient-section: linear-gradient(180deg, #040404 0%, #0c0c0c 100%);
  --trem-gradient-card: linear-gradient(145deg, rgba(28,28,28,0.9) 0%, rgba(20,20,20,0.95) 100%);

  /* ── Glow Effects ── */
  --trem-glow-primary: 0 0 30px rgba(223, 2, 2, 0.15), 0 0 60px rgba(223, 2, 2, 0.05);
  --trem-glow-yellow: 0 0 30px rgba(240, 184, 35, 0.15), 0 0 60px rgba(240, 184, 35, 0.05);
  --trem-glow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);

  /* ── Typography ── */
  --trem-font-heading: 'Montserrat', sans-serif;
  --trem-font-body: 'Inter', sans-serif;

  /* ── Layout ── */
  --trem-container: 1280px;
  --trem-radius: 16px;
  --trem-radius-sm: 10px;
  --trem-radius-lg: 24px;
  --trem-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --trem-transition-fast: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* ── Colors ── */
  --trem-bg: #fefefe;
  --trem-card-bg: #1c1c1c;
  --trem-text: #333333;
  --trem-text-muted: #777777;
  --trem-border: rgba(255,255,255,0.06);
  --trem-border-hover: rgba(240, 184, 35, 0.3);
  --trem-nav-bg: rgba(4, 4, 4, 0.95);

  /* ── Shadows ── */
  --trem-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --trem-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --trem-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
  --trem-shadow-premium: 0 20px 60px rgba(0,0,0,.4), 0 8px 20px rgba(0,0,0,.25);
  --trem-shadow-card-hover: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(240,184,35,0.15);
}


/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--trem-font-body);
  color: var(--trem-text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--trem-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--trem-font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.trem-text-primary { color: var(--trem-primary); }


/* ════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════ */

.trem-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.trem-container {
  max-width: var(--trem-container);
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}


/* ════════════════════════════════════════════
   SECTION HEADERS — Unified Premium Style
   ════════════════════════════════════════════ */

.trem-sec-head {
  margin-bottom: 56px;
}

.trem-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--trem-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--trem-yellow);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.trem-sec-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--trem-gradient-accent);
  border-radius: 2px;
}

.trem-sec-num {
  font-family: var(--trem-font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--trem-yellow);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}


/* ════════════════════════════════════════════
   GLASSMORPHISM UTILITY
   ════════════════════════════════════════════ */

.trem-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--trem-radius);
}


/* ════════════════════════════════════════════
   BUTTONS — Premium Style
   ════════════════════════════════════════════ */

.trem-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--trem-gradient-red);
  color: #fff;
  font-family: var(--trem-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--trem-radius-sm);
  transition: var(--trem-transition);
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--trem-primary-rgb), 0.3);
}

.trem-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.trem-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(var(--trem-primary-rgb), 0.45);
}

.trem-btn-primary:hover::after {
  opacity: 1;
}

.trem-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  border: 2px solid rgba(var(--trem-yellow-rgb), 0.4);
  color: var(--trem-yellow);
  font-family: var(--trem-font-heading);
  font-weight: 700;
  border-radius: var(--trem-radius-sm);
  transition: var(--trem-transition);
  cursor: pointer;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trem-btn-ghost:hover {
  background: var(--trem-yellow);
  color: var(--trem-black);
  border-color: var(--trem-yellow);
  transform: translateY(-3px);
  box-shadow: var(--trem-glow-yellow);
}


/* ════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
   ════════════════════════════════════════════ */

@keyframes tremFadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tremFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tremSlideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tremShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes tremPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--trem-primary-rgb), 0.2); }
  50% { box-shadow: 0 0 40px rgba(var(--trem-primary-rgb), 0.4); }
}

@keyframes tremMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes tremCountPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes tremFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes tremProgressBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes tremGlowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes tremRotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Fade-in Observer System ── */
.trem-fade {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.trem-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.trem-fade[data-delay="1"] { transition-delay: 0.1s; }
.trem-fade[data-delay="2"] { transition-delay: 0.2s; }
.trem-fade[data-delay="3"] { transition-delay: 0.3s; }
.trem-fade[data-delay="4"] { transition-delay: 0.4s; }
.trem-fade[data-delay="5"] { transition-delay: 0.5s; }
.trem-fade[data-delay="6"] { transition-delay: 0.6s; }
.trem-fade[data-delay="7"] { transition-delay: 0.7s; }
.trem-fade[data-delay="8"] { transition-delay: 0.8s; }


/* ════════════════════════════════════════════
   SECTION DIVIDERS
   ════════════════════════════════════════════ */

.trem-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--trem-yellow-rgb), 0.2), transparent);
  border: none;
  margin: 0;
}


/* ════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════ */

.trem-navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--trem-nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--trem-transition);
}

.trem-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.trem-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trem-nav-brand img {
  height: 40px;
  width: auto;
}

.trem-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.trem-nav-links li a {
  font-family: var(--trem-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--trem-light);
  transition: var(--trem-transition);
  opacity: 0.85;
}
.trem-nav-links li a:hover {
  color: var(--trem-yellow);
  opacity: 1;
}

.trem-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trem-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1100;
}
.trem-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--trem-light);
  margin: 6px 0;
  transition: var(--trem-transition);
}


/* ════════════════════════════════════════════
   STATS
   ════════════════════════════════════════════ */

.trem-stats { background: var(--trem-black); color: #fff; padding: 60px 0; }
.trem-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.trem-stat-num { display: block; font-family: var(--trem-font-heading); font-size: 3rem; font-weight: 900; color: var(--trem-yellow); }
.trem-stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; color: var(--trem-light); }


/* ════════════════════════════════════════════
   SERVICE CARDS
   ════════════════════════════════════════════ */

.trem-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trem-service-card {
  background: var(--trem-gradient-card);
  border: 1px solid var(--trem-border);
  border-radius: 20px;
  padding: 36px;
  transition: var(--trem-transition);
}
.trem-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--trem-shadow-premium);
  border-color: var(--trem-border-hover);
}
.trem-service-card i { font-size: 2rem; color: var(--trem-yellow); margin-bottom: 16px; }
.trem-service-card h3 { margin-bottom: 8px; color: var(--trem-light); }
.trem-service-card p { color: var(--trem-silver); }


/* ════════════════════════════════════════════
   CTA
   ════════════════════════════════════════════ */

.trem-cta { background: var(--trem-black); color: #fff; text-align: center; }
.trem-cta-inner { max-width: 700px; margin: 0 auto; }
.trem-cta h2 { margin-bottom: 16px; color: #fff; }
.trem-cta p { opacity: 0.8; margin-bottom: 32px; }
.trem-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */

.trem-footer-main { background: var(--trem-black); color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
.trem-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.trem-footer-brand p { margin-top: 12px; line-height: 1.7; }
.trem-footer-logo-text { font-family: var(--trem-font-heading); font-size: 1.6rem; font-weight: 900; text-transform: uppercase; }
.trem-footer-links { display: flex; flex-direction: column; gap: 10px; }
.trem-footer-links a {
  transition: var(--trem-transition-fast);
  position: relative;
  display: inline-block;
}
.trem-footer-links a:hover { color: var(--trem-yellow); transform: translateX(4px); }
.trem-social-icons { display: flex; gap: 12px; }
.trem-social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trem-transition);
  font-size: 1rem;
}
.trem-social-icons a:hover {
  background: var(--trem-yellow); border-color: var(--trem-yellow);
  color: var(--trem-black); transform: translateY(-3px);
  box-shadow: var(--trem-glow-yellow);
}
.trem-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}


/* ════════════════════════════════════════════
   BLOG GRID
   ════════════════════════════════════════════ */

.trem-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trem-blog-card {
  border-radius: 20px; overflow: hidden;
  background: var(--trem-gradient-card);
  border: 1px solid var(--trem-border);
  transition: var(--trem-transition);
  display: block;
}
.trem-blog-card:hover { transform: translateY(-6px); box-shadow: var(--trem-shadow-premium); border-color: var(--trem-border-hover); }
.trem-blog-card img { width: 100%; height: 200px; object-fit: cover; }
.trem-blog-card-body { padding: 24px; }
.trem-blog-date { font-size: 0.8rem; color: var(--trem-yellow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.trem-blog-card h3 { margin: 8px 0; font-size: 1.1rem; color: var(--trem-light); }
.trem-blog-card p { font-size: 0.9rem; color: var(--trem-silver); }


/* ════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */

.trem-contact-grid { max-width: 600px; }
.trem-contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.trem-contact-item i { font-size: 1.5rem; color: var(--trem-yellow); margin-top: 4px; }


/* ════════════════════════════════════════════
   WOOCOMMERCE GLOBAL
   ════════════════════════════════════════════ */

.woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper {
  display: none !important;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .trem-nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--trem-black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 1050;
  }
  .trem-nav-links.active { right: 0; }
  .trem-nav-links li a { font-size: 1.5rem; color: var(--trem-light); }
  .trem-hamburger { display: block; }
  .trem-nav-actions .trem-btn-primary { display: none; }
  .trem-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .trem-hamburger.active span:nth-child(2) { opacity: 0; }
  .trem-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

  .trem-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trem-services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .trem-section { padding: 72px 0; }
  .trem-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .trem-blog-grid { grid-template-columns: 1fr; }
  .trem-hero-buttons { flex-direction: column; }
  .trem-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* ── WooCommerce Single Product Mobile Fix ── */
  .woocommerce div.product, 
  .ast-article-single.product {
    display: flex !important;
    flex-direction: column !important;
  }
  .woocommerce div.product div.images,
  .ast-article-single.product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-bottom: 30px !important;
  }
  .woocommerce div.product div.summary,
  .ast-article-single.product .summary.entry-summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }
  .ast-article-single.product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--trem-radius-sm);
  }
}
