@charset "UTF-8";
/* ==========================================================================
   CTCC — home.css
   Homepage only. Every class is prefixed `h-` so it can never clash with
   another template's stylesheet. Shared rules live in base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   h-hero — full-bleed photo with the copy sitting on top, single button.
   The site header floats over this band, so the top padding must clear it.
   -------------------------------------------------------------------------- */
.h-hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 600px;
  padding: calc(var(--header-h) + 64px) 0 88px;
  background: var(--c-primary) url("../img/hero-machining.webp") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.h-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--c-primary-d-rgb),.78) 0%, rgba(var(--c-primary-d-rgb),.52) 45%, rgba(var(--c-primary-d-rgb),.20) 100%);
}
.h-hero__copy {
  /* No max-width here on purpose — the .container class already caps this at
     var(--container) and centres it, so the hero copy lines up exactly with
     the header, the product grid and every other section. */
  position: relative; z-index: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,.36);
}
.h-hero__title { color: #fff; margin-bottom: 20px; }
.h-hero__lead {
  font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.9);
  max-width: 640px; margin-bottom: 34px;
}

/* --------------------------------------------------------------------------
   h-stats — 4 numbers on a full-width band, placed after the product grid
   -------------------------------------------------------------------------- */
.h-stats { background: var(--c-primary); padding: 80px 0; }
.h-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-stat { padding: 0 20px; text-align: center; color: #fff; }
.h-stat__num {
  font-family: var(--f-head); font-size: 44px; font-weight: 500; line-height: 1;
  margin-bottom: 10px;
}
.h-stat__num small { font-size: 24px; }
.h-stat__label { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; }

/* --------------------------------------------------------------------------
   h-products — 8 cards, 4 across
   -------------------------------------------------------------------------- */
.h-products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.h-product {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.h-product:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 16px 34px rgba(var(--c-primary-rgb),.14); }
.h-product__media {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EEF3FB 0%, #DCE6F5 100%);
  overflow: hidden;
}
.h-product__media svg { width: 84px; height: 84px; color: var(--c-primary); opacity: .82; transition: transform .4s ease, opacity .3s ease; }
.h-product:hover .h-product__media svg { transform: scale(1.08); opacity: 1; }
.h-product__tag {
  position: absolute; top: 0; left: 0;
  padding: 5px 11px; background: var(--c-accent); color: #fff;
  font-family: var(--f-head); font-size: 11.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.h-product__body { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 22px; text-align: center; }
.h-product__title { font-size: 18px; margin-bottom: 8px; }
.h-product__title a { color: var(--c-heading); }
.h-product__title a:hover { color: var(--c-accent-t); }
.h-product__text { font-size: 14px; line-height: 1.8; color: var(--c-text); margin-bottom: 16px; }
.h-product__link {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--f-head); font-size: 13.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-link);
}
.h-product__link:hover { color: var(--c-accent-t); }

/* --------------------------------------------------------------------------
   h-about — photo + copy, with a 2×2 advantage grid
   -------------------------------------------------------------------------- */
.h-about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.h-about__media { position: relative; }
.h-about__photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-l) 55%, #3A7CCB 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9);
  font-family: var(--f-head); font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
}
.h-about__badge {
  position: absolute; right: -18px; bottom: -18px;
  width: 132px; height: 132px; padding: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff; text-align: center;
}
.h-about__badge strong { font-family: var(--f-head); font-size: 38px; font-weight: 500; line-height: 1; }
.h-about__badge span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; opacity: .9; }
.h-about__title { font-size: 32px; margin-bottom: 16px; }
.h-about__text { font-size: 15.5px; line-height: 1.95; margin-bottom: 18px; }
.h-advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 24px 0 30px; }
.h-advantage { display: flex; gap: 12px; }
.h-advantage__icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-soft); color: var(--c-primary);
}
.h-advantage h4 { font-size: 16px; margin-bottom: 3px; }
.h-advantage p { font-size: 13.5px; line-height: 1.7; margin: 0; }

/* --------------------------------------------------------------------------
   h-cases — 6 application cards, 3 across
   -------------------------------------------------------------------------- */
