/* =============================================
   SorbiTech Regions Template
   ============================================= */

.region-page {
  background: #fff;
  color: #1a1a1a;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ----- Hero Section ----- */
.region-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 80px 40px 64px;
}

.region-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.region-hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  z-index: 0;
}

.region-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,.20) 0%,
    rgba(0,0,0,.40) 50%,
    rgba(0,0,0,.82) 100%
  );
  z-index: 1;
}

.region-hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51,153,255,.10), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.region-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Breadcrumb */
.region-hero-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.region-hero-breadcrumb a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}

.region-hero-breadcrumb a:hover {
  color: #3399ff;
}

.region-hero-breadcrumb .sep {
  opacity: .5;
  font-size: 11px;
}

.region-hero-breadcrumb .current {
  color: rgba(255,255,255,.95);
}

/* Badge */
.region-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51,153,255,.12);
  color: #3399ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.region-hero-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Title */
.region-hero h1 {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 20px;
  max-width: 800px;
}

.region-hero h1 strong {
  font-weight: 700;
  color: #3399ff;
}

/* Lead */
.region-hero-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  max-width: 640px;
  margin: 0 0 32px;
}

/* Hero Stats */
.region-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.region-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-hero-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.region-hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* CTA buttons in hero */
.region-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.region-hero-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  border: none;
}

.region-hero-cta .btn-primary {
  background: #3399ff;
  color: #fff;
}

.region-hero-cta .btn-primary:hover {
  background: #1a85f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(51,153,255,.35);
}

.region-hero-cta .btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}

.region-hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
}

/* ----- Main Section ----- */
.region-main {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.region-main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

/* ----- Content Area ----- */
.region-content {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  max-width: none;
  text-align: justify;
  overflow: hidden;
}

.region-content::after {
  content: '';
  display: table;
  clear: both;
}

.region-content h2 {
  font-family: 'Manrope', -apple-system, sans-serif;
  text-align: left;
  clear: both;
  font-size: clamp(28px, 3.5vw, 44px) !important;
  font-weight: 300 !important;
  letter-spacing: -.025em !important;
  color: #333 !important;
  margin: 56px 0 24px !important;
  line-height: 1.1 !important;
}

.region-content h2 strong {
  font-weight: 700 !important;
  color: #3399ff !important;
}

.region-content h2:first-child {
  margin-top: 0 !important;
}

.region-content h3 {
  font-family: 'Manrope', -apple-system, sans-serif;
  text-align: left;
  clear: both;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 40px 0 16px !important;
  line-height: 1.25 !important;
  letter-spacing: -.015em !important;
}

.region-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 12px;
  letter-spacing: -.01em;
}

.region-content p {
  margin: 0 0 20px;
  color: #444;
}

.region-content a {
  color: #3399ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(51,153,255,.25);
  transition: all .2s;
}

.region-content a:hover {
  color: #1a85f0;
  border-bottom-color: #1a85f0;
}

/* Lists */
.region-content ul,
.region-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.region-content li {
  margin-bottom: 8px;
  color: #444;
}

.region-content li::marker {
  color: #3399ff;
}

/* Tables — override wp-block-table defaults */
.region-content table,
.region-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 32px;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: none !important;
}

.region-content .wp-block-table {
  margin: 28px 0 32px;
  overflow-x: auto;
  border: none !important;
}

.region-content thead th,
.region-content .wp-block-table thead th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
  border: none !important;
  border-bottom: none !important;
}

.region-content tbody td,
.region-content .wp-block-table tbody td {
  padding: 13px 18px;
  border: none !important;
  border-bottom: 1px solid #eef0f3 !important;
  color: #444;
  vertical-align: top;
}

.region-content tbody tr:last-child td,
.region-content .wp-block-table tbody tr:last-child td {
  border-bottom: none !important;
}

.region-content tbody tr:nth-child(even),
.region-content .wp-block-table tbody tr:nth-child(even) {
  background: #f8f9fb;
}

.region-content tbody tr:hover,
.region-content .wp-block-table tbody tr:hover {
  background: #f0f4fa;
}

.region-content tbody td:first-child,
.region-content .wp-block-table tbody td:first-child {
  font-weight: 600;
  color: #1a1a1a;
}

.region-content .wp-block-table thead {
  border-bottom: none !important;
}

.region-content .wp-block-table tfoot {
  border-top: none !important;
}

/* Images */
.region-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.region-content figure {
  margin: 24px 0;
}

.region-content figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
}

/* Blockquotes */
.region-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid #3399ff;
  background: #f7f9fb;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}

/* FAQ styling */
.region-content .wp-block-heading + p,
.region-content h3 + p {
  margin-top: 4px;
}

/* Strong text */
.region-content strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* ----- Sidebar ----- */
.region-sidebar {
  position: sticky;
  top: 100px;
}

/* Form Card */
.region-sidebar-form-card {
  background: #f7f9fb;
  color: #1a1a1a;
  border-radius: 6px;
  padding: 32px 28px;
  border: 1px solid #e5e9ef;
  position: relative;
  margin-bottom: 24px;
}

.region-sidebar-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3399ff;
  border-radius: 6px 6px 0 0;
}

.region-sidebar-form-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.region-sidebar-form-card > p {
  font-size: 13px;
  color: #5a6470;
  margin: 0 0 20px;
  line-height: 1.55;
}

.region-sidebar-form .form-row {
  margin-bottom: 12px;
}

.region-sidebar-form input,
.region-sidebar-form textarea,
.region-sidebar-form select {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #d6dae0;
  border-radius: 4px;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  transition: .2s;
  box-sizing: border-box;
}

