/* Houston office coffee machine pages (officecoffeemachines/*): light-touch
   restyle so the old template matches the homepage and /coffee.
   Only linked from those 11 pages. */

/* Hero: outcome line under the title */
#about .hx-tc-lead {
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  max-width: 34em;
  margin: 4px 0 6px;
}
#about h1 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.15; }
/* The template caps the hero at 375px; keep the taller title block inside it */
@media (min-width: 769px) {
  #about .sm-header-bg { padding-top: 26px !important; }
}
@media (max-width: 768px) {
  .section2-bg { max-height: none !important; }
  #about.home { min-height: 0 !important; padding-bottom: 0 !important; }
  #seo-text { padding-top: 0 !important; }
}

/* Body copy and headings */
#seo-text .container-width { color: #1f2a33; }
#seo-text .container-width h2,
#seo-text .container-width h3,
#seo-text .container-width h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #014F81;
}
#seo-text .container-width h4 { font-size: 1.35rem; margin: 6px 0 12px; }
#seo-text .container-width ul li { line-height: 1.5; margin-bottom: 4px; }

/* Product photo: same size on every model, never wider than the screen */
#seo-text img.hx-tc-photo {
  width: 320px !important;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  margin-left: 40px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  #seo-text img.hx-tc-photo {
    width: auto !important;
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto 24px !important;
  }
}

/* Buttons under the feature list: primary request + secondary "view all" */
.hx-tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 10px; }
.hx-tc-actions .hx-hero-btn { font-size: 17px; font-family: inherit; }
.hx-tc-all {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 20px;
  border: 2px solid #014F81; border-radius: 6px;
  color: #014F81 !important; background: #fff;
  font-weight: 700; text-decoration: none !important;
}
.hx-tc-all:hover { background: #eef4f7; }
.hx-tc-all:focus { outline: 3px solid #9fd7f2; outline-offset: 2px; }
@media (max-width: 575px) {
  .hx-tc-actions > * { flex: 1 1 100%; }
}

/* FAQ: comfortable tap targets */
#faq li > a[data-toggle="collapse"] { display: block; min-height: 44px; }

/* Machine list (index): cleaner cards like the homepage equipment cards */
#seo-text .machine-box {
  height: calc(100% - 24px) !important; /* equal heights within a row */
  min-height: 330px;
  padding: 16px 16px 18px;
  background: #fff !important;
  border: 1px solid #d5e0e8 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06) !important;
  margin-bottom: 24px;
  transition: box-shadow .15s ease;
}
#seo-text .machine-box:hover { box-shadow: 0 4px 16px rgba(1, 79, 129, .16) !important; }
#seo-text .machine-box:before,
#seo-text .machine-box:after { display: none !important; }
#seo-text .machine-box img { width: auto; max-width: 100%; height: 150px; object-fit: contain; }
#seo-text .machine-box h3 { font-size: 1.3rem; margin: 12px 0 8px; }
#seo-text .machine-box > p { text-align: left !important; font-size: 13px !important; line-height: 1.5; color: #4a5a68; }
#seo-text .machine-box a.machine-box-link { z-index: 1; border-radius: 8px; }
#seo-text .machine-box a.machine-box-link:focus { outline: 3px solid #0699d4; outline-offset: 2px; }

/* Phones: two compact columns so the request form is reached sooner */
@media (max-width: 575px) {
  #seo-text .col-sm-10 { padding-left: 0; padding-right: 0; }
  #seo-text .col-sm-10 > .row { margin-top: 20px !important; margin-left: -6px; margin-right: -6px; }
  #seo-text .col-sm-10 > .row > [class*="col-"] {
    flex: 0 0 50%; max-width: 50%; padding-left: 6px; padding-right: 6px;
  }
  #seo-text .machine-box { height: calc(100% - 12px) !important; min-height: 0; padding: 10px 10px 12px; margin-bottom: 12px; }
  #seo-text .machine-box img { height: 96px; margin-top: 4px; }
  #seo-text .machine-box h3 { font-size: 15px; line-height: 1.25; margin: 8px 0 6px; }
  #seo-text .machine-box > p { font-size: 12px !important; line-height: 1.4; margin: 0; }
  #seo-text .container-width > h2 { font-size: 26px; }
}
