/*
Theme Name: KAZ SINO Oil & Gas
Theme URI: https://kazsino.kz
Author: KAZ SINO
Author URI: https://kazsino.kz
Description: Premium corporate WordPress theme for KAZ SINO Oil & Gas Energy Equipment - a Sino-Kazakh joint venture. Features warm architectural design, product catalog, services showcase, certifications, global presence, news section, and contact form. Optimized for Namecheap hosting.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kazsino
Domain Path: /languages
Tags: corporate, energy, oil-gas, bilingual, responsive, custom-menu, featured-images
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   KAZ SINO OIL & GAS - WORDPRESS THEME
   Optimized for Namecheap Shared Hosting
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1A1A1A;
  background-color: #FAF9F6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

/* ============================================
   DESIGN TOKENS - CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --warm-ivory: #FAF9F6;
  --taupe-surface: #F5F1EB;
  --light-mocha: #C4BBAF;
  --taupe-gray: #8A7E74;
  --warm-gold: #B8976A;
  --oil-black: #1A1A1A;
  --deep-espresso: #4A3F35;
  --aged-gold: #9A8256;
  --sage-earth: #6B7B6E;
  --steel-blue: #5A7A8A;
  --muted-rose: #B08D8D;
  --soft-clay: #C9A96E;
  --off-white: #F0EDE7;
  --mid-gray: #A09A94;
  --charcoal: #2D2A26;
  --warm-white: #FCFBF8;
  --deep-forest: #3A4A3A;
  --caspian-blue: #4A6A8A;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-body { font-family: 'DM Sans', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

/* Display */
.text-display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

/* H1 */
.text-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* H2 */
.text-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* H3 */
.text-h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

/* Body */
.text-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

/* Nav */
.text-nav {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: 0.02em;
}

/* Caption */
.text-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

/* Label */
.text-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Stat */
.text-stat {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* Mono */
.text-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container-main {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

@media (max-width: 768px) {
  .container-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background-color: var(--oil-black);
  color: var(--warm-white);
  transition: all 0.25s ease-out;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background-color: var(--warm-gold);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.08);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background-color: transparent;
  border: 1px solid var(--oil-black);
  color: var(--oil-black);
  transition: all 0.25s ease-out;
  font-family: 'DM Sans', sans-serif;
}

.btn-outline:hover {
  background-color: var(--oil-black);
  color: var(--warm-white);
}

/* ============================================
   CARDS & HOVER
   ============================================ */
.card-hover {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.12);
}

/* ============================================
   SECTION PADDING
   ============================================ */
.section-padding {
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 1023px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* ============================================
   MARQUEE
   ============================================ */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
}

/* ============================================
   PULSE MARKER
   ============================================ */
@keyframes pulse-marker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.pulse-marker {
  animation: pulse-marker 2s ease-in-out infinite;
}

/* ============================================
   BOUNCE
   ============================================ */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.animate-bounce {
  animation: bounce 1.5s ease-in-out infinite;
}

/* ============================================
   LINE CLAMP
   ============================================ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[55\%_45\%\] { grid-template-columns: 55% 45%; }
  .lg\:grid-cols-\[60\%_40\%\] { grid-template-columns: 60% 40%; }
  .lg\:flex-row-reverse { flex-direction: row-reverse; }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:gap-16 { gap: 64px; }
}

/* ============================================
   FLEX UTILITIES
   ============================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
}

/* ============================================
   SPACING
   ============================================ */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-8 { margin-left: 32px; margin-right: 32px; }
.mx-10 { margin-left: 40px; margin-right: 40px; }

