/* =============================================================================
   issencial.com — shared styles
   Page layout lives in inline styles (exported from the design canvas);
   this file holds fonts, base rules, the header/nav, and the toast.
   Brand tokens: charcoal #2e2d2d · yellow #f5b333 · yellow-deep #f4a921
                 yellow-60-on-charcoal #a57d31 · yellow-60-on-white #f9d185
                 charcoal-60-on-white #828181
   ========================================================================== */

@font-face { font-family: "Helvetica Neue"; src: url("/assets/fonts/HelveticaNeue-Thin.woff2") format("woff2");   font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: url("/assets/fonts/HelveticaNeue-Light.woff2") format("woff2");  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: url("/assets/fonts/HelveticaNeue-Roman.woff2") format("woff2");  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: url("/assets/fonts/HelveticaNeue-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: url("/assets/fonts/HelveticaNeue-Bold.woff2") format("woff2");   font-weight: 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: #2e2d2d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: #f5b333; }
a:hover { color: #f4a921; }
.page-legal main a { color: #2e2d2d; }
.page-legal main a:hover { color: #000000; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #f5b333;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #2e2d2d;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #f5b333; color: #2e2d2d; padding: 12px 16px; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Header / navigation --------------------------------------------------- */
.site-header { background: #2e2d2d; color: #ffffff; border-bottom: 1px solid #a57d31; }
.site-header__bar {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { display: block; height: 26px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__link { color: #ffffff; text-decoration: none; font-size: 14px; padding: 12px 0; }
.site-nav__link:hover { color: #f5b333; }
.site-nav__link[aria-current="page"] { color: #f5b333; }
.site-nav__arrow { display: none; }
.site-nav__cta {
  background: #f5b333; color: #2e2d2d; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 12px 20px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav__cta:hover { background: #f4a921; color: #2e2d2d; }
.site-nav__contact { display: none; }

.site-header__toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid #a57d31; border-radius: 0; color: #f5b333; cursor: pointer;
}
.site-header__toggle .icon-close { display: none; }

@media (max-width: 859px) {
  .site-header__bar { flex-wrap: wrap; }
  .site-header__toggle { display: flex; }
  .site-nav { display: none; }

  .site-header.is-open .site-header__toggle .icon-open { display: none; }
  .site-header.is-open .site-header__toggle .icon-close { display: block; }

  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    flex: 0 0 calc(100% + 48px); order: 3; margin: 4px -24px -20px;
    border-top: 1px solid #a57d31; padding: 8px 24px 32px;
  }
  .site-header.is-open .site-nav__link {
    font-size: 24px; padding: 18px 0; border-bottom: 1px solid #a57d31;
    display: flex; justify-content: space-between; align-items: center;
  }
  .site-header.is-open .site-nav__arrow { display: inline; color: #f5b333; font-size: 18px; }
  .site-header.is-open .site-nav__cta {
    margin-top: 32px; justify-content: center; font-size: 16px; padding: 16px 20px; min-height: 52px;
  }
  .site-header.is-open .site-nav__contact {
    display: block; margin-top: 24px; font-size: 14px; color: rgba(255, 255, 255, 0.72);
  }
  .site-header.is-open .site-nav__contact a { color: rgba(255, 255, 255, 0.72); }
}

/* --- Contact form --------------------------------------------------------- */
.contact-form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* --- Toast ------------------------------------------------------------------ */
.toast-region {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px;
  margin-left: auto; max-width: 420px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 14px;
  background: #2e2d2d; color: #ffffff; border: 1px solid #a57d31;
  padding: 18px 8px 18px 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .2s ease-out; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.toast__icon { flex: 0 0 32px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.toast--success .toast__icon { background: #f5b333; }
.toast--error .toast__icon { border: 1.5px solid #f5b333; }
.toast__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.toast__title { font-size: 16px; line-height: 22px; font-weight: 500; }
.toast__text { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.72); }
.toast__close {
  flex: 0 0 44px; width: 44px; height: 44px; margin-top: -8px;
  background: transparent; border: 0; border-radius: 0; color: #ffffff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
