/*
Theme Name: TechFerv 2.0
Theme URI: https://techferv.com
Author: TechFerv
Description: A standalone TechFerv theme built around the red/black security-console concept — viewfinder brackets, WhatsApp-first booking, and a package-led homepage. Built to work alongside the TechFerv Ops plugin and WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techferv-2-0
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--text);
  font-family: "Inter", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: var(--wp--preset--color--text); }
a:hover { color: var(--wp--preset--color--primary); }

/* ---------- shared brand components (used across templates) ---------- */

.tf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .tf-wrap { padding: 0 20px; } }

.tf-bracket { position: relative; border: 1px solid var(--wp--preset--color--line); }
.tf-bracket::before, .tf-bracket::after, .tf-bracket .tf-bl, .tf-bracket .tf-br {
  content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--wp--preset--color--primary);
}
.tf-bracket::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tf-bracket::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.tf-bracket .tf-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.tf-bracket .tf-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.tf-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 15px 26px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; }
.tf-btn-primary { background: var(--wp--preset--color--primary); color: #fff !important; }
.tf-btn-primary:hover { background: #B81E33; color: #fff !important; }
.tf-btn-outline { border-color: var(--wp--preset--color--line); color: var(--wp--preset--color--text) !important; }
.tf-btn-outline:hover { border-color: var(--wp--preset--color--muted); }

/* ---------- header ---------- */

.tf-header { position: sticky; top: 0; z-index: 50; background: rgba(21,20,18,0.97); border-bottom: 1px solid var(--wp--preset--color--line-soft); }
.tf-header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
@font-face {
  font-family: "Spin Cycle";
  src: url("/wp-content/themes/techferv-2-0/assets/fonts/spin-cycle.woff") format("woff"),
       url("/wp-content/themes/techferv-2-0/assets/fonts/spin-cycle.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.tf-logo { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; color: var(--wp--preset--color--text) !important; }
.tf-logo .tf-dot { width: 9px; height: 9px; background: var(--wp--preset--color--primary); border-radius: 50%; box-shadow: 0 0 0 4px rgba(215,38,61,0.15); }
.tf-logo-link { display: flex; align-items: center; text-decoration: none !important; }
.tf-logo-text { font-family: "Spin Cycle", "Archivo", sans-serif; font-size: 26px; letter-spacing: 0.02em; color: var(--wp--preset--color--text); line-height: 1; }

/* ---------- mobile navigation overlay ---------- */
.tf-header .wp-block-navigation__responsive-container-open {
  color: var(--wp--preset--color--text) !important;
}
.tf-header .wp-block-navigation__responsive-container-open .wp-block-navigation__responsive-container-open-icon,
.tf-header .wp-block-navigation__responsive-container-open svg {
  fill: var(--wp--preset--color--text) !important;
  stroke: var(--wp--preset--color--text) !important;
}
.tf-header .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(21, 20, 18, 0.82) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 999999 !important;
  padding: 24px !important;
}
.tf-header .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--text) !important;
}
.tf-header .wp-block-navigation__responsive-container-close svg { fill: var(--wp--preset--color--text) !important; }
.tf-header .wp-block-navigation__responsive-container-content ul.wp-block-navigation__container {
  gap: 8px !important;
}
.tf-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item a {
  color: var(--wp--preset--color--text) !important;
  font-family: "Archivo", sans-serif;
  font-size: 22px !important;
  font-weight: 700;
  padding: 14px 0 !important;
}
.tf-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item a:hover {
  color: var(--wp--preset--color--primary) !important;
}
.tf-header nav a { font-size: 14.5px; color: var(--wp--preset--color--muted) !important; text-decoration: none; margin-right: 28px; }
.tf-header nav a:hover { color: var(--wp--preset--color--text) !important; }
.tf-header .wp-block-navigation { flex-wrap: nowrap; }
.tf-header .wp-block-navigation__container { gap: 28px; }
.tf-header .wp-block-navigation-item a { color: var(--wp--preset--color--muted) !important; font-size: 14.5px; }
.tf-header .wp-block-navigation-item a:hover { color: var(--wp--preset--color--text) !important; }

/* ---------- footer ---------- */

.tf-footer { border-top: 1px solid var(--wp--preset--color--line-soft); padding: 48px 0; }
.tf-footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.tf-footer a { color: var(--wp--preset--color--muted) !important; text-decoration: none; font-size: 13.5px; }
.tf-footer a:hover { color: var(--wp--preset--color--text) !important; }
.tf-footer-links { display: flex; gap: 24px; }

/* ---------- hero ---------- */

.tf-hero { padding: 64px 0 70px; }
.tf-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .tf-hero-grid { grid-template-columns: 1fr; } }
.tf-kicker { color: var(--wp--preset--color--primary); font-weight: 700; font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.tf-kicker::before { content: ''; width: 28px; height: 1px; background: var(--wp--preset--color--primary); }
h1.tf-h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 18px; }
.tf-lead { color: var(--wp--preset--color--muted); font-size: 17px; max-width: 460px; margin-bottom: 28px; }
.tf-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.tf-stat-row { display: flex; gap: 30px; flex-wrap: wrap; }
.tf-stat b { font-family: "Archivo"; font-size: 24px; display: block; }
.tf-stat span { color: var(--wp--preset--color--muted-faint); font-size: 13px; }

