/* ==========================================================================
   Site layout — header, mobile menu, footer, cookie consent, floating CTAs,
   form states. Markup lives in assets/js/layout.js and assets/js/forms.js.
   ========================================================================== */

site-header,
site-footer {
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.topbar {
  height: 37px;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid rgba(216, 170, 95, 0.18);
  transition: height 0.3s ease;
}
.topbar .wrap {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-label);
  font-weight: 500;
  color: var(--stone);
}
.topbar__tagline {
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.24em;
}
.topbar__contact {
  display: none;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.topbar__contact a {
  color: var(--gold-400);
}

.navbar {
  height: 78px;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 170, 95, 0);
  transition:
    height 0.3s ease,
    background 0.3s ease;
}
.navbar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled .topbar {
  height: 0;
}
.site-header.is-scrolled .navbar {
  height: 64px;
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: rgba(216, 170, 95, 0.22);
}

.brand {
  flex: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.brand__mark {
  flex: none;
  width: 44px;
  height: 28.5px;
  background: url(../img/logo.jpg) no-repeat -24.4px -18.5px / 92.7px 92.7px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}
.brand__sub {
  font-family: var(--font-label);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--gold-400);
  line-height: 1;
}

.nav {
  white-space: nowrap;
  display: none;
  align-items: center;
  gap: clamp(14px, 1.4vw, 22px);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.nav a {
  color: #fff;
}
.nav a:hover,
.nav a.is-active {
  color: var(--gold-400);
}
.nav a:hover {
  color: var(--gold-200);
}

.nav__drop {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}
.nav__drop > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__caret {
  font-size: 8px;
}
.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 220px;
  flex-direction: column;
  padding: 8px 0;
  background: var(--ink);
  border: 1px solid rgba(216, 170, 95, 0.3);
  border-radius: 2px;
}
.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu {
  display: flex;
}
.nav__menu a {
  padding: 12px 20px;
  color: #fff;
}
.nav__menu a:hover {
  color: var(--gold-200);
  background: var(--ink-2);
}

.nav__cta {
  margin-left: 8px;
  padding: 13px 22px;
  border-radius: 2px;
  background: var(--gold-gradient);
  background-size: 200% 100%;
  background-position: 0 0;
  letter-spacing: 0.2em;
  transition: background-position 0.6s ease;
}
.nav a.nav__cta,
.nav a.nav__cta:hover {
  color: #000;
}
.nav__cta:hover {
  background-position: 100% 0;
}

.burger {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(216, 170, 95, 0.45);
  border-radius: 2px;
  cursor: pointer;
}
.burger span {
  width: 20px;
  height: 1.5px;
  background: var(--gold-400);
}
.burger span:last-child {
  width: 14px;
  margin-left: 6px;
}

@media (max-width: 419px) {
  .topbar__tagline {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
}
@media (min-width: 1000px) {
  .topbar__contact {
    display: flex;
  }
}
@media (min-width: 1240px) {
  .nav {
    display: flex;
  }
  .burger {
    display: none;
  }
}

/* ---------- Mobile menu -------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: var(--black);
}
.menu__beam {
  position: absolute;
  top: -10%;
  right: 10%;
  width: 1px;
  height: 140%;
  transform: rotate(-34deg);
  transform-origin: top;
  background: linear-gradient(180deg, rgba(216, 170, 95, 0), rgba(216, 170, 95, 0.35) 50%, rgba(216, 170, 95, 0));
  pointer-events: none;
}
.menu__bar {
  flex: none;
  height: 78px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(216, 170, 95, 0.18);
}
.menu__close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(216, 170, 95, 0.45);
  border-radius: 2px;
  cursor: pointer;
  color: var(--gold-400);
  font-size: 22px;
  line-height: 1;
}
.menu__nav {
  position: relative;
  flex: 1;
  padding: 28px var(--gutter);
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 27px;
}
.menu__nav a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.menu__nav a.is-active {
  color: var(--gold-400);
}
.menu__nav a.menu__parent {
  padding-bottom: 6px;
  border-bottom: 0;
}
.menu__nav a.menu__child {
  padding: 0 0 12px 18px;
  font-size: 18px;
}
.menu__nav a:last-child {
  border-bottom: 0;
}
.menu__foot {
  position: relative;
  flex: none;
  padding: 20px var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid rgba(216, 170, 95, 0.18);
}
.menu__contact {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
}
.menu__contact a {
  color: var(--stone);
}

/* Full-width pill buttons used in the mobile menu and sticky CTA bar */
.pill {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.pill--gold {
  background: var(--gold-gradient);
}
.pill--gold,
.pill--gold:hover {
  color: #000;
}
.pill--outline {
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.pill--outline,
.pill--outline:hover {
  color: #fff;
}

/* ---------- Floating: sticky CTA bar (mobile) & WhatsApp ----------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(216, 170, 95, 0.3);
}
.sticky-cta .pill {
  height: 48px;
  font-size: 11.5px;
}

.whatsapp {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: 24px;
  z-index: 26;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.whatsapp,
.whatsapp:hover {
  color: #000;
}
.whatsapp:hover {
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .sticky-cta {
    display: grid;
  }
  .whatsapp {
    bottom: 84px;
  }
  /* On phones the WhatsApp button waits until cookies have been answered. */
  html:not(.has-consent) .whatsapp {
    display: none;
  }
}
html.menu-open {
  overflow: hidden;
}
html.menu-open .sticky-cta,
html.menu-open .whatsapp,
html.settings-open .whatsapp {
  display: none;
}

/* ---------- Cookie banner & settings ------------------------------------- */

.cookie-banner {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  bottom: 24px;
  z-index: 40;
  max-width: 520px;
  padding: 26px 26px 22px;
  background: var(--ink-2);
  border: 1px solid rgba(216, 170, 95, 0.35);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
@media (max-width: 767px) {
  .cookie-banner {
    bottom: 84px;
  }
}
.cookie-banner__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-400);
}
.cookie-banner p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sand);
}
.cookie-banner p a {
  color: var(--gold-200);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cookie-btn {
  height: 48px;
  border-radius: 2px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.cookie-btn--ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.cookie-btn--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.cookie-banner__settings {
  margin-top: 14px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: var(--gold-400);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
}
.cookie-banner__settings:hover {
  color: var(--gold-200);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}
.cookie-modal__dialog {
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--cream);
  border-radius: 2px;
}
.cookie-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cookie-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
}
.cookie-modal__close {
  flex: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}
