/* =========================================
   LCA COLLECTIONS — CAPABILITIES PAGE
   Uses existing global styles from style.css
========================================= */

.capabilities-page {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f4ef;
  overflow: hidden;
}

.capabilities-page img {
  display: block;
  max-width: 100%;
}

/* =========================================
   HERO
========================================= */

.cap-hero {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  overflow: hidden;
  background: linear-gradient(110deg, #faf6f0 0%, #eee9e4 60%, #d9d9d7 100%);
}

.cap-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  min-height: 270px;
}

.cap-hero-copy {
  position: relative;
  z-index: 2;
  padding: 38px 0 40px;
}

.cap-eyebrow {
  margin: 0;
  color: #bd8042;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
}

.cap-hero .cap-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cap-hero .cap-eyebrow::after {
  content: "";
  width: 85px;
  height: 1px;
  background: var(--bronze);
}

.cap-hero h1 {
  margin: 12px 0 14px;
  color: var(--navy);
  font: 400 clamp(36px, 4.5vw, 56px)/1.02 Georgia, serif;
  letter-spacing: -1.5px;
}

.cap-hero h1 em {
  color: #bd8042;
  font-weight: 400;
}

.cap-hero-description {
  margin: 0;
  color: #30475a;
  font-size: 16px;
  line-height: 1.5;
}

.cap-hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 52%;
  overflow: hidden;
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%);
}

.cap-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,244,239,.1), transparent 45%);
}

.cap-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cap-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cap-hero-shape {
  position: absolute;
  height: 180%;
  transform: rotate(35deg);
  border-radius: 0 0 0 70%;
}

.cap-hero-shape-light {
  top: -100%;
  left: 43%;
  width: 38%;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
}

.cap-hero-shape-grey {
  top: -80%;
  left: 52%;
  width: 25%;
  background: rgba(180, 181, 181, .35);
  border: 1px solid rgba(255, 255, 255, .65);
}

.cap-hero-shape-navy {
  top: -25%;
  right: -20%;
  width: 16%;
  background: rgba(9, 30, 46, .15);
}

.cap-hero-line {
  position: absolute;
  top: -55%;
  right: 17%;
  width: 1px;
  height: 200%;
  transform: rotate(35deg);
  background: var(--bronze);
}

/* =========================================
   SECTION HEADINGS
========================================= */

.cap-solutions,
.cap-support {
  background: #f8f4ef;
}

.cap-solutions {
  padding: 30px 0 22px;
}

.cap-section-heading {
  text-align: center;
}

.cap-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cap-centered::before,
.cap-centered::after {
  content: "";
  width: min(20vw, 190px);
  height: 1px;
  background: #d8a16b;
}

.cap-section-heading h2 {
  margin: 4px 0 5px;
  color: var(--navy);
  font: 400 clamp(28px, 3.4vw, 38px)/1.15 Georgia, serif;
  letter-spacing: -1px;
}

.cap-section-heading > p:last-child {
  margin: 0;
  color: #30475a;
  font-size: 16px;
  line-height: 1.45;
}

/* =========================================
   MANUFACTURING CARDS
========================================= */

.cap-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.cap-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2dcd5;
  border-bottom: 3px solid #c28b4d;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbf8f4, #eee9e4);
  box-shadow: 0 2px 8px rgba(25, 35, 42, .08);
  text-align: center;
}

.cap-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 155px;
  padding: 14px 10px 12px;
}

.cap-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  object-fit: contain;
}

.cap-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font: 400 21px/1.2 Georgia, serif;
}

.cap-card p {
  margin: 0;
  color: #30475a;
  font-size: 14px;
  line-height: 1.35;
}

.cap-card-photo {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

/* =========================================
   END-TO-END SUPPORT
========================================= */

.cap-support {
  padding: 18px 0 20px;
}

.cap-support-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 38px;
  margin-top: 18px;
}

.cap-support-list {
  display: grid;
  gap: 16px;
  padding: 4px 0 4px 18px;
  border-left: 1px solid #c28b4d;
}

.cap-support-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 14px;
}

.cap-support-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--navy);
  font-size: 36px;
  line-height: 1;
}

.cap-support-item h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font: 400 18px/1.25 Georgia, serif;
}

.cap-support-item p {
  margin: 0;
  color: #30475a;
  font-size: 14px;
  line-height: 1.4;
}

.cap-support-photo {
  position: relative;
  min-width: 0;
  height: 255px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
}

.cap-support-photo::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(5, 24, 38, .82));
}

.cap-support-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cap-support-photo p {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 16px;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid #d6a568;
  color: #f2c990;
  font: italic 21px/1.2 Georgia, serif;
  text-align: left;
}