.tf-hero-visual { position: relative; aspect-ratio: 4/5; background: var(--wp--preset--color--surface); padding: 18px; }
.tf-scene { position: relative; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(215,38,61,0.12), transparent 55%), linear-gradient(180deg, #1A1815, #100F0D); }
.tf-scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary), transparent); animation: tfSweep 4.5s ease-in-out infinite; opacity: 0.75; }
@keyframes tfSweep { 0%,100% { top: 8%; opacity: 0; } 10% { opacity: .8; } 50% { top: 88%; opacity: .8; } 60% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tf-scanline { animation: none; opacity: .35; top: 45%; } .tf-pulse { animation: none !important; } }
.tf-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--wp--preset--color--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--wp--preset--color--line-soft) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.5; }
.tf-rec-tag { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 6px; font-family: "Archivo"; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--wp--preset--color--primary); }
.tf-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--primary); animation: tfPulse 1.6s infinite; }
@keyframes tfPulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.tf-cam-icon { position: absolute; bottom: 20px; right: 20px; width: 90px; height: 90px; opacity: 0.9; }
.tf-corner-label { position: absolute; bottom: 14px; left: 14px; font-size: 11px; color: var(--wp--preset--color--muted-faint); }

/* ---------- trust strip ---------- */

.tf-trust { border-top: 1px solid var(--wp--preset--color--line-soft); border-bottom: 1px solid var(--wp--preset--color--line-soft); background: var(--wp--preset--color--surface); }
.tf-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .tf-trust-grid { grid-template-columns: repeat(2, 1fr); } }
.tf-trust-item { padding: 22px 20px; border-right: 1px solid var(--wp--preset--color--line-soft); }
.tf-trust-item:last-child { border-right: none; }
.tf-trust-item b { font-family: "Archivo"; font-size: 14.5px; display: block; margin-bottom: 3px; }
.tf-trust-item span { color: var(--wp--preset--color--muted-faint); font-size: 12.5px; }

/* ---------- sections ---------- */

.tf-section { padding: 72px 0; }
.tf-section-head { max-width: 560px; margin-bottom: 44px; }
.tf-kicker-sm { color: var(--wp--preset--color--primary); font-weight: 700; font-size: 13px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.tf-kicker-sm::before { content: ''; width: 22px; height: 1px; background: var(--wp--preset--color--primary); }
h2.tf-h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 12px; }
.tf-section-head p { color: var(--wp--preset--color--muted); font-size: 16px; }

/* ---------- packages ---------- */

