/*
Theme Name: Dubhe Roll Handling
Theme URI: https://www.dubhesystems.com
Author: Dubhe Intelligent Systems
Author URI: https://www.dubhesystems.com
Description: SEO-focused multilingual WordPress theme for roll clamp material handling carts, film roll handling equipment, paper roll loaders, drum handlers, tire handling and slitter/rewinder roll feeding solutions.
Version: 1.6.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dubhe-roll-handling
Tags: industrial-equipment, manufacturing, material-handling, multilingual, roll-handling
*/

:root {
  --navy: #10263f;
  --ink: #121722;
  --muted: #5e6878;
  --paper: #f6f7f9;
  --panel: #ffffff;
  --accent: #f97316;
  --line: #e5e8ee;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.boot {
  padding: 48px;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 232, 238, 0.78);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.logo-image {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.logo strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.logo span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.language-switch {
  position: relative;
  display: inline-block;
}

.language-switch summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344052;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 42px rgba(16, 38, 63, 0.18);
}

.language-switch[open] .language-menu {
  display: grid;
  gap: 4px;
}

.language-menu a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #344052;
  font-size: 13px;
  font-weight: 800;
}

.language-menu a em {
  color: #64748b;
  font-style: normal;
  font-weight: 700;
}

.language-menu a.active,
.language-menu a:hover {
  color: #fff;
  background: var(--navy);
}

.language-menu a.active em,
.language-menu a:hover em {
  color: rgba(255, 255, 255, 0.78);
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #344052;
  font-size: 14px;
}

.site-nav a:hover {
  background: #eef1f5;
}

.site-nav a.active {
  color: var(--navy);
  background: #eef1f5;
  font-weight: 900;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.hero {
  background: #fff;
  overflow: hidden;
}

.hero-wrap {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 54px;
  padding: 34px 0 32px;
}

.hero-wrap > *,
.section-wrap > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  color: var(--navy);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-text {
  margin: 20px 0 0;
  max-width: 720px;
  color: #4a5567;
  font-size: 19px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.mobile-break {
  display: none;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.24);
}

.btn.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badge {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  position: relative;
  display: grid;
  gap: 14px;
}

.hero-photo {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(16, 38, 63, 0.2);
}

.hero-photo img {
  width: 100%;
  height: min(500px, 52vh);
  min-height: 360px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}

.page-hero {
  padding: 72px 0 42px;
  background: #fff;
}

.page-hero h1 {
  margin: 0;
  max-width: 920px;
  color: var(--navy);
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #4a5567;
  font-size: 19px;
  line-height: 1.7;
}

.hero-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 34px rgba(16, 38, 63, 0.12);
}

.stat {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.stat strong {
  color: var(--accent);
  font-size: 24px;
}

.stat span {
  color: #3f4a5b;
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 82px 0;
}

.section.white {
  background: #fff;
}

.section.dark {
  color: #fff;
  background: var(--navy);
}

.section-wrap {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section.dark .section-head h2,
.section.dark .section-head p {
  color: #fff;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pain-card,
.version-card,
.field-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pain-card {
  min-height: 210px;
  padding: 26px;
}

.card-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.pain-card h3,
.action-card h3,
.scene-card h3,
.version-card h3,
.media-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.pain-card p,
.action-card p,
.scene-card p,
.version-card p,
.media-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.solution-image {
  overflow: hidden;
  border-radius: 8px;
  background: #dde2ea;
}

.solution-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.action-card h3,
.action-card p {
  color: #fff;
}

.action-card p {
  color: rgba(255, 255, 255, 0.78);
}

.action-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
}

.scene-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #27364a;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.faq-item h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.72;
}

.scene-card,
.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.scene-card img,
.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe4eb;
}

.media-card img {
  object-fit: contain;
  background: #fff;
}

.scene-card div,
.media-card div {
  padding: 20px;
}

.versions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.version-card {
  padding: 26px;
}

.version-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: -8px 0 18px;
  border-radius: 8px;
  background: #fff;
}

.version-card.heavy-version .version-image {
  transform: scale(1.08);
  transform-origin: center;
  margin: -10px 0 22px;
}

.version-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #9a4a0d;
  background: #fff1e7;
  font-size: 13px;
  font-weight: 800;
}

