/* ===============================================
   DonkiBot-S Page Specific Styles
   =============================================== */

.hero {
  position: relative;
  padding: clamp(48px, 12vw, 120px) 0 clamp(40px, 8vw, 96px);
  overflow: hidden;
  color: #ffffff;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: none;
}

.hero-background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-background-video::-webkit-media-controls {
  display: none !important;
}

.hero-background-overlay {
  position: absolute;
  inset: 0;
  background: none;
}

.hero-container {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.4;
  color: #f6fffb;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.hero-copy p {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
  color: rgba(236, 248, 242, 0.9);
}

.hero-copy .hero-detail {
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.hero-copy .btn-primary {
  margin-top: clamp(16px, 3vw, 32px);
  padding: 18px 48px;
  font-size: 24px;
  border-radius: 999px;
}

.hero-copy .section-subheading {
  color: #ffffff;
  font-size: clamp(20px, 3vw, 26px);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.section {
  padding: clamp(48px, 10vw, 96px) 0;
}

.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: clamp(16px, 3vw, 24px);
  color: #04301f;
  line-height: 1.6;
}

.section-subheading {
  font-weight: 600;
  color: #0c6f4c;
  margin-bottom: clamp(20px, 3vw, 28px);
  line-height: 1.8;
}

.section p {
  line-height: 1.9;
  color: #23332c;
  font-size: 16px;
}

.solution-layout {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.solution-copy p {
  margin-bottom: 1.2em;
}

.solution-copy p:last-child {
  margin-bottom: 0;
}

.solution-figure {
  position: relative;
  margin: 0;
  padding-top: clamp(22px, 4vw, 32px);
  text-align: left;
}

.solution-figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(82px, 22vw, 180px);
  height: 3px;
  background: linear-gradient(90deg, #0c6f4c, #1ca777);
}

.solution-figure img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 32px 68px rgba(4, 48, 31, 0.16));
}

.solution-figure figcaption {
  margin-top: clamp(12px, 2.4vw, 18px);
  font-size: 14px;
  color: rgba(4, 48, 31, 0.78);
  line-height: 1.6;
}

.tfs-layout {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.tfs-copy {
  text-align: left;
}

.tfs-title {
  text-align: left;
  font-size: clamp(14px, 3.8vw, 32px);
  margin-bottom: clamp(18px, 3.2vw, 32px);
  white-space: nowrap;
}

.tfs-copy .section-subheading {
  margin-bottom: clamp(16px, 3vw, 24px);
}

.tfs-copy p {
  margin-bottom: 1.1em;
}

.tfs-copy p:not(.section-subheading) {
  text-align: justify;
  text-justify: inter-character;
  text-align-last: left;
}

.tfs-copy p:last-child {
  margin-bottom: 0;
}

.tfs-figure {
  position: relative;
  margin: 0;
  padding-top: clamp(22px, 4vw, 32px);
  text-align: left;
}

.tfs-figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(82px, 22vw, 180px);
  height: 3px;
  background: linear-gradient(90deg, #14627a, #36bedf);
}

.tfs-figure img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 32px 68px rgba(4, 48, 31, 0.14));
}

.tfs-figure figcaption {
  margin-top: clamp(12px, 2.4vw, 18px);
  font-size: 14px;
  color: rgba(4, 48, 31, 0.78);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .tfs-copy {
    text-align: left;
  }

  .tfs-title {
    text-align: left;
    white-space: normal;
  }
}

.problem-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 52px);
}

.problem-highlight {
  padding: 0;
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  align-content: start;
}

.problem-diagram {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 24px;
  align-items: start;
  color: #0f5137;
}

.diagram-source {
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(12, 111, 76, 0.35);
  grid-column: 1 / 2;
  grid-row: 1;
  align-self: end;
}

.diagram-arrow {
  position: relative;
  width: 32px;
  height: 72px;
  grid-column: 1 / 2;
  grid-row: 2;
  justify-self: center;
}

