/* CSS Variables */
:root {
  --primary: #2563eb;
  --primary-foreground: #FFFFFF;
  --secondary: #8b5cf6;
  --secondary-foreground: #FFFFFF;
  --accent: #16a34a;
  --accent-foreground: #111827;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #2563eb;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Inter', sans-serif;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }

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

.hidden {
  display: none !important;
}

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

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

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

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

/* Icons */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-bottom-color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-bottom-color: var(--accent);
  transform: translateY(-2px);
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--primary-foreground);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
}

.btn-hero-primary:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-3px);
}

.btn-hero-outline {
  background: transparent;
  color: var(--primary-foreground);
  border: 2px solid var(--primary-foreground);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--primary-foreground);
}

.btn-hero-outline:hover {
  background: var(--primary-foreground);
  color: var(--primary);
  border-bottom-color: var(--accent);
  transform: translateY(-3px);
}

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--primary-foreground);
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a, .business-hours {
  color: var(--primary-foreground);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.truetdqc_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.truetdqc_mobile-menu {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.truetdqc_mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .truetdqc_mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  .9;
}

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

.hero-image {
  position: relative;
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

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

/* Page Header */
.page-header {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
  padding: 3rem 0;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

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

/* Sections */
.features-section, .why-choose-section, .about-preview-section, 
.stats-section, .process-section, .cta-section, .testimonials-section,
.services-overview, .pricing-section, .company-story, .mission-values,
.why-choose-detailed, .achievements, .contact-section, .contact-options,
.faq-section, .blog-section, .related-topics {
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.features-section:nth-child(even), .why-choose-section:nth-child(even),
.about-preview-section:nth-child(even), .stats-section:nth-child(even),
.process-section:nth-child(even), .testimonials-section:nth-child(even) {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

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

/* Cards */
.feature-card, .benefit-card, .testimonial-card, .pricing-card,
.achievement-card, .value-card, .contact-option-card, .topic-card,
.blog-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.feature-card:hover, .benefit-card:hover, .testimonial-card:hover,
.achievement-card:hover, .value-card:hover, .contact-option-card:hover,
.topic-card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-left-color: var(--accent);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* Pricing Cards */
.pricing-card.featured {
  border-left-color: var(--accent);
  transform: scale(1.05);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.pricing-description {
  color: var(--muted-foreground);
}

.pricing-features ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.pricing-footer {
  text-align: center;
}

/* About Preview */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.about-img {
  border-radius: var(--radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

/* Stats Section */
.stat-card {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
  padding: 1rem;
}

.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-foreground);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

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

/* CTA Section */
.cta-section {
  background: var(--background);
}

.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--primary-foreground);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  .9;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Testimonials */
.testimonial-content {
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--card-foreground);
}

.testimonial-author {
  color: var(--muted-foreground);
}

.author-role {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Services Page */
.service-detail {
  padding: 3rem 0;
}

.service-detail.alternate {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

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

.service-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.service-description {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

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

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

/* About Page */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.mission-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.mission-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.mission-text {
  font-size: 1.125rem;
  color: var(--foreground);
}

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

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

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

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

.advantage-item.reverse {
  direction: rtl;
}

.advantage-item.reverse > * {
  direction: ltr;
}

.advantage-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

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

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

.achievement-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

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

@media (max-width: 768px) {
  .story-grid, .advantage-item, .values-grid, .achievements-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

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

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

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

.form-input:focus {
  outline: none;
  border-color: var(--ring);
}

.form-submit {
  width: 100%;
}

.success-message {
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1rem;
}

.success-content h3 {
  margin-bottom: 0.5rem;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.info-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  flex-shrink: 0;
}

.contact-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.contact-value {
  color: var(--muted-foreground);
}

.contact-value a {
  color: var(--primary);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

.response-time {
  background: var(--muted);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.response-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
}

.option-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.option-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

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

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

.legal-text {
  max-width: 800px;
  margin: 0 auto;
  color: var(--foreground);
}

.legal-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--foreground);
}

.legal-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--foreground);
}

.legal-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-text ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-text li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-text a {
  color: var(--primary);
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

/* FAQ Page */
.faq-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  background: var(--card);
}

.faq-question h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin: 0;
}

.faq-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted-foreground);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-contact {
  padding: 3rem 0;
  background: var(--muted);
}

.contact-cta-card {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.contact-option {
  text-align: center;
}

.option-content h3 {
  margin-bottom: 0.5rem;
}

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

/* Blog Page */
.blog-intro {
  text-align: center;
  margin-bottom: 3rem;
}

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

.blog-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

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

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

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

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--card-foreground);
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.blog-newsletter {
  margin-top: 3rem;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--primary-foreground);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
}

.newsletter-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-text {
  margin-bottom: 2rem;
  .9;
}

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

.newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
}

.newsletter-disclaimer {
  font-size: 0.875rem;
  .8;
}

.newsletter-disclaimer a {
  color: var(--primary-foreground);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

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

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

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 2rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.footer-contact p {
  margin-bottom: 0.25rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-contact-list a {
  color: var(--primary);
  text-decoration: none;
}

.footer-contact-list a:hover {
  text-decoration: underline;
}

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

.footer-legal {
  color: var(--muted-foreground);
}

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

.footer-legal-links a {
  color: var(--primary);
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
}

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

/* Cookie Consent */
.truetdqc_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 9999;
}

.truetdqc_cookie-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.truetdqc_cookie-banner-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--foreground);
}

.truetdqc_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.truetdqc_cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truetdqc_cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.truetdqc_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.cookie-toggles {
  margin-bottom: 2rem;
}

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

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

.truetdqc_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .truetdqc_cookie-banner-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .truetdqc_cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
  
  .truetdqc_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Animation Classes */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate-fade-in.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.animate-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.animate-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}

.animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Design */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .cta-card {
    padding: 2rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .hero-actions, .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Print Styles */
@media print {
  .top-bar, .navbar, .truetdqc_cookie-banner, .truetdqc_cookie-modal {
    display: none !important;
  }
  
  .hero {
    background: none !important;
    color: black !important;
  }
  
  .btn-primary, .btn-outline {
    border: 1px solid black !important;
    background: none !important;
    color: black !important;
  }
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  position: relative;
  z-index: 2;
}

/* === 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 */
#truetdqc_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#truetdqc_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#truetdqc_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
