/* ==========================================================================
   SHN Ceylon — Top Navigation
   ========================================================================== */

.shn-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: var(--shn-white);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Per-page header background colors */
.page-home .shn-header {
  background-color: #FFFFFF;
}

.page-fertilizer .shn-header {
  background-color: #DBF8EE;
}

.page-land-sale .shn-header {
  background-color: #FFF7D8;
}

.page-tourism .shn-header {
  background-color: #F5F2F8;
}

.page-supuni-motors .shn-header {
  background-color: #E8E8E8;
}

.page-we .shn-header {
  background-color: #FFFFFF;
}

.page-contact .shn-header {
  background-color: #FFFFFF;
}

.page-privacy-policy .shn-header,
.page-site-map .shn-header {
  background-color: #FFFFFF;
}

/* Requirement 6: hide header on scroll-down, reveal on scroll-up */
.shn-header.is-hidden {
  transform: translateY(-100%);
}

.shn-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.shn-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---- Logo ----
   60px tall at the 1440px reference container; scales proportionally
   with viewport width (60 / 1440 = 4.1667vw), clamped to sane bounds. */
.shn-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.shn-logo img {
  height: clamp(38px, 4.1667vw, 60px);
  width: auto;
  display: block;
}

/* ---- Primary nav links ---- */
.shn-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.4vw, 8px);
}

.shn-nav__link {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--shn-teal-dark);
  white-space: nowrap;
  position: relative;
  padding-block: 6px;
  padding-inline: 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
}

/* Requirement 7: hover / active styles to be supplied later.
   Placeholder transition hook left intentionally minimal. */
.shn-nav__link:hover,
.shn-nav__link:focus-visible {
  color: var(--shn-teal-dark);
}

.shn-nav__link.is-active {
  color: var(--shn-teal-dark);
  border-color: var(--shn-teal-dark);
}

/* ---- Right-hand actions ---- */
.shn-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  flex-shrink: 0;
}

/* ---- Google Translate widget (styled as a pill, like the contact button) ---- */
#google_translate_element,
#google_translate_element_mobile {
  display: inline-flex;
  width: 110px;
  overflow: hidden;
}

#google_translate_element .goog-te-gadget-simple,
#google_translate_element_mobile .goog-te-gadget-simple {
  width: 110px;
  box-sizing: border-box;
  justify-content: center;
}

.goog-te-gadget {
  font-family: var(--font-base) !important;
  font-size: 0 !important;
}

.goog-te-gadget-icon {
  display: none !important;
}

.goog-te-gadget-simple {
  display: inline-flex !important;
  align-items: center !important;
  background-color: var(--shn-green-accent) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 20px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.goog-te-gadget-simple .goog-te-menu-value {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  text-decoration: none !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
  color: #121212 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.goog-te-gadget-simple .goog-te-menu-value span:nth-child(2) {
  display: none !important;
}

.goog-te-gadget-simple .goog-te-menu-value img {
  display: none !important;
}

.goog-te-gadget-simple .goog-te-menu-value::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  background-color: #121212;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

body.shn-menu-open {
  overflow: hidden;
}

.shn-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background-color: var(--shn-pink);
  color: var(--shn-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  border: none;
  white-space: nowrap;
  transition: filter var(--transition-fast);
}

.shn-btn-contact:hover {
  filter: brightness(0.96);
}

.shn-btn-contact.is-active {
  background-color: #E64545;
  color: var(--shn-white);
}

/* ---- Mobile nav toggle ---- */
.shn-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.shn-nav-toggle img {
  width: 32px;
  height: 32px;
}

/* ---- Full-screen mobile menu close button ---- */
.shn-fullmenu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.shn-fullmenu__close img {
  width: 32px;
  height: 32px;
}

/* ---- Full-screen mobile menu ---- */
.shn-fullmenu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: var(--shn-white);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  overflow-y: auto;
}

.shn-fullmenu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Requirement: the open menu's top + middle area mirror the fixed header's per-page color */
.page-fertilizer .shn-fullmenu {
  background-color: #DBF8EE;
}

.page-land-sale .shn-fullmenu {
  background-color: #FFF7D8;
}

.page-tourism .shn-fullmenu {
  background-color: #F5F2F8;
}

.page-supuni-motors .shn-fullmenu {
  background-color: #E8E8E8;
}

.shn-fullmenu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-height);
  padding-inline: var(--container-pad);
  box-sizing: border-box;
  flex-shrink: 0;
  border-bottom: 1px solid var(--shn-gray-200);
}

.shn-fullmenu__top-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.shn-fullmenu__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px var(--container-pad) 32px;
  width: 100%;
}

.shn-fullmenu__nav .shn-nav__link {
  font-size: 20px;
}

.shn-fullmenu__lang {
  margin-top: 6px;
  padding-inline: 22px;
  display: inline-flex;
  width: auto;
}

.shn-fullmenu__lang .goog-te-gadget-simple {
  width: auto;
}

/* ---- Bottom contact block ---- */
.shn-fullmenu__bottom {
  margin-top: auto;
  background-color: #121212;
  color: var(--shn-white);
  padding: 28px var(--container-pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shn-fullmenu__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.shn-fullmenu__title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--shn-white);
  margin: 6px 0 16px;
}

.shn-fullmenu__address {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 4px;
}

.shn-fullmenu__contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--shn-white);
}

.shn-fullmenu__contact-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.shn-fullmenu__contact-line:hover {
  color: var(--shn-green-accent);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Tablet & smaller desktop (nav font is 18px now, needs more room) —
   collapse categories, We, and the language switcher into the hamburger menu.
   Contact Us and the hamburger itself stay visible in the header. */
@media (max-width: 1339.98px) {
  .shn-nav {
    display: none;
  }

  .shn-header__actions #google_translate_element {
    display: none;
  }

  .shn-nav-toggle {
    display: inline-flex;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  :root {
    --nav-height: 72px;
  }

  .shn-header__inner {
    gap: 10px;
  }

  .shn-header__actions {
    gap: 8px;
  }

  .shn-nav-toggle img,
  .shn-fullmenu__close img {
    width: 24px;
    height: 24px;
  }

  .shn-fullmenu__nav .shn-nav__link {
    font-size: 17px;
  }
}
