/* Styles for inner pages: About Us, Our Companies, Contact (shared parts are in home.css) */

/* ================= Page banner ================= */
.page-hero { position: relative; display: flex; align-items: center; min-height: 340px; overflow: hidden; color: #fff; text-align: center; background: #363a5c; }
.page-hero__bg { position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(80, 90, 190, .35), transparent 45%), linear-gradient(120deg, #2b2e50 0%, #363a5c 60%, #3c4170 100%); }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(28, 31, 66, .62); }
.page-hero__note { position: absolute; top: calc(var(--header-h, 0px) + 18px); left: 0; right: 0; z-index: 1; color: rgba(255,255,255,.32); font-size: 12px; }
.page-hero__inner { position: relative; z-index: 1; padding: 70px 0; }
/* Designed banner image (title is already printed on the image): show the image, keep the h1 for SEO only */
.page-hero.page-hero--banner { min-height: 0; }
.page-hero--banner { display: block;height: calc(var(--header-h, 0px) + 18px + clamp(110px, 8.5vw, 160px)); background: #fff; }
.page-hero--banner .page-hero__bg { top: calc(var(--header-h, 0px) + 18px); left: 24px; right: 24px; bottom: 0; border-radius: 18px; overflow: hidden; background: #141a3a; box-shadow: 0 22px 44px -26px rgba(21, 27, 84, .55); }
@media (max-width: 680px) { .page-hero--banner .page-hero__bg { left: 12px; right: 12px; border-radius: 14px; } }
.page-hero--banner .page-hero__bg::after { background: linear-gradient(180deg, rgba(10, 14, 40, 0) 70%, rgba(10, 14, 40, .45) 100%); }
.page-hero--banner .page-hero__bg img { object-position: center 52%; }
.page-hero--banner .page-hero__inner { position: absolute; left: 44px; right: auto; bottom: 10px; width: auto; padding: 0; margin: 0; }
.page-hero--banner .breadcrumb { margin: 0; font-size: 12px; }
@media (max-width: 680px) { .page-hero--banner .page-hero__inner { display: none; } }
.page-hero--banner .breadcrumb { display: inline-flex; padding: 7px 16px; border-radius: 999px; background: rgba(10, 14, 40, .45); backdrop-filter: blur(6px); }
.page-hero__eyebrow { margin-bottom: 14px; color: #c9cdf0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; letter-spacing: -.025em; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 18px; color: #d4d7f0; font-size: 14px; }
.breadcrumb a:hover { color: #fff; }

/* ================= About: story + corporate info ================= */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story .h2 { max-width: 460px; }
.story__text p:not(.eyebrow) { margin-top: 20px; color: var(--jms-muted); }
.story__visual .ph { aspect-ratio: 800 / 650; width: 100%; }
.story__visual { position: relative; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(21, 27, 84, .35); }
.story__visual img { width: 100%; aspect-ratio: 800 / 650; object-fit: cover; object-position: 30% center; }
.story__visual figcaption { position: absolute; left: 18px; bottom: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--jms-indigo); font-size: 13px; font-weight: 600; }
.corp-info { margin-top: 96px; padding: 48px; background: var(--jms-light); border: 1px solid var(--jms-line); }
.corp-info h3 { margin-bottom: 30px; font-size: 21px; font-weight: 700; }
.corp-info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; margin: 0; }
.corp-info dt { color: var(--jms-muted); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.corp-info dd { margin: 6px 0 0; font-weight: 600; line-height: 1.35; }
.corp-info dd a:hover { color: var(--jms-indigo); }

/* ================= About: timeline ================= */
.milestones .h2 { margin-bottom: 48px; }
.timeline { margin: 0; padding: 20px 40px; list-style: none; background: #fff; border: 1px solid var(--jms-line); }
.timeline li { display: grid; grid-template-columns: 138px 1fr; gap: 20px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--jms-line); }
.timeline li:first-child { border-top: 0; }
.timeline strong { color: var(--jms-indigo); font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1; }
.timeline p { color: var(--jms-muted); }

/* ================= About: vision & mission ================= */
.vm { padding: 96px 0; background: var(--jms-indigo); color: #fff; }
.vm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vm__card { padding: 44px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.vm__card p:not(.vm__label) { font-size: 19px; font-weight: 500; line-height: 1.6; }
.vm__label { margin-bottom: 12px; color: #c3c8f2; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ================= About: values, chairman, leadership ================= */
.values__title { max-width: 560px; }
.values__intro { max-width: 640px; margin: 20px 0 48px; }
.chairman__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.chairman__visual .ph { aspect-ratio: 700 / 760; width: 100%; }
.chairman__visual { margin: 0; max-width: 480px; justify-self: center; width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(21, 27, 84, .35); border-bottom: 5px solid var(--jms-orange); }
.chairman__visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.chairman__text > p:not(.eyebrow) { margin-top: 26px; color: var(--jms-muted); font-size: 17px; }
.chairman__sign { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--jms-line); }
.chairman__sign strong { display: block; font-family: var(--font-head); font-size: 19px; }
.chairman__sign span { color: var(--jms-muted); font-size: 14px; }
.leadership__title { margin-bottom: 48px; }
.leadership__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person-card { background: #fff; border: 1px solid var(--jms-line); border-radius: 10px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.person-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(21, 27, 84, .35); }
.person-card .ph { aspect-ratio: 368 / 280; width: 100%; }
.person-card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: center top; }
.person-card__body { padding: 22px 22px 24px; border-top: 4px solid var(--jms-orange); }
.person-card span { display: block; margin-top: 4px; }
.person-card h3 { font-size: 18px; font-weight: 700; }
.person-card span { color: var(--jms-muted); font-size: 14px; }

/* ================= CTA band (About, Companies) ================= */
.cta-band { padding: 72px 0; background: linear-gradient(120deg, var(--jms-indigo) 0%, #252c86 100%); color: #fff; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.cta-band p { margin-top: 10px; color: #d7daf3; }

/* ================= Companies ================= */
.companies__title { max-width: 720px; }
.companies__intro { max-width: 700px; margin-top: 20px; }
.filter { display: flex; flex-wrap: wrap; gap: 12px; margin: 38px 0 20px; }
.filter__btn { min-height: 46px; padding: 0 22px; border: 1px solid #cfd3e0; background: #fff; color: var(--jms-indigo); font: 500 15px var(--font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter__btn:hover { border-color: var(--jms-indigo); }
.filter__btn.is-active { border-color: var(--jms-indigo); background: var(--jms-indigo); color: #fff; }
/* ===== Company rows: medium rounded photo + soft grey panel beside it (panel is shorter than the photo) ===== */
.company-list { display: grid; gap: 80px; margin-top: 56px; }
.company-row { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; scroll-margin-top: 110px; }
.company-row[hidden] { display: none; }
.company-row__visual { position: relative; z-index: 1; margin: 0; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 10px; background: var(--jms-indigo-dark); box-shadow: 0 24px 50px -30px rgba(20, 22, 60, .45); }
.company-row__visual .ph { width: 100%; height: 100%; }
.company-row__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.company-row:hover .company-row__media { transform: scale(1.04); }
.company-row__text { align-self: center; padding: 46px 54px; background: linear-gradient(135deg, #f7f8fb 0%, #eceef4 100%); border-radius: 0 10px 10px 0; }
.company-row--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
.company-row--reverse .company-row__visual { order: 2; }
.company-row--reverse .company-row__text { border-radius: 10px 0 0 10px; background: linear-gradient(225deg, #f7f8fb 0%, #eceef4 100%); }
/* Company logo — highlighted at the top of each panel */
.company-row__logo { display: block; width: auto; height: 58px; max-width: 230px; margin-bottom: 22px; object-fit: contain; mix-blend-mode: multiply; }
.company-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.company-row__badge { padding: 7px 12px; border-radius: 5px; background: var(--jms-orange); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.company-row__since { color: var(--jms-muted); font-size: 13px; font-weight: 500; }
.company-row h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.15; }
.company-row__desc { max-width: 480px; margin: 14px 0 26px; color: var(--jms-muted); font-size: 16px; line-height: 1.75; }
.company-row__cta { display: inline-flex; align-items: center; gap: 16px; color: var(--jms-indigo); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.company-row__cta-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--jms-indigo); color: #fff; transition: background .25s, transform .25s; }
.company-row__cta-icon svg { width: 20px; height: 20px; }
.company-row__cta:hover .company-row__cta-icon { background: var(--jms-orange); transform: translateX(4px); }
/* Fade-up when a row scrolls into view (added by main.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li { padding: 5px 14px; background: #eef0f8; color: var(--jms-indigo); font-size: 13px; }
.standard__title { max-width: 600px; margin-bottom: 48px; }
.standard__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.standard__card { padding: 28px 30px 32px; background: #fff; border: 1px solid var(--jms-line); }
.standard__card h3 { margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.standard__card p { color: var(--jms-muted); font-size: 15px; }

/* ================= Contact ================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .h2 { font-size: clamp(26px, 2.6vw, 32px); }
.contact__intro { margin: 14px 0 30px; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #d4d8e3; border-radius: 0; background: #fff; color: var(--jms-ink); font: 15px var(--font-body); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a90a2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--jms-indigo); box-shadow: 0 0 0 3px rgba(31, 38, 117, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--jms-muted); font-size: 13px; }
.form-error { color: #c0392b; font-size: 14px; }
.contact-form .btn { justify-self: start; }
.form-status { margin-bottom: 24px; padding: 16px 18px; border-left: 4px solid; font-size: 15px; }
.form-status.is-ok { border-color: #2e9d5b; background: #eaf7ef; color: #1d6b3d; }
.form-status.is-error { border-color: #c0392b; background: #fbecea; color: #8e2a20; }
.form-status.is-info { border-color: var(--jms-indigo); background: #eef0f8; color: var(--jms-indigo); }
.contact__info .h2 { margin-bottom: 28px; }
.info-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--jms-line); }
.info-list li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--jms-line); }
.info-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--jms-indigo); }
.info-list h3 { margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.info-list p { color: var(--jms-muted); font-size: 15px; }
.info-list a { color: var(--jms-indigo); }
.info-list a:hover { text-decoration: underline; }
.follow { margin-top: 30px; padding: 26px; background: var(--jms-light); border: 1px solid var(--jms-line); }
.follow h3 { margin-bottom: 16px; font-size: 16px; font-weight: 700; }
.follow__icons { display: flex; gap: 12px; }
.follow__icons a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #cfd3e0; background: #fff; color: var(--jms-indigo); transition: background .2s, color .2s; }
.follow__icons a:hover { background: var(--jms-indigo); color: #fff; }
.follow__icons svg { width: 18px; height: 18px; }
.map { height: 440px; background: var(--jms-ph); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .standard__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .story__grid, .chairman__grid, .contact__grid, .vm__grid { grid-template-columns: 1fr; gap: 44px; }
  .corp-info__grid { grid-template-columns: 1fr 1fr; }
  .leadership__grid { grid-template-columns: repeat(2, 1fr); }
  .company-list { gap: 56px; }
  .company-row, .company-row--reverse { grid-template-columns: 1fr; }
  .company-row--reverse .company-row__visual { order: 0; }
  .company-row__visual { aspect-ratio: 16 / 10; }
  .company-row__text, .company-row--reverse .company-row__text { margin: -40px 18px 0; padding: 36px 28px; border-radius: 10px; position: relative; z-index: 2; box-shadow: 0 18px 40px -28px rgba(20, 22, 60, .35); }
  .company-row__logo { height: 54px; }
  .standard__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .page-hero { min-height: 280px; }
  .corp-info { margin-top: 64px; padding: 30px 24px; }
  .corp-info__grid, .leadership__grid, .standard__grid, .form-row { grid-template-columns: 1fr; }
  .timeline { padding: 6px 22px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .vm { padding: 64px 0; }
  .vm__card { padding: 30px 26px; }
  .vm__card p:not(.vm__label) { font-size: 17px; }
  .filter__btn { min-height: 42px; padding: 0 16px; }
  .map { height: 340px; }
}