.version-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.version-card li {
  position: relative;
  padding-left: 18px;
  color: #3f4a5b;
  font-size: 14px;
  line-height: 1.5;
}

.version-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 42px;
  align-items: start;
}

.field-list {
  display: grid;
  gap: 10px;
}

.field-card {
  padding: 16px 18px;
  color: #334155;
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 38, 63, 0.08);
}

.lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #344052;
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.lead-form textarea {
  min-height: 92px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.lead-recommendation {
  padding: 14px 16px;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: 8px;
  background: #fff7ed;
  color: #334155;
}

.lead-recommendation strong {
  display: block;
  margin-bottom: 6px;
  color: #9a3412;
  font-size: 14px;
}

.lead-recommendation p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.ai-assistant {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fafc;
}

.assistant-head,
.assistant-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-head {
  justify-content: space-between;
}

.assistant-head strong {
  color: var(--navy);
  font-size: 15px;
}

.assistant-head button,
.assistant-input button,
.assistant-options button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.assistant-messages {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
}

.assistant-message {
  width: fit-content;
  max-width: 92%;
  border-radius: 8px;
  padding: 9px 11px;
  color: #334155;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.assistant-message.user {
  justify-self: end;
  color: #fff;
  background: var(--accent);
}

.assistant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-options button {
  background: #475569;
}

.assistant-input input {
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direct-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.contact-pill.whatsapp {
  background: #16a34a;
}

.contact-pill.email {
  background: var(--navy);
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.about-copy {
  color: #d7dfeb;
  font-size: 17px;
  line-height: 1.9;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
}

.about-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.cta-section {
  padding: 76px 0;
  color: #fff;
  background: #121722;
}

.cta-wrap {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto;
  gap: 34px;
  align-items: center;
}

.cta-wrap h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
}

.cta-wrap p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.75;
}

.site-footer {
  padding: 34px 0;
  color: #d4dbe7;
  background: var(--navy);
}

.footer-wrap {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  gap: 8px;
}

.floating-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(16, 38, 63, 0.24);
}

.floating-link.whatsapp {
  background: #16a34a;
}

.floating-link.email {
  background: var(--navy);
}

.screen-reader-response,
.site-main .hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero-wrap,
  .section-head,
  .solution-layout,
  .selection-layout,
  .about-layout,
  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .hero-wrap {
    gap: 34px;
    padding-top: 46px;
  }

  .hero-stats {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .hero-photo img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .pain-grid,
  .scene-grid,
  .versions-grid,
  .media-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-image img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .nav-wrap {
    width: calc(100% - 28px);
    max-width: var(--max);
    position: relative;
    padding-right: 86px;
  }

  .hero-wrap,
  .section-wrap,
  .cta-wrap,
  .footer-wrap {
    width: calc(100% - 56px);
    max-width: var(--max);
  }

  .hero-wrap {
    justify-items: start;
  }

  .hero-wrap > div,
  .hero-media {
    width: 100%;
    max-width: 320px;
  }

  .hero-media {
    justify-self: center;
  }

  .logo {
    min-width: 0;
  }

  .logo > span > span {
    display: none;
  }

  .language-switch {
    position: fixed;
    left: 270px;
    right: auto;
    top: 17px;
    z-index: 30;
    transform: none;
  }

  @media (max-width: 360px) {
    .language-switch {
      left: 238px;
    }
  }

  .language-switch summary {
    min-width: 42px;
    min-height: 36px;
    padding: 0 8px;
  }

  .language-menu {
    right: auto;
    left: -148px;
    width: 190px;
  }

  .header-cta {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 36px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-text {
    font-size: 16px;
    word-break: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-badges .badge:nth-child(n+3) {
    display: none;
  }

  .mobile-break {
    display: block;
  }

  .section {
    padding: 58px 0;
  }

  .section-head h2,
  .cta-wrap h2 {
    font-size: 30px;
  }

  .pain-grid,
  .action-list,
  .scene-grid,
  .versions-grid,
  .media-grid,
  .faq-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pain-card,
  .version-card,
  .lead-form {
    padding: 20px;
  }

  .floating-contact {
    left: 14px;
    right: 14px;
    bottom: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-link {
    min-width: 0;
  }
}
