/* ===========================================================================
   css/nav.css - Neelachandra Interiors - HEADER / NAVBAR
   ---------------------------------------------------------------------------
   The client-supplied navbar from neelachandra.com, extracted from its inline
   <style> block into a cacheable file. Rules are VERBATIM apart from the four
   documented items below. This file is FINAL visually. Do not restyle it.

   DELIBERATE CHANGES FROM THE SUPPLIED BLOCK:

   1. `*{box-sizing:border-box}` REMOVED. css/style.css already sets it; a
      second global selector here would be dead weight.

   2. `.nav-link` / `.white-button` / `.white-front-text` etc. are namespaced
      under the navbar so they cannot collide. The old site ALSO had a
      `.nav-link` rule in css/style.css with an ::after underline animation, and
      the footer subscribe block reuses `.white-button` with different padding.
      Scoping keeps the three independent.

   3. Dark-scheme modifier added (`.nc-nav-dark`). The supplied nav paints links
      #000, which suits the parent site's light hero. This site's homepage hero
      is a dark photograph, so black-on-photo would fail contrast badly. Only
      the ink colour changes; geometry, type and behaviour are untouched.

   4. `prefers-reduced-motion` block added. The supplied nav animates the CTA
      text reveal and the mobile dropdown unconditionally.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   TOP SOCIAL BAR
   ------------------------------------------------------------------------ */
.top-social-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  z-index: 99999;
}
.top-social-bar a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s ease;
  opacity: .92;
}
.top-social-bar a svg { width: 15px; height: 15px; fill: #fff; }
.top-social-bar a:hover { color: #f97316; transform: scale(1.08); opacity: 1; }
/* Keyboard parity: the supplied bar styled :hover only, so a keyboard user got
   no visible indication. Focus now mirrors hover. */
.top-social-bar a:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  opacity: 1;
}

/* ---------------------------------------------------------------------------
   NAVBAR SHELL
   ------------------------------------------------------------------------ */
.container-regular {
  width: 100%;
  max-width: 1320px;
  min-height: 30px;
  margin: 0 auto;
  padding: 0 20px;
}
.navbar-no-shadow-container .container-regular { max-width: none; padding: 0; }
.navbar-no-shadow {
  z-index: 999;
  background: transparent;
  width: 100%;
  margin-top: 0;
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  overflow: visible;
}
.navbar-no-shadow-container {
  z-index: 999;
  background: transparent;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 60px);
  overflow: visible;
}
.navbar-wrapper {
  justify-content: space-between;
  align-items: center;
  display: flex;
  overflow: visible;
  flex-wrap: nowrap;
}
.navbar-brand { padding-left: 0; }
.navbar-brand .nc-logo-img { width: clamp(150px, 14vw, 270px); height: auto; }

/* ---------------------------------------------------------------------------
   NAV LINKS
   ------------------------------------------------------------------------ */
.nav-menu {
  list-style: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
}
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: contents; }

