:root {
  --stone-900: #1F1E1C;
  --stone-700: #3A3D40;
  --stone-500: #8C8579;
  --sand-200: #E6D9C0;
  --ivory-50: #F8F4ED;
  --terra-600: #B5653A;
  --terra-700: #9A5430;
  --gold-500: #B08D57;
  --wa-green: #25D366;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  background: var(--ivory-50);
  color: var(--stone-700);
  font-family: 'Inter', system-ui, sans-serif;
}

#preloader {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

body.preloader-hidden #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.quote-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  border: 1px solid rgba(154, 84, 48, 0.35);
  border-radius: 9999px;
  background: var(--terra-600);
  padding: 0.7rem 1.15rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(181, 101, 58, 0.18);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quote-cta:hover {
  transform: translateY(-1px);
  border-color: var(--stone-900);
  background: var(--stone-900);
  box-shadow: 0 10px 24px rgba(31, 30, 28, 0.15);
}

.quote-cta:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.site-header {
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(31, 30, 28, 0.06);
}

.site-header__mobile {
  display: none;
}

.site-header__topbar-inner,
.site-header__nav {
  box-sizing: border-box;
  transition: padding 0.25s ease;
}

.site-header__social-link,
.site-header__quote {
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), padding 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), font-size 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), gap 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.2s ease, background-color 0.2s ease;
}

.site-header__social-link {
  width: 2.5rem;
  height: 2.5rem;
}

