/* Components shared by both homepage variants. Skins live in the variant stylesheets. */

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo__text { display: grid; font-family: var(--font-heading); line-height: 1.12; }
.logo__name { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.012em; }
.logo__sub { font-weight: 500; font-size: .6875rem; opacity: .78; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 700 var(--fs-sm)/1.2 var(--font-heading); letter-spacing: -.005em; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-300); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-dark { border-color: rgba(255, 255, 255, .34); color: var(--white); }
.btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Header dropdown and mobile menu */
.site-header { position: sticky; top: 0; z-index: 60; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }
.nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: var(--s-3) var(--gutter) var(--s-5); box-shadow: var(--shadow-md); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.nav.is-open { display: block; }
.nav__list { display: grid; }
.nav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; font: 600 var(--fs-md)/1.2 var(--font-heading); text-align: left; }
.nav__link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.dropdown__panel { display: none; padding-bottom: var(--s-3); }
.dropdown__panel.is-open { display: grid; grid-template-columns: 1fr; }
.dropdown__panel a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; align-items: center; flex: 1; justify-content: space-between; gap: var(--s-5); padding: 0; box-shadow: none; max-height: none; overflow: visible; background: none !important; border: 0 !important; }
  .nav__list { display: flex; gap: var(--s-1); align-items: center; }
  .nav__link { min-height: 44px; padding: 0 12px; font-size: var(--fs-sm); width: auto; gap: 6px; border-radius: var(--r-sm); }
  .nav__link svg { width: 14px; height: 14px; }
  .nav__cta { display: flex; align-items: center; margin: 0; }
  .nav__cta .btn { min-height: 44px; padding-inline: 18px; }
  .dropdown { position: relative; }
  .dropdown__panel { position: absolute; top: calc(100% + 8px); left: 0; width: 460px; padding: var(--s-3); background: var(--white); color: var(--navy); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
  .dropdown__panel.is-open { grid-template-columns: 1fr 1fr; gap: 2px var(--s-2); }
  .dropdown__panel a { padding: 0 12px; border-radius: var(--r-sm); font-weight: 500; }
  .dropdown__panel a:hover { background: var(--ivory); }
}

/* Form controls */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 700 var(--fs-xs)/1.3 var(--font-heading); color: var(--slate); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #C9CFD8; border-radius: var(--r-md);
  background: var(--white); color: var(--navy); font-size: var(--fs-md); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2352647B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; text-overflow: ellipsis; }
.field input:hover, .field select:hover { border-color: var(--slate); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(214, 173, 96, .55); border-radius: var(--r-md); }
.field input::placeholder { color: #66768B; }

/* Range slider */
.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; background: none; cursor: pointer; --pct: 50%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--track-on, var(--navy)) var(--pct), var(--track-off, #DDE1E8) var(--pct)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--track-off, #DDE1E8); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--track-on, var(--navy)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-sm); transition: transform var(--t-fast); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); }
.range:hover::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible { box-shadow: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--gold); }

/* Stars */
.stars { position: relative; display: inline-block; width: 84px; height: 16px; flex: none; background: var(--stars-off, #D5DAE2); -webkit-mask: var(--star-mask) repeat-x 0 0 / 16.8px 16px; mask: var(--star-mask) repeat-x 0 0 / 16.8px 16px; --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 20'%3E%3Cpath d='m10.5 1.6 2.6 5.5 6 .8-4.4 4.2 1.1 6-5.3-2.9-5.3 2.9 1.1-6L1.9 7.9l6-.8z'/%3E%3C/svg%3E"); }
.stars::before { content: ""; position: absolute; inset: 0; width: var(--fill, 100%); background: var(--gold); }

/* Accordion, built on details */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding-block: var(--s-3); cursor: pointer; list-style: none; font: 700 var(--fs-md)/1.35 var(--font-heading); letter-spacing: -.01em; border-radius: var(--r-sm); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; background: currentColor; border-radius: 1px; transition: transform var(--t-med) var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { padding: 0 var(--s-7) var(--s-5) 0; color: var(--slate); }

/* Digital certificate. Everything scales with the width of its container. */
.cert-frame { container-type: inline-size; width: 100%; }
.cert {
  position: relative; aspect-ratio: 1.414; overflow: hidden; border-radius: 1.2cqw; background: var(--white); color: var(--navy);
  display: grid; justify-items: center; align-content: center; text-align: center;
  padding: 7cqw 9cqw; box-shadow: var(--shadow-lg);
}
.cert::before { content: ""; position: absolute; inset: 1.8cqw; border: .32cqw solid var(--gold); border-radius: .6cqw; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 2.6cqw; border: .1cqw solid var(--gold); border-radius: .4cqw; pointer-events: none; }
.cert__rosette { position: absolute; width: 96cqw; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .12; pointer-events: none; }
.cert > *:not(.cert__rosette) { position: relative; }
.cert__mark { width: 6.4cqw; height: 6.4cqw; margin-bottom: 1.8cqw; }
.cert__org { font: 800 1.7cqw/1.2 var(--font-heading); }
.cert__title { font: 500 4.8cqw/1.1 var(--font-heading); letter-spacing: -.02em; margin-top: 2.4cqw; }
.cert__lead { font-size: 1.7cqw; line-height: 1.3; color: var(--slate); margin-top: 2.6cqw; }
.cert__name { font: 800 5.8cqw/1.12 var(--font-heading); letter-spacing: -.024em; margin-top: 1cqw; }
.cert__rule { width: 18cqw; height: .24cqw; background: var(--gold); margin: 1.9cqw 0; }
.cert__meta { font-size: 1.85cqw; line-height: 1.3; color: var(--slate); }
.cert__foot { position: absolute !important; left: 8cqw; right: 8cqw; bottom: 6.4cqw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; font-size: 1.5cqw; line-height: 1.3; color: var(--slate); }
.cert__foot b { display: block; color: var(--navy); font: 800 1.9cqw/1.25 var(--font-heading); }
.cert__foot > div:nth-child(2) { text-align: center; }
.cert__foot > div:nth-child(3) { text-align: right; }

/* Recognition badge */
.badge-seal { display: block; width: 100%; height: auto; }

/* Website badge */
.site-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-md); background: var(--navy); color: var(--white); }
.site-badge svg { width: 40px; height: 40px; flex: none; }
.site-badge b { display: block; font: 800 .875rem/1.2 var(--font-heading); letter-spacing: -.01em; }
.site-badge span { display: block; font-size: .75rem; line-height: 1.3; color: var(--gold-300); }

/* Dialog */
.modal { width: min(calc(100vw - 32px), 760px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--white); color: var(--navy); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgba(11, 22, 40, .72); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.modal__title { font: 800 var(--fs-md)/1.3 var(--font-heading); letter-spacing: -.01em; }
.modal__close { width: 44px; height: 44px; margin-right: -10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); flex: none; }
.modal__close:hover { background: var(--ivory); }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { padding: var(--s-5); background: var(--ivory); }
.modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); color: var(--slate); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: var(--r-md); background: var(--navy-900); color: var(--white); font-size: var(--fs-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark); transform: translate(-50%, 16px); opacity: 0; visibility: hidden; transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Footer disclaimers */
.legal { font-size: var(--fs-xs); line-height: 1.55; }