.h-cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h-case {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.h-case:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(var(--c-primary-rgb),.14); }
.h-case__media {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-d) 0%, var(--c-primary) 100%);
}
.h-case__media svg { width: 66px; height: 66px; color: rgba(255,255,255,.85); }
.h-case__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.h-case__cat {
  font-family: var(--f-head); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-t);
  margin-bottom: 8px;
}
.h-case__title { font-size: 18px; margin-bottom: 8px; }
.h-case__title a { color: var(--c-heading); }
.h-case__title a:hover { color: var(--c-accent-t); }
.h-case__text { font-size: 14px; line-height: 1.8; color: var(--c-text); margin-bottom: 16px; }
.h-case__specs {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.h-case__specs span {
  padding: 4px 9px; background: var(--c-soft);
  font-size: 12px; color: var(--c-primary); letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   h-qual — certificate strip
   -------------------------------------------------------------------------- */
.h-qual__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.h-qual__item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 14px;
  background: #fff; border: 1px solid var(--c-line);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.h-qual__item:hover { border-color: var(--c-link); box-shadow: 0 12px 26px rgba(var(--c-primary-rgb),.1); }
.h-qual__thumb {
  width: 100%; aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #F7F9FD 0 10px, #EEF3FB 10px 20px);
  border: 1px dashed var(--c-line-2);
  color: var(--c-grey);
}
.h-qual__item span { font-size: 13.5px; color: var(--c-heading); text-align: center; line-height: 1.5; }

/* --------------------------------------------------------------------------
   h-news — 3 latest posts
   -------------------------------------------------------------------------- */
.h-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h-post {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.h-post:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(var(--c-primary-rgb),.14); }
.h-post__media {
  aspect-ratio: 16 / 9; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EEF3FB 0%, #D8E3F4 100%);
}
.h-post__media svg { width: 54px; height: 54px; color: var(--c-primary); opacity: .7; }
.h-post__date {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 10px; background: var(--c-primary); color: #fff;
  font-family: var(--f-head); font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center;
}
.h-post__date b { display: block; font-size: 18px; }
.h-post__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.h-post__cat {
  font-family: var(--f-head); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-t); margin-bottom: 8px;
}
.h-post__title { font-size: 17px; line-height: 1.5; margin-bottom: 12px; }
.h-post__title a { color: var(--c-heading); }
.h-post__title a:hover { color: var(--c-accent-t); }
.h-post__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-head); font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-link);
}

/* --------------------------------------------------------------------------
   h-inquiry — contact details + full enquiry form
   -------------------------------------------------------------------------- */
.h-inquiry { background: var(--c-soft); }
.h-inquiry__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
.h-inquiry__title { font-size: 32px; margin-bottom: 14px; }
.h-inquiry__text { font-size: 15.5px; line-height: 1.95; margin-bottom: 26px; }
.h-contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.h-contact-line__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff;
}
.h-contact-line strong {
  display: block; font-family: var(--f-head); font-size: 14px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-heading); margin-bottom: 3px;
}
.h-contact-line span, .h-contact-line a { font-size: 14.5px; line-height: 1.7; color: var(--c-text); }
.h-contact-line a:hover { color: var(--c-accent-t); }

.h-form { background: #fff; padding: 36px 36px 38px; border: 1px solid var(--c-line); }
.h-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.h-form__field { margin-bottom: 16px; }
.h-form label {
  display: block; margin-bottom: 7px;
  font-family: var(--f-head); font-size: 13.5px; font-weight: 500;
  letter-spacing: .04em; color: var(--c-heading);
}
.h-form label .req { color: var(--c-accent-t); }
.h-form input, .h-form select, .h-form textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--c-heading);
  background: var(--c-soft);
  border: 1px solid var(--c-line); border-radius: 0;
  transition: border-color .2s ease, background-color .2s ease;
}
.h-form input:focus, .h-form select:focus, .h-form textarea:focus {
  outline: none; background: #fff; border-color: var(--c-link);
}
.h-form textarea { resize: vertical; min-height: 118px; }
.h-form__note { margin: 14px 0 0; font-size: 12.5px; color: var(--c-grey); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .h-products__grid { grid-template-columns: repeat(3, 1fr); }
  .h-about__grid, .h-inquiry__grid { grid-template-columns: 1fr; gap: 44px; }
  .h-cases__grid, .h-news__grid { grid-template-columns: repeat(2, 1fr); }
  .h-qual__grid { grid-template-columns: repeat(3, 1fr); }
  .h-about__badge { right: 12px; bottom: -18px; }
}
@media (max-width: 760px) {
  .h-hero { min-height: 0; padding: calc(var(--header-h) + 40px) 0 60px; }
  .h-stats { padding: 56px 0; }
  .h-stats__grid { grid-template-columns: 1fr 1fr; }
  .h-stat { border-bottom: 1px solid rgba(255,255,255,.14); }
  .h-stat:nth-child(2) { border-right: 0; }
  .h-stat:nth-child(3), .h-stat:nth-child(4) { border-bottom: 0; }
  .h-products__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .h-cases__grid, .h-news__grid { grid-template-columns: 1fr; }
  .h-qual__grid { grid-template-columns: repeat(2, 1fr); }
  .h-advantages { grid-template-columns: 1fr; }
  .h-form { padding: 26px 22px 28px; }
  .h-form__row { grid-template-columns: 1fr; gap: 0; }
  .h-about__badge { width: 108px; height: 108px; }
  .h-about__badge strong { font-size: 30px; }
}
@media (max-width: 460px) {
  .h-products__grid { grid-template-columns: 1fr; }
  .h-stats__grid { grid-template-columns: 1fr; }
  .h-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .h-stat:nth-child(3), .h-stat:nth-child(4) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .h-stat:last-child { border-bottom: 0; }
  .h-qual__grid { grid-template-columns: 1fr 1fr; }
}
