/* =========================
   Industry (industory) Grid – Responsive
   ========================= */

:root {
  --gap-xs: 12px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 28px;
  --pad-x: clamp(16px, 4vw, 40px);
  --pad-y: clamp(48px, 7vw, 96px);
  --font-base: clamp(14px, 1.6vw, 16px);
  --font-title: clamp(18px, 2.2vw, 22px);
  --font-kicker: clamp(30px, 8vw, 90px);
  --card-radius: 14px;

  --wrap-max: 1500px;   /* tweak to 1200/1320/1600 etc. */
}

/* Section */
.industory-section {
  position: relative;
  background: #f3f4f6;
  color: #0f172a;
  padding: var(--pad-y) var(--pad-x);
}

.industory-section .container {
  /* width: min(1200px, 100%); */
  width: min(var(--wrap-max), 100%);
  margin-inline: auto;
  position: relative;
}

/* Heading / kicker */
.industory-heading {
  margin: 0 0 clamp(16px, 4vw, 32px) 0;
  position: relative;
}

.industory-kicker {
  font-weight: 800;
  font-size: var(--font-kicker);
  color: transparent;
  -webkit-text-stroke: 2px #8d919a;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Grid */
/*.industory-grid {
  display: grid;
  /* auto-fit makes it fluid; min 240px cards collapse to 1 per row on small screens */
  /*grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-lg);
}*/

/* Default: 1 card on very small screens */
.industory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

/* ≥640px: 2 cards */
@media (min-width: 640px) {
  .industory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≥992px: 3 cards */
@media (min-width: 992px) {
  .industory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.industory-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--card-radius);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden; /* clip radii for image area */
  height: 100%; /* equal heights in grid rows */
}

.industory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 153, 153);
  /* box-shadow: 0 8px 24px rgba(155, 153, 153, 0.08); */
}

.industory-card:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}

/* Image area */
.industory-card .thumb {
  /* aspect-ratio: 17 / 9; */
  display: grid;
  place-items: center;
  /* padding: -30px; */
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  min-height: 200px;
}

.industory-card .thumb img {
  max-width: 90%;   /* reduce size */
  max-height: 90%;
  height: auto;
  width: auto;
  object-fit: contain;
  padding: 0;  
}

/* Text areas */
/* .industory-card .title {
  order: 99;
  margin-top: auto;
  font-weight: 800;
  font-size: var(--font-title);
  padding: 18px 20px 0 20px;
} */

.industory-card .description {
  padding: 14px 20px 20px 20px;
  font-size: var(--font-base);
  line-height: 1.6;
  /* height: 60%; */
  color: #374151;
  flex-grow: 1; /* push card bottom to align buttons/links if added */
}

.industory-card .card-footer{
  margin-top:auto;                  /* push footer to the bottom */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-top:1px solid #f1f5f9;
  background:#fff;
}


/* Button */
.btn-inquire{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 30px;
  border-radius:8px;
  background:#C5A47E;
  color:#000;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
}
/* .btn-inquire:hover{ background:#001a33; } */
.btn-inquire:hover{ background:#9ba0a5; }

/* Title on the right */
/* Button */
.industory-card .title{
  display:inline-flex;
  align-items:center;
  justify-content:left;
  padding:8px 0px;
  border-radius:8px;
  background: transparent;
  color:#000;
  font-weight:800;
  font-size:18px;
  text-decoration:none;
  white-space:nowrap;
}

/* .industory-card .title{
  font-weight:800;
  line-height: 1;
  display: flex; 
  font-size: var(--font-title);
  align-items:center;
  margin:0;
  padding:0;                       /* moved padding to footer */
 /* text-align:right;
} */

/* (optional) make entire top area clickable but not the footer button */
.industory-card > a{ color:inherit; text-decoration:none; display:block; }

/* Optional: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .industory-card {
    transition: none;
  }
}

/* Larger screens – slightly roomier */
@media (min-width: 1024px) {
  /* .industory-card .title {
    padding: 20px 24px 0 24px;
  } */
  .industory-card .description {
    padding: 16px 24px 24px 24px;
  }
}