.diagram-arrow::before,
.diagram-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 111, 76, 0.45);
}

.diagram-arrow::before {
  top: 0;
  width: 1px;
  height: 36px;
}

.diagram-arrow::after {
  bottom: 4px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(12, 111, 76, 0.75);
  border-bottom: 1px solid rgba(12, 111, 76, 0.75);
  background: transparent;
}

.diagram-effects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
}

.diagram-effects li {
  font-size: clamp(16px, 2.8vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(12, 111, 76, 0.2);
}

.diagram-effects li:last-child {
  border-bottom: none;
}

.decision-maker-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #0d573b;
  font-weight: 600;
  border-left: 3px solid rgba(12, 111, 76, 0.45);
  padding-left: 18px;
  display: inline-flex;
  white-space: nowrap;
}

.alternate {
  background: #f7faf8;
}

.spec-heading {
  max-width: 720px;
  display: grid;
  gap: clamp(12px, 2vw, 16px);
}

.spec-lead {
  margin: clamp(24px, 4vw, 36px) 0 clamp(12px, 3vw, 20px);
  font-size: 16px;
  line-height: 1.9;
  color: rgba(17, 75, 50, 0.85);
  max-width: 760px;
}

.spec-details {
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid rgba(12, 111, 76, 0.25);
}

.spec-detail {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.2fr);
  gap: clamp(16px, 4vw, 36px);
  padding: clamp(16px, 3vw, 28px) 0;
  border-bottom: 1px solid rgba(12, 111, 76, 0.15);
}

.spec-detail dt {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(12, 111, 76, 0.75);
  font-weight: 600;
}

.spec-detail dd {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 600;
  color: #145539;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .problem-highlight {
    justify-items: start;
  }

  .problem-highlight {
    gap: 20px;
  }

  .problem-diagram {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  .diagram-source {
    display: inline-flex;
    align-items: center;
    padding-bottom: 2px;
    font-size: clamp(18px, 6vw, 22px);
    letter-spacing: 0.12em;
    order: 0;
  }

  .diagram-arrow {
    display: none;
  }

  .diagram-effects {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    order: 1;
  }

  .diagram-effects li {
    border-bottom: 1px solid rgba(12, 111, 76, 0.2);
    padding-bottom: 6px;
  }

  .decision-maker-copy {
    display: block;
    padding-left: 12px;
    white-space: normal;
  }

  .spec-detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .spec-detail dt {
    font-size: 13px;
  }
}

.industry-grid {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.industry-card {
  --industry-accent: linear-gradient(90deg, #0c6f4c, #1ca777);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 18px);
  padding: clamp(28px, 6vw, 42px) clamp(22px, 4.5vw, 32px);
  background: none;
  border: none;
  border-radius: 0;
  height: 100%;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(68px, 18vw, 120px);
  height: 3px;
  background: var(--industry-accent);
  border-radius: 999px;
}

.industry-card:hover {
  transform: translateY(-6px);
  filter: brightness(1.05);
}

.industry-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 1.6vw, 10px);
}

.industry-card-tag {
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--industry-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.industry-card h3 {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 24px);
  color: #103a28;
}

.industry-card-catch {
  margin: 0;
  font-size: clamp(19px, 2.5vw, 22px);
  font-weight: 600;
  color: #145539;
}

.industry-card-description {
  margin: 0;
  color: #2f4d3f;
  line-height: 1.9;
}

