/* Real Big Group — mobile-first. Breakpoints: 640, 900, 1000. */
:root {
  --teal: #00585c;
  --teal-deep: #003e41;
  --teal-ink: #0b2a2c;
  --mint: #8fe3cf;
  --tint: #eef5f3;
  --ink: #142221;
  --muted: #55625f;
  --line: #e1e7e5;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(8, 44, 46, 0.28);
  --wrap: 1180px;
  --header-h: 68px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.center { text-align: center; }
.i { width: 1em; height: 1em; flex: none; }

.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.eyebrow--light { color: var(--mint); }
.fineprint { font-size: 0.82rem; color: var(--muted); }
.fineprint a { text-underline-offset: 2px; }

/* ---- Buttons & links ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 48px; padding: 0.7em 1.4em; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.97rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { background: var(--mint); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn--outline { border-color: var(--teal); color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--teal); text-decoration: none; }
.link .i { transition: transform 0.18s; }
.link:hover .i { transform: translateX(3px); }
.link--quiet { color: var(--muted); font-weight: 600; }
.link--quiet:hover { color: var(--ink); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand img { height: 40px; width: auto; }

.nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 8px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.site-nav__link { display: block; padding: 14px 0; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.site-nav__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.site-nav__sub a { display: block; padding: 10px 0; color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav__sub a:hover { color: var(--teal); }
.site-nav__cta { width: 100%; margin-top: 12px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 30px; position: static; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav__link { padding: 22px 0; font-size: 0.97rem; font-weight: 600; }
  .site-nav__link:hover { color: var(--teal); }
  .site-nav__group { position: relative; }
  .site-nav__group > .site-nav__link::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
  .site-nav__sub { position: absolute; top: 100%; left: -20px; width: 380px; padding: 12px 20px; gap: 0 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.16s, transform 0.16s, visibility 0.16s; }
  .site-nav__group:hover .site-nav__sub, .site-nav__group:focus-within .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
  .site-nav__sub a { padding: 8px 0; }
  .site-nav__cta { width: auto; margin: 0; min-height: 44px; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 44px 0 0; color: #fff; background: radial-gradient(120% 90% at 85% 0%, #0a7a7d 0%, var(--teal) 38%, var(--teal-deep) 100%); }
.hero__inner { display: grid; gap: 36px; }
.hero__lead { margin-top: 18px; max-width: 34em; font-size: 1.08rem; color: rgba(255, 255, 255, 0.86); }
.hero h1 { margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; margin: 40px 0 0; padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }
.stats dd { margin: 0; font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
  .hero__lead { font-size: 1.15rem; }
  .hero__mosaic { gap: 16px; }
  .hero__mosaic img:nth-child(odd) { transform: translateY(22px); }
  .hero__mosaic img:nth-child(even) { transform: translateY(-10px); }
  .stats { margin-top: 64px; }
}

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 44em; margin-bottom: 28px; }
.section__head h2 { margin-top: 10px; }
.section__head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 36px; }
}

/* ---- Filters ---- */
.filters { display: flex; gap: 8px; margin: 0 -20px 24px; padding: 2px 20px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color 0.16s, color 0.16s, border-color 0.16s; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---- Cards ---- */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s, opacity 0.5s; }
.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card__media > img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 20px 22px; }
.card__body h3 a { text-decoration: none; }
.card__body h3 a:hover { color: var(--teal); }
.card__body > p:not(.eyebrow):not(.card__links) { color: var(--muted); font-size: 0.97rem; }
.card__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: auto; padding-top: 12px; font-size: 0.94rem; }
.card__links a { min-height: 32px; }