.nav-menu .nav-link {
  color: #000;
  text-align: left;
  letter-spacing: .25px;
  margin: 0 clamp(2px, 0.6vw, 8px);
  padding: 8px clamp(6px, 0.8vw, 12px);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 22px;
  text-decoration: none;
  white-space: nowrap;
  /* Neutralises the ::after underline animation that the old .nav-link rule in
     css/style.css attaches. The supplied nav uses a solid border instead. */
  position: static;
  display: inline-block;
}
.nav-menu .nav-link::after { content: none; }
.nav-menu .nav-link:hover { color: #e8650a; transition: color .3s ease; }
.nav-menu .nav-link.current { color: #000; border-bottom: 3px solid #e8650a; }
.nav-menu .nav-link.current:hover { color: #e8650a; }

/* DARK SCHEME. Applied via `nc-nav-dark` on <body> for pages whose first band
   is a dark photograph. Ink only. */
.nc-nav-dark .nav-menu .nav-link { color: #fff; }
.nc-nav-dark .nav-menu .nav-link.current { color: #fff; }
.nc-nav-dark .nav-menu .nav-link:hover,
.nc-nav-dark .nav-menu .nav-link.current:hover { color: #ff8a3d; }
.nc-nav-dark .menu-button span { background: #fff; }

/* ---------------------------------------------------------------------------
   CTA BUTTON with hover text reveal
   ------------------------------------------------------------------------ */
.navbar-no-shadow .nav-button-wrapper { margin-left: clamp(16px, 3vw, 120px); flex-shrink: 0; }
.navbar-no-shadow .white-button {
  cursor: pointer;
  background: #f5f7fa;
  border-radius: 6px;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 1.8vw, 21px) clamp(18px, 2.6vw, 28px);
  text-decoration: none;
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
}
.navbar-no-shadow .white-button.header-btn { background: #e8650a; }
.navbar-no-shadow .button-text-wrap {
  text-align: center;
  height: 20px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.navbar-no-shadow .white-front-text {
  color: #000;
  text-align: center;
  text-transform: capitalize;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  transition: top .3s ease;
  top: 0;
}
.navbar-no-shadow .white-front-text.header-text { color: #fff; }
.navbar-no-shadow .white-hidden-text {
  color: #000;
  text-align: center;
  text-transform: capitalize;
  width: 100%;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  position: absolute;
  top: 100%;
  left: 0;
  transition: top .3s ease;
}
.navbar-no-shadow .white-hidden-text.header-text { color: #fff; text-align: center; }
.navbar-no-shadow .white-button:hover .white-front-text,
.navbar-no-shadow .white-button:focus-visible .white-front-text { top: -100%; }
.navbar-no-shadow .white-button:hover .white-hidden-text,
.navbar-no-shadow .white-button:focus-visible .white-hidden-text { top: 0; }

/* ---------------------------------------------------------------------------
   HAMBURGER
   ------------------------------------------------------------------------ */
.menu-button {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  user-select: none;
  z-index: 1000;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
}
.menu-button span {
  display: block;
  position: absolute;
  left: 8px;
  width: 28px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, top .25s ease;
}
.menu-button span:nth-child(1) { top: 15px; }
.menu-button span:nth-child(2) { top: 22px; }
.menu-button span:nth-child(3) { top: 29px; }
.menu-button.is-active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-button.is-active span:nth-child(2) { opacity: 0; }
.menu-button.is-active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------------------
   MOBILE DROPDOWN
   ------------------------------------------------------------------------ */
@media screen and (max-width: 991px) {
  .menu-button { display: block; }
  .navbar-no-shadow .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #f5f7fa;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(17, 17, 17, .14), 0 2px 8px rgba(17, 17, 17, .06);
    border: 1px solid rgba(17, 17, 17, .06);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .navbar-no-shadow .nav-menu.nc-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear;
  }
  .navbar-no-shadow .nav-menu ul { width: 100%; }
  .navbar-no-shadow .nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .navbar-no-shadow .nav-menu.nc-open li { opacity: 1; transform: translateY(0); }
  .navbar-no-shadow .nav-menu.nc-open li:nth-child(1) { transition-delay: .05s; }
  .navbar-no-shadow .nav-menu.nc-open li:nth-child(2) { transition-delay: .09s; }
  .navbar-no-shadow .nav-menu.nc-open li:nth-child(3) { transition-delay: .13s; }
  .navbar-no-shadow .nav-menu.nc-open li:nth-child(4) { transition-delay: .17s; }
  .navbar-no-shadow .nav-menu.nc-open li:nth-child(5) { transition-delay: .21s; }
  .navbar-no-shadow .nav-menu.nc-open li:nth-child(6) { transition-delay: .25s; }
  .navbar-no-shadow .nav-menu.nc-open li:nth-child(7) { transition-delay: .29s; }
  .navbar-no-shadow .nav-menu .nav-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(17, 17, 17, .06);
  }
  .navbar-no-shadow .nav-menu li:last-child .nav-link { border-bottom: none; }
  .navbar-no-shadow .nav-menu .nav-link.current {
    color: #e8650a;
    border-bottom: 1px solid rgba(17, 17, 17, .06);
  }
  /* The dropdown panel is light on every page, so the dark-scheme ink override
     must NOT leak into it or the links become white-on-near-white. */
  .nc-nav-dark .navbar-no-shadow .nav-menu .nav-link { color: #000; }
  .nc-nav-dark .navbar-no-shadow .nav-menu .nav-link.current { color: #e8650a; }
  .nc-nav-dark .navbar-no-shadow .nav-menu .nav-link:hover { color: #e8650a; }

  .navbar-no-shadow .nav-button-wrapper { width: 100%; margin-left: 0; margin-top: 10px; }
  .navbar-no-shadow .nav-button-wrapper .white-button { padding: 16px 24px; border-radius: 10px; }
  .navbar-brand { margin-left: 20px; }
  .navbar-brand .nc-logo-img { width: 180px; }
}

/* Respect a reduced-motion preference: keep every state change, drop the
   travel. The supplied nav animated unconditionally. */
@media (prefers-reduced-motion: reduce) {
  .top-social-bar a,
  .navbar-no-shadow .white-front-text,
  .navbar-no-shadow .white-hidden-text,
  .menu-button span,
  .navbar-no-shadow .nav-menu,
  .navbar-no-shadow .nav-menu li {
    transition-duration: 0.01ms !important;
  }
  .top-social-bar a:hover { transform: none; }
}