.industry-card--facility {
  --industry-accent: linear-gradient(90deg, #14627a, #36bedf);
}

.industry-card--construction {
  --industry-accent: linear-gradient(90deg, #c96b11, #f0ad4b);
}

.case-list {
  display: grid;
  gap: clamp(32px, 5vw, 44px);
}

.case-item {
  --case-accent: linear-gradient(135deg, #0c6f4c, #1ca777);
  position: relative;
  padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 36px) clamp(30px, 6vw, 46px) clamp(40px, 8vw, 60px);
  background: none;
  border: none;
  border-radius: 0;
  line-height: 1.9;
}

.case-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(4px, 1vw, 6px);
  background: var(--case-accent);
  border-radius: 999px;
}

.case-item + .case-item {
  border-top: 1px solid rgba(12, 111, 76, 0.12);
}

.case-item-header {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.6vw, 10px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.case-item-tag {
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--case-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.case-item h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 26px);
  color: #103a28;
}

.case-item-summary {
  margin: 0;
  color: #2f4d3f;
}

.case-item-voice {
  margin: clamp(20px, 4vw, 28px) 0 0;
  padding-left: clamp(20px, 4vw, 28px);
  border-left: 1px solid rgba(12, 111, 76, 0.25);
  color: #1d4734;
}

.case-item-voice p {
  margin: 0;
}

.case-item-role {
  display: inline-block;
  margin-left: clamp(8px, 2vw, 12px);
  font-size: 0.92em;
  color: rgba(18, 61, 43, 0.68);
}

.case-item:nth-child(2) {
  --case-accent: linear-gradient(135deg, #14627a, #36bedf);
}

.faq-list {
  max-width: 840px;
  margin: clamp(20px, 4vw, 32px) auto 0;
  display: grid;
  gap: clamp(10px, 2.4vw, 18px);
  text-align: left;
}

.faq-item {
  position: relative;
  padding: clamp(18px, 4vw, 26px) 0;
  border: none;
  border-bottom: 1px solid rgba(12, 111, 76, 0.18);
  transition: border-color 0.3s ease;
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(12, 111, 76, 0.18);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2.8vw, 18px);
  padding: 0 clamp(28px, 4.5vw, 40px) 0 clamp(36px, 7vw, 56px);
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 20px);
  line-height: 1.7;
  color: #123c2a;
  cursor: pointer;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(4px, 1vw, 10px);
  bottom: clamp(4px, 1vw, 10px);
  width: 3px;
  background: linear-gradient(180deg, #0c6f4c, #1ca777);
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(12px, 3vw, 22px);
  width: 10px;
  height: 10px;
  border-right: 2px solid #0f6f4c;
  border-bottom: 2px solid #0f6f4c;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

details.faq-item {
  background: none;
}

details.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(225deg);
}

details.faq-item[open] summary {
  color: #0e3424;
  letter-spacing: 0.01em;
}

details.faq-item[open] summary::before {
  opacity: 1;
}

details.faq-item:hover summary {
  color: #0f6f4c;
}

details.faq-item:hover summary::before {
  opacity: 0.85;
}

details.faq-item:hover summary::after {
  border-color: #12966a;
}

.faq-summary-index {
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(12, 111, 76, 0.72);
}

.faq-summary-text {
  flex: 1;
}

.faq-content {
  display: grid;
  gap: 12px;
  margin-top: clamp(12px, 2.6vw, 18px);
  padding: 0 clamp(28px, 4.5vw, 40px) 0 clamp(36px, 7vw, 56px);
  background: none;
  border-top: none;
  color: #2f4d3f;
  line-height: 1.8;
}

.faq-content p {
  margin: 0;
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(15, 111, 76, 0.35);
  outline-offset: 6px;
}

.section#faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section#faq h2 {
  text-align: center;
  width: 100%;
}

.section#contact {
  text-align: center;
  background: radial-gradient(circle at center, rgba(7, 104, 73, 0.12), transparent 60%), #f5fbf4;
}

.section#contact .btn-primary {
  margin-top: clamp(16px, 3vw, 28px);
  padding: 12px 36px;
  border-radius: 999px;
  font-size: 17px;
}

@media (max-width: 768px) {
  .hero-copy br {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.5;
  }

  .hero-copy .section-subheading {
    font-size: clamp(16px, 5vw, 18px);
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.8;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .spec-lead.no-break {
    white-space: normal;
  }
}