.my-6 { margin-top: 24px; margin-bottom: 24px; }
.my-12 { margin-top: 48px; margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-7 { margin-top: 28px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-auto { margin-left: auto; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-10 { margin-right: 40px; }

/* Padding */
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.pb-4 { padding-bottom: 16px; }
.pb-5 { padding-bottom: 20px; }
.pb-10 { padding-bottom: 40px; }
.pb-16 { padding-bottom: 64px; }
.pt-20 { padding-top: 80px; }
.pl-4 { padding-left: 16px; }
.pl-5 { padding-left: 20px; }
.pl-6 { padding-left: 24px; }
.pr-4 { padding-right: 16px; }

/* ============================================
   WIDTH / HEIGHT
   ============================================ */
.w-full { width: 100%; }
.w-1 { width: 4px; }
.w-1\.5 { width: 6px; }
.w-2 { width: 8px; }
.w-2\.5 { width: 10px; }
.w-3 { width: 12px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-3\/5 { width: 60%; }
.max-w-\[400px\] { max-width: 400px; }
.max-w-\[420px\] { max-width: 420px; }
.max-w-\[440px\] { max-width: 440px; }
.max-w-\[480px\] { max-width: 480px; }
.max-w-\[520px\] { max-width: 520px; }
.max-w-\[560px\] { max-width: 560px; }
.max-w-\[600px\] { max-width: 600px; }
.max-w-\[640px\] { max-width: 640px; }
.max-w-\[680px\] { max-width: 680px; }
.max-w-\[700px\] { max-width: 700px; }
.max-w-\[720px\] { max-width: 720px; }
.max-w-\[800px\] { max-width: 800px; }
.max-w-\[900px\] { max-width: 900px; }
.max-w-\[1000px\] { max-width: 1000px; }
.min-w-\[80px\] { min-width: 80px; }

.h-full { height: 100%; }
.h-px { height: 1px; }
.h-3 { height: 12px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }

/* ============================================
   POSITION
   ============================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.inset-x-0 { left: 0; right: 0; }

.top-0 { top: 0; }
.top-2 { top: 8px; }
.top-4 { top: 16px; }
.top-15 { top: 60px; }
.top-20 { top: 80px; }

.right-0 { right: 0; }
.right-4 { right: 16px; }
.right-10 { right: 40px; }

.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 16px; }
.bottom-5 { bottom: 20px; }
.bottom-6 { bottom: 24px; }
.bottom-16 { bottom: 64px; }

.left-0 { left: 0; }
.left-4 { left: 16px; }
.left-6 { left: 24px; }

.z-10 { z-index: 10; }
.z-\[99\] { z-index: 99; }
.z-\[100\] { z-index: 100; }

/* ============================================
   TEXT ALIGN
   ============================================ */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ============================================
   TEXT DECORATION
   ============================================ */
.whitespace-nowrap { white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ============================================
   BORDER
   ============================================ */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-md { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.rounded-l-full { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; }
.rounded-r-full { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; }

/* ============================================
   OVERFLOW
   ============================================ */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.resize-none { resize: none; }

/* ============================================
   OPACITY
   ============================================ */
.opacity-80 { opacity: 0.8; }
.opacity-40 { opacity: 0.4; }

/* ============================================
   TRANSFORM
   ============================================ */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0 { transform: translateX(0); }
.-translate-x-full { transform: translateX(-100%); }

/* ============================================
   TRANSITIONS
   ============================================ */
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-transform { transition-property: transform; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.ease-out { transition-timing-function: ease-out; }

/* ============================================
   OBJECT FIT
   ============================================ */
.object-cover { object-fit: cover; }

/* ============================================
   SPACE
   ============================================ */
.space-y-0 > * + * { margin-top: 0; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }
.space-y-12 > * + * { margin-top: 48px; }
.space-y-20 > * + * { margin-top: 80px; }

/* ============================================
   LIST
   ============================================ */
.list-none { list-style: none; }

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
/* WordPress admin bar fix */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Menu styling */
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a { display: block; padding: 8px 0; }
.main-navigation ul li.current-menu-item a,
.main-navigation ul li a:hover { color: var(--warm-gold); }

/* WordPress content area */
.entry-content > * { max-width: 100%; }
.entry-content img { border-radius: 8px; }

/* Form styling for WordPress */
.wp-block-search__input,
.wp-block-contact-form input,
.wp-block-contact-form textarea {
  background-color: var(--off-white);
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--oil-black);
  width: 100%;
}

/* Mobile menu */
@media (max-width: 1023px) {
  .mobile-menu { display: none; }
  .mobile-menu.active { display: block; }
}

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */
@media (max-width: 1023px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