.cookie-modal__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.cookie-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.cookie-row__title {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.cookie-row p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.cookie-row__always {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-900);
}
.switch {
  flex: none;
  width: 52px;
  height: 30px;
  padding: 3px;
  display: flex;
  justify-content: flex-start;
  border: 0;
  border-radius: 15px;
  background: #cfc7b6;
  cursor: pointer;
  transition: background 0.2s;
}
.switch span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.switch[aria-checked="true"] {
  justify-content: flex-end;
  background: var(--gold-500);
}
.cookie-modal__actions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

/* ---------- Footer ------------------------------------------------------- */

.site-footer {
  padding: clamp(64px, 8vw, 100px) 0 110px;
  background: var(--black);
  border-top: 1px solid rgba(216, 170, 95, 0.2);
  font-family: var(--font-body);
}
@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px 40px;
}
@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand img {
  width: 190px;
  height: auto;
  margin: -28px 0 -20px -20px;
}
.footer-brand p {
  margin: 0;
  max-width: 280px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
}
.footer-motto {
  font-family: var(--font-label);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-400);
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 170, 95, 0.45);
  border-radius: 2px;
  color: var(--gold-400);
}
.socials a:hover {
  color: #000;
  background: var(--gold-400);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col__title {
  margin-bottom: 6px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-400);
}
.footer-col a,
.footer-contact a {
  font-size: 15px;
  color: var(--sand);
}
.footer-col a:hover,
.footer-contact a:hover,
.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--gold-200);
}

.footer-contact {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 15px;
  color: var(--sand);
}
.footer-hours {
  color: #8f897e;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 13px;
  line-height: 1.6;
  color: #8f897e;
}
.footer-company {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.footer-legal a {
  color: var(--stone);
}
.footer-legal button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--stone);
  cursor: pointer;
}

/* ---------- Form states (see assets/js/forms.js) ------------------------- */

[data-form] [aria-invalid="true"] {
  border-color: var(--error);
}
[data-form] button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: progress;
}
.dropzone.is-drag {
  border-color: var(--ink);
  background: #f6eacb;
}
.dropzone.is-error {
  border-color: var(--error);
}

/* ---------- Jobs page layout (see assets/js/jobs.js) --------------------- */

.jobs-filters {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .jobs-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .jobs-search {
    grid-column: 1 / -1;
  }
}
@media (min-width: 900px) {
  .jobs-filters {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .jobs-search {
    grid-column: auto;
  }
}
@media (min-width: 1000px) {
  .job-detail-main {
    grid-column: span 2;
  }
}

/* ---------- Small-screen fixes ------------------------------------------- */

/* Long button labels wrap instead of pushing the page sideways on phones. */
@media (max-width: 480px) {
  main [class*="btn-"],
  main .nowrap {
    white-space: normal;
    text-align: center;
  }
  main dd a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }
}
