/* CSS Variables */
:root {
  --primary: #64748b;
  --primary-foreground: #FFFFFF;
  --secondary: #F59F0A;
  --secondary-foreground: #111827;
  --accent: #DC2828;
  --accent-foreground: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #64748b;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Roboto', sans-serif;
  --radius: 0.75rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem 0;
  color: var(--foreground);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.hamburger-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.clearflowhubex_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clearflowhubex_mobile-menu-content {
  text-align: center;
}

.clearflowhubex_mobile-menu-content a {
  display: block;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.clearflowhubex_mobile-menu-content a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--primary);
}

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

.btn-primary:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  text-decoration: underline;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Icons */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(100, 116, 139, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }

/* Forms */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.2);
}

/* Success Message */
.success-message {
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: var(--foreground);
  text-align: center;
}

.success-message h3 {
  color: #059669;
  margin-bottom: 0.5rem;
}

/* Cookie Banner & Modal */
.clearflowhubex_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 1002;
  padding: 1rem 0;
}

.clearflowhubex_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.clearflowhubex_cookie-banner-text {
  flex: 1;
  min-width: 200px;
}

.clearflowhubex_cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.clearflowhubex_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.clearflowhubex_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.clearflowhubex_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-toggles {
  margin: 1.5rem 0;
}

.clearflowhubex_cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.clearflowhubex_cookie-toggle-row:last-child {
  border-bottom: none;
}

.clearflowhubex_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Body Padding for Fixed Header */
body {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 5rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-foreground);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--primary-foreground);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ Preview */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.faq-item h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--card-foreground);
}

/* Process Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-content h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--foreground);
}

/* Newsletter */
.newsletter {
  background: var(--muted);
  text-align: center;
}

.newsletter-content h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: var(--foreground);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Team Preview */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.team-icon {
  margin-bottom: 1.5rem;
}

.team-card h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.team-card p {
  color: var(--card-foreground);
}

/* Stats Counter */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin: 1rem 0 0.5rem 0;
}

.stat-label {
  color: var(--card-foreground);
  font-weight: 500;
}

/* Why Choose Us / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 4px solid var(--primary);
}

.feature-image {
  height: 200px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 1.5rem;
}

.feature-content h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--card-foreground);
}

/* Pricing Preview */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  position: relative;
}

.pricing-card.featured {
  border-left-color: var(--accent);
  transform: scale(1.05);
}

.pricing-card h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--card-foreground);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* CTA Section */
.cta {
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
}

