/* C-Tec Group extends the existing Vértice partner presentation. */
.ctec-page {
  --ctec-red: #bc2927;
}

.ctec-group-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 54px;
  align-items: center;
  padding: 28px 0 54px;
}

.ctec-hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.75rem, 4.6vw, 4.5rem);
  color: var(--navy);
}

.ctec-hero-copy .ctec-tagline {
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.55;
}

.ctec-group-mark {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ctec-red);
}

.ctec-group-mark img {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
}

.ctec-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 42px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line);
  background: #fff;
}

.ctec-overview-copy h2,
.ctec-portfolios > h2,
.ctec-brochures > h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  color: var(--navy);
  line-height: 1.15;
  margin: 14px 0 22px;
}

.ctec-overview-copy > p:not(.eyebrow) {
  line-height: 1.85;
}

.ctec-overview-copy .ctec-presence {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

.ctec-overview-photo,
.ctec-brand-photo {
  margin: 0;
  min-width: 0;
}

.ctec-overview-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.ctec-overview-photo figcaption,
.ctec-brand-photo figcaption {
  margin-top: 9px;
  font-size: .75rem;
  line-height: 1.55;
  color: var(--muted);
}

.ctec-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 30px 0;
  background: var(--deep);
  color: #fff;
}

.ctec-stat {
  padding: 4px 34px;
  min-width: 0;
}

.ctec-stat + .ctec-stat {
  border-left: 1px solid #a8bcd237;
}

.ctec-stat dt {
  color: #e6bc70;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.ctec-stat dd {
  margin: 12px 0 0;
  font-size: .88rem;
  line-height: 1.65;
  color: #cfdae7;
  max-width: 260px;
}

.ctec-source-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.65;
}

.ctec-source-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ctec-portfolios {
  padding: 66px 0 0;
  scroll-margin-top: 122px;
}

.ctec-portfolios > p:not(.eyebrow) {
  max-width: 760px;
}

.ctec-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 28px;
}

.ctec-tab {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: #fff;
  transition: background .18s, border-color .18s;
}

.ctec-tab:hover {
  border-color: var(--gold);
}

.ctec-tab img {
  width: 116px;
  height: 70px;
  padding: 9px;
  background: #fff;
  object-fit: contain;
}

.ctec-tab > span,
.ctec-tab strong,
.ctec-tab small {
  display: block;
  min-width: 0;
}

.ctec-tab strong {
  color: var(--navy);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

.ctec-tab small {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.ctec-tab[aria-selected="true"] {
  border-color: var(--navy);
  border-bottom-color: var(--gold);
  background: var(--navy);
}

.ctec-tab[aria-selected="true"] strong {
  color: #fff;
}

.ctec-tab[aria-selected="true"] small {
  color: #cfdae7;
}

.ctec-tab:focus-visible,
.ctec-brochure:focus-visible,
.ctec-panel:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.ctec-panel {
  min-width: 0;
  padding-bottom: 54px;
}

.ctec-panel[hidden] {
  display: none;
}

.ctec-brand-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
}

.ctec-brand-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(1.8rem, 2.7vw, 2.4rem);
  line-height: 1.18;
  color: var(--navy);
}

.ctec-brand-copy > p:not(.eyebrow) {
  font-size: .95rem;
  line-height: 1.8;
}

.ctec-lines {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink);
}

.ctec-lines li {
  position: relative;
  padding-left: 17px;
}

.ctec-lines li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--ctec-red);
}

.ctec-lines li strong {
  font-weight: 600;
}

.ctec-lines li span {
  color: var(--muted);
}

.ctec-brand-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.ctec-panel .catalog-panel {
  margin-top: 32px;
  max-width: 850px;
}

.ctec-brand-catalog {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 130px;
}

.ctec-brand-catalog > h3 {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.25;
}

.ctec-brand-catalog .catalog-panel {
  margin-top: 22px;
}

.ctec-brand-catalog .catalog-panel h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.ctec-brochures {
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 130px;
}

.ctec-brochures > p:not(.eyebrow) {
  max-width: 760px;
}

.ctec-brochure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.ctec-brochure {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 26px 28px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: #fff;
  transition: border-color .18s, background .18s;
}

.ctec-brochure:hover {
  border-color: var(--gold);
  background: #fcfaf5;
}

.ctec-brochure strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.ctec-brochure span {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .ctec-group-hero {
    gap: 32px;
  }

  .ctec-overview {
    gap: 28px;
    padding: 28px;
  }

  .ctec-stat {
    padding-inline: 24px;
  }

  .ctec-tab {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .ctec-tab img {
    width: 96px;
    height: 62px;
    padding: 6px;
  }

  .ctec-tab strong {
    font-size: 1.05rem;
  }

  .ctec-brand-intro {
    gap: 26px;
    padding: 26px;
  }
}

@media (max-width: 760px) {
  .ctec-group-hero,
  .ctec-overview,
  .ctec-brand-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctec-group-hero {
    padding: 10px 0 34px;
    gap: 26px;
  }

  .ctec-hero-copy h1 {
    font-size: clamp(2.5rem, 8.6vw, 3.25rem);
    margin: 17px 0 14px;
  }

  .ctec-group-mark {
    width: min(100%, 380px);
    padding: 24px;
  }

  .ctec-overview {
    padding: 24px;
    gap: 26px;
  }

  .ctec-overview-copy h2,
  .ctec-portfolios > h2,
  .ctec-brochures > h2 {
    font-size: 1.95rem;
    margin-bottom: 18px;
  }

  .ctec-overview-copy > p:not(.eyebrow) {
    font-size: .95rem;
  }

  .ctec-stats {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 24px;
    margin-top: 22px;
  }

  .ctec-stat {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 22px 0;
  }

  .ctec-stat + .ctec-stat {
    border-left: 0;
    border-top: 1px solid #a8bcd237;
  }

  .ctec-stat dt {
    font-size: 2.1rem;
  }

  .ctec-stat dd {
    margin: 0;
    font-size: .83rem;
  }

  .ctec-portfolios {
    padding-top: 44px;
    scroll-margin-top: 158px;
  }

  .ctec-tabs {
    gap: 12px;
    margin: 24px 0;
  }

  .ctec-tab {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    gap: 12px;
    padding: 16px 12px;
    text-align: center;
  }

  .ctec-tab img {
    width: 110px;
    max-width: 100%;
    height: 60px;
    padding: 8px;
  }

  .ctec-tab strong {
    font-size: .95rem;
    line-height: 1.4;
  }

  .ctec-tab small {
    font-size: .75rem;
    line-height: 1.5;
  }

  .ctec-panel {
    padding-bottom: 38px;
  }

  .ctec-brand-intro {
    padding: 24px;
    gap: 24px;
    margin-bottom: 28px;
  }

  .ctec-brand-copy h2 {
    font-size: 1.9rem;
  }

  .ctec-brand-photo img {
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .ctec-brand-catalog {
    margin-top: 32px;
    padding-top: 26px;
    scroll-margin-top: 158px;
  }

  .ctec-brand-catalog > h3 {
    font-size: 1.5rem;
  }

  .ctec-brochures {
    padding: 34px 0 40px;
    scroll-margin-top: 158px;
  }

  .ctec-brochure-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ctec-brochure {
    padding: 22px;
  }
}

@media (max-width: 380px) {
  .ctec-overview,
  .ctec-brand-intro {
    padding: 20px;
  }

  .ctec-stats {
    padding-inline: 20px;
  }

  .ctec-stat {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }

  .ctec-stat dt {
    font-size: 1.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctec-tab,
  .ctec-brochure {
    transition: none;
  }
}
