/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
 * inner pages · genre: modern-minimal · theme: brand-locked (#011e76)
 * macrostructures: About=Timeline · Facilities=Workbench · Locations=Catalogue
 *                  Industries=Bento · Sustainability=Manifesto · Awards=Gallery · Contact=Split Form
 * shared masthead only; each page body uses a different rhythm
 * =========================================================
 * Rivoltech-inner page styles (loaded after style.css)
 * ========================================================= */

/* ---------- page masthead ---------- */
.page-head {
  position: relative;
  background: var(--brand-dark);
  overflow: hidden;
  padding: 150px 0 74px;
}

.page-head-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* same treatment as the homepage slider: held under the copy column, then
     falls away so the banner photograph actually reads on the right */
  background:
    linear-gradient(100deg, rgba(1, 30, 118, .86) 0%, rgba(1, 30, 118, .74) 38%, rgba(1, 30, 118, .40) 62%, rgba(1, 30, 118, .10) 100%),
    linear-gradient(0deg, rgba(4, 10, 30, .34) 0%, transparent 55%);
}

.page-head .container {
  position: relative;
  z-index: 2;
}

.page-head h1 {
  color: #fff;
  margin: 0 0 14px;
  max-width: 19ch;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.page-head p {
  color: rgba(255, 255, 255, .82);
  max-width: 60ch;
  font-size: 1.03rem;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: .8rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .66);
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: rgba(255, 255, 255, .34);
}

.breadcrumb b {
  color: #fff;
  font-weight: 600;
}

/* ---------- generic prose ---------- */
.prose p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.72;
}

.prose p:last-child {
  margin-bottom: 0;
}

.lead-para {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
}

/* ---------- split intro (image + copy) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.split--rev .split-media {
  order: 2;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: var(--shadow-md);
}

.split-stack {
  display: grid;
  gap: 18px;
}

/* =========================================================
   ABOUT-timeline
========================================================= */
.timeline {
  position: relative;
  margin-top: 14px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.tl-item {
  position: relative;
  padding-bottom: 34px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.tl-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

.tl-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.65;
}

/* leadership */
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 880px;
  margin: 0 auto;
}

.person {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.person:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.person-body {
  padding: 30px 28px;
}

.person-body h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.person-role {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.person-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .people {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 28px;
  }
}

/* =========================================================
   FACILITIES-workbench
========================================================= */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.spec-table th,
.spec-table td {
  padding: 13px 18px;
  text-align: left;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
}

.spec-table thead th {
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table tbody tr:hover {
  background: var(--gray-100);
}

.spec-table td:last-child,
.spec-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.shot-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.shot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.shot-card figure {
  margin: 0;
  height: 196px;
  overflow: hidden;
  background: var(--gray-100);
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.shot-card:hover img {
  transform: scale(1.05);
}

.shot-card figcaption {
  padding: 16px 20px 20px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.shot-card figcaption small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: .82rem;
  margin-top: 3px;
}

/* =========================================================
   LOCATIONS-catalogue (alternating full-width blocks)
========================================================= */
.loc-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.loc-block:last-of-type {
  border-bottom: 0;
}

.loc-block:nth-child(even) .loc-media {
  order: 2;
}


.loc-media{ position:relative; border-radius:18px; overflow:hidden; box-shadow:var(--shadow-md); }
.loc-track{ position:relative; aspect-ratio:3/2; }
.loc-slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
  opacity:0; transition:opacity .6s ease; pointer-events:none;
}
.loc-slide.is-active{ opacity:1; }

/* arrows sit inside the frame, revealed on hover / focus */
.loc-nav{
  position:absolute; top:50%; translate:0 -50%; z-index:2;
  width:38px; height:38px; display:grid; place-items:center;
  border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.9); color:var(--brand);
  opacity:0; transition:opacity .25s ease, background .2s ease;
}
.loc-media:hover .loc-nav, .loc-nav:focus-visible{ opacity:1; }
.loc-nav:hover{ background:#fff; }
.loc-prev{ left:12px; }
.loc-next{ right:12px; }

.loc-dots{
  position:absolute; left:0; right:0; bottom:12px; z-index:2;
  display:flex; justify-content:center; gap:7px;
}
.loc-dot{
  width:8px; height:8px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.55); transition:background .2s ease, width .2s ease;
}
.loc-dot.is-active{ background:#fff; width:20px; border-radius:4px; }

@media (prefers-reduced-motion: reduce){
  .loc-slide{ transition:none; }
}

.loc-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.loc-body h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.loc-body p {
  color: var(--ink-soft);
}

.loc-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 14px;
  margin: 22px 0 24px;
}

.loc-fact {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 14px 16px;
}

.loc-fact b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--brand);
  line-height: 1.1;
}

.loc-fact span {
  font-size: .76rem;
  color: var(--ink-soft);
}

/* =========================================================
   INDUSTRIES-bento
========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.bento-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 260px;
  background: var(--brand-dark);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.bento-item:hover img {
  transform: scale(1.06);
}

.bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  /* the copy sits along the bottom edge, so the scrim is held there and clears
     by mid-card - the sector photo carries the top two-thirds */
  background:
    linear-gradient(0deg, rgba(1, 30, 118, .88) 0%, rgba(1, 30, 118, .60) 26%, rgba(1, 30, 118, .14) 54%, rgba(1, 30, 118, 0) 76%),
    linear-gradient(0deg, rgba(4, 10, 30, .34) 0%, transparent 44%);
}

.bento-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px;
}