.tf-pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tf-pkg-grid { grid-template-columns: 1fr; } }
.tf-pkg-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line-soft); padding: 28px 22px; position: relative; }
.tf-pkg-card.tf-featured { background: var(--wp--preset--color--surface-2); border-color: var(--wp--preset--color--primary-deep); }
.tf-pkg-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--wp--preset--color--primary); background: rgba(215,38,61,0.15); padding: 4px 10px; margin-bottom: 16px; }
h3.tf-pkg-name { font-size: 20px; margin-bottom: 6px; }
.tf-pkg-price { font-family: "Archivo"; font-size: 30px; color: var(--wp--preset--color--primary); margin: 12px 0 4px; }
.tf-pkg-price span { font-size: 13px; color: var(--wp--preset--color--muted-faint); font-family: "Inter"; font-weight: 400; }
.tf-pkg-desc { color: var(--wp--preset--color--muted); font-size: 14px; margin-bottom: 20px; }
.tf-pkg-list { list-style: none; margin: 0 0 24px; padding: 0; }
.tf-pkg-list li { font-size: 14px; color: var(--wp--preset--color--muted); padding: 7px 0; border-top: 1px solid var(--wp--preset--color--line-soft); display: flex; gap: 10px; }
.tf-pkg-list li::before { content: ''; width: 5px; height: 5px; background: var(--wp--preset--color--primary); margin-top: 8px; flex-shrink: 0; }
.tf-pkg-card .tf-btn { width: 100%; justify-content: center; }
.tf-visit-note { margin-top: 32px; padding: 18px 22px; border: 1px dashed var(--wp--preset--color--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.tf-visit-note p { color: var(--wp--preset--color--muted); font-size: 14px; margin: 0; }
.tf-visit-note b { color: var(--wp--preset--color--text); }

/* ---------- process ---------- */

.tf-process-strip { background: var(--wp--preset--color--surface); }
.tf-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--wp--preset--color--line-soft); }
@media (max-width: 800px) { .tf-process-grid { grid-template-columns: repeat(2, 1fr); } }
.tf-process-step { background: var(--wp--preset--color--surface); padding: 30px 24px; }
.tf-process-num { font-family: "Archivo"; font-size: 14px; color: var(--wp--preset--color--primary); margin-bottom: 16px; }
h4.tf-step-title { font-size: 16px; margin-bottom: 8px; }
.tf-process-step p { color: var(--wp--preset--color--muted); font-size: 13.5px; margin: 0; }

/* ---------- why us ---------- */

.tf-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--wp--preset--color--line-soft); border: 1px solid var(--wp--preset--color--line-soft); }
@media (max-width: 800px) { .tf-why-grid { grid-template-columns: 1fr; } }
.tf-why-item { background: var(--wp--preset--color--background); padding: 26px 28px; }
h4.tf-why-title { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.tf-why-title::before { content: ''; width: 6px; height: 6px; background: var(--wp--preset--color--primary); }
.tf-why-item p { color: var(--wp--preset--color--muted); font-size: 14px; margin: 0; }

/* ---------- final CTA ---------- */

.tf-final-cta { background: linear-gradient(135deg, var(--wp--preset--color--primary-deep), var(--wp--preset--color--background) 70%); padding: 60px 0; }
.tf-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
h2.tf-final-h { font-size: clamp(24px, 3.2vw, 34px); max-width: 460px; margin: 0; }

/* ---------- generic page content (Book, Dashboard, blog posts) ---------- */

.tf-page-content { max-width: 760px; margin: 0 auto; padding: 64px 32px; }
.tf-page-content h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 24px; }
.tf-page-content input, .tf-page-content select, .tf-page-content textarea {
  width: 100%; padding: 10px 12px; margin-top: 4px; margin-bottom: 16px;
  background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
  color: var(--wp--preset--color--text); font-family: "Inter", sans-serif;
}
.tf-page-content label { font-size: 14px; color: var(--wp--preset--color--muted); }
.tf-page-content button, .tf-page-content input[type="submit"] {
  background: var(--wp--preset--color--primary); color: #fff; border: none;
  padding: 12px 24px; font-weight: 600; cursor: pointer;
}

::selection { background: var(--wp--preset--color--primary); color: #fff; }

/* =========================================================
 * WOOCOMMERCE — shop, product, cart, checkout, my account
 * ========================================================= */

.tf-shop, .tf-product-page, .tf-cart-page, .tf-checkout-page { padding: 48px 0 80px; }
.tf-shop-head { align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }

/* breadcrumbs */
.woocommerce-breadcrumb { color: var(--wp--preset--color--muted-faint); font-size: 13px; margin-bottom: 24px; }
.woocommerce-breadcrumb a { color: var(--wp--preset--color--muted); }
.woocommerce-breadcrumb a:hover { color: var(--wp--preset--color--primary); }

/* store notices / alerts */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner,
.wc-block-store-notices .components-notice {
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--line) !important;
  border-left: 3px solid var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--text) !important;
  padding: 14px 18px !important;
  list-style: none;
}
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: var(--wp--preset--color--primary) !important; }