.cta-content h2 {
  color: var(--primary-foreground);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--primary-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: transparent;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-column p {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Page Header */
.page-header {
  background: var(--muted);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Page */
.services-overview {
  padding: 5rem 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse > * {
  direction: ltr;
}

.service-content h2 {
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.service-content p {
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--foreground);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-pricing {
  margin-top: 2rem;
}

.price-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.5rem;
}

.service-image img {
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
  }
}

/* Service Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  text-align: center;
}

.category-card h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.category-card p {
  color: var(--card-foreground);
}

/* Process Section */
.process-steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.step-icon {
  margin-bottom: 1rem;
}

.process-step h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--foreground);
}

/* About Page */
.company-story {
  padding: 5rem 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-text h2 {
  color: var(--foreground);
  margin-bottom: 2rem;
}

.story-text p {
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.story-image img {
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
  }
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 5rem;
}

.timeline-marker {
  position: absolute;
  left: 1.25rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--foreground);
}

/* Mission & Values */
.mission-values {
  padding: 5rem 0;
  background: var(--muted);
}

.mission-card, .values-card {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.mission-card h2, .values-card h2 {
  color: var(--card-foreground);
  margin-bottom: 1.5rem;
}

.mission-card p, .values-card p {
  color: var(--card-foreground);
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 0.75rem 0;
  color: var(--card-foreground);
  border-bottom: 1px solid var(--border);
}

.values-list li:last-child {
  border-bottom: none;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.member-icon {
  margin-bottom: 1.5rem;
}

.team-member h3 {
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-member p {
  color: var(--card-foreground);
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.achievement-card {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  text-align: center;
}

.achievement-card h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.achievement-card p {
  color: var(--card-foreground);
}

/* Contact Page */
.contact-info-bar {
  background: var(--muted);
  padding: 3rem 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.contact-info-content h3 {
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-info-content p {
  color: var(--card-foreground);
  margin: 0;
  font-size: 0.875rem;
}

/* Contact Form */
.clearflowhubex_contact-form-section {
  padding: 5rem 0;
}

.clearflowhubex_contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-header h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.form-header p {
  color: var(--muted-foreground);
}

.clearflowhubex_contact-form {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--card-foreground);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-text {
  color: var(--card-foreground);
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Additional Contact Options */
.additional-contact {
  background: var(--muted);
  padding: 5rem 0;
}

.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-option {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  text-align: center;
}

.contact-option h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.contact-option p {
  color: var(--card-foreground);
  margin-bottom: 1.5rem;
}

.contact-link {
  color: var(--primary);
  font-weight: 500;
}

/* Company Details */
.company-details {
  padding: 5rem 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.detail-card {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  text-align: center;
}

.detail-card h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.detail-card p {
  color: var(--card-foreground);
}

/* Blog Page */
.featured-article {
  padding: 3rem 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 4px solid var(--primary);
}

.featured-image {
  height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 2rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.article-date {
  color: var(--muted-foreground);
}

.article-category {
  color: var(--primary);
  font-weight: 500;
}

.featured-content h2 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.featured-content p {
  color: var(--card-foreground);
  margin-bottom: 1.5rem;
}

.featured-tags, .article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
}

/* Articles Grid */
.articles-section {
  padding: 5rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 4px solid var(--primary);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.article-content p {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

/* Newsletter Signup */
.newsletter-signup {
  background: var(--muted);
  padding: 5rem 0;
  text-align: center;
}

.newsletter-content h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: var(--foreground);
  margin-bottom: 2rem;
}

/* Topics Section */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.topic-card {
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  text-align: center;
}

.topic-card h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.topic-card p {
  color: var(--card-foreground);
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-header h1 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.last-updated {
  color: var(--muted-foreground);
  font-style: italic;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-body h2 {
  color: var(--foreground);
  margin: 2rem 0 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  color: var(--foreground);
  margin: 1.5rem 0 1rem 0;
}

.legal-body p {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.legal-body ul, .legal-body ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.contact-info {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info strong {
  color: var(--foreground);
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--muted);
  color: var(--foreground);
  font-weight: 600;
}

.cookie-table td {
  color: var(--card-foreground);
}

.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .clearflowhubex_cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .clearflowhubex_cookie-banner-actions {
    justify-content: center;
  }
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#clearflowhubex_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#clearflowhubex_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#clearflowhubex_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }

.animate-fade-in,.fade-in-up,.fade-in-left,.fade-in-right,.fade-in-down,.fade-in,.slide-in-left,.slide-in-right { opacity: 1 !important; transform: none !important; }

/* ============ clearflowhubex PATCH ============ */

/* Nav */
.logo-link{display:flex;align-items:center;gap:.5rem;text-decoration:none;font-weight:700;color:var(--foreground);}
.nav-brand{display:flex;align-items:center;gap:.5rem;text-decoration:none;font-weight:700;color:var(--foreground);}
.nav-links{display:flex;align-items:center;gap:1.5rem;}
[class*="mobile-menu-toggle"]{display:none!important;}
@media(max-width:767px){[class*="mobile-menu-toggle"]{display:flex!important;align-items:center;justify-content:center;}}

/* Icon-box — иконки видимые */
.icon-box{color:var(--primary)!important;background:rgba(100,116,139,0.12);}
.icon-box i,.icon-box svg{color:var(--primary)!important;stroke:var(--primary)!important;}

/* Hero */
.hero-title{font-size:2.5rem;font-weight:700;line-height:1.2;margin-bottom:1.5rem;color:var(--foreground);}

/* Footer */
.footer{background:#111827;color:#f9fafb;padding:3rem 0 1.5rem;}
.footer a{color:rgba(255,255,255,.65);text-decoration:none;transition:color .2s;}
.footer a:hover{color:#fff;}
.footer h4{color:#f9fafb;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.75rem;}
.footer p{color:rgba(255,255,255,.65);font-size:.875rem;}
.footer-link{color:rgba(255,255,255,.65)!important;font-size:.875rem;}
.footer-link:hover{color:#fff!important;}

/* Missing sections */
.stats-counter{padding:5rem 0;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;}
.stats-counter .stat-number,.stats-counter 
.stats-counter 
.achievements{padding:5rem 0;background:var(--muted);}
.faq-preview{padding:5rem 0;}
.pricing-preview{padding:5rem 0;background:var(--muted);}
.process-section{padding:5rem 0;background:var(--muted);}
.team-preview{padding:5rem 0;}
.why-choose-us{padding:5rem 0;background:var(--muted);}
.newsletter-text h2{color:var(--foreground);margin-bottom:.5rem;}
.newsletter-text p{color:var(--muted-foreground);}

/* Service categories */
.service-categories{padding:5rem 0;background:var(--muted);}
.categories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;}
.category-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;}
.category-content{padding:1.5rem;display:flex;flex-direction:column;gap:.75rem;}
.category-image{height:200px;overflow:hidden;}
.category-image img{width:100%;height:100%;object-fit:cover;display:block;}

/* Timeline / topics */
.timeline-section{padding:5rem 0;}
.topics-section{padding:5rem 0;background:var(--muted);}

/* Prose / table */
.prose{max-width:65ch;line-height:1.75;}
.prose p{margin-bottom:1rem;color:var(--foreground);}
.prose h2{font-size:1.5rem;margin:2rem 0 1rem;}
.prose ul,.prose ol{margin-bottom:1rem;padding-left:1.5rem;}
.table-wrap{overflow-x:auto;margin:1.5rem 0;}
.table-full{width:100%;border-collapse:collapse;}
.table-head th{padding:.75rem 1rem;text-align:left;font-weight:600;background:var(--muted);border-bottom:1px solid var(--border);}
.table-cell{padding:.75rem 1rem;border-bottom:1px solid var(--border);color:var(--foreground);}
.text-xl{font-size:1.5rem;line-height:1.3;}

@media(min-width:769px){.grid-3{grid-template-columns:repeat(3,1fr)!important;}}

.stats-counter { background: linear-gradient(135deg,var(--primary),var(--secondary)) !important; color: #fff !important; padding: 5rem 0 !important; }
.stats-counter h2, .stats-counter h3, .stats-counter p { color: #fff !important; }

/* ============ clearflowhubex BTN + CTA FIX ============ */

/* btn-primary — заливной фон */
.btn-primary {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: 2px solid var(--primary) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary:hover { opacity: 0.9; }

/* btn-outline в светлом контексте */
.btn-outline {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
}
.btn-outline:hover { background: var(--primary) !important; color: #fff !important; }

/* btn-outline в тёмных секциях (cta, hero, stats) — белые */
.cta .btn-outline,
.hero .btn-outline,
.stats-counter .btn-outline {
  border-color: rgba(255,255,255,0.7) !important;
  color: #fff !important;
}
.cta .btn-outline:hover,
.hero .btn-outline:hover { background: rgba(255,255,255,0.15) !important; }

/* CTA section — белый текст */
.cta-content { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-content h2 { color: var(--primary-foreground) !important; margin-bottom: 1rem; }
.cta-content p  { color: rgba(255,255,255,0.9) !important; margin-bottom: 2rem; }

/* index.html белый текст */
.hero h1, .hero h2, .hero p { color: #fff !important; }
.hero .btn-primary { background: #fff !important; color: var(--primary) !important; border-color: #fff !important; }

/* stats-counter белый текст принудительно */
.stats-counter * { color: inherit; }
.stats-counter h2,.stats-counter h3 { color: #fff !important; }

/* CTA на about и services — padding */
.cta { padding: 5rem 0 !important; }

/* stat-item карточки — тёмный текст на белом фоне */




/* === STATS COUNTER — FINAL FIX === */
/* Карточки на оранжевом градиентном фоне */
.stats-counter { padding: 5rem 0 !important; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.95) !important;
  border-radius: var(--radius);
  border-left: none !important;
  border-top: 4px solid var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat-item .icon-box {
  background: rgba(100,116,139,0.1);
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.stat-number, .stat-value {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  display: block;
  line-height: 1;
}
.stat-label, .stat-title {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--foreground) !important;
}
