/* ==========================================================================
   SHRAVI MOTORS
   navigation.css — announcement, header, mobile overlay, footer
   ========================================================================== */

/* 01 · Announcement ------------------------------------------------------- */
.announcement {
  position: relative;
  z-index: 2;
  height: var(--announcement);
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark-soft);
  color: rgba(246, 245, 241, 0.62);
  transition: height 0.4s var(--ease), opacity 0.35s;
}

.announcement__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--announcement);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.announcement__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  white-space: nowrap;
}

.announcement__brand strong { color: var(--white); font-weight: 600; }

.announcement__tagline {
  font-family: var(--font-mr-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement__sep {
  width: 1px;
  height: 11px;
  flex: 0 0 auto;
  background: rgba(246, 245, 241, 0.22);
}

.announcement__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-2);
  white-space: nowrap;
  transition: color 0.3s;
}
.announcement__link:hover { color: var(--white); }
.announcement__link svg { width: 11px; height: 11px; }

body.is-scrolled .announcement {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

/* 02 · Header ------------------------------------------------------------- */
.site-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 950;
}

.site-header {
  position: relative;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header);
  transition: height 0.4s var(--ease);
}

body.is-scrolled .site-header {
  background: rgba(12, 14, 16, 0.88);
  border-bottom-color: var(--line-dark-soft);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
body.is-scrolled .site-header__inner { height: 70px; }

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  flex: 0 0 auto;
  color: var(--white);
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--gold);
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg); }

.brand__text { display: flex; flex-direction: column; line-height: 1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.brand__sub {
  margin-top: 0.32rem;
  color: rgba(246, 245, 241, 0.47);
  font-size: 0.47rem;
  font-weight: 500;
  letter-spacing: 0.33em;
}

/* primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.25vw, 2.55rem);
  height: 100%;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: rgba(246, 245, 241, 0.68);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--gold-2); }

/* header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(246, 245, 241, 0.17);
  border-radius: 50%;
  color: rgba(246, 245, 241, 0.78);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s;
}
.icon-link:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  transform: translateY(-2px);
}
.icon-link svg { width: 16px; height: 16px; }

.menu-btn {
  position: relative;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(246, 245, 241, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
}
.menu-btn:hover { border-color: var(--gold); background: rgba(198, 161, 107, 0.08); }

.menu-btn__lines {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.menu-btn__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.menu-btn__lines span:nth-child(1) { top: 0; }
.menu-btn__lines span:nth-child(2) { top: 4.5px; }
.menu-btn__lines span:nth-child(3) { top: 9px; width: 70%; }

body.menu-open .menu-btn__lines span:nth-child(1) { top: 4.5px; transform: rotate(45deg); }
body.menu-open .menu-btn__lines span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn__lines span:nth-child(3) { top: 4.5px; width: 100%; transform: rotate(-45deg); }

/* 03 · Mobile menu -------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: flex;
  flex-direction: column;
  padding: calc(var(--announcement) + 100px) var(--gutter) 2rem;
  background: var(--ink);
  color: var(--white);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease), visibility 0.75s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0);
}

.mobile-menu__bg {
  position: absolute;
  right: -10%;
  bottom: -5%;
  width: 80%;
  max-width: 700px;
  opacity: 0.12;
  pointer-events: none;
  filter: grayscale(1);
}
.mobile-menu__bg img { width: 100%; height: 100%; object-fit: cover; }

.mobile-menu__inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100%; }

.mobile-menu__label { color: var(--gold); margin-bottom: 1.5rem; }

.mobile-menu__links { display: flex; flex-direction: column; }

.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-dark-soft);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--white);
  transition: color 0.3s, padding-left 0.4s var(--ease);
}

.mobile-menu__links a span {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
}

.mobile-menu__links a:hover,
.mobile-menu__links a.is-active { color: var(--gold-2); padding-left: 0.45rem; }

.mobile-menu__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 2.5rem;
}

.mobile-menu__contact { display: grid; gap: 0.35rem; }
.mobile-menu__contact a {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--white);
}
.mobile-menu__contact a:hover { color: var(--gold); }
.mobile-menu__contact p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu__social { display: flex; gap: 1.2rem; }
.mobile-menu__social a {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 04 · Footer ------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-dark);
}

.footer__statement {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5.8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  color: var(--white);
}
.footer__statement em { color: var(--gold-2); font-family: var(--font-serif); }

.footer__top .btn { margin-top: 2rem; }

.footer__seal {
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  width: 174px;
  padding: 1.2rem;
  background: var(--bone);
  color: var(--ink);
}
.footer__seal img { width: 100%; height: auto; }
.footer__seal p {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  color: rgba(12, 14, 16, 0.55);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }

.footer__col h3 {
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer__col a,
.footer__col p,
.footer__col address {
  max-width: 28ch;
  color: rgba(246, 245, 241, 0.6);
  font-size: 0.82rem;
  line-height: 1.75;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--gold-2); }

.footer__intro {
  max-width: 34ch;
  color: rgba(246, 245, 241, 0.64) !important;
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
}

.footer__tagline {
  margin-top: 0.7rem;
  color: var(--gold-2) !important;
  font-family: var(--font-mr);
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

.footer__socials { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.footer__socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--white);
  transition: 0.3s;
}
.footer__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer__socials svg { width: 15px; height: 15px; }

.footer__wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 2.5rem);
  padding: 0 var(--gutter) clamp(1rem, 2vw, 2.2rem);
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 13.6vw, 15rem);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -0.07em;
  white-space: nowrap;
  user-select: none;
  -webkit-text-stroke: 1px rgba(246, 245, 241, 0.16);
}
.footer__wordmark span:last-child {
  color: rgba(198, 161, 107, 0.09);
  -webkit-text-stroke: 1px rgba(198, 161, 107, 0.3);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line-dark);
  color: rgba(246, 245, 241, 0.4);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer__bottom a { color: rgba(246, 245, 241, 0.66); }
.footer__bottom a:hover { color: var(--gold-2); }
.footer__bottom p { margin: 0; }

/* 05 · Breadcrumb --------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: rgba(246, 245, 241, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb span[aria-current] { color: rgba(246, 245, 241, 0.78); }
.breadcrumb .sepr { color: rgba(246, 245, 241, 0.26); }

.breadcrumb--dark { color: var(--muted-dark); }
.breadcrumb--dark span[aria-current] { color: var(--ink); }
.breadcrumb--dark a:hover { color: var(--ink); }
.breadcrumb--dark .sepr { color: rgba(12, 14, 16, 0.3); }

@media (max-width: 1200px) {
  .nav { gap: 1.2rem; }
  .nav__link { font-size: 0.58rem; letter-spacing: 0.13em; }
  .header-cta { display: none; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-cta { display: inline-flex; }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .announcement__brand strong { display: none; }
  .announcement__sep { display: none; }
  .announcement__inner { justify-content: space-between; gap: 0.75rem; }
  .announcement__tagline { font-size: 0.64rem; }
  .announcement__link span { display: none; }
  .footer__top { grid-template-columns: 1fr; align-items: start; }
  .footer__seal { justify-self: start; width: 138px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.5rem; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 520px) {
  :root { --header: 74px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 0.88rem; }
  .brand__sub { font-size: 0.41rem; letter-spacing: 0.27em; }
  .site-header__actions { gap: 0.55rem; }
  .icon-link { width: 36px; height: 36px; }
  .menu-btn { width: 40px; height: 40px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__wordmark { font-size: 19vw; gap: 0.4rem; }
  .footer__statement { font-size: clamp(2.35rem, 11vw, 3.4rem); }
}