.bento-body h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.bento-body p {
  color: rgba(255, 255, 255, .8);
  font-size: .88rem;
  margin: 0;
  line-height: 1.55;
}

.bento-wide {
  grid-column: span 4;
}

.bento-half {
  grid-column: span 3;
}

.bento-third {
  grid-column: span 2;
}

/* =========================================================
   SUSTAINABILITY-manifesto pillars
========================================================= */
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.pillar:last-of-type {
  border-bottom: 0;
}

.pillar:nth-child(even) .pillar-media {
  order: 2;
}

.pillar-media img {
  width: 100%;
  /* the pillar copy is only a few lines, so the image is kept wide and short
     rather than towering over the text beside it */
  aspect-ratio: 16/9;
  max-height: 240px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow-sm);
}

.pillar-num {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
}

.pillar h2 {
  font-size: 1.5rem;
  margin: 8px 0 10px;
}

.pillar p {
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   AWARDS-gallery
========================================================= */
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 26px;
}

.award-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.award-card figure {
  margin: 0;
  height: 250px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.award-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.award-card figcaption {
  padding: 20px 24px 24px;
}

.award-card h3 {
  font-size: 1rem;
  margin: 0 0 5px;
}

.award-card p {
  margin: 0;
  font-size: .86rem;
  color: var(--ink-soft);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px;
}

.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--border);
}

.cert-card b {
  display: block;
  margin-top: 14px;
  font-size: .92rem;
  color: var(--brand-dark);
}

.cert-card span {
  display: block;
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* =========================================================
   CONTACT-split form
========================================================= */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 34px 38px;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.contact-card>p {
  color: var(--ink-soft);
  font-size: .95rem;
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}

.field {
  /*margin-bottom:16px; */
}

.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field label .req {
  color: #c8442f;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(1, 30, 118, .1);
}

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
  border-color: #c8442f;
}

.field-err {
  display: block;
  color: #c8442f;
  font-size: .78rem;
  margin-top: 5px;
  min-height: 1em;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.form-alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .92rem;
  margin-bottom: 20px;
  display: none;
}

.form-alert.is-shown {
  display: block;
}

.form-alert--ok {
  background: #e6f7ed;
  color: #136b38;
  border: 1px solid #b7e6ca;
}

.form-alert--err {
  background: #fdecea;
  color: #9a2c1c;
  border: 1px solid #f5c6c0;
}

.contact-aside {
  display: grid;
  gap: 18px;
}

.info-card {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
}

.info-card h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.info-card h3 img {
  width: 20px;
  height: 20px;
}

.info-card p,
.info-card address {
  margin: 0;
  font-style: normal;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.66;
}

.info-card a {
  color: var(--brand);
  font-weight: 600;
}

.info-card a:hover {
  text-decoration: underline;
}

/* =========================================================
   shared page CTA
========================================================= */
/* sits directly above the footer-same treatment as the homepage .cta-band */
.page-cta {
  background: var(--paper-soft);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(1, 30, 118, .03) 0 1px, transparent 1px 84px);
}

.page-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 60px 24px;
  flex-wrap: wrap;
}

.page-cta h2 {
  color: var(--brand-dark);
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.page-cta p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}

.page-cta .btn-primary {
  background: var(--brand);
  color: #fff;
  flex: none;
}

.page-cta .btn-primary:hover {
  background: var(--brand-light);
}

/* =========================================================
   responsive
========================================================= */
@media (max-width:1000px) {

  .bento-wide,
  .bento-half,
  .bento-third {
    grid-column: span 3;
  }
}

@media (max-width:900px) {
  .page-head {
    padding: 120px 0 56px;
  }

  .split,
  .loc-block,
  .pillar,
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .split--rev .split-media,
  .loc-block:nth-child(even) .loc-media,
  .pillar:nth-child(even) .pillar-media {
    order: 0;
  }

  .loc-block {
    padding: 40px 0;
  }
}

@media (max-width:640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-wide,
  .bento-half,
  .bento-third {
    grid-column: span 1;
  }

  .bento-item {
    min-height: 210px;
  }

  .page-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 24px;
  }

  .page-cta .btn {
    width: 100%;
  }

  .contact-card {
    padding: 26px 22px 30px;
  }
}
/* ---------- embedded map (contact.html) ---------- */
.map-frame{
  border-radius:18px; overflow:hidden; box-shadow:var(--shadow-md);
  border:1px solid var(--border); line-height:0;
}
.map-frame iframe{ width:100%; height:440px; display:block; }
@media (max-width: 700px){ .map-frame iframe{ height:320px; } }

/* ---------- banner + card copy over lightened scrims ---------- */
/* the scrims above are deliberately light so the photography shows; these keep
   the copy legible where it crosses a bright part of the image */
.page-head h1,
.page-head p,
.breadcrumb { text-shadow: 0 1px 12px rgba(1, 16, 60, .55), 0 1px 2px rgba(1, 16, 60, .4); }

.bento-body h3,
.bento-body p { text-shadow: 0 1px 10px rgba(1, 16, 60, .6), 0 1px 2px rgba(1, 16, 60, .45); }

.page-head p { color: rgba(255, 255, 255, .93); }
.bento-body p { color: rgba(255, 255, 255, .92); }

/* narrow screens: the banner copy spans the full width, so the scrim must be even */
@media (max-width: 860px) {
  .page-head::after {
    background:
      linear-gradient(180deg, rgba(1, 30, 118, .74) 0%, rgba(1, 30, 118, .82) 100%),
      linear-gradient(0deg, rgba(4, 10, 30, .3) 0%, transparent 60%);
  }
}
