/*
Theme Name: BangDinhNhom Premium
Theme URI: https://bangdinhnhom.com
Author: BangDinhNhom.com
Description: Custom premium WordPress theme - Băng dính nhôm, vật tư HVAC, cách nhiệt công nghiệp
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: bangdinhnhom
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-primary:        #0F4C81;
  --color-primary-dark:   #0A3561;
  --color-primary-light:  #1565A8;
  --color-secondary:      #1E88E5;
  --color-secondary-light:#42A5F5;
  --color-accent:         #FF9800;
  --color-accent-dark:    #E65100;
  --color-accent-light:   #FFB74D;
  --color-bg:             #F8FAFC;
  --color-bg-dark:        #EEF2F7;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F1F5F9;
  --color-text:           #1F2937;
  --color-text-muted:     #6B7280;
  --color-text-light:     #9CA3AF;
  --color-border:         #D1D9E3;
  --color-border-light:   #E8EDF4;
  --color-dark:           #0D1B2A;
  --color-dark-2:         #162032;
  --color-dark-3:         #1E2D3D;
  --color-steel:          #607D8B;
  --color-aluminum:       #B0BEC5;
  --font-display:         'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:            'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:            'JetBrains Mono', monospace;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.25rem; --text-5xl: 3rem;
  --text-6xl: 3.75rem; --text-7xl: 4.5rem;
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
  --space-3xl: 4rem; --space-4xl: 6rem; --space-5xl: 8rem;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
  --radius-xl: 16px; --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 25px rgba(15,76,129,0.35);
  --shadow-accent: 0 6px 20px rgba(255,152,0,0.40);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --container-pad: clamp(1rem, 4vw, 2rem);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-secondary); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
p { margin-bottom: var(--space-md); } p:last-child { margin-bottom: 0; }

/* LAYOUT */
.container { width: 100%; max-width: var(--container-xl); margin: 0 auto; padding: 0 var(--container-pad); }
.container--wide { max-width: var(--container-2xl); }
.container--narrow { max-width: 900px; }
.section { padding: var(--space-4xl) 0; }
.section--lg { padding: var(--space-5xl) 0; }
.section--sm { padding: var(--space-2xl) 0; }

/* SECTION HEADER */
.section-header { margin-bottom: var(--space-3xl); }
.section-header--center { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-md);
}
.section-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--color-accent); }
.section-title { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); margin-bottom: var(--space-md); font-weight: 800; }
.section-title--white { color: #fff; }
.section-subtitle { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.7; }
.section-subtitle--white { color: rgba(255,255,255,0.75); }
.divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); border-radius: var(--radius-full); margin-bottom: var(--space-xl); }
.divider--center { margin-left: auto; margin-right: auto; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 0.75rem 1.75rem; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition-base); text-decoration: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition-fast); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: var(--shadow-primary); }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 35px rgba(15,76,129,0.45); }
.btn--accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.btn--lg { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }

/* CARDS */
.card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--transition-base); border: 1px solid var(--color-border-light); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-primary-light); }

/* BADGES */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: var(--radius-full); }
.badge--primary { background: rgba(15,76,129,0.1); color: var(--color-primary); }
.badge--accent { background: rgba(255,152,0,0.15); color: var(--color-accent-dark); }
.badge--success { background: rgba(34,197,94,0.1); color: #15803d; }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-lg); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes shimmer { 0% { background-position:-200% center; } 100% { background-position:200% center; } }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,152,0,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255,152,0,0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* FORMS */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-sm); }
.form-label--required::after { content: ' *'; color: #ef4444; }
.form-control {
  width: 100%; padding: 0.75rem 1rem; font-family: var(--font-body);
  color: var(--color-text); background: var(--color-surface);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  transition: all var(--transition-fast); outline: none;
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(15,76,129,0.12); }
.form-control::placeholder { color: var(--color-text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* UTILITIES */
.text-center { text-align: center; } .text-left { text-align: left; }
.text-primary { color: var(--color-primary); } .text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); } .text-white { color: #fff; }
.text-bold { font-weight: 700; }
.bg-primary { background-color: var(--color-primary); }
.bg-dark { background-color: var(--color-dark); }
.bg-surface-2 { background-color: var(--color-surface-2); }
.d-flex { display: flex; } .align-center { align-items: center; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); } .gap-xl { gap: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); } .mb-2xl { margin-bottom: var(--space-2xl); }
.mt-auto { margin-top: auto; } .mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; } .relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.img-overlay { position: relative; overflow: hidden; }
.img-overlay img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.img-overlay:hover img { transform: scale(1.05); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-steel); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* RESPONSIVE */
.show-mobile { display: none; } .hide-mobile { display: block; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .show-mobile { display: block; } .hide-mobile { display: none; }
  .section { padding: var(--space-3xl) 0; }
  .section--lg { padding: var(--space-4xl) 0; }
}
