/* Critical CSS for Above-the-Fold Content */

:root {
  --primary-color: #ff6b35;
  --text-dark: #2c2c2c;
  --bg-light: #faf8f5;
  --border-radius: 8px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header & Navigation */
header {
  position: relative;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.logo-image {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0;
}

/* Hero Section */
.sppb-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.sppb-col {
  flex: 0 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.sppb-col-md-6 {
  flex: 0 0 50%;
}

@media (max-width: 768px) {
  .sppb-col-md-6 {
    flex: 0 0 100%;
  }
}

/* Images - Critical for LCP */
.sppb-img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  background-color: #f0f0f0;
}

/* Main Title */
.sppb-addon h1,
.sppb-addon h2,
.main-title {
  font-weight: 700;
  line-height: 1.2;
  margin: 20px 0;
  color: var(--primary-color);
}

.sppb-addon h1 {
  font-size: 2.5rem;
}

.sppb-addon h2 {
  font-size: 2rem;
}

/* Buttons */
.sppb-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.sppb-btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.sppb-btn-primary:hover {
  background-color: #ff5a1f;
  transform: translateY(-2px);
}

/* Lazy Loading Placeholder */
.lazyload {
  background-color: #f0f0f0;
  color: transparent;
}

.lazyloaded {
  background-color: transparent;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .sppb-addon h1 {
    font-size: 1.5rem;
  }
  
  .sppb-addon h2 {
    font-size: 1.25rem;
  }
  
  .sppb-col {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Prevent Layout Shift */
html {
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
}

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

/* Font Loading */
@font-face {
  font-family: 'Chakra Petch';
  src: url('https://fonts.gstatic.com/s/chakrapetch/v10/cIf9Ma5rplyvnTIz5PFQbjVQfjSgne8.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
