/* Shared layout: header, footer, buttons, skip link, 404. Brand tokens are in components.css (:root).
   Works at 390 px and up. Below 760 px the menu is a full screen panel. */
.es-btn { display: inline-block; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; border-radius: 4px; padding: 14px 24px;
  background: var(--es-green); color: var(--es-ink); border: 2px solid var(--es-green); }
.es-btn:hover { background: var(--es-lime); border-color: var(--es-lime); }
.es-btn--outline { background: transparent; color: var(--es-white); }
.es-btn--outline:hover { background: transparent; color: var(--es-lime); }
.es-btn { text-decoration: none; text-align: center; }
.es-btn--small { padding: 10px 18px; font-size: 15px; }

.es-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.es-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--es-lime); color: var(--es-ink); font-weight: 600; padding: 10px 16px; border-radius: 4px; }
.es-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--es-lime); outline-offset: 2px; }

/* Header */
.es-header { position: sticky; top: 0; z-index: 50; background: var(--es-bg); border-bottom: 1px solid var(--es-card-line); font-family: var(--es-font); }
.es-header * { box-sizing: border-box; }
.es-header-inner { max-width: 1280px; margin: 0 auto; padding: 14px clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: 28px; }
.es-logo { display: block; flex: none; line-height: 0; }
.es-logo img { display: block; height: 40px; width: auto; }
.es-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.es-nav ul { list-style: none; margin: 0; padding: 0; }
.es-menu { display: flex; align-items: center; gap: 26px; }
.es-menu > li { position: relative; }
.es-menu a, .es-menu button { color: var(--es-white); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.es-menu a:hover, .es-menu button:hover { color: var(--es-lime); }
.es-menu [aria-current="page"] { color: var(--es-lime); }
.es-has-sub > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.es-nav .es-sub-menu { display: none; position: absolute; left: -16px; top: 100%; min-width: 220px; padding: 10px 16px; background: var(--es-card); border: 1px solid var(--es-card-line); border-radius: 4px; }
.es-nav .es-sub-menu a { display: block; padding: 10px 0; white-space: nowrap; }
.es-has-sub.is-open > .es-sub-menu, .es-has-sub:focus-within > .es-sub-menu, .es-has-sub:hover > .es-sub-menu { display: block; }
.es-lang { display: flex; gap: 14px; }
.es-lang a { color: var(--es-white); font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.es-lang a:hover { color: var(--es-lime); }
.es-lang a[aria-current="true"] { color: var(--es-lime); text-decoration: underline; text-underline-offset: 6px; }
.es-header-cta { flex: none; }
.es-menu-btn { display: none; background: none; border: 2px solid var(--es-white); border-radius: 4px; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.es-menu-btn span, .es-menu-btn span::before, .es-menu-btn span::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--es-white); }
.es-menu-btn span { top: 19px; } .es-menu-btn span::before { left: 0; right: 0; top: -7px; } .es-menu-btn span::after { left: 0; right: 0; top: 7px; }
.es-menu-btn[aria-expanded="true"] span { background: transparent; }
.es-menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.es-menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) and (min-width: 761px) { .es-nav { gap: 18px; } .es-menu { gap: 18px; } .es-header-inner { gap: 18px; } }
@media (max-width: 760px) {
  .es-header-inner { padding: 12px 16px; gap: 10px; }
  .es-logo img { height: 24px; }
  .es-header-cta { margin-left: auto; }
  .es-menu-btn { display: block; }
  .es-nav { display: none; position: fixed; left: 0; right: 0; top: 70px; bottom: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 24px 20px 40px; overflow-y: auto; background: var(--es-bg); }
  .es-nav.is-open { display: flex; }
  .es-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .es-menu > li { border-bottom: 1px solid var(--es-card-line); }
  .es-menu a, .es-menu button { display: block; width: 100%; text-align: left; font-size: 20px; padding: 16px 0; }
  .es-has-sub > button::after { display: none; }
  .es-nav .es-sub-menu, .es-has-sub:hover > .es-sub-menu { display: block; position: static; min-width: 0; padding: 0 0 8px 16px; background: none; border: 0; }
  .es-nav .es-sub-menu a { font-size: 18px; padding: 10px 0; }
  .es-lang { gap: 22px; }
  .es-lang a { font-size: 18px; }
}
@media (max-width: 760px) { .es-header-cta { padding: 9px 10px; font-size: 13px; white-space: nowrap; } }
@media (max-width: 375px) { .es-logo img { height: 20px; } }
body.es-menu-open { overflow: hidden; }

/* Footer: all text white */
.es-footer { background: var(--es-bg); color: var(--es-white); font-family: var(--es-font); border-top: 1px solid var(--es-card-line); padding: clamp(40px, 5vw, 64px) clamp(20px, 6vw, 80px) 28px; }
.es-footer * { box-sizing: border-box; }
.es-footer-inner { max-width: 1120px; margin: 0 auto; }
.es-footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.es-footer-brand img { display: block; height: 40px; width: auto; }
.es-footer-contact { margin: 22px 0 14px !important; }
.es-footer-tagline { margin: 16px 0 0; font-size: 16px; font-weight: 600; color: var(--es-lime); }
.es-footer h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--es-green); }
.es-footer ul { list-style: none; margin: 0; padding: 0; }
.es-footer li { margin: 0 0 10px; }
.es-footer a { color: var(--es-white); text-decoration: none; font-size: 16px; line-height: 1.4; }
.es-footer a:hover { color: var(--es-lime); text-decoration: underline; }
.es-footer address { font-style: normal; font-size: 16px; line-height: 1.5; }
.es-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--es-card-line); font-size: 15px; }
@media (max-width: 1000px) { .es-footer-top { grid-template-columns: 1fr 1fr; } .es-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .es-footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* Reading comfort: no one word last lines in text, balanced lines in headlines */
p, li, .es-body { text-wrap: pretty; }
.es-sub { text-wrap: balance; }
.es-title, .es-title span, .es-h3, h1, h2, h3 { text-wrap: balance; }

/* 404 and pages that only have a title so far */
.es-notfound .es-btn { margin: 28px 16px 0 0; }