.site-header__quote {
  height: 2.75rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.site-header__social-link i {
  transition: font-size 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-header__logo {
  width: 130px;
  height: 130px;
  transition: width 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), height 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.2s ease;
}

.site-header.is-scrolled .site-header__topbar-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header.is-scrolled .site-header__nav {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.site-header.is-scrolled .site-header__logo {
  width: 82px;
  height: 82px;
}

.site-header.is-scrolled .site-header__social-link {
  width: 2rem;
  height: 2rem;
}

.site-header.is-scrolled .site-header__social-link i {
  font-size: 0.8rem;
}

.site-header.is-scrolled .site-header__quote {
  height: 2.25rem;
  gap: 0.5rem;
  padding-right: 1rem;
  padding-left: 1rem;
  font-size: 0.75rem;
}

.site-quote-dialog {
  width: min(92vw, 42rem);
  max-width: none;
  max-height: 90vh;
  margin: auto;
  overflow-y: auto;
  border: 0;
  padding: 0;
  border-radius: 1.5rem;
  background: #9a5430;
  color: #fff;
  box-shadow: 0 24px 70px rgba(31, 30, 28, 0.35);
}

.site-quote-dialog::backdrop {
  background: rgba(31, 30, 28, 0.72);
  backdrop-filter: blur(3px);
}

.site-quote-dialog__panel {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.site-quote-dialog input:not([type="hidden"]),
.site-quote-dialog textarea {
  border-radius: 0.75rem;
  background-color: transparent;
}

.site-quote-dialog input::file-selector-button {
  border-radius: 0.5rem;
  background: transparent;
}

.site-quote-dialog input::placeholder,
.site-quote-dialog textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.site-quote-dialog input:focus-visible,
.site-quote-dialog textarea:focus-visible,
.site-quote-dialog button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-header__products {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #fcfaf7;
  border-top: 1px solid rgba(167, 131, 79, 0.2);
  box-shadow: 0 18px 35px rgba(31, 30, 28, 0.14);
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-header__products:hover .site-mega-menu,
.site-header__products:focus-within .site-mega-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-mega-menu__inner {
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem;
}

.site-mega-menu__intro {
  align-self: center;
}

.site-mega-menu__all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
  border-bottom: 1px solid #a7834f;
  padding-bottom: 0.35rem;
  color: #806747;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-mega-menu__links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: center;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-mega-menu__links a {
  display: flex;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(31, 30, 28, 0.1);
  color: #383532;
  font-size: 0.78rem;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-mega-menu__links img {
  width: 20%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.site-mega-menu__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.5rem 0.65rem;
}

.site-mega-menu__links a:hover,
.site-mega-menu__links a:focus-visible {
  border-color: #a7834f;
  color: #a7834f;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 30, 28, 0.1);
}

.site-mega-menu__links a:hover img,
.site-mega-menu__links a:focus-visible img {
  transform: scale(1.05);
}

.site-mega-menu__links a:focus-visible,
.site-mega-menu__all:focus-visible {
  outline: 2px solid #a7834f;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .site-mega-menu {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .site-mega-menu__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: min(70vh, 34rem);
    overflow-y: auto;
    padding: 1.25rem;
  }

  .site-mega-menu__intro h2 {
    font-size: 1.5rem;
  }

  .site-mega-menu__intro > p:nth-of-type(2) {
    display: none;
  }

  .site-mega-menu__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .site-mega-menu__links img {
    height: 82px;
  }

  .site-mega-menu__category {
    min-height: 2.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 1023px) {
  .site-header__desktop {
    display: none !important;
  }

  .site-header__mobile {
    position: relative;
    display: flex;
    height: 88px;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .site-header__mobile-logo {
    display: block;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    border: 1px solid #27221b;
    border-radius: 9999px;
    background: #1f1e1c;
  }

  .site-header__mobile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .site-header__mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
  }

  .site-header__mobile-enquire,
  .site-header__mobile-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(167, 131, 79, 0.55);
    background: #a7834f;
    color: #fff;
    box-shadow: 0 5px 14px rgba(31, 30, 28, 0.12);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .site-header__mobile-enquire:hover,
  .site-header__mobile-toggle:hover {
    transform: translateY(-1px);
    background: #1f1e1c;
    color: #fff;
    box-shadow: 0 7px 18px rgba(31, 30, 28, 0.17);
  }

  .site-header__mobile-enquire {
    gap: 0.45rem;
    border-radius: 9999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1.2;
    text-align: left;
  }

  .site-header__mobile-enquire i {
    font-size: 0.95rem;
  }

  .site-header__mobile-toggle {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 9999px;
    flex-direction: column;
    gap: 5px;
  }

  .site-header__mobile-toggle span {
    width: 17px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  .site-header__mobile-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-header__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-header__mobile-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .site-header__mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    border-top: 1px solid rgba(167, 131, 79, 0.2);
    background: #fcfaf7;
    padding: 0.65rem 1rem 1rem;
    box-shadow: 0 18px 30px rgba(31, 30, 28, 0.15);
  }

  .site-header__mobile-menu[hidden],
  .site-header__mobile-products ul[hidden] {
    display: none;
  }

  .site-header__mobile-menu > a,
  .site-header__mobile-product-heading {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(31, 30, 28, 0.1);
    color: #383532;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .site-header__mobile-socials {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    border-top: 1px solid rgba(31, 30, 28, 0.1);
    margin-top: 0.75rem;
    padding-top: 1rem;
  }

  .site-header__mobile-socials a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(167, 131, 79, 0.35);
    border-radius: 9999px;
    background: #a7834f;
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .site-header__mobile-socials a:hover {
    transform: translateY(-2px);
    background: #1f1e1c;
  }

  .site-header__mobile-product-heading button {
    width: 40px;
    height: 40px;
    color: #a7834f;
    font-size: 1.35rem;
  }

  .site-header__mobile-products ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.75rem 0;
  }

  .site-header__mobile-products li a {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(31, 30, 28, 0.1);
    background: #fff;
    padding: 0.35rem;
    color: #383532;
    font-size: 0.68rem;
  }

  .site-header__mobile-products li img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* reCAPTCHA v3 badge would cover the floating WhatsApp/phone buttons.
   Hiding it is allowed because every form shows Google's notice text instead. */
.grecaptcha-badge {
  visibility: hidden !important;
}
