/* ============================================================
   Aryabh Corp — shared HEADER + FOOTER only (for legacy pages)
   Scoped so it does NOT alter the page's existing design.
   ============================================================ */

:root {
  --teal: #167b81;
  --teal-dark: #0f5a5f;
  --teal-soft: #e7f2f2;
  --gold: #e1c68f;
  --gold-soft: #f7efdd;
  --ink: #1d2b2c;
  --muted: #5c6f70;
  --line: #e6ecec;
  --bg: #ffffff;
  --bg-alt: #f6faf9;
  --shadow-sm: 0 2px 8px rgba(22, 123, 129, .06);
  --shadow-md: 0 12px 32px rgba(22, 123, 129, .12);
  --shadow-lg: 0 24px 60px rgba(15, 90, 95, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 78px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* scoped resets so the nav/footer render exactly like index, without a global reset */
.nav, .nav *, .footer, .footer * {
  box-sizing: border-box;
  font-family: var(--font);
  letter-spacing: normal;
}
.nav, .footer { line-height: 1.6; -webkit-font-smoothing: antialiased; }
.nav a, .footer a { text-decoration: none; }
.nav a:hover, .footer a:hover { text-decoration: none; }
.nav button { font-family: var(--font); }
.nav img, .nav svg, .footer img, .footer svg { display: block; max-width: 100%; }
.nav ul, .footer ul { list-style: none; margin: 0; padding: 0; }
.nav p, .footer p { margin: 0; }

.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---- NAVBAR ---- */
/* ============================================================
   NAVBAR
   ============================================================ */

/* override Bootstrap's .nav (display:flex/list-style) collision */
header.nav {
  display: block;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease),
              background .4s var(--ease);
}
.nav.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
  background: rgba(255, 255, 255, .92);
}

.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---- Logo ---- */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav__brand img { height: 70px; width: auto; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .04em;
  color: var(--teal);
}
.nav__brand-sub {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---- Menu ---- */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 9px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--teal); outline: none; }
.nav__item.is-active > .nav__link { color: var(--teal); }

/* animated underline */
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after,
.nav__item.is-open > .nav__link::after { transform: scaleX(1); }

/* caret */
.nav__caret {
  width: 11px; height: 11px;
  transition: transform .35s var(--ease);
}
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* ---- Dropdown ---- */
.nav__dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  min-width: 290px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease);
}
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* little notch */
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}

.nav__drop-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav__drop-link:hover { background: var(--teal-soft); transform: translateX(3px); }
.nav__drop-ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--teal);
}
.nav__drop-ic svg { width: 18px; height: 18px; }
.nav__drop-link:hover .nav__drop-ic { background: var(--teal); color: #fff; }
.nav__drop-tt { display: flex; flex-direction: column; }
.nav__drop-title { font-weight: 600; }
.nav__drop-desc { font-size: .76rem; color: var(--muted); font-weight: 400; }

/* ---- CTA + hamburger ---- */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--teal);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(22, 123, 129, .28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.nav__cta:hover {
  transform: translateY(-2px);
  background: var(--teal-dark);
  box-shadow: 0 12px 28px rgba(22, 123, 129, .38);
}

.nav__burger {
  display: none;
  position: relative;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav.is-open-mobile .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open-mobile .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open-mobile .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile overlay */
.nav__scrim {
  position: fixed; inset: 0;
  background: rgba(15, 35, 36, .42);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  z-index: 998;
}
.nav.is-open-mobile .nav__scrim { opacity: 1; visibility: visible; }

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 980px) {
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 86vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: calc(var(--nav-h) + 16px) 18px 32px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .45s var(--ease);
    z-index: 999;
  }
  .nav.is-open-mobile .nav__menu { transform: translateX(0); }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 14px;
    font-size: .9rem;
    border-radius: 11px;
  }
  .nav__link::after { display: none; }
  .nav__link:hover { background: var(--teal-soft); }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav__dropdown::before { display: none; }
  .nav__item.is-open .nav__dropdown { max-height: 520px; transform: none; }
  .nav__drop-desc { display: none; }

  /* in-menu contact CTA */
  .nav__menu .nav__menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    padding: 15px 22px;
    background: var(--teal);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(22, 123, 129, .28);
  }
  .nav__menu-cta:hover { background: var(--teal-dark); }
}

/* hidden on desktop (only inside the mobile panel) */
.nav__menu-cta { display: none; }

@media (max-width: 480px) {
  .nav__inner { padding: 0 16px; }
  .nav__brand-sub { display: none; }
}

/* ============================================================

/* ---- FOOTER ---- */
   FOOTER
   ============================================================ */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
}
.footer__brand img { height: 84px; width: auto; }

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  flex: 1;
}
.footer__contact { display: flex; flex-direction: column; gap: 6px; }
.footer__contact-head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.footer__contact-head .ic {
  width: 30px; height: 30px;
  color: var(--teal);
  flex-shrink: 0;
}
.footer__contact-head .ic svg { width: 30px; height: 30px; }
.footer__contact a,
.footer__contact span.val {
  font-size: 1.05rem;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.footer__contact a:hover { color: var(--teal); }

/* social */
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.footer__social a:hover {
  transform: translateY(-3px);
  background: var(--teal);
  border-color: transparent;
  color: #fff;
}
.footer__social svg { width: 20px; height: 20px; }

/* bottom bar */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 36px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer__copy { font-size: 1rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.footer__note { font-size: 1rem; color: var(--muted); }

@media (max-width: 880px) {
  .footer__top { gap: 28px 40px; }
  .footer__brand img { height: 70px; }
  .footer__contacts { flex: 1 1 100%; order: 3; }
}
@media (max-width: 600px) {
  .footer { padding: 40px 0 24px; }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer__brand img { height: 60px; }
  .footer__contacts {
    flex-direction: column;
    gap: 22px;
    order: 0;
  }
  .footer__social { width: 100%; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 28px;
  }
  .footer__copy { white-space: normal; }
}

