/* ===================================
   Problem Section - Home Page
   Component: home_problem-1
   =================================== */

/* Container */
.problem-section {
  background: var(--color-white);
  padding: 80px 40px;
}

.problem-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ===================================
   Left Column - Content
   =================================== */

.problem-content {
  padding-right: 20px;
}

/* Eyebrow */
.problem-eyebrow {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.problem-eyebrow .eyebrow-accent {
  color: var(--color-accent);
}

.problem-eyebrow .eyebrow-text {
  color: var(--color-primary);
  margin: 0 8px;
}

/* Heading */
.problem-heading {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 30px;
}

/* Description Container */
.problem-description {
  position: relative;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
  z-index: 1;
}

/* Decorative Watermark Icon - Behind Text (similar to hero) */
.problem-description .problem-icon-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 20px;
  left: 50px;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  color: var(--color-primary);
}

.problem-description .problem-icon-bg svg {
  fill: currentColor;
}

.problem-description .description-text {
  position: relative;
  z-index: 2;
}

.problem-description p {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  color: #333;
}

.problem-description p:last-child {
  margin-bottom: 0;
}

/* CTA Button */
.problem-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: 15px;
  transition: all 0.3s ease;
}

.problem-cta:hover {
  background: var(--color-primary-dark, #0f2a1f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-white);
  border-radius: 50%;
}

.cta-icon {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

/* ===================================
   Right Column - 3-Tile Grid Layout
   =================================== */

.problem-visual {
  position: relative;
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  height: 550px;
}

/* Left Tile (Full Height Image) - Rounded top-right and bottom-left */
.tile-left {
  background: var(--color-background-light, #f5f5f5);
  border-radius: 0 150px 0 150px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tile-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Column (2 Tiles Stacked) */
.tile-right-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

/* Top Right Tile (Badge) - Half pill, rounded left, flat right */
.tile-badge {
  background: var(--color-primary);
  border-radius: 150px 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Years Badge */
.years-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 30px 90px 30px;
  position: relative;
  width: 100%;
}

.badge-number {
  font-size: 56px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.badge-text {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.3;
  text-transform: capitalize;
  max-width: 140px;
}

/* Tractor Icon (inside badge tile, positioned below text) */
.tractor-icon {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: var(--color-white);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tractor-icon svg {
  fill: var(--color-accent);
}

/* Bottom Right Tile (Image) - Rounded top-left and bottom-right */
.tile-bottom {
  background: var(--color-background-light, #f5f5f5);
  border-radius: 150px 0 150px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tile-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
  .problem-section {
    padding: 60px 30px;
  }

  .problem-container {
    gap: 40px;
  }

  .problem-heading {
    font-size: 38px;
  }

  .grid-container {
    height: 450px;
    gap: 12px;
  }

  .tile-left {
    border-radius: 0 120px 0 120px;
  }

  .tile-badge {
    border-radius: 120px 0 0 120px;
  }

  .tile-bottom {
    border-radius: 120px 0 120px 0;
  }

  .tile-right-column {
    gap: 12px;
  }

  .years-badge {
    padding: 25px 25px 80px 25px;
  }

  .badge-number {
    font-size: 48px;
  }

  .badge-text {
    font-size: 14px;
  }

  .tractor-icon {
    width: 60px;
    height: 60px;
    bottom: 12px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .problem-section {
    padding: 50px 20px;
  }

  .problem-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .problem-content {
    padding-right: 0;
    text-align: center;
  }

  .problem-eyebrow {
    font-size: 12px;
  }

  .problem-heading {
    font-size: 32px;
  }

  .problem-description {
    text-align: left;
  }

  .problem-description .problem-icon-bg {
    width: 200px;
    height: 200px;
    left: 20px;
  }

  .problem-cta {
    margin: 0 auto;
  }

  .problem-visual {
    order: -1; /* Show grid first on mobile */
  }

  .grid-container {
    height: 450px;
    gap: 10px;
  }

  .tile-left {
    border-radius: 0 100px 0 100px;
  }

  .tile-badge {
    border-radius: 100px 0 0 100px;
  }

  .tile-bottom {
    border-radius: 100px 0 100px 0;
  }

  .tile-right-column {
    gap: 10px;
  }

  .years-badge {
    padding: 20px 20px 70px 20px;
  }

  .badge-number {
    font-size: 36px;
  }

  .badge-text {
    font-size: 12px;
  }

  .tractor-icon {
    width: 50px;
    height: 50px;
    bottom: 10px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .problem-heading {
    font-size: 28px;
  }

  .grid-container {
    height: 380px;
    gap: 8px;
  }

  .tile-left {
    border-radius: 0 80px 0 80px;
  }

  .tile-badge {
    border-radius: 80px 0 0 80px;
  }

  .tile-bottom {
    border-radius: 80px 0 80px 0;
  }

  .tile-right-column {
    gap: 8px;
  }

  .years-badge {
    padding: 15px 15px 60px 15px;
  }

  .badge-number {
    font-size: 28px;
  }

  .badge-text {
    font-size: 11px;
  }

  .tractor-icon {
    width: 45px;
    height: 45px;
    bottom: 8px;
  }
}