.badge { display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 10px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45); }
.badge img { width: auto; max-width: 170px; }
.badge--light { background: #fff; }
.badge--dark { background: #101012; }
.card__media .badge { position: absolute; left: 14px; bottom: 14px; }

/* ---- About / quote ---- */
.about { display: grid; gap: 32px; align-items: center; }
.about__copy h2 { margin: 10px 0 16px; }
.about__copy p { color: var(--muted); font-size: 1.05rem; }
.about__copy .link { margin-top: 20px; }
.quote { margin: 0; padding: 30px 26px; border-radius: var(--radius); color: #fff; background: linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 100%); }
.quote blockquote { margin: 0; font-size: clamp(1.15rem, 3.2vw, 1.45rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
.quote blockquote::before { content: "\201C"; display: block; height: 0.55em; font-size: 3.4rem; line-height: 1; color: var(--mint); }
.quote figcaption { margin-top: 20px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); }
.quote figcaption strong { display: block; color: #fff; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: 64px; }
  .quote { padding: 44px 40px; }
}

/* ---- Contact ---- */
.contact { display: grid; gap: 32px; }
.contact__copy h2 { margin: 10px 0 14px; }
.contact__copy > p { color: var(--muted); font-size: 1.05rem; max-width: 30em; }
.contact__details { margin: 26px 0 0; display: grid; gap: 18px; }
.contact__details dt, .facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact__details dd, .facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact__details a, .facts a { color: var(--teal); text-underline-offset: 3px; }
.contact__form { display: grid; gap: 16px; padding: 24px 20px; background: var(--tint); border-radius: var(--radius); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
input, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 88, 92, 0.15); }
textarea { resize: vertical; min-height: 120px; }
.form-msg { font-size: 0.9rem; font-weight: 600; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #0c7a4f; }
.form-msg.err { color: #b3261e; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .contact__form { padding: 34px; }
  .contact__form .btn { justify-self: start; }
}

/* ---- Company page ---- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 440px; color: #fff; background: var(--teal-ink); isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 28, 30, 0.35) 0%, rgba(6, 28, 30, 0.9) 100%); }
.page-hero__inner { padding-top: 56px; padding-bottom: 40px; }
.page-hero h1 { margin-top: 18px; }
.page-hero__lead { margin: 10px 0 24px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.8); }
.crumbs a { color: #fff; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .page-hero { min-height: 520px; }
  .page-hero__inner { padding-bottom: 64px; }
  .page-hero__lead { font-size: 1.3rem; }
}

.detail { display: grid; gap: 32px; }
.prose { max-width: 44em; }
.prose p { font-size: 1.06rem; color: #2f3d3b; }
.prose p + p { margin-top: 1.1em; }
.prose p:first-child { font-size: 1.2rem; color: var(--ink); }
.prose--legal h2 { margin: 1.8em 0 0.5em; font-size: 1.3rem; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal p:first-child, .prose--legal p { font-size: 1.02rem; color: #2f3d3b; }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.facts { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.facts h2 { font-size: 1.15rem; margin-bottom: 16px; }
.facts dl { margin: 0; display: grid; gap: 16px; }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1fr 340px; gap: 72px; align-items: start; }
  .facts { position: sticky; top: calc(var(--header-h) + 24px); }
}
.cards + .center { margin-top: 32px; }

/* ---- Page head (about, legal, 404) ---- */
.page-head { padding: 52px 0 0; color: #fff; background: radial-gradient(120% 90% at 85% 0%, #0a7a7d 0%, var(--teal) 38%, var(--teal-deep) 100%); }
.page-head h1 { margin-top: 12px; max-width: 16em; }
.page-head__lead { margin-top: 16px; max-width: 38em; font-size: 1.12rem; color: rgba(255, 255, 255, 0.86); }
.page-head--plain { padding-bottom: 44px; color: var(--ink); background: var(--tint); }
.page-head--plain h1 { margin-top: 0; font-size: clamp(2rem, 5.4vw, 3rem); }
.page-head--plain .page-head__lead { color: var(--muted); }
.page-head--center { padding: 96px 0; text-align: center; }
.page-head--center h1, .page-head--center .page-head__lead { margin-inline: auto; }
.page-head--center h1 { margin-top: 10px; }
.page-head--center .btn { margin-top: 28px; }
@media (min-width: 900px) { .page-head { padding-top: 84px; } .page-head--plain { padding-bottom: 64px; } }

.video__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video__play:hover img { opacity: 1; }
.video__play span { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.video__play span::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--teal); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video .fineprint { margin-top: 10px; }

.sectors { display: grid; gap: 20px; }
.sector { padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sector h3 { margin-bottom: 8px; color: var(--teal); }
.sector li { padding: 12px 0; border-top: 1px solid var(--line); }
.sector li:first-child { border-top: 0; }
.sector a { display: block; font-weight: 700; text-decoration: none; }
.sector a:hover { color: var(--teal); }
.sector span { font-size: 0.92rem; color: var(--muted); }
@media (min-width: 900px) { .sectors { grid-template-columns: repeat(3, 1fr); align-items: start; } }

/* ---- Footer ---- */
.site-footer { padding-top: 56px; color: rgba(255, 255, 255, 0.78); background: var(--teal-ink); font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer h2 { margin-bottom: 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.site-footer__about img { height: 46px; width: auto; padding: 6px 10px; border-radius: 8px; background: #fff; }
.site-footer__about p { margin: 16px 0; max-width: 26em; }
.site-footer__about address a { color: #fff; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 12px 0 10px; }
.newsletter input { min-width: 0; border-color: transparent; }
.newsletter .btn { background: var(--mint); color: var(--teal-ink); min-height: 48px; padding-inline: 1.1em; }
.newsletter .btn:hover { background: #fff; }
.newsletter .form-msg { grid-column: 1 / -1; }
.newsletter .form-msg.ok { color: var(--mint); }
.newsletter .form-msg.err { color: #ffb4ab; }
.site-footer .fineprint { color: rgba(255, 255, 255, 0.6); }
.site-footer .fineprint a { text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.86rem; }
.site-footer__base a + a { margin-left: 20px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.2fr 1.1fr 0.6fr 1.2fr; gap: 48px; } }

/* ---- Scroll reveal (only applied by script.js to below-the-fold elements) ---- */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Comfortable tap targets for inline links ---- */
.facts dd a, .contact__details dd a, .site-footer address a, .site-footer__base a { display: inline-block; padding: 6px 0; }
.crumbs a { display: inline-block; padding: 6px 0; margin: -6px 0; }
