/* About-only layouts. Spacing, title sizes, buttons, statistics and check badges come from the shared tokens/components in style.css. */
.about-container { padding-inline: var(--inner); }
.about-page h2 { font-size: var(--h2); line-height: 1.14; }

/* Hero */
.about-hero {
  height: 621px;
  color: white;
  background: linear-gradient(90deg, rgb(0 31 47 / 45%), transparent 75%), url('../images/about/about-hero-technician.webp') center / cover no-repeat;
}
.about-hero-inner { position: relative; height: 100%; padding-top: 65px; }
.about-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #b6e5ed; margin-bottom: 28px; }
.about-hero .eyebrow { color: #83e5ed; font-size: 18px; margin-bottom: 14px; }
.about-hero h1 { font-size: 58px; line-height: 1.025; letter-spacing: -.03em; font-weight: 750; }
.about-hero-copy > p:last-child { max-width: 554px; font-size: 21px; line-height: 1.45; color: #edf4f7; margin-top: 29px; }
.about-hero-statement { position: absolute; right: var(--inner); bottom: 36px; text-transform: uppercase; color: white; font-size: 19px; letter-spacing: .14em; line-height: 1.55; }

/* History */
.about-history { background: var(--surface); padding-block: var(--space-section); }
.about-history-grid { display: grid; grid-template-columns: .76fr 1fr; gap: 80px; align-items: center; }
.about-history-copy > p:not(.eyebrow) { font-size: 19px; line-height: 1.43; margin: 12px 0 27px; }
.about-history-copy > p.about-who-lead { margin-bottom: 14px; }
.about-building { height: 435px; position: relative; border-radius: var(--radius); overflow: hidden; }
.about-building-photo { width: 100%; height: 100%; object-fit: cover; }
.about-building-logo { position: absolute; height: auto; width: 45%; left: 37%; top: 22%; transform: rotate(-9deg) skewY(-4deg); }
.about-building-statement { position: absolute; bottom: 0; right: 30px; padding: 24px 25px; border: 1px solid #88acb5; border-radius: 12px; background: rgb(0 37 54 / 92%); color: white; font-size: 18px; letter-spacing: .13em; line-height: 1.5; font-weight: 650; text-transform: uppercase; }

/* Mission, vision and values */
.about-principles { position: relative; overflow: hidden; background: #fbfdfe; border-top: 1px solid var(--border); padding-block: var(--space-section); }
.about-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.about-principles article { text-align: center; position: relative; padding-inline: 23px; }
.about-principles article + article::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; border-left: 1px solid #b8e5ee; }
.about-principles article > .icon { width: 77px; height: 77px; stroke-width: 2.3; margin-bottom: 4px; }
.about-principles h2 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 15px; }
.about-principles article > p { font-size: 19px; line-height: 1.42; }
.about-principles .check-list { display: grid; width: max-content; text-align: left; margin: 0 auto; font-size: 18px; gap: 5px; }
.about-watermark { position: absolute; width: 390px; height: 440px; right: -116px; top: -15px; opacity: .075; overflow: hidden; }
.about-watermark img { width: 1400px; max-width: none; transform: translate(-75px, -20px); }

/* Placeholder performance figures */
.about-performance { background: var(--navy-dark); color: white; position: relative; min-height: 246px; overflow: hidden; }
.about-performance { --defer-bg: url('../images/home/home-automotive-sector.webp'); }
.about-performance::before { content: ''; position: absolute; inset: 0 0 0 54%; background: linear-gradient(90deg, var(--navy-dark), rgb(0 32 48 / 48%) 48%), var(--bg-img, none) center 42% / cover; }
.about-performance-inner { position: relative; display: flex; align-items: center; min-height: 246px; justify-content: space-between; }
.about-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 73%; margin-left: -20px; }
.about-performance .stat > .about-projects-stat { font-size: 31px; line-height: 1.6; }
.about-performance .stat p { color: white; font-size: 16px; }
.about-performance-statement { position: relative; color: white; margin: 55px 0 0 15px; font-size: 19px; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.about-performance-statement::before, .about-performance-statement::after { content: ''; display: block; width: 39px; height: 2px; background: var(--teal); margin: 15px 0; }
/* M10 working principles: longer titles (e.g. "Informations traçables") may wrap to two lines. Subgrid rows keep
   icons, titles and descriptions aligned across the four columns (same approach as the shared steps/value strips);
   About-only because the shared .stat on Home/Sectors holds short figures. */
.about-stat-grid { padding-block: 30px; align-items: start; }
.about-performance .stat { padding-inline: 12px; align-items: start; }
.about-performance .stat > .icon { justify-self: center; }
.about-performance .stat > .about-projects-stat { font-size: 25px; line-height: 1.2; align-self: center; }
.about-performance .stat p { margin-top: 12px; line-height: 1.4; }
@supports (grid-template-rows: subgrid) {
  .about-stat-grid { grid-template-rows: repeat(3, auto); }
  .about-performance .stat { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
}

/* Team and reasons to choose Qualivision */
.about-choice { background: var(--surface); padding-block: var(--space-section); }
.about-choice-grid { display: grid; grid-template-columns: .82fr 1fr; gap: 72px; }
.about-choice-copy > p:not(.eyebrow) { font-size: 19px; line-height: 1.4; margin: 12px 0 25px; }
.about-choice .check-list { font-size: 18px; gap: 10px; margin-bottom: 24px; }
.about-team-visual { position: relative; padding-bottom: 68px; align-self: start; } /* M10: card stays attached to the photo when the copy column is taller */
.about-team-photo { width: 100%; height: 429px; object-fit: cover; border-radius: var(--radius); }
.about-team-card { position: absolute; bottom: 0; right: -18px; width: 399px; background: white; padding: 30px 32px 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-team-card-heading { display: flex; align-items: flex-start; gap: 18px; }
.about-team-card-heading .icon { width: 49px; height: 49px; }
.about-team-card h3 { font-size: 18px; letter-spacing: -.025em; line-height: 1.4; padding-top: 10px; }
.about-team-card h3::after { content: ''; display: block; width: 35px; height: 2px; background: var(--teal); margin-top: 12px; }
.about-team-card > p { font-size: 18px; line-height: 1.45; margin-top: 18px; }

/* Reuse the Home road banner and exact footer. */
.about-cta { border-top: 0; }
.about-page .site-footer h2 { font-size: 16px; line-height: 1.12; }
.about-page .footer-column a[aria-current] { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1200px) {
  .about-container { padding-inline: 0; }
  .about-hero-statement { right: 0; }
  .about-history-grid { gap: 45px; grid-template-columns: .85fr 1fr; }
  .about-history-copy > p:not(.eyebrow), .about-choice-copy > p:not(.eyebrow) { font-size: 17px; }
  .about-building { height: 410px; }
  .about-principles h2 { font-size: 25px; }
  .about-principles article > p { font-size: 16px; }
  .about-principles article > p br { display: none; }
  .about-principles .check-list { font-size: 16px; }
  .about-choice-grid { gap: 45px; }
  .about-choice .check-list { font-size: 16px; }
  .about-team-card { right: -10px; width: 360px; padding: 24px; }
  .about-team-card h3, .about-team-card > p { font-size: 16px; }
  .about-stat-grid { width: 77%; margin-left: -12px; }
  .about-performance .stat > .about-projects-stat { font-size: 21px; }
  .about-performance .stat p { font-size: 13px; }
  .about-performance-statement { font-size: 15px; }
  .about-page .site-footer h2 { font-size: 16px; }
}

@media (max-width: 900px) {
  .about-hero { background-position: 58% center; }
  .about-hero-copy > p:last-child { max-width: 480px; font-size: 19px; }
  .about-hero h1 { font-size: 54px; }
  .about-history-grid, .about-choice-grid { gap: 30px; grid-template-columns: 1fr 1fr; }
  .about-building { height: 420px; }
  .about-building-logo { width: 60%; left: 31%; top: 26%; }
  .about-building-statement { right: 12px; padding: 14px 16px; font-size: 13px; letter-spacing: .09em; }
  .about-history-copy h2 br, .about-choice-copy h2 br { display: none; } /* M10: natural wrapping for the longer headings */
  .about-history .button, .about-choice .button { font-size: 14px; padding-inline: 20px; gap: 16px; white-space: normal; }
  .about-principles article { padding-inline: 16px; }
  .about-principles article > .icon { width: 65px; height: 65px; }
  .about-principles h2 { font-size: 23px; }
  .about-principles .check-list { font-size: 15px; }
  .about-stat-grid { width: 100%; margin: 0; padding: 28px 0 0; }
  .about-performance-inner { flex-wrap: wrap; }
  .about-performance-statement { margin: 0 0 12px auto; font-size: 14px; }
  .about-performance-statement br { display: none; }
  .about-performance-statement::before, .about-performance-statement::after { display: inline-block; vertical-align: middle; margin-inline: 12px; }
  .about-team-card { width: calc(100% + 10px); right: -6px; padding: 20px; }
  .about-team-card-heading { gap: 12px; }
  .about-team-card-heading .icon { width: 35px; height: 35px; }
  .about-team-card h3 { font-size: 14px; padding-top: 0; }
  .about-team-card > p { font-size: 15px; }
  .about-team-photo { height: 420px; }
  .about-team-visual { padding-bottom: 100px; }
  .about-cta p br { display: none; }
  .about-page .site-footer h2 { font-size: 16px; }
}

@media (max-width: 640px) {
  .about-hero { height: auto; min-height: 600px; background-image: linear-gradient(90deg, rgb(0 27 43 / 92%), rgb(0 27 43 / 62%)), url('../images/about/about-hero-technician.webp'); /* M15: 62% (was 45%) keeps the eyebrow >= 4.5:1 */ background-position: 65% center; }
  .about-hero-inner { padding-top: 28px; padding-bottom: 145px; }
  .about-breadcrumb { font-size: 13px; margin-bottom: 32px; }
  .about-hero h1 { font-size: clamp(37px, 10vw, 54px); line-height: 1.07; }
  .about-hero-copy > p:last-child { font-size: 16px; line-height: 1.55; margin-top: 25px; }
  .about-hero-statement { font-size: 12px; bottom: 25px; }
  .about-history-grid, .about-choice-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-history-copy > p:not(.eyebrow), .about-choice-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.55; }
  .about-building { height: auto; aspect-ratio: 1.5; }
  .about-building-logo { width: 45%; left: 37%; top: 22%; }
  .about-building-statement { font-size: 11px; padding: 12px 15px; right: 14px; border-radius: 8px; }
  .about-principles-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-principles article { padding: 0 8px 26px; }
  .about-principles article:last-child { padding-bottom: 0; }
  .about-principles article + article::before { top: -15px; left: 15%; right: 15%; bottom: auto; border-left: 0; border-top: 1px solid #b8e5ee; }
  .about-principles h2 { font-size: 25px; }
  .about-principles article > p { font-size: 16px; max-width: 340px; margin-inline: auto; }
  .about-principles .check-list { font-size: 16px; gap: 9px; }
  .about-watermark { top: auto; bottom: -40px; right: -165px; }
  .about-stat-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .about-performance .stat > .about-projects-stat { font-size: 20px; }
  .about-performance-statement { font-size: 10px; letter-spacing: .07em; margin: 6px auto 12px; }
  .about-performance-statement::before, .about-performance-statement::after { width: 18px; margin-inline: 7px; }
  .about-performance::before { left: 20%; opacity: .55; }
  .about-choice .check-list { font-size: 14px; gap: 13px; }
  .about-team-visual { padding: 0 12px 130px 0; }
  .about-team-photo { height: auto; aspect-ratio: 1.4; }
  .about-team-card { width: 90%; right: 0; padding: 22px; }
  .about-team-card-heading .icon { width: 38px; height: 38px; }
  .about-team-card h3 { font-size: 14px; }
  .about-team-card > p { font-size: 14px; }
  .about-page .site-footer h2 { font-size: 14px; }
}