/* =========================================
   CUSTOM SOLUTIONS BANNER
========================================= */

.cap-custom {
  padding: 0 0 22px;
  background: #f8f4ef;
}

.cap-custom-banner {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 16px 24px;
  overflow: hidden;
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(239, 234, 228, .97) 0%, rgba(239, 234, 228, .94) 52%, rgba(12, 34, 50, .35) 100%),
    url("images/precision Engineering Gearworks.png") center right / cover no-repeat,
    #e8e2dc;
  box-shadow: 0 2px 8px rgba(25, 35, 42, .08);
}

.cap-custom-icon {
  display: grid;
  place-items: center;
  height: 58px;
  border-right: 1px solid #b9a99a;
  color: var(--navy);
  font-size: 42px;
}

.cap-custom-copy h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font: 400 22px/1.2 Georgia, serif;
}

.cap-custom-copy p {
  margin: 0;
  color: #30475a;
  font-size: 14px;
  line-height: 1.4;
}

.cap-custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 145px;
  padding: 13px 18px;
  border-radius: 30px;
  background: #d9a96e;
  color: #102b3e;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.cap-custom-button:hover {
  transform: translateY(-2px);
  background: #e4b77e;
}

.cap-custom-button span {
  font-size: 19px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
  .cap-hero-inner {
    grid-template-columns: 1fr;
  }

  .cap-hero-copy {
    padding-right: 18px;
  }

  .cap-hero-photo {
    left: 48%;
  }

  .cap-card-grid {
    gap: 12px;
  }

  .cap-card h3 {
    font-size: 18px;
  }

  .cap-card-content {
    min-height: 150px;
  }

  .cap-support-layout {
    gap: 24px;
  }

  .cap-support-photo {
    height: 230px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {
  .cap-hero,
  .cap-hero-inner {
    min-height: 430px;
  }

  .cap-hero-inner {
    display: block;
  }

  .cap-hero-copy {
    padding: 38px 0 210px;
  }

  .cap-hero h1 {
    font-size: clamp(34px, 8vw, 46px);
    line-height: 1.05;
  }

  .cap-hero-description {
    font-size: 15px;
  }

  .cap-hero-photo {
    inset: auto 0 0 0;
    height: 205px;
    clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
  }

  .cap-hero-photo::after {
    background: linear-gradient(180deg, rgba(248,244,239,.08), transparent 45%);
  }

  .cap-hero-line {
    right: 18%;
  }

  .cap-solutions {
    padding: 28px 0 20px;
  }

  .cap-centered {
    gap: 8px;
    font-size: 11px;
  }

  .cap-centered::before,
  .cap-centered::after {
    width: 22px;
  }

  .cap-section-heading h2 {
    font-size: 29px;
  }

  .cap-section-heading > p:last-child {
    font-size: 14px;
  }

  .cap-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
  }

  .cap-card-content {
    min-height: 150px;
    padding: 12px 6px;
  }

  .cap-card-icon {
    width: 42px;
    height: 42px;
  }

  .cap-card h3 {
    font-size: 18px;
  }

  .cap-card p {
    font-size: 12px;
  }

  .cap-card-photo {
    height: 100px;
  }

  .cap-support {
    padding: 18px 0 22px;
  }

  .cap-support-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cap-support-list {
    gap: 18px;
    padding-left: 12px;
  }

  .cap-support-item {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }

  .cap-support-icon {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .cap-support-item h3 {
    font-size: 17px;
  }

  .cap-support-item p {
    font-size: 13px;
  }

  .cap-support-photo {
    height: 230px;
  }

  .cap-support-photo p {
    right: 16px;
    bottom: 14px;
    font-size: 19px;
  }

  .cap-custom {
    padding-bottom: 20px;
  }

  .cap-custom-banner {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 18px 14px;
  }

  .cap-custom-icon {
    height: 58px;
    font-size: 34px;
  }

  .cap-custom-copy h2 {
    font-size: 20px;
  }

  .cap-custom-copy p {
    font-size: 13px;
  }

  .cap-custom-button {
    grid-column: 2;
    justify-self: start;
    min-width: 135px;
    padding: 11px 16px;
  }
}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 380px) {
  .cap-hero,
  .cap-hero-inner {
    min-height: 405px;
  }

  .cap-hero-copy {
    padding-top: 30px;
    padding-bottom: 190px;
  }

  .cap-hero h1 {
    font-size: 32px;
  }

  .cap-hero-photo {
    height: 185px;
  }

  .cap-card-grid {
    gap: 10px;
  }

  .cap-card-content {
    min-height: 145px;
  }

  .cap-card h3 {
    font-size: 16px;
  }

  .cap-card-photo {
    height: 88px;
  }
}