/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Default GeneratePress child theme
Author: Tom Usborne
Author URI: https://tomusborne.com
Template: generatepress
Version: 0.1
*/

/* =============================================================
   TORN HVAC — Child Theme Custom CSS
   Brand red: #DD3333
   ============================================================= */

:root {
  --torn-red: #DD3333;
  --torn-radius: 16px;
}

/* ---- Global: rounded corners on all images ---- */
.wp-block-image img,
.wp-block-cover img,
.wp-block-post-featured-image img,
figure img,
.entry-content img,
.woocommerce img,
.wc-block-grid__product-image img {
  border-radius: var(--torn-radius);
}

/* ---- Hero Section ---- */
.torn-hero-v2 {
  background: linear-gradient(135deg, #0f0f0f 0%, #1c1c1c 45%, #2a0808 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  width: 100%;
}

.torn-hero-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 65% 35%, rgba(221,51,51,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.torn-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

.torn-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: thFadeUp 0.6s ease forwards 0.1s;
}

.torn-hero-label::before {
  content: '●';
  color: var(--torn-red);
  font-size: 7px;
}

.torn-hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: thFadeUp 0.7s ease forwards 0.25s;
}

.torn-hero-title span {
  color: var(--torn-red);
}

.torn-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: thFadeUp 0.7s ease forwards 0.4s;
}

.torn-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: thFadeUp 0.7s ease forwards 0.55s;
}

.torn-hero-buttons a {
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.th-btn-primary {
  padding: 16px 38px;
  background: var(--torn-red);
  color: #fff !important;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(221,51,51,0.4);
}

.th-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.th-btn-primary:hover::after { left: 160%; }
.th-btn-primary:hover {
  box-shadow: 0 6px 32px rgba(221,51,51,0.6);
  transform: translateY(-2px);
  color: #fff !important;
}

.th-btn-outline {
  padding: 14px 36px;
  background: transparent;
  color: #fff !important;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.35);
}

.th-btn-outline:hover {
  border-color: var(--torn-red);
  background: rgba(221,51,51,0.12);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ---- Service Cards ---- */
.torn-hero-cards {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.th-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--torn-radius);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.th-card.th-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lift — only once card is visible */
.th-card.th-visible:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.55);
}

.th-card:nth-child(1) { transition-delay: 0.05s; }
.th-card:nth-child(2) { transition-delay: 0.2s; }
.th-card:nth-child(3) { transition-delay: 0.35s; }

.th-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.6s ease;
}

.th-card--center img {
  height: 360px;
}

.th-card.th-visible:hover img {
  transform: scale(1.06);
}

.th-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  padding: 28px 20px 22px;
  transition: transform 0.35s ease;
}

.th-card.th-visible:hover .th-card-overlay {
  transform: translateY(-6px);
}

.th-card-badge {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 12px 15px;
}

.th-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--torn-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.th-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.th-card-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.th-card-text span {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  line-height: 1.4;
}

/* ---- Logo Strip ---- */
.torn-logo-strip {
  background: #f5f5f5;
  padding: 26px 20px;
  text-align: center;
}

.torn-logo-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
}

.torn-logo-strip-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.torn-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #bbb;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: default;
  letter-spacing: 0.5px;
}

.torn-logo-text:hover {
  color: #444;
  transform: scale(1.06);
}

/* ---- Animations ---- */
@keyframes thFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- WooCommerce: Product Image Hover Zoom ---- */
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.woocommerce ul.products li.product:hover a img,
.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.06);
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  overflow: hidden;
  display: block;
  border-radius: var(--torn-radius);
}

.woocommerce ul.products li.product {
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

/* ---- Carousel arrow buttons — always visible ---- */
.pj-car-btn {
  color: #1a2e45 !important;
}

/* ---- Industrii pe care le deservim — buton Detalii rosu ---- */
.gb-element-b1000006,
.gb-element-b2000006,
.gb-element-b3000006,
.gb-element-b4000006,
.gb-element-b5000006,
.gb-element-b6000006 {
  color: #DD3333 !important;
}

/* ---- DE CE NOI — al 6-lea box (acelasi stil cu celelalte) ---- */
.gb-element-dcc5d6e7 {
  background: rgba(255, 255, 255, 0.07);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}