/*
 * Header, footer, mobile menu. Values from Figma (Revised page).
 * Colours/fonts read Elementor's global variables (set by scripts/setup-elementor-kit.php).
 */

:root {
  --arc-brown: var(--e-global-color-primary, #8E6343);
  --arc-beige: var(--e-global-color-secondary, #DFD2B4);
  --arc-neutral: var(--e-global-color-arcneut, #5A524B);
  --arc-font-heading: "Raleway", "Noto Sans Thai", sans-serif;
  --arc-font-body: "Noto Sans", "Noto Sans Thai", sans-serif;
  --arc-header-h: 60px;
}

/* Menu link (shared by header nav, mobile menu, footer, language switcher) */
.arc-nav__list a,
.arc-mobile-menu__list a,
.arc-footer__list a,
.arc-lang .arc-lang__link {
  display: inline-block;
  padding: 5px 2px;
  font-family: var(--arc-font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: var(--arc-neutral);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.arc-nav__list a:hover,
.arc-mobile-menu__list a:hover,
.arc-footer__list a:hover,
.arc-lang .arc-lang__link:hover {
  color: var(--arc-brown);
}

.arc-nav__list .current-menu-item > a,
.arc-nav__list .current_page_parent > a,
.arc-mobile-menu__list .current-menu-item > a,
.arc-mobile-menu__list .current_page_parent > a,
.arc-lang .arc-lang__link.is-current {
  font-weight: 700;
  color: var(--arc-brown);
  border-bottom-color: var(--arc-brown);
}

.arc-nav__list,
.arc-mobile-menu__list,
.arc-footer__list,
.arc-footer__social {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.arc-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 0.67px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Logo + nav sit left as in Figma; language switch pushed right (Shop Arcady button removed). */
.arc-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1120px;
  height: var(--arc-header-h);
  margin: 0 auto;
  padding: 0 10px;
}

.arc-header__logo {
  display: flex;
  flex-shrink: 0;
}

.arc-nav__list {
  display: flex;
  gap: 16px;
}

.arc-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arc-header__inner > .arc-lang,
.arc-header__toggle {
  margin-left: auto;
}

.arc-lang__sep {
  font-family: var(--arc-font-heading);
  font-size: 14px;
  color: var(--arc-brown);
}

/* body prefix beats Elementor's global button style (.elementor-kit-N button) */
body .arc-header__toggle,
body .arc-mobile-menu__close {
  display: flex;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

/* Hello Elementor's reset turns every <button> pink (#c36) on hover/focus. */
body .arc-header__toggle:hover,
body .arc-header__toggle:focus,
body .arc-mobile-menu__close:hover,
body .arc-mobile-menu__close:focus {
  background: none;
}

body .arc-header__toggle {
  display: none;
}

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

.arc-mobile-menu {
  position: fixed;
  inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0;
  z-index: 200;
  overflow-y: auto;
  background: #fff;
  text-align: center;
}

.arc-mobile-menu[hidden] {
  display: none;
}

.arc-mobile-menu__bar {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  border-bottom: 0.67px solid rgba(0, 0, 0, 0.05);
}

.arc-mobile-menu__nav {
  padding: 62px 20px 0;
}

.arc-mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.arc-lang--mobile {
  justify-content: center;
  margin-top: 53px;
}

.arc-menu-open,
.arc-menu-open body {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .arc-header__inner {
    padding: 0 20px;
  }

  .arc-header__logo {
    padding: 0 10px;
  }

  .arc-nav,
  .arc-header__inner > .arc-lang {
    display: none;
  }

  body .arc-header__toggle {
    display: flex;
  }
}

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

/*
 * White dome rising into the section above (Figma "Ellipse 3").
 * Only visible when the last page section is cream: give that Elementor container
 * the CSS class "arc-before-footer-cream". Otherwise the band above the dome is white.
 */
.arc-footer {
  --arc-dome-rise: 65px;
  position: relative;
  padding-top: var(--arc-dome-rise);
  overflow: hidden;
  background: #fff;
}

body:has(.arc-before-footer-cream) .arc-footer {
  background: var(--e-global-color-arccrem, #FBF8F2);
}

.arc-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 130%;
  height: 180px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateX(-50%);
}

.arc-footer__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 15px 0;
  background: #fff;
}

.arc-footer__main {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 160px;
}

.arc-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 354px;
  flex-shrink: 0;
}

.arc-footer__brand img {
  display: block;
}

.arc-footer__tagline {
  margin: 0;
  padding: 11px 0;
  font-family: var(--arc-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--arc-brown);
}

.arc-footer__social {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}

.arc-footer__social a {
  display: flex;
}

.arc-footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
}

.arc-footer__title {
  margin: 0;
  padding: 5px 2px;
  font-family: var(--arc-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  color: var(--arc-brown);
}

.arc-footer__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arc-footer__list a {
  white-space: nowrap;
  border-bottom: 0;
}

.arc-footer__copyright {
  margin: 0;
  padding: 18px 2px 5px;
  font-family: var(--arc-font-heading);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--arc-neutral);
  border-top: 0.75px solid var(--arc-beige);
}

@media (max-width: 1024px) {
  .arc-footer {
    --arc-dome-rise: 24px;
  }

  .arc-footer::before {
    width: 230%;
  }

  .arc-footer__main {
    flex-direction: column;
    gap: 6px;
    padding: 0 24px;
  }

  .arc-footer__brand {
    width: 100%;
    max-width: 289px;
  }

  .arc-footer__tagline {
    padding: 2px 0;
  }
}
