/*
Theme Name: BKS Engineering
Theme URI: https://bksengineering.co.ug/
Author: BKS Engineering Services Ltd
Author URI: https://bksengineering.co.ug/
Description: Custom, high-performance WordPress & WooCommerce theme engineered for BKS Engineering Services Ltd. Designed for normal cPanel production hosting with modern corporate aesthetics, responsive layout, quotation engine, and WooCommerce equipment shop.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bks-engineering
Tags: e-commerce, custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* Reset & Root Variables */
:root {
  /* Brand Palette (Aligned with AI Studio Baseline) */
  --bks-primary-dark: #1b357f;  /* Brand Blue */
  --bks-brand-blue: #1b357f;
  --bks-primary-deep: #172554;  /* Secondary Navy */
  --bks-deep-navy: #0f172a;     /* Primary Deep Navy */
  
  /* Slate Tones */
  --bks-slate-950: #020617;
  --bks-slate-900: #0f172a;
  --bks-slate-800: #1e293b;
  --bks-slate-700: #334155;
  --bks-slate-600: #475569;
  --bks-slate-500: #64748b;
  --bks-slate-400: #94a3b8;
  --bks-slate-300: #cbd5e1;
  --bks-slate-200: #e2e8f0;
  --bks-slate-100: #f1f5f9;
  --bks-slate-50: #f8fafc;

  /* Accent & Status Tones */
  --bks-accent-cyan: #38bdf8;
  --bks-accent-teal: #0284c7;
  --bks-sky-400: #38bdf8;
  --bks-sky-600: #0284c7;
  --bks-emerald: #10b981;
  --bks-amber: #f59e0b;

  /* Geometry & Radii (Modern AI Studio Alignment) */
  --bks-radius-xs: 4px;
  --bks-radius-sm: 8px;
  --bks-radius-md: 12px;
  --bks-radius-lg: 16px;  /* rounded-2xl */
  --bks-radius-xl: 24px;  /* rounded-3xl */
  --bks-radius-full: 9999px;

  /* Modern Subtle Shadows */
  --bks-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --bks-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --bks-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --bks-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --bks-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --bks-shadow-card-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);

  /* Gradients */
  --bks-gradient-hero: linear-gradient(135deg, #0f172a 0%, #172554 50%, #1b357f 100%);
  --bks-gradient-cta: linear-gradient(135deg, #0284c7 0%, #1b357f 100%);

  /* Transitions */
  --bks-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --bks-transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --bks-transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --bks-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bks-font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bks-container-max: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--bks-font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--bks-slate-700);
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: var(--bks-slate-700);
  font-family: var(--bks-font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bks-font-heading);
  color: var(--bks-slate-900);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-top: 0;
}

a {
  color: var(--bks-sky-600);
  text-decoration: none;
  transition: var(--bks-transition-fast);
}

a:hover {
  color: var(--bks-brand-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.bks-container {
  width: 100%;
  max-width: var(--bks-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .bks-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================================
   Product / Project photo gallery sizing guards
   (kept here so the detail-page gallery stays inside its grid
   even if a stale copy of bks-styles.css is served)
   ============================================================ */
.bks-gallery-main img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  border-radius: var(--radius, 14px);
  display: block;
}

.bks-gallery-main {
  overflow: hidden;
  border-radius: var(--radius, 14px);
  background: #f8fafc;
}

.bks-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.bks-gallery-thumb {
  flex: 1;
  max-width: 110px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--line, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-sizing: border-box;
}

.bks-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (max-width: 992px) {
  .bks-gallery-main img {
    height: 300px;
  }
}