.region-sidebar-form input:focus,
.region-sidebar-form textarea:focus {
  outline: none;
  border-color: #3399ff;
  box-shadow: 0 0 0 3px rgba(51,153,255,.1);
}

.region-sidebar-form textarea {
  resize: vertical;
  min-height: 80px;
}

.region-sidebar-form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #3399ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
  margin-top: 4px;
}

.region-sidebar-form button[type="submit"]:hover {
  background: #1a85f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(51,153,255,.3);
}

.region-sidebar-form button[type="submit"]:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.region-sidebar-form-msg {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  min-height: 0;
}

.region-sidebar-form-msg.success {
  color: #16a34a;
}

.region-sidebar-form-msg.error {
  color: #dc2626;
}

/* Sidebar Cards */
.region-sidebar-card {
  background: #f7f9fb;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.region-sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e9ef;
}

.region-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.region-sidebar-links li {
  margin-bottom: 0;
}

.region-sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all .2s;
}

.region-sidebar-links a:hover {
  background: rgba(51,153,255,.06);
  color: #3399ff;
}

.region-sidebar-links a::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #3399ff;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .2s;
}

.region-sidebar-links a:hover::before {
  opacity: 1;
}

.region-sidebar-links .active a {
  background: rgba(51,153,255,.08);
  color: #3399ff;
  font-weight: 600;
}

.region-sidebar-links .active a::before {
  opacity: 1;
}

/* ----- Raw Materials Section ----- */
.region-materials {
  padding: 80px 40px;
  background: #f7f9fb;
}

.region-materials-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.region-materials-header {
  text-align: center;
  margin-bottom: 48px;
}

.region-materials-header h2 {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.025em;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.1;
}

.region-materials-header h2 strong {
  font-weight: 700;
  color: #3399ff;
}

.region-materials-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.region-materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

a.region-material-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.region-material-card {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  padding: 0;
  text-align: center;
  transition: all .3s;
  overflow: hidden;
}

.region-material-card:hover {
  border-color: #3399ff;
  box-shadow: 0 8px 28px rgba(51,153,255,.10);
  transform: translateY(-4px);
}

.region-material-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.region-material-card h3,
.region-material-card p {
  padding-left: 24px;
  padding-right: 24px;
}

.region-material-card h3 {
  padding-top: 20px;
}

.region-material-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3399ff;
  padding: 0 24px 24px;
  transition: gap .2s;
}

.region-material-card:hover .region-material-link {
  gap: 10px;
}

.region-material-link svg {
  stroke: #3399ff;
}

.region-material-icon {
  width: 56px;
  height: 56px;
  margin: 24px auto 20px;
  background: rgba(51,153,255,.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.region-material-icon svg {
  width: 26px;
  height: 26px;
  stroke: #3399ff;
}

.region-material-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.region-material-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  margin: 0;
}

/* ----- Accordion FAQ ----- */
.region-faq {
  margin: 56px 0 32px;
}

.region-faq-title {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: clamp(28px, 3.5vw, 44px) !important;
  font-weight: 300 !important;
  letter-spacing: -.025em !important;
  color: #333 !important;
  margin: 0 0 28px !important;
  line-height: 1.1 !important;
  text-align: left !important;
}

.region-faq-title strong {
  font-weight: 700 !important;
  color: #3399ff !important;
}

.region-faq-item {
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}

.region-faq-item:hover {
  border-color: #ccd3dc;
}

.region-faq-item.active {
  border-color: #3399ff;
}

.region-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}

.region-faq-q:hover {
  background: #f7f9fb;
}

.region-faq-q h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  letter-spacing: -.01em !important;
  text-align: left !important;
}

.region-faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.region-faq-item.active .region-faq-icon {
  background: #3399ff;
  transform: rotate(180deg);
}

.region-faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: #666;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.region-faq-item.active .region-faq-icon svg {
  stroke: #fff;
}

.region-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.region-faq-item.active .region-faq-a {
  max-height: 600px;
}

.region-faq-a-inner {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* ----- CTA Section ----- */
.region-cta {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.region-cta::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51,153,255,.12), transparent 60%);
  pointer-events: none;
}

.region-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.region-cta h2 {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}

.region-cta h2 strong {
  font-weight: 700;
  color: #3399ff;
}

.region-cta p {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  margin: 0 0 32px;
  line-height: 1.7;
}

.region-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: #3399ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
}

.region-cta .btn-primary:hover {
  background: #1a85f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51,153,255,.35);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .region-main-grid {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }
}

@media (max-width: 880px) {
  .region-hero {
    min-height: 340px;
    padding: 60px 24px 48px;
  }

  .region-main {
    padding: 48px 24px;
  }

  .region-main-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .region-sidebar {
    position: static;
  }

  .region-materials {
    padding: 48px 24px;
  }

  .region-materials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .region-cta {
    padding: 56px 24px;
  }

  .region-hero-stats {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .region-hero {
    min-height: 280px;
    padding: 48px 16px 36px;
  }

  .region-hero h1 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .region-main {
    padding: 32px 16px;
  }

  .region-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .region-hero-cta {
    flex-direction: column;
  }

  .region-hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .region-materials-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Print ----- */
@media print {
  .region-hero {
    background: #1a1a1a !important;
    color: #fff !important;
    min-height: auto;
    padding: 24px;
  }
  .region-sidebar,
  .region-cta,
  .region-materials {
    display: none;
  }
  .region-main-grid {
    grid-template-columns: 1fr;
  }
}
