/*
Theme Name:   Teklofts
Theme URI:    https://teklofts.com/
Description:  Teklofts — Premium WooCommerce child theme for Twenty Twenty-Five. Dark, modern, and branded.
Author:       Teklofts
Author URI:   https://teklofts.com
Template:     twentytwentyfive
Version:      1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  teklofts
Tags:         ecommerce, woocommerce, dark, modern, full-site-editing
*/

/*
 * NOTE: Twenty Twenty-Five is a Block Theme (FSE).
 * This child theme does NOT override FSE templates — it layers CSS on top
 * and provides classic PHP templates for WooCommerce pages only.
 * All global design tokens, header/footer, and typography are managed here.
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* — Colors — */
  --clr-bg:          #09090b;
  --clr-bg-2:        #101014;
  --clr-bg-3:        #17171d;
  --clr-surface:     rgba(255,255,255,0.04);
  --clr-surface-2:   rgba(255,255,255,0.08);
  --clr-border:      rgba(255,255,255,0.07);
  --clr-border-2:    rgba(255,255,255,0.13);

  --clr-text:        #ededf0;
  --clr-text-2:      #8888a0;
  --clr-text-3:      #55556a;

  /* — Teklofts Brand Colors — */
  --clr-teal:        #0D9488;           /* logo top bar */
  --clr-orange:      #F97316;           /* logo gradient end */
  --clr-yellow:      #FACC15;           /* logo gradient start */

  /* Primary accent = teal; secondary = orange */
  --clr-accent:      #0D9488;
  --clr-accent-2:    #F97316;
  --clr-accent-glow: rgba(13,148,136,0.28);
  --clr-accent-glow-2: rgba(249,115,22,0.25);

  --clr-green:       #2ecc71;
  --clr-red:         #ff3f5f;

  /* — Teklofts Gradients — */
  /* Brand gradient: yellow-orange (mirrors logo fill) */
  --grad-brand:      linear-gradient(135deg, #FACC15 0%, #F97316 100%);
  /* Accent gradient: teal → orange (teal header to warm CTA) */
  --grad-accent:     linear-gradient(135deg, #0D9488 0%, #F97316 100%);
  /* Teal-only gradient for subtle panels */
  --grad-teal:       linear-gradient(135deg, #0D9488 0%, #0a7a70 100%);

  --grad-hero:       radial-gradient(ellipse 90% 70% at 50% -10%, rgba(13,148,136,0.14) 0%, transparent 60%),
                     radial-gradient(ellipse 50% 50% at 85% 45%, rgba(249,115,22,0.09) 0%, transparent 55%),
                     #09090b;
  --grad-card:       linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  --grad-text:       linear-gradient(135deg, #fff 25%, #8888a0 100%);

  /* — Typography — */
  --font-display:    'Bricolage Grotesque', sans-serif;
  --font-body:       'Instrument Sans', sans-serif;
  --font-mono:       'IBM Plex Mono', monospace;

  /* — Spacing scale — */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  7rem;
  --sp-2xl: 11rem;

  /* — Radii — */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   36px;
  --r-full: 9999px;

  /* — Shadows — */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:    0 2px 4px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg:    0 4px 8px rgba(0,0,0,0.5), 0 16px 48px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 48px rgba(13,148,136,0.18);
  --shadow-glow-sm: 0 0 16px rgba(13,148,136,0.14);

  /* — Transitions — */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    180ms;
  --dur-mid:     360ms;
  --dur-slow:    640ms;
}

/* ============================================================
   TWENTY TWENTY-FIVE OVERRIDES
   Reset TT25's opinionated global styles that clash with dark theme
   ============================================================ */

/* Override TT25 body background and text */
body,
.wp-site-blocks {
  background-color: var(--clr-bg) !important;
  color: var(--clr-text) !important;
}

/* Override TT25 default font stack */
body {
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Override TT25 heading fonts */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--font-display) !important;
  letter-spacing: -0.03em;
}

/* Override TT25 link colors */
a {
  color: var(--clr-text);
  text-decoration: none;
}

a:hover { color: var(--clr-accent); }

/* Override TT25 header block */
.wp-block-template-part[data-type="core/template-part"],
header.wp-block-template-part,
.site-header {
  background: transparent !important;
}

/* Kill TT25 light backgrounds on sections */
.wp-block-group,
.wp-block-cover {
  background-color: transparent;
}

/* TT25 uses CSS custom properties — map ours */
:root {
  --wp--preset--color--base:       var(--clr-bg);
  --wp--preset--color--contrast:   var(--clr-text);
  --wp--preset--color--primary:    var(--clr-teal);
  --wp--preset--color--secondary:  var(--clr-orange);
  --wp--preset--font-family--body: var(--font-body);
  --wp--preset--font-family--heading: var(--font-display);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::selection { background: var(--clr-accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-3); }

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9998;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--clr-teal);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.fbx-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.fbx-container--wide   { max-width: 1480px; }
.fbx-container--narrow { max-width: 820px; }

.fbx-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.fbx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fbx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp   { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes orbFloat { 0%,100% { transform:translate(0,0) scale(1); } 40% { transform:translate(18px,-26px) scale(1.04); } 70% { transform:translate(-12px,16px) scale(0.97); } }
@keyframes shimmer  { to { background-position: -200% 0; } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.45; transform:scale(0.65); } }
@keyframes scrollLine { 0%,100% { transform:scaleY(1); opacity:1; } 50% { transform:scaleY(0.3); opacity:0.4; } }
@keyframes brandScroll { to { transform:translateX(-50%); } }
@keyframes testimonialsScroll { to { transform:translateX(-50%); } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
