/* MRES site styles (Tailwind Play CDN handles utilities; these are shared components) */
:root { --navy: #1C284F; --navy-deep: #121A36; --red: #EE2E24; --red-dark: #D73E31; --tint: #F4F5F9; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Inter", system-ui, sans-serif; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); line-height: 1.7; overflow-x: hidden; }
.font-display, .h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }
.h2 { font-weight: 700; text-transform: uppercase; color: var(--navy); font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); line-height: 0.95; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

/* header */
#site-header .header-bg { background: linear-gradient(to bottom, rgba(18,26,54,.65), transparent); }
#site-header.scrolled .header-bg { background: rgba(28,40,79,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.nav-link { position: relative; font-weight: 500; padding: .5rem 0; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .25s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

/* buttons */
.btn-primary, .btn-dark, .btn-outline-light { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; padding: 1rem 1.75rem; border-radius: 999px; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; min-height: 48px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 25px -10px rgba(238,46,36,.7); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(238,46,36,.8); }
.btn-dark { background: var(--navy-deep); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--red); }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg, .group:hover .link-arrow svg { transform: translateX(4px); }
.carousel-btn { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); transition: all .2s ease; }
.carousel-btn:hover { background: var(--red); box-shadow: none; }

.icon-tile { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--red); color: #fff; flex-shrink: 0; }

/* divisions: numbered rows with hover photo reveal */
.div-row { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 1.25rem; height: 100%; min-height: 180px; padding: 1.75rem 1.5rem; border-radius: 1.5rem; background: var(--tint); color: #334155; transition: color .35s ease, box-shadow .35s ease, transform .35s ease; }
.div-row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18,26,54,.96) 0%, rgba(28,40,79,.82) 60%, rgba(28,40,79,.55) 100%); opacity: 0; transition: opacity .45s ease; }
.div-row-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .5s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.div-row-num { position: relative; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: clamp(3.5rem, 6vw, 5rem); line-height: .8; color: rgba(28,40,79,.12); min-width: 1em; flex-shrink: 0; transition: color .35s ease; }
.div-row-title { color: var(--navy); transition: color .35s ease; }
.div-row-arrow { background: #fff; color: var(--red); transition: background-color .35s ease, color .35s ease, transform .35s ease; }
.div-row:hover, .div-row:focus-visible { color: rgba(255,255,255,.85); transform: translateX(-4px); box-shadow: 0 30px 60px -30px rgba(18,26,54,.6); }
.div-row:hover::after, .div-row:focus-visible::after { opacity: 1; }
.div-row:hover .div-row-img, .div-row:focus-visible .div-row-img { opacity: 1; transform: scale(1); }
.div-row:hover .div-row-num, .div-row:focus-visible .div-row-num { color: var(--red); }
.div-row:hover .div-row-title, .div-row:focus-visible .div-row-title { color: #fff; }
.div-row:hover .div-row-arrow, .div-row:focus-visible .div-row-arrow { background: var(--red); color: #fff; transform: rotate(-45deg); }
.div-row-text { transition: color .35s ease; }
@media (hover: none) { /* touch: show the photo permanently so mobile gets the imagery too */
  .div-row { color: rgba(255,255,255,.85); }
  .div-row::after { opacity: 1; }
  .div-row-img { opacity: 1; transform: none; }
  .div-row-num { color: var(--red); }
  .div-row-title { color: #fff; }
}
@media (max-width: 480px) { .div-row { gap: .9rem; padding: 1.5rem 1.1rem; } .div-row-num { font-size: 3rem; } .div-row-arrow { display: none; } }
li > .div-row { height: 100%; }
ol > li { flex: 1 1 0; }

/* sector cards */
.sector-card { position: relative; display: flex; align-items: flex-end; border-radius: 1.75rem; overflow: hidden; color: #fff; isolation: isolate; }
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sector-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18,26,54,.95) 0%, rgba(28,40,79,.55) 45%, rgba(28,40,79,.05) 100%); }
.sector-card:hover img { transform: scale(1.06); }
.sector-body { padding: 2rem; max-width: 34rem; }
.sector-body h3 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.75rem); line-height: .95; margin-top: .9rem; }
.sector-body p { margin-top: .6rem; color: rgba(255,255,255,.8); }
.sector-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; background: var(--red); padding: .4rem .8rem; border-radius: 999px; }

.img-zoom img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.img-zoom:hover img { transform: scale(1.05); }

.accred-logo { background: #fff; border-radius: 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .6rem; aspect-ratio: 1; box-shadow: 0 1px 0 rgba(28,40,79,.06); transition: transform .25s ease, box-shadow .25s ease; }
.accred-lead { aspect-ratio: 2 / 1; padding: 1.5rem; box-shadow: 0 0 0 2px var(--red), 0 25px 50px -30px rgba(28,40,79,.5); }
@media (min-width: 768px) { .accred-lead { aspect-ratio: auto; } }
.accred-logo:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(28,40,79,.35); }
.accred-card { display: flex; flex-direction: column; gap: 1.5rem; background: #fff; border-radius: 1.75rem; padding: 2rem; transition: box-shadow .25s ease; }
@media (min-width: 768px) { .accred-card { flex-direction: row; align-items: center; gap: 2.5rem; padding: 2.5rem; } }
.accred-card:hover { box-shadow: 0 30px 60px -30px rgba(28,40,79,.35); }

.t-card { border-radius: 1.75rem; padding: 2rem; }
@media (min-width: 768px) { .t-card { padding: 2.75rem; } }
.t-dots button { width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); transition: all .25s; }
.t-dots button[aria-current="true"] { background: var(--red); width: 48px; }

/* contact */
.contact-tile { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border-radius: 1.5rem; padding: 1.5rem; transition: box-shadow .25s ease, transform .25s ease; }
.contact-tile:hover { transform: translateY(-3px); box-shadow: 0 25px 50px -25px rgba(28,40,79,.35); }
.form-card { background: #fff; border-radius: 1.75rem; padding: 1.75rem; box-shadow: 0 30px 60px -40px rgba(28,40,79,.4); }
@media (min-width: 768px) { .form-card { padding: 3rem; } }
.field-label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field { width: 100%; border-radius: .9rem; border: 1.5px solid #d6dae6; background: #fff; padding: .85rem 1rem; font-size: 1rem; color: #1e293b; min-height: 50px; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28,40,79,.12); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.grecaptcha-badge { visibility: hidden; }

/* long-form text */
.prose-mres p { margin-top: 1.1rem; line-height: 1.8; }
.prose-mres .lead { font-size: 1.3rem; color: var(--navy); font-weight: 500; line-height: 1.6; }
.prose-mres h2 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-weight: 700; color: var(--navy); font-size: 2rem; line-height: 1; margin-top: 2.75rem; }
.prose-mres blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 4px solid var(--red); font-size: 1.1rem; color: var(--navy); font-style: italic; }
.prose-mres a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }

/* motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero-in { opacity: 0; transform: translateY(24px); animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-in:nth-child(2) { animation-delay: .1s; } .hero-in:nth-child(3) { animation-delay: .2s; } .hero-in:nth-child(4) { animation-delay: .3s; } .hero-in:nth-child(5) { animation-delay: .4s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-img { transform: scale(1.08); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.orbit { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spark-line { animation: spark 3.5s ease-in-out infinite alternate; }
@keyframes spark { from { width: 10%; } to { width: 45%; } }
.t-slide { animation: fadeUp .6s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-in { opacity: 1 !important; transform: none !important; }
  .hero-img { transform: none; }
}