/* product grid cards */
.tf-product-grid ul.products, .tf-product-grid .wc-block-product-template { display: grid; gap: 24px; }
.wc-block-product-template__responsive.columns-3, .tf-product-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .tf-product-grid, .wc-block-product-template__responsive.columns-3 { grid-template-columns: repeat(2, 1fr) !important; } }
.wc-block-product-template li.wc-block-product, li.product {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line-soft);
  padding: 20px !important;
  list-style: none;
}
.wc-block-components-product-image img, .woocommerce ul.products li.product img {
  border-radius: 0 !important; margin-bottom: 14px;
}
.wc-block-components-product-price, .price, .woocommerce-Price-amount {
  color: var(--wp--preset--color--primary) !important;
  font-family: "Archivo", sans-serif; font-weight: 700 !important;
}
del .woocommerce-Price-amount { color: var(--wp--preset--color--muted-faint) !important; font-weight: 400 !important; opacity: .7; }
.onsale, .wc-block-components-product-sale-badge {
  background: var(--wp--preset--color--primary) !important; color: #fff !important;
  border-radius: 0 !important; font-weight: 700; text-transform: uppercase; font-size: 11px !important;
}
.wc-block-grid__product-title, h3.wp-block-post-title, .woocommerce-loop-product__title {
  font-size: 16px !important; margin: 8px 0 !important;
}

/* buttons (add to cart, view product, checkout, etc.) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wc-block-components-button, .wp-block-woocommerce-product-button a,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--wp--preset--color--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  padding: 12px 22px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.wc-block-components-button:hover, .wc-block-cart__submit-button:hover {
  background: #B81E33 !important; color: #fff !important;
}
.wc-block-components-button.wp-element-button.contained { background: var(--wp--preset--color--primary) !important; }

/* forms — inputs, selects, textareas across shop/cart/checkout/account */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce table.shop_table td select, .wc-block-components-text-input input,
.wc-block-components-combobox input, select, .select2-container--default .select2-selection--single,
.woocommerce-account input, .woocommerce-account select, .woocommerce-account textarea {
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--line) !important;
  color: var(--wp--preset--color--text) !important;
  border-radius: 0 !important;
}
.wc-block-components-text-input label, .woocommerce form .form-row label { color: var(--wp--preset--color--muted) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--wp--preset--color--text) !important; }
.select2-dropdown { background: var(--wp--preset--color--surface) !important; border-color: var(--wp--preset--color--line) !important; }

/* cart & checkout blocks */
.wc-block-cart, .wc-block-checkout { color: var(--wp--preset--color--text); }
.wc-block-cart-items, .wc-block-components-totals-wrapper, .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-panel, table.shop_table {
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--line-soft) !important;
  border-radius: 0 !important;
}
.wc-block-cart-items__header, .wc-block-cart-items__row, table.shop_table th, table.shop_table td {
  border-color: var(--wp--preset--color--line-soft) !important;
  color: var(--wp--preset--color--text) !important;
}
.wc-block-components-order-summary-item, .wc-block-components-totals-item { color: var(--wp--preset--color--text) !important; }
.wc-block-components-totals-item__description, .wc-block-components-totals-item__label { color: var(--wp--preset--color--muted) !important; }
.wc-block-components-quantity-selector, input.wc-block-components-quantity-selector__input {
  background: var(--wp--preset--color--surface) !important;
  border-color: var(--wp--preset--color--line) !important;
  color: var(--wp--preset--color--text) !important;
}
.wc-block-components-radio-control__option, .wc-block-checkout__payment-method,
.wc-block-components-payment-method-label { color: var(--wp--preset--color--text) !important; }
.wc-block-components-radio-control__input { accent-color: var(--wp--preset--color--primary); }

/* my account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 32px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { margin-bottom: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block; padding: 12px 16px;
  background: var(--wp--preset--color--surface);
  border-left: 2px solid transparent;
  color: var(--wp--preset--color--muted) !important;
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  border-left-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { color: var(--wp--preset--color--text) !important; }
.woocommerce-MyAccount-content table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-MyAccount-content table.shop_table th, .woocommerce-MyAccount-content table.shop_table td {
  padding: 12px; border-bottom: 1px solid var(--wp--preset--color--line-soft);
}
.woocommerce-orders-table__cell-order-status { color: var(--wp--preset--color--muted); }

/* related products / product details tabs */
.woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--wp--preset--color--line-soft); padding: 0; list-style: none; display: flex; gap: 24px; }
.woocommerce-tabs ul.tabs li a { color: var(--wp--preset--color--muted); text-decoration: none; padding-bottom: 10px; display: block; }
.woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--text); border-bottom: 2px solid var(--wp--preset--color--primary); }
.tf-product-columns { gap: 48px; margin-bottom: 48px; }
